/* ═══════════════════════════════════════════════════════════
   TASKLYO LANDING CSS  — Premium dark redesign
   ═══════════════════════════════════════════════════════════ */

/* ───── DESIGN TOKENS ───── */
:root {
  --bg:  #0b0713;
  --bg2: #0f0d1a;
  --surface:       rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.07);
  --border:        rgba(255,255,255,0.08);
  --border-glow:   rgba(139,92,246,0.35);
  --purple:        #8b5cf6;
  --purple-light:  #a78bfa;
  --indigo:        #6366f1;
  --violet:        #7c3aed;
  --accent:        #c4b5fd;
  --gold:          #fbbf24;
  --green:         #34d399;
  --cyan:          #22d3ee;
  --text:          #f1f0ff;
  --text-muted:    rgba(241,240,255,0.55);
  --text-dim:      rgba(241,240,255,0.28);
  --r:    18px;
  --r-sm: 10px;
  --font-head: 'Syne', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'Fira Mono', 'Cascadia Code', monospace;
  --max: 1100px;
}

/* ───── RESET ───── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(139,92,246,0.35) transparent;
}
html::-webkit-scrollbar { width: 6px; }
html::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb { background: rgba(139,92,246,0.35); border-radius: 99px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
::selection { background: rgba(139,92,246,0.3); }

/* ───── NOISE OVERLAY ───── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ───── AMBIENT ORBS ───── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 14s ease-in-out infinite alternate;
}
.orb-1 { width: 560px; height: 560px; background: radial-gradient(circle, rgba(124,58,237,0.26) 0%, transparent 70%); top: -180px; left: -120px; animation-delay: 0s; }
.orb-2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(99,102,241,0.18) 0%, transparent 70%); top: 38%; right: -130px; animation-delay: -5s; }
.orb-3 { width: 320px; height: 320px; background: radial-gradient(circle, rgba(196,181,253,0.10) 0%, transparent 70%); bottom: 12%; left: 18%; animation-delay: -9s; }
@keyframes orbFloat {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(30px,44px) scale(1.07); }
}

/* ───── UTILITIES ───── */
.container { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; position: relative; z-index: 1; }
@media (max-width: 520px) { .container { width: min(var(--max), calc(100% - 28px)); } }

.skip {
  position: absolute; left: -999px; top: 12px;
  padding: 10px 14px; border-radius: 12px;
  background: rgba(139,92,246,0.15); border: 1px solid rgba(139,92,246,0.3);
}
.skip:focus { left: 14px; z-index: 9999; }
:focus-visible { outline: 2px solid rgba(139,92,246,0.7); outline-offset: 3px; border-radius: 10px; }

/* ───── GLASSMORPHISM ───── */
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
  .glass { background: rgba(255,255,255,0.07); }
}

/* ───── BUTTONS ───── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--violet) 0%, var(--indigo) 100%);
  color: #fff; padding: 13px 28px; border-radius: 50px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.93rem;
  box-shadow: 0 0 36px rgba(124,58,237,0.42), 0 4px 20px rgba(0,0,0,0.35);
  border: none; cursor: pointer;
  transition: transform 0.22s, box-shadow 0.22s;
  text-decoration: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 54px rgba(124,58,237,0.62), 0 8px 30px rgba(0,0,0,0.45); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-muted); padding: 13px 22px; border-radius: 50px;
  font-family: var(--font-body); font-size: 0.93rem;
  border: 1px solid var(--border);
  background: var(--surface); backdrop-filter: blur(10px);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
  text-decoration: none;
}
.btn-ghost:hover { color: var(--text); border-color: rgba(139,92,246,0.4); background: var(--surface-hover); transform: translateY(-1px); }

/* NAV-sized variants */
.btn { appearance: none; border: 1px solid transparent; border-radius: 12px; padding: 10px 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font-weight: 650; letter-spacing: .01em; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background 0.2s; }
.btn.primary { background: linear-gradient(135deg, var(--purple-light) 0%, var(--indigo) 80%); box-shadow: 0 10px 36px rgba(99,102,241,0.2), 0 4px 14px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.18); }
.btn.primary:hover { transform: translateY(-1px); filter: brightness(1.04); }
.btn.ghost { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.15); color: rgba(241,240,255,0.9); }
.btn.ghost:hover { transform: translateY(-1px); border-color: rgba(139,92,246,0.28); }
.btn.small { padding: 7px 12px; border-radius: 10px; font-size: 13px; gap: 6px; }
.btn.small svg, header .btn svg { width: 14px; height: 14px; }

