/* 4x4 Timer Landing – theme from PRD */
:root {
  --bg: #1C1F33;
  --bg-alt: #252840;
  --text: #F8F8F8;
  --text-muted: #b3b3b3;
  --on-accent: #F78E2E;
  --off-accent: #6EE0E9;
  --link: #6EE0E9;
  --link-hover: #F78E2E;
  --white: #FFFFFF;
  --radius: 12px;
  --space: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --max-width: 720px;
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space);
  padding: 0.75rem 1rem;
  background: var(--on-accent);
  color: var(--bg);
  font-weight: 600;
  z-index: 100;
  border-radius: var(--radius);
  transition: top 0.2s;
}
.skip-link:focus { top: var(--space); }

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }
h1, h2, h3 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); margin: 0 0 0.5em; }
h2 { font-size: clamp(1.35rem, 4vw, 1.75rem); margin: 0 0 0.75em; }

.section-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-lg); }
section { padding: var(--space-xl) 0; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(28, 31, 51, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}
.logo:hover { color: var(--off-accent); }
.nav {
  display: none;
  gap: 1.5rem;
}
.nav a { color: var(--text-muted); font-weight: 500; }
.nav a:hover { color: var(--text); }
.nav-cta { color: var(--on-accent) !important; }
.menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  border-radius: 4px;
}
.menu-btn span { width: 22px; height: 2px; background: currentColor; }
.nav-open { display: flex !important; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); padding: var(--space); gap: 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
@media (min-width: 768px) {
  .nav { display: flex; }
  .nav-open { position: static; flex-direction: row; padding: 0; border: none; }
  .menu-btn { display: none; }
}

/* Hero */
.hero { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}
@media (min-width: 640px) {
  .hero-inner { grid-template-columns: 1fr auto; }
}
.hero-sub { font-size: 1.1rem; color: var(--text-muted); margin: 0 0 1.5rem; max-width: 42ch; }
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero-visual { text-align: center; }
.hero-visual img { border-radius: 28px; box-shadow: 0 20px 50px rgba(0,0,0,0.4); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}
.btn:hover { opacity: 0.9; }
.btn:focus-visible { outline: 2px solid var(--off-accent); outline-offset: 2px; }
.btn-app-store {
  background: #000;
  color: #fff;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.btn-app-store::before {
  content: "";
  width: 24px;
  height: 24px;
  margin-right: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.7 1.57-.27 3.09-1.14 4.07-.93 1.19-2.04 2.09-3.8 2.16-1.21-.02-2.38-.74-2.38-.74.06-1.8 1.47-2.68 2.4-3.59z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.btn-google-play {
  background: #fff;
  color: #1a1a1a;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.btn-google-play::before {
  content: "";
  width: 24px;
  height: 24px;
  margin-right: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234285F4' d='M3.609 1.814L13.792 12 3.61 22.186a.996.996 0 01-.61-.92V2.734a1 1 0 01.609-.92zm10.89 10.893l2.302 2.302-10.937 6.333 8.635-8.635zm3.199-3.198l2.807 1.626a1 1 0 010 1.73l-2.808 1.626L15.206 12l2.492-2.491zM5.864 2.658L16.8 8.99l-2.302 2.302-8.634-8.634z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Trust strip */
.trust-strip {
  padding: var(--space) 0;
  background: var(--bg-alt);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.trust-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.trust-inner a { color: var(--link); }

/* At a glance */
.at-a-glance { background: var(--bg-alt); }
.glance-list { margin: 0; padding-left: 1.25rem; }
.glance-list li { margin-bottom: 0.75rem; }
.glance-list li:last-child { margin-bottom: 0; }

/* Problem / Solution */
.problem .section-inner p,
.solution .section-inner p { margin: 0; color: var(--text-muted); max-width: 60ch; }

/* Features */
.features-list { margin: 0; padding-left: 1.25rem; }
.features-list li { margin-bottom: 0.75rem; }

/* How it works */
.steps-list { margin: 0; padding-left: 1.25rem; counter-reset: step; }
.steps-list li { margin-bottom: 1rem; list-style: none; position: relative; padding-left: 2rem; }
.steps-list li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; width: 1.5rem; height: 1.5rem; background: var(--on-accent); color: var(--bg); border-radius: 50%; font-size: 0.8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; line-height: 1.5rem; }

/* Screenshots */
.screenshots { background: var(--bg-alt); }
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-top: 1rem;
}
.screenshots-grid img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.06);
}

/* FAQ */
.faq-list { margin: 0; }
.faq-list > div { margin-bottom: 1.5rem; }
.faq-list dt { font-weight: 600; margin-bottom: 0.35rem; color: var(--text); }
.faq-list dd { margin: 0; color: var(--text-muted); padding-left: 0; }

/* Final CTA */
.final-cta { text-align: center; }
.final-cta .section-inner p { color: var(--text-muted); margin-bottom: 1.5rem; }
.final-cta .hero-ctas { justify-content: center; }

/* Footer */
.footer {
  padding: var(--space-xl) 0;
  background: var(--bg-alt);
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-lg); }
.footer p { margin: 0.5rem 0; }
.footer a { color: var(--link); }
.footer .legal { font-size: 0.85rem; margin-top: 1rem; opacity: 0.85; }
.copyright { margin-top: 1rem; }
