/* ==========================================================================
   TITAN Browser Official Website — Dark Glassmorphic Design (RTL + LTR)
   ========================================================================== */
:root {
  --bg: #080b12;
  --bg-alt: #0b101b;
  --surface: rgba(17, 24, 39, 0.78);
  --surface-solid: #111827;
  --surface-hover: rgba(26, 36, 58, 0.92);
  --border: rgba(148, 163, 184, 0.16);
  --border-hi: rgba(56, 189, 248, 0.45);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #6366f1;
  --green: #34d399;
  --purple: #a78bfa;
  --amber: #f5b82e;
  --radius: 18px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Cairo', 'Segoe UI', Tahoma, system-ui, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

html[dir="ltr"] body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.45;
}
.bg-glow-1 {
  width: 620px;
  height: 420px;
  top: -160px;
  inset-inline-start: 15%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.28), transparent 70%);
}
.bg-glow-2 {
  width: 560px;
  height: 420px;
  bottom: -140px;
  inset-inline-end: 8%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.24), transparent 70%);
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 11, 18, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.35);
}

.brand-text {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 1px;
}

.brand-sub {
  font-weight: 600;
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: color 0.16s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-family: inherit;
  font-weight: 800;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #2563eb);
  color: #050a14;
  border: none;
  padding: 10px 20px;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.40);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 20px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: var(--border-hi);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 7px 12px;
  font-size: 12.5px;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm { padding: 8px 15px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 13px 26px; font-size: 15px; }

/* Hero */
.hero {
  padding: 68px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.34);
  color: #7dd3fc;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 18px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.hero-title {
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 900;
  line-height: 1.22;
  margin-bottom: 18px;
}

.text-gradient {
  background: linear-gradient(135deg, #38bdf8 0%, #34d399 55%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 560px;
}

.hero-desc strong {
  color: var(--text);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.hero-meta {
  font-size: 12.5px;
  color: #7c8ca3;
}

/* Browser Mockup */
.browser-mockup {
  background: #0c1220;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55), 0 0 40px rgba(56, 189, 248, 0.10);
}

.mock-tabs {
  background: #070a12;
  padding: 10px 12px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
}

.mock-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 10px 10px 0 0;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.mock-tab.active {
  background: #131c30;
  color: var(--text);
  border-top: 2px solid var(--accent);
}

.mock-fav {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.mock-dot.red { background: #ef4444; }
.mock-dot.green { background: var(--green); }

.mock-win-ctrls {
  margin-inline-start: auto;
  display: flex;
  gap: 6px;
  padding-bottom: 8px;
}

.mock-win-ctrls span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.28);
}
.mock-win-ctrls span.close { background: rgba(239, 68, 68, 0.65); }

.mock-nav {
  background: #131c30;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
}

.mock-url {
  background: #080d18;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  direction: ltr;
}

.url-txt {
  color: var(--muted);
  font-family: Consolas, monospace;
}

.shield-pill {
  margin-left: auto;
  background: rgba(52, 211, 153, 0.14);
  color: var(--green);
  border: 1px solid rgba(52, 211, 153, 0.32);
  border-radius: 999px;
  padding: 1px 9px;
  font-size: 11px;
  font-weight: 700;
}

.mock-body {
  padding: 36px 24px 30px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(56, 189, 248, 0.14), transparent 70%),
    #090d17;
}

.mock-brand {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 8px;
  background: linear-gradient(135deg, #ffffff 20%, #38bdf8 70%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mock-tagline {
  font-size: 10px;
  letter-spacing: 3.5px;
  color: var(--muted);
  margin-bottom: 18px;
}

.mock-search {
  max-width: 360px;
  margin: 0 auto 22px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #64748b;
  font-size: 12.5px;
  text-align: start;
}

.mock-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.m-chip {
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.m-val {
  font-size: 14px;
  font-weight: 900;
  font-family: Consolas, monospace;
}
.m-val.green { color: var(--green); }
.m-val.cyan { color: var(--accent); }
.m-val.purple { color: var(--purple); }
.m-lbl { font-size: 10.5px; color: var(--muted); }

/* Stats Bar */
.stats-bar {
  padding: 26px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(11, 16, 27, 0.65);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}

.stat-num {
  font-size: 30px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1.2;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

/* Sections */
.section {
  padding: 76px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  margin-bottom: 10px;
}

.section-sub {
  color: var(--muted);
  font-size: 15px;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.feat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hi);
  background: var(--surface-hover);
}

.feat-highlight {
  border-color: rgba(56, 189, 248, 0.35);
  background: linear-gradient(155deg, rgba(18, 30, 52, 0.92), rgba(14, 21, 37, 0.85));
}

.feat-ico {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 21px;
  margin-bottom: 15px;
}
.feat-ico.cyan { background: rgba(56, 189, 248, 0.14); border: 1px solid rgba(56, 189, 248, 0.30); }
.feat-ico.green { background: rgba(52, 211, 153, 0.14); border: 1px solid rgba(52, 211, 153, 0.30); }
.feat-ico.purple { background: rgba(167, 139, 250, 0.14); border: 1px solid rgba(167, 139, 250, 0.30); }
.feat-ico.amber { background: rgba(245, 184, 46, 0.14); border: 1px solid rgba(245, 184, 46, 0.30); }

.feat-card h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
}

.feat-card p {
  font-size: 13.5px;
  color: var(--muted);
}

/* Comparison Table */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
}

.cmp-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.cmp-table th, .cmp-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  text-align: start;
  font-size: 14px;
}