/* ───── HEADER / NAV ───── */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,7,19,0.72);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; }
.brand { display: flex; align-items: center; gap: 10px; min-width: max-content; }
.logo { width: 34px; height: 34px; border-radius: 10px; object-fit: contain; }
.brand strong { font-size: 15px; font-family: var(--font-head); letter-spacing: 0.02em; }
.brand > a > span > span { display: block; font-size: 12px; color: var(--text-dim); margin-top: 1px; }

.navLinks { display: flex; align-items: center; gap: 6px; list-style: none; }
.navLinks a {
  padding: 8px 12px; border-radius: 10px; color: var(--text-muted);
  border: 1px solid transparent; font-size: 0.875rem; font-weight: 500;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.navLinks a:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); color: var(--text); }

.navRight { display: flex; align-items: center; gap: 8px; }

/* Mobile menu toggle button */
.navToggle {
  display: none;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  cursor: pointer;
}
.navToggle svg { width: 18px; height: 18px; opacity: 0.88; }

@media (max-width: 860px) {
  .navLinks, .desktopOnlyBtn { display: none !important; }
  .navToggle { display: inline-flex; align-items: center; }
}

/* Mobile dropdown menu — animated */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInItem {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

.mobileMenu {
  border-top: 1px solid var(--border);
  background: rgba(11,7,19,0.97);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  overflow: hidden;
  /* When visible, the animation runs */
}
.mobileMenu.is-open {
  animation: slideDown 0.28s cubic-bezier(0.16,1,0.3,1) both;
}
.mobilePanel {
  padding: 10px 0 18px;
  display: grid;
  gap: 3px;
}
.mobilePanel a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 14px; border-radius: 12px;
  border: 1px solid transparent;
  color: rgba(241,240,255,0.82); font-weight: 500; font-size: 0.95rem;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  opacity: 0; /* starts hidden; JS adds is-open which triggers animation */
}
.mobileMenu.is-open .mobilePanel a:nth-child(1) { animation: fadeInItem 0.3s 0.05s ease both; }
.mobileMenu.is-open .mobilePanel a:nth-child(2) { animation: fadeInItem 0.3s 0.10s ease both; }
.mobileMenu.is-open .mobilePanel a:nth-child(3) { animation: fadeInItem 0.3s 0.15s ease both; }
.mobileMenu.is-open .mobilePanel a:nth-child(4) { animation: fadeInItem 0.3s 0.20s ease both; }
.mobilePanel a:hover { background: rgba(255,255,255,0.05); border-color: rgba(139,92,246,0.2); color: var(--text); }
.mobileMenu.is-open .mobilePanelRow { animation: fadeInItem 0.3s 0.24s ease both; opacity: 0; }
.mobilePanelRow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.mobilePanelRow .btn { font-size: 0.86rem; padding: 11px 16px; flex: 1; justify-content: center; }

