/* ─────────────────────────────────────────────
   SYLO AI landing — styles.css
   ───────────────────────────────────────────── */

/* ─── Tokens ─── */
:root {
  /* Palette */
  --ink:        #09090b;      /* near-black, primary type */
  --ink-2:      #27272a;      /* dividers on dark surfaces */
  --muted:      #52525b;      /* body copy */
  --muted-2:    #71717a;      /* hints */
  --muted-3:    #a1a1aa;      /* on-dark labels */
  --surface:    #ffffff;      /* page bg */
  --surface-2:  #fafafa;      /* muted section bg */
  --border:     #e4e4e7;      /* hairlines */
  --accent:     #a3e635;      /* lime-400 */
  --accent-2:   #bef264;      /* lime-300, hover on dark */

  /* Type scale */
  --fs-xs:   12px;
  --fs-sm:   14px;
  --fs-base: 16px;
  --fs-lg:   18px;
  --fs-xl:   20px;
  --fs-2xl:  24px;
  --fs-3xl:  30px;
  --fs-4xl:  36px;
  --fs-5xl:  48px;
  --fs-6xl:  60px;

  /* Spacing / layout */
  --radius:     6px;
  --radius-lg:  8px;
  --container:  1040px;
  --header-h:   64px;
}

/* ─── Reset-ish ─── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Compensate for sticky header so anchor targets land below it */
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: 0;
}

img, svg { display: block; }

/* ─── Container ─── */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ─── Utility atoms ─── */
.muted       { color: var(--muted-3); }

.eyebrow {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--muted-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: var(--fs-sm);
  border-radius: var(--radius);
  padding: 10px 18px;
  border: 1px solid transparent;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
  white-space: nowrap;
}

.btn--sm  { padding: 8px 16px; font-size: var(--fs-sm); }
.btn--lg  { padding: 14px 24px; font-size: var(--fs-base); }
.btn--full { width: 100%; }

.btn--primary {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}
.btn--primary:hover { background: #18181b; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: #f4f4f5; }

.btn--accent {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
  font-weight: 700;
}
.btn--accent:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
}

.btn--outline-light {
  background: transparent;
  color: var(--surface);
  border-color: var(--surface);
}
.btn--outline-light:hover {
  background: var(--surface);
  color: var(--ink);
}

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 200ms ease, background-color 200ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

.nav-link {
  font-size: var(--fs-sm);
  color: var(--muted);
  transition: color 120ms ease;
}
.nav-link:hover { color: var(--ink); }

/* ─── Mobile menu toggle ─── */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 8px;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 120ms ease;
  transform-origin: center;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.mobile-menu[hidden] { display: none; }

.mobile-menu__link {
  font-size: var(--fs-base);
  font-weight: 500;
  padding: 8px 0;
  color: var(--ink);
}

/* ─── Hero ─── */
.hero {
  padding-top: 80px;
  padding-bottom: 96px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.hero__headline {
  font-size: var(--fs-5xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero__highlight {
  background: var(--accent);
  padding: 0 8px;
  /* Box-decoration-break keeps the highlight tight when it wraps */
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero__sub {
  max-width: 560px;
  font-size: var(--fs-lg);
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 28px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.hero__hint {
  font-size: var(--fs-sm);
  color: var(--muted-2);
}

/* Plan card (hero right column) */
.plan-card {
  position: relative;
  background: var(--ink);
  color: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.plan-card__badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--accent);
  color: var(--ink);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius);
}

.plan-card__label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-3);
  margin-bottom: 4px;
}

.plan-card__title {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: 20px;
}

.plan-card__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border-top: 1px solid var(--ink-2);
  border-bottom: 1px solid var(--ink-2);
  padding: 16px 0;
  margin-bottom: 20px;
}

.plan-card__stats > div > .plan-card__label { margin-bottom: 2px; }

