/* =========================================================
   nflo Marketing — styles.css
   Matches the app's glass morphism design system exactly
   ========================================================= */

/* ----- Reset & base ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Exact colours from app globals.css dark mode */
  --bg:             oklch(0.12 0.015 200);
  --bg-card:        rgba(0, 0, 0, 0.65);
  --bg-surface:     rgba(0, 0, 0, 0.40);
  --bg-item:        rgba(255, 255, 255, 0.05);
  --bg-item-hover:  rgba(255, 255, 255, 0.08);

  --border:         rgba(255, 255, 255, 0.12);
  --border-subtle:  rgba(255, 255, 255, 0.05);
  --border-hover:   rgba(255, 255, 255, 0.20);

  --text:           oklch(1 0 0);
  --text-muted:     oklch(0.70 0 0);
  --text-faint:     oklch(0.45 0 0);

  /* Accent colours matching app widget icons */
  --violet:         oklch(0.70 0.18 280);    /* violet-400 — primary accent */
  --violet-dim:     oklch(0.70 0.18 280 / 60%);
  --violet-glow:    oklch(0.70 0.18 280 / 20%);
  --orange:         oklch(0.75 0.18 50);     /* orange-400 — streak */
  --emerald:        oklch(0.74 0.18 150);    /* emerald-500 — success */
  --red:            oklch(0.65 0.20 27);     /* red-400 — urgent */
  --yellow:         oklch(0.85 0.18 90);     /* yellow-400 — medium */

  /* Glass card — exact match to .glass-card utility in app */
  --glass-bg:       rgba(0, 0, 0, 0.65);
  --glass-blur:     blur(20px);
  --glass-border:   1px solid rgba(255, 255, 255, 0.15);
  --glass-shadow:   0 4px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.07);

  --radius:         10px;   /* matches app --radius: 0.625rem */
  --radius-sm:      6px;
  --radius-lg:      18px;
  --radius-xl:      22px;

  --font-heading:   'Montserrat', system-ui, sans-serif;
  --font-body:      'Open Sans', system-ui, sans-serif;
  --font-mono:      ui-monospace, 'Geist Mono', monospace;

  --max-w:          1100px;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  /* 3-layer radial gradient — exact match to app body */
  background-image:
    radial-gradient(ellipse at 15% 60%, oklch(0.28 0.06 195 / 35%) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 15%, oklch(0.22 0.04 220 / 25%) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, oklch(0.18 0.03 180 / 20%) 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ----- Layout ----- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- Glass card mixin — use on any card/widget ----- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 0 24px var(--violet-glow);
}
.btn--primary:hover {
  box-shadow: 0 0 40px var(--violet-glow);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
  border-color: var(--border-hover);
}

.btn--sm  { padding: 6px 14px; font-size: 13px; }
.btn--lg  { padding: 13px 30px; font-size: 16px; }

/* ----- Badge ----- */
.badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ----- Nav ----- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  /* matches app sidebar: bg-black/40 backdrop-blur-xl border-white/8 */
  background: rgba(0, 0, 0, 0.50);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  transition: color 0.15s;
}
.nav__logo:hover { color: var(--violet); }
.nav__logo-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: block;
  flex-shrink: 0;
}

/* ----- Hero ----- */
.hero {
  position: relative;
  padding: 148px 0 96px;
  overflow: hidden;
  text-align: center;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.hero__headline {
  font-size: clamp(36px, 6vw, 62px);
  font-weight: 700;
  line-height: 1.08;
  max-width: 820px;
}
.hero__sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.65;
}
.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.hero__note {
  font-size: 13px;
  color: var(--text-faint);
}
/* Violet glow bloom at top — matches app's gradient */
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at 50% 20%, oklch(0.70 0.18 280 / 12%) 0%, transparent 65%);
  pointer-events: none;
}

/* ----- Product preview ----- */
.preview {
  padding: 0 0 96px;
}
.preview__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.preview__frame {
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: var(--glass-border);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.preview__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.70);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.preview__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.preview__url {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}
.preview__img {
  width: 100%;
  height: auto;
  display: block;
}
.preview__widgets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
}
.preview__widget-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  display: block;
}

/* ----- Section chrome ----- */
.section-title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
}
.section-sub {
  color: var(--text-muted);
  font-size: 16px;
  text-align: center;
  max-width: 580px;
  margin: 0 auto 52px;
  line-height: 1.65;
}

/* ----- Features ----- */
.features {
  padding: 96px 0;
  border-top: 1px solid var(--border-subtle);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Each card uses the exact glass-card pattern from the app */
.feature-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}
.feature-card__icon {
  width: 36px;
  height: 36px;
  color: var(--violet);
  margin-bottom: 14px;
  opacity: 0.85;
}
.feature-card__icon svg { width: 100%; height: 100%; }
.feature-card__title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}
.feature-card__body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ----- Section divider line ----- */
.section-divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 0;
}

/* ----- For whom ----- */
.forwhom {
  padding: 96px 0;
  border-top: 1px solid var(--border-subtle);
}
.forwhom__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.forwhom__text h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 18px;
}
.forwhom__text p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 14px;
}
.forwhom__list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.forwhom__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--bg-item);
  border: 1px solid var(--border-subtle);
  transition: background 0.15s, border-color 0.15s;
}
.forwhom__list li:hover {
  background: var(--bg-item-hover);
  border-color: var(--border);
}
.forwhom__list li::before {
  content: '';
  display: block;
  flex-shrink: 0;
  margin-top: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--violet);
  opacity: 0.8;
}

/* ----- For whom screenshots ----- */
.forwhom__visual {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.forwhom__screenshot {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  display: block;
}

/* ----- CTA ----- */
.cta {
  position: relative;
  padding: 96px 0;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  overflow: hidden;
}
.cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.cta__title {
  font-size: clamp(28px, 5vw, 50px);
  font-weight: 700;
}
.cta__sub {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 500px;
  line-height: 1.65;
}
.cta__fine {
  font-size: 12px;
  color: var(--text-faint);
}
/* Subtle violet bloom at bottom */
.cta::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse at 50% 100%, oklch(0.70 0.18 280 / 10%) 0%, transparent 70%);
  pointer-events: none;
}

/* ----- Footer ----- */
.footer__links {
  display: flex;
  gap: 20px;
}
.footer__links a {
  font-size: 13px;
  color: var(--text-faint);
  transition: color 0.15s;
}
.footer__links a:hover {
  color: var(--text-muted);
}

.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 24px 0;
  background: rgba(0, 0, 0, 0.30);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__logo {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-faint);
}
.footer__copy {
  font-size: 12px;
  color: var(--text-faint);
}
.footer__copy a {
  color: var(--text-faint);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}
.footer__copy a:hover {
  color: var(--text-muted);
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .feature-grid         { grid-template-columns: repeat(2, 1fr); }
  .forwhom__inner       { grid-template-columns: 1fr; gap: 40px; }
  .forwhom__visual      { order: -1; }
}

@media (max-width: 600px) {
  .feature-grid         { grid-template-columns: 1fr; }
  .hero                 { padding: 120px 0 72px; }
  .features,
  .forwhom,
  .cta                  { padding: 72px 0; }
  .preview              { padding: 0 0 72px; }
  .preview__widgets     { grid-template-columns: 1fr; }
  .footer__inner        { flex-direction: column; text-align: center; }
}