/* ───── HERO ───── */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 140px 5% 80px;
  overflow: hidden;
}
/* Subtle grid lines */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(139,92,246,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 80%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 50px;
  padding: 6px 18px;
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--accent); letter-spacing: 0.06em;
  margin-bottom: 32px;
  animation: fadeUp 0.8s ease both;
}
.badge-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; box-shadow: 0 0 8px var(--green); animation: blink 2s infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.035em;
  max-width: 820px;
  animation: fadeUp 0.8s 0.1s ease both;
}
.line-accent {
  background: linear-gradient(90deg, var(--purple-light), var(--accent), var(--indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  margin-top: 22px; font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted); max-width: 520px; font-weight: 300;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-actions {
  margin-top: 38px; display: flex; gap: 14px;
  align-items: center; flex-wrap: wrap; justify-content: center;
  animation: fadeUp 0.8s 0.3s ease both;
}

.hero-chips {
  margin-top: 48px; display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.8s 0.45s ease both;
}
.chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px; padding: 6px 14px;
  font-size: 0.78rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 7px;
  backdrop-filter: blur(10px); white-space: nowrap;
}

/* ───── DASHBOARD PREVIEW ───── */
.preview-wrap {
  position: relative; z-index: 1;
  padding: 0 5% 90px;
  animation: fadeUp 0.8s 0.5s ease both;
}
.preview-glow {
  position: absolute; top: -50px; left: 50%; transform: translateX(-50%);
  width: 60%; height: 180px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.28) 0%, transparent 70%);
  filter: blur(40px); pointer-events: none;
}
.dashboard-mock {
  max-width: 880px; margin: 0 auto;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 22px; overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,0.65), 0 0 0 1px rgba(139,92,246,0.12), inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
}
.mock-titlebar {
  padding: 13px 18px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 7px;
}
.mock-dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #28ca41; }
.mock-url {
  margin-left: 12px; font-family: var(--font-mono); font-size: 0.73rem;
  color: var(--text-dim); background: rgba(255,255,255,0.04);
  padding: 4px 14px; border-radius: 6px; border: 1px solid var(--border);
}
.mock-body { display: grid; grid-template-columns: 200px 1fr; min-height: 340px; }
.mock-sidebar { border-right: 1px solid var(--border); padding: 18px 14px; display: flex; flex-direction: column; gap: 5px; }
.sidebar-item {
  padding: 8px 11px; border-radius: 9px; font-size: 0.76rem;
  color: var(--text-muted); display: flex; align-items: center; gap: 8px;
  transition: background 0.2s;
}
.sidebar-item.active { background: rgba(139,92,246,0.14); color: var(--accent); border: 1px solid rgba(139,92,246,0.22); }
.mock-content { padding: 18px; }
.mock-heading { font-family: var(--font-head); font-size: 1rem; font-weight: 700; margin-bottom: 14px; color: var(--text); }
.task-list { display: flex; flex-direction: column; gap: 9px; }
.task-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 11px 13px;
  display: flex; align-items: center; gap: 11px; font-size: 0.8rem;
}
.task-check { width: 16px; height: 16px; border-radius: 4px; border: 1px solid rgba(139,92,246,0.45); flex-shrink: 0; }
.task-check.done { background: var(--violet); border-color: var(--violet); display: grid; place-items: center; color: #fff; font-size: 10px; }
.task-label { flex: 1; }
.task-label.done-text { text-decoration: line-through; color: var(--text-dim); }
.task-pill { font-size: 0.68rem; padding: 2px 8px; border-radius: 4px; font-family: var(--font-mono); background: rgba(139,92,246,0.12); color: var(--accent); }
.task-high { background: rgba(251,191,36,0.1); color: var(--gold); }
.task-done { background: rgba(52,211,153,0.1); color: var(--green); }
.mock-focus-bar {
  margin-top: 14px;
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(99,102,241,0.06));
  border: 1px solid rgba(139,92,246,0.18);
  border-radius: var(--r-sm); padding: 13px;
  display: flex; align-items: center; justify-content: space-between;
}
.focus-label { font-size: 0.75rem; color: var(--text-muted); }
.focus-timer { font-family: var(--font-mono); font-size: 1.35rem; color: var(--accent); letter-spacing: 0.05em; }