.plan-card__stat {
  font-size: var(--fs-3xl);
  font-weight: 700;
  line-height: 1;
}

.plan-card__stat-unit {
  font-size: var(--fs-base);
  color: var(--muted-3);
  font-weight: 500;
}

.plan-card__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: var(--fs-sm);
}
.plan-card__list li {
  display: flex;
  justify-content: space-between;
}

/* ─── Sections ─── */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.section--muted {
  background: var(--surface-2);
}

.section__head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section__title {
  font-size: var(--fs-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* ─── Features ─── */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.feature__icon {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  margin-bottom: 12px;
}
.feature__icon svg { width: 24px; height: 24px; }

.feature__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: 6px;
}

.feature__body {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.6;
}

/* ─── Steps ─── */
.step-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.step__num {
  font-size: var(--fs-5xl);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.step__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: 6px;
}

.step__body {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.6;
}

/* ─── Final CTA ─── */
.cta {
  background: var(--ink);
  color: var(--surface);
}

.cta__inner {
  padding: 80px 24px;
  text-align: center;
}

.cta__title {
  font-size: var(--fs-4xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta__sub {
  font-size: var(--fs-lg);
  color: var(--muted-3);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.55;
}

.cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

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

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 32px 24px;
}

.footer__copy {
  font-size: var(--fs-sm);
  color: var(--muted-2);
}

.footer__social {
  display: flex;
  gap: 12px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: color 120ms ease, border-color 120ms ease, background-color 120ms ease;
}
.social-icon svg { width: 16px; height: 16px; }
.social-icon:hover {
  color: var(--ink);
  border-color: var(--ink);
  background: #f4f4f5;
}

/* ─── Store-style buttons (App Store / Play Store) ─── */
.btn--store {
  padding: 10px 20px;
  text-align: left;
}
.btn--store .btn__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.btn--store .btn__kicker {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.8;
  line-height: 1.1;
}
.btn--store .btn__brand {
  display: block;
  font-size: var(--fs-base);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* ─── Community strip ─── */
.community {
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  padding: 64px 0;
}

.community__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.community__title {
  font-size: var(--fs-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.community__sub {
  font-size: var(--fs-base);
  color: var(--muted);
  max-width: 420px;
}

.community__links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 120ms ease, transform 120ms ease, background-color 120ms ease;
}
.social-card:hover {
  border-color: var(--ink);
  background: #fff;
  transform: translateY(-1px);
}

.social-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--ink);
  color: var(--surface);
  border-radius: var(--radius);
  flex-shrink: 0;
}
.social-card__icon svg { width: 18px; height: 18px; }

.social-card__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.social-card__label {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink);
}
.social-card__handle {
  font-size: var(--fs-xs);
  color: var(--muted);
}

/* ─── Final CTA — extra touches for brand-name emphasis ─── */
.cta__brand {
  background: var(--accent);
  color: var(--ink);
  padding: 0 10px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.cta__break { display: none; }

/* ─── Reveal-on-scroll ─── */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 400ms ease, transform 400ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect users who prefer no motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .site-header, .btn, .nav-link, .menu-toggle__bar { transition: none; }
}

/* ─── Responsive ─── */
@media (min-width: 768px) {
  .hero { padding-top: 112px; padding-bottom: 128px; }
  .hero__grid {
    grid-template-columns: 3fr 2fr;
    gap: 56px;
  }
  .hero__headline { font-size: var(--fs-6xl); }

  .section { padding: 112px 0; }
  .section__title { font-size: var(--fs-4xl); }

  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .step-grid    { grid-template-columns: repeat(3, 1fr); gap: 48px; }

  .cta__title { font-size: var(--fs-5xl); }
  .cta__break { display: inline; }

  .community__inner {
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
  }
  .community__links { grid-template-columns: repeat(3, 1fr); }

  .footer__inner { flex-direction: row; }
}

/* Mobile nav swap */
@media (max-width: 767px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
}