.cmp-table tr:last-child td {
  border-bottom: none;
}

.cmp-table th {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.col-titan {
  background: rgba(56, 189, 248, 0.07);
  font-weight: 800;
}

.yes { color: var(--green); }
.no { color: var(--muted); }

/* Releases Card */
.release-card {
  background: linear-gradient(145deg, rgba(16, 25, 44, 0.94), rgba(11, 16, 28, 0.96));
  border: 1px solid rgba(56, 189, 248, 0.30);
  border-radius: 22px;
  padding: 32px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
}

.release-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}

.release-title {
  font-size: 28px;
  font-weight: 900;
}

.release-date {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.release-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.release-notes-box h3 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 12px;
}

.changelog-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.changelog-list li {
  position: relative;
  padding-inline-start: 20px;
  color: #cbd5e1;
  font-size: 14px;
}

.changelog-list li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: var(--green);
  font-weight: 900;
}

/* FAQ */
.faq-container {
  max-width: 820px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
}

.faq-item[open] {
  border-color: var(--border-hi);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 15px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--accent);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

/* Footer */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.footer-logo {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .mock-cards { grid-template-columns: 1fr; }
  .release-card { padding: 22px; }
}

/* Direct Download Modal */
.dl-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(4, 7, 14, 0.78);
  backdrop-filter: blur(10px);
  display: none;
  place-items: center;
  padding: 18px;
}

.dl-modal-backdrop.open {
  display: grid;
}

.dl-modal {
  position: relative;
  width: 100%;
  max-width: 470px;
  background: linear-gradient(155deg, #121b2f, #0b101d);
  border: 1px solid rgba(56, 189, 248, 0.40);
  border-radius: 20px;
  padding: 26px 24px 22px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dl-close {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
}

.dl-close:hover {
  color: var(--text);
  border-color: var(--accent);
}

.dl-badge-ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(52, 211, 153, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.42);
  color: var(--green);
  font-size: 22px;
  font-weight: 900;
}

.dl-modal h3 {
  font-size: 19px;
  font-weight: 900;
}

.dl-sub {
  font-size: 13.5px;
  color: var(--muted);
}

.dl-file-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 13px;
  border-radius: 11px;
  background: #070b14;
  border: 1px solid var(--border);
  font-family: Consolas, monospace;
  font-size: 12.5px;
  color: #7dd3fc;
  direction: ltr;
}

.dl-size-tag {
  color: var(--green);
  font-weight: 700;
}

.dl-steps {
  padding-inline-start: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #cbd5e1;
}

.dl-steps strong {
  color: var(--text);
}

.dl-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
}