/* ───── MARQUEE ───── */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 15px 0;
  background: rgba(255,255,255,0.012);
  position: relative; z-index: 1;
}
.marquee-track {
  display: flex; gap: 48px; white-space: nowrap;
  animation: marquee 22s linear infinite;
}
.marquee-item {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--text-dim); letter-spacing: 0.1em;
}
.m-icon { color: var(--purple-light); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ───── SECTION BASE ───── */
section { position: relative; z-index: 1; }
.lp-section { padding: 100px 0; }

.section-tag {
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.14em; color: var(--purple-light);
  text-transform: uppercase; margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.section-tag::before { content: ''; display: block; width: 28px; height: 1px; background: var(--purple-light); }

.section-title {
  font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 16px;
}
.section-sub { font-size: 1.05rem; color: var(--text-muted); max-width: 500px; font-weight: 300; }

/* ───── FEATURES GRID ───── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px; margin-top: 56px;
}
.feat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 28px 26px;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
  position: relative; overflow: hidden;
}
.feat-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(139,92,246,0.1) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.feat-card:hover { border-color: var(--border-glow); background: var(--surface-hover); transform: translateY(-4px); }
.feat-card:hover::before { opacity: 1; }
.feat-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(139,92,246,0.1); border: 1px solid rgba(139,92,246,0.18);
  margin-bottom: 16px;
}
.feat-card h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feat-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }
.feat-tag {
  display: inline-block; margin-top: 14px;
  font-size: 0.68rem; font-family: var(--font-mono);
  color: var(--text-dim); letter-spacing: 0.06em;
}

/* ───── STATS ROW ───── */
.stats-row {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--r);
  overflow: hidden; margin-top: 56px;
}
.stat-box { background: var(--bg2); padding: 36px 28px; text-align: center; }
.stat-num {
  font-family: var(--font-head); font-size: 3rem; font-weight: 800; letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--purple-light), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: 0.84rem; color: var(--text-muted); margin-top: 6px; }

/* ───── ISLAMIC HUB ───── */
.hub-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 56px; }
.hub-cards { display: flex; flex-direction: column; gap: 14px; }
.hub-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 20px 22px;
  display: flex; gap: 16px; align-items: flex-start;
  transition: border-color 0.2s, transform 0.2s;
}
.hub-card:hover { border-color: rgba(251,191,36,0.28); transform: translateX(4px); }
.hub-icon {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: rgba(251,191,36,0.07); border: 1px solid rgba(251,191,36,0.14);
  display: grid; place-items: center;
}
.hub-card h4 { font-family: var(--font-head); font-weight: 700; font-size: 0.98rem; margin-bottom: 4px; }
.hub-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.hub-visual {
  background: linear-gradient(145deg, rgba(251,191,36,0.05), rgba(124,58,237,0.07));
  border: 1px solid rgba(251,191,36,0.12);
  border-radius: 20px; padding: 34px; text-align: center;
}
.arabic-text {
  font-size: 1.9rem; color: var(--gold); opacity: 0.72; direction: rtl;
  letter-spacing: 0.04em; margin-bottom: 18px; line-height: 1.9; font-weight: 300;
}
.hub-visual p { font-size: 0.83rem; color: var(--text-dim); font-style: italic; }
.prayer-pills { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.prayer-pill {
  background: rgba(251,191,36,0.08); border: 1px solid rgba(251,191,36,0.18);
  border-radius: 50px; padding: 6px 14px;
  font-size: 0.75rem; color: var(--gold);
}
.hub-mono { margin-top: 18px; font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-dim); letter-spacing: 0.1em; }

/* ───── FOCUS SPRINT DEMO ───── */
.sprint-section { background: linear-gradient(180deg, transparent, rgba(124,58,237,0.04), transparent); }
.sprint-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 60px; }

