:root {
  --orange: #f97316;
  --amber: #fbbf24;
  --bg: #0f0f1a;
  --surface: #1c1c2c;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --border: rgba(255, 255, 255, 0.08);
  --gradient: linear-gradient(135deg, #f97316 0%, #fbbf24 100%);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1;
  width: 100%;
}

body.landing {
  background: linear-gradient(180deg, #0f0f1a 0%, #0a0a12 50%, #0f0f1a 100%);
  overflow-x: hidden;
  position: relative;
}

a {
  color: var(--orange);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  position: sticky;
  top: 0;
  background: rgba(15, 15, 26, 0.92);
  backdrop-filter: blur(12px);
  z-index: 10;
}

.site-header .inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 0 12px rgba(249, 115, 22, 0.45));
}

.logo:hover {
  text-decoration: none;
  opacity: 0.9;
}

nav a {
  color: var(--muted);
  margin-left: 20px;
  font-size: 0.95rem;
  text-decoration: none;
}

nav a:first-child {
  margin-left: 0;
}

nav a:hover {
  color: var(--text);
  text-decoration: none;
}

/* Hero */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .tagline {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 32px;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.15);
  color: var(--amber);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

/* Features */
.features {
  padding: 40px 0 80px;
}

.feature-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--muted);
}

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

/* Content pages */
.page {
  padding: 48px 0 80px;
}

.page h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.page .updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.page h2 {
  font-size: 1.25rem;
  margin: 32px 0 12px;
  color: var(--amber);
}

.page h3 {
  font-size: 1.05rem;
  margin: 24px 0 8px;
}

.page p,
.page li {
  color: #d4d4d8;
  margin-bottom: 12px;
}

.page ul,
.page ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.page li {
  margin-bottom: 8px;
}

/* FAQ */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 12px;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.faq-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Contact card */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  margin-top: 32px;
}

.contact-card h2 {
  margin-top: 0;
}

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

.site-footer .inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
  margin-right: 20px;
}

.site-footer a:hover {
  color: var(--orange);
}

/* ========== Landing page ========== */

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow-1 {
  width: 500px;
  height: 500px;
  background: rgba(249, 115, 22, 0.12);
  top: -120px;
  right: -100px;
}

.bg-glow-2 {
  width: 400px;
  height: 400px;
  background: rgba(251, 191, 36, 0.08);
  bottom: 20%;
  left: -120px;
}

.landing .site-header,
.landing main,
.landing .site-footer {
  position: relative;
  z-index: 1;
}

.landing .site-header {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

/* Hero */
.landing .hero {
  padding: 48px 0 80px;
  text-align: left;
}

@media (max-width: 899px) {
  .landing .hero {
    text-align: center;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    display: flex;
    justify-content: center;
  }
}

.hero-grid {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    padding: 0 32px;
  }
}

.hero-copy .badge {
  margin-bottom: 20px;
}

.landing .hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text);
  background: none;
  -webkit-text-fill-color: var(--text);
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.hero-cta {
  margin-bottom: 16px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary {
  background: var(--gradient);
  color: #0f0f1a;
  box-shadow: 0 4px 24px rgba(249, 115, 22, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(249, 115, 22, 0.45);
  text-decoration: none;
}

.hero-note {
  font-size: 0.875rem;
  color: #71717a;
}

/* Phone mockup */
.phone-wrap {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.phone {
  width: 280px;
  background: #1c1c2c;
  border-radius: 36px;
  padding: 12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 24px 64px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(249, 115, 22, 0.15);
}

.phone-notch {
  width: 100px;
  height: 24px;
  background: #0f0f1a;
  border-radius: 0 0 16px 16px;
  margin: 0 auto 8px;
}

.phone-screen {
  background: linear-gradient(180deg, #0f0f1a 0%, #14141f 100%);
  border-radius: 28px;
  padding: 20px 16px 24px;
  min-height: 420px;
}

.mock-header {
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.mock-streak {
  text-align: center;
  font-size: 0.8rem;
  color: var(--amber);
  margin-bottom: 24px;
}

.mock-card {
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.mock-card-active {
  background: rgba(249, 115, 22, 0.08);
  border-color: rgba(249, 115, 22, 0.25);
}

.mock-card-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 4px;
}

.mock-task {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 16px;
}

.mock-timer {
  font-size: 2.5rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: 12px;
}

.mock-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.mock-progress span {
  display: block;
  height: 100%;
  background: var(--gradient);
  border-radius: 2px;
}

.mock-card-locked {
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
  padding: 24px 16px;
}

.mock-lock {
  font-size: 2rem;
  margin-bottom: 8px;
}

.mock-locked-label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.mock-locked-sub {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Sections */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 24px;
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* Steps */
.steps {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}

.step-card:hover {
  border-color: rgba(249, 115, 22, 0.3);
  transform: translateY(-2px);
}

.step-num {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange);
  opacity: 0.6;
}

.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(249, 115, 22, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Flow bar */
.flow-section {
  padding-top: 0;
  padding-bottom: 64px;
}

.flow-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
}

.flow-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 80px;
}

.flow-item span {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.flow-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.flow-dot-lock {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.flow-dot-timer {
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.flow-dot-unlock {
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.flow-line {
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  opacity: 0.4;
  margin: 0 4px;
  margin-bottom: 22px;
}

@media (max-width: 600px) {
  .flow-bar {
    flex-direction: column;
    gap: 4px;
    padding: 24px 20px;
  }

  .flow-line {
    width: 2px;
    height: 20px;
    margin: 0;
    margin-bottom: 0;
  }
}

/* Feature grid (landing) */
.landing .feature-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .landing .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .landing .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.landing .feature-card {
  padding: 24px;
  border-radius: 16px;
  transition: border-color 0.2s;
}

.landing .feature-card:hover {
  border-color: rgba(249, 115, 22, 0.25);
}

.feature-icon-wrap {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.landing .feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

/* CTA */
.cta-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  text-align: center;
}

.cta-section blockquote {
  border: none;
  padding: 0;
  margin: 0 0 12px;
  font-style: normal;
  quotes: none;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-section blockquote::before,
.cta-section blockquote::after {
  content: none;
}

.cta-sub {
  color: var(--muted);
  font-size: 1.05rem;
}

/* Footer (landing) */
.landing .site-footer {
  border-top-color: rgba(255, 255, 255, 0.05);
  padding: 40px 0;
}

.landing .site-footer .inner {
  max-width: 1080px;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

@media (min-width: 640px) {
  .landing .site-footer .inner {
    flex-direction: row;
    align-items: center;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.logo-footer {
  font-size: 1.1rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: #71717a;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-copy {
  margin-left: auto;
  font-size: 0.85rem;
  color: #71717a;
}

@media (max-width: 639px) {
  .footer-copy {
    margin-left: 0;
  }
}