.sprint-demo {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 24px; padding: 38px; text-align: center;
  position: relative; overflow: hidden;
}
.sprint-demo::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(139,92,246,0.1) 0%, transparent 55%);
}
.sprint-durations { display: flex; gap: 8px; justify-content: center; margin-bottom: 24px; position: relative; z-index: 1; }
.dur-btn {
  padding: 6px 16px; border-radius: 50px;
  font-size: 0.78rem; cursor: pointer; font-family: var(--font-mono);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted); transition: all 0.2s;
}
.dur-btn.active, .dur-btn:hover { background: rgba(139,92,246,0.14); border-color: rgba(139,92,246,0.32); color: var(--accent); }

.sprint-ring {
  width: 156px; height: 156px; border-radius: 50%;
  border: 3px solid rgba(139,92,246,0.13);
  margin: 0 auto 22px; position: relative;
  display: grid; place-items: center; z-index: 1;
}
.sprint-ring::before {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--purple); border-right-color: var(--purple);
  animation: spinRing 8s linear infinite;
}
@keyframes spinRing { to { transform: rotate(360deg); } }
.sprint-time { font-family: var(--font-mono); font-size: 2.8rem; color: var(--text); line-height: 1; }
.sprint-label { font-size: 0.76rem; color: var(--text-muted); margin-top: 4px; }

.sprint-buttons { display: flex; gap: 10px; justify-content: center; margin-top: 18px; position: relative; z-index: 1; }
.sprint-ctrl-btn { padding: 9px 22px; border-radius: 50px; font-size: 0.82rem; cursor: pointer; font-family: var(--font-body); border: none; transition: all 0.2s; display: inline-flex; align-items: center; gap: 7px; }
.sprint-note { font-size: 0.72rem; color: var(--text-dim); margin-top: 14px; position: relative; z-index: 1; }
.sprint-note kbd { background: rgba(255,255,255,0.07); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; font-family: var(--font-mono); font-size: 0.68rem; }

.sprint-info h2 { font-family: var(--font-head); font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 14px; }
.sprint-info p { color: var(--text-muted); font-size: 0.93rem; margin-bottom: 22px; }
.why-list { display: flex; flex-direction: column; gap: 14px; }
.why-item { display: flex; gap: 12px; align-items: flex-start; }
.why-num { font-family: var(--font-mono); font-size: 0.7rem; color: var(--purple-light); padding-top: 2px; flex-shrink: 0; }
.why-item p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }
.why-item strong { color: var(--text); }
.sprint-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* ───── FAQ ───── */
.faq-list { margin-top: 46px; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden; cursor: pointer;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: rgba(139,92,246,0.3); }
.faq-q {
  padding: 18px 22px; font-size: 0.93rem; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center;
  user-select: none; color: var(--text); transition: color 0.2s;
}
.faq-item:hover .faq-q, .faq-item.open .faq-q { color: var(--accent); }
.faq-arrow { transition: transform 0.3s; color: var(--text-dim); font-size: 1.1rem; }
.faq-item.open .faq-arrow { transform: rotate(45deg); color: var(--accent); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s;
  font-size: 0.88rem; color: var(--text-muted); line-height: 1.72;
}
.faq-item.open .faq-a { max-height: 220px; padding: 0 22px 18px; }

/* ───── CTA BANNER ───── */
.cta-section { padding: 80px 5%; position: relative; z-index: 1; }
.cta-box {
  max-width: 780px; margin: 0 auto;
  background: linear-gradient(135deg, rgba(124,58,237,0.13) 0%, rgba(99,102,241,0.08) 100%);
  border: 1px solid rgba(139,92,246,0.22);
  border-radius: 28px; padding: 60px 44px;
  text-align: center; position: relative; overflow: hidden;
}
.cta-box::before {
  content: ''; position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 300px; height: 140px;
  background: radial-gradient(ellipse, rgba(139,92,246,0.22) 0%, transparent 70%);
  filter: blur(28px);
}
.cta-box h2 { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; position: relative; z-index: 1; }
.cta-box p { color: var(--text-muted); font-size: 1rem; margin-bottom: 34px; position: relative; z-index: 1; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* ───── FOOTER ───── */
footer.site {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 38px 0;
}
.footer-row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 18px;
}
.footer-logo { font-family: var(--font-head); font-weight: 800; font-size: 1rem; display: flex; align-items: center; gap: 9px; }
.footer-links { display: flex; gap: 22px; font-size: 0.84rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }
footer small { font-size: 0.76rem; color: var(--text-dim); }

/* ───── SCROLL REVEAL ───── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ───── ANIMATIONS ───── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ───── RESPONSIVE ───── */

/* Tablet */
@media (max-width: 900px) {
  .hub-layout { grid-template-columns: 1fr; }
  .hub-visual { display: none; }
  .sprint-layout { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
}

/* Phablet / large phone landscape */
@media (max-width: 768px) {
  /* Header */
  .nav { padding: 10px 0; }
  .brand strong { font-size: 14px; }
  .brand > a > span > span { display: none; } /* hide tagline to save space */

  /* Hero */
  .hero {
    padding: 96px 6% 52px;
    min-height: auto;
  }
  .hero h1 {
    font-size: clamp(2rem, 9vw, 3.4rem);
    letter-spacing: -0.025em;
    line-height: 1.08;
  }
  .hero-sub {
    font-size: 0.97rem;
    max-width: 100%;
    margin-top: 16px;
  }
  .hero-badge {
    font-size: 0.66rem;
    padding: 5px 14px;
    margin-bottom: 22px;
  }
  .hero-actions {
    margin-top: 26px;
    gap: 10px;
  }
  .hero-chips {
    margin-top: 32px;
    gap: 8px;
  }
  .chip { font-size: 0.73rem; padding: 5px 11px; }

  /* Sections */
  .lp-section { padding: 60px 0; }
  .section-title { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .section-sub { font-size: 0.95rem; }

  /* Layout */
  .features-grid { grid-template-columns: 1fr; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-sidebar { display: none; }
  .preview-wrap { padding: 0 4% 50px; }
  .cta-box { padding: 38px 22px; }
  .footer-row { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

/* Small phone portrait */
@media (max-width: 480px) {
  /* Header */
  .nav { gap: 10px; }
  .logo { width: 28px; height: 28px; }

  /* Hero */
  .hero {
    padding: 88px 5% 44px;
    text-align: center;
  }
  .hero h1 {
    font-size: clamp(1.75rem, 10vw, 2.6rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
  }
  .hero-sub {
    font-size: 0.92rem;
    line-height: 1.6;
  }
  .hero-badge {
    font-size: 0.62rem;
    padding: 5px 12px;
    letter-spacing: 0.04em;
    white-space: normal;
    text-align: center;
    line-height: 1.5;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 22px;
  }
  .btn-primary, .btn-ghost {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
  }
  .hero-chips {
    margin-top: 26px;
    gap: 7px;
  }
  .chip { font-size: 0.7rem; padding: 5px 10px; gap: 5px; }

  /* Mockup */
  .mock-url { display: none; }
  .mock-dot { width: 9px; height: 9px; }
  .preview-wrap { padding: 0 3% 40px; }

  /* Sprint demo */
  .sprint-demo { padding: 24px 16px; }
  .sprint-ring { width: 130px; height: 130px; }
  .sprint-time { font-size: 2.2rem; }
  .sprint-ctrl-btn { padding: 8px 18px; font-size: 0.8rem; }

  /* CTA */
  .cta-box { padding: 30px 18px; }
  .cta-box h2 { font-size: 1.6rem; }
  .cta-btns { flex-direction: column; align-items: stretch; }
  .cta-btns .btn-primary, .cta-btns .btn-ghost { width: 100%; justify-content: center; }

  /* FAQ */
  .faq-q { font-size: 0.86rem; padding: 16px 16px; }

  /* Section */
  .lp-section { padding: 44px 0; }
  .stat-box { padding: 24px 16px; }
  .stat-num { font-size: 2.2rem; }
}
