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

:root {
  --bg:       #f2f4fb;
  --bg2:      #ffffff;
  --surface:  #ffffff;
  --border:   #dde1f5;
  --text:     #1a1c2e;
  --muted:    #52607a;
  --dim:      #98a2bc;
  --accent:   #6c5ce7;
  --accent2:  #5a4dd6;
  --accent-light: #f0eeff;
  --accent-glow: rgba(108,92,231,0.13);
  --shadow:    0 2px 16px rgba(26,28,60,0.09);
  --shadow-lg: 0 10px 40px rgba(26,28,60,0.12);
  --radius:    12px; --radius-sm: 8px; --radius-lg: 20px;
}

[data-theme="dark"] {
  --bg:       #11121b;
  --bg2:      #181a28;
  --surface:  #181a28;
  --border:   #2b2e47;
  --text:     #ecedf8;
  --muted:    #a7adc9;
  --dim:      #6b7095;
  --accent:   #8c7df3;
  --accent2:  #7a6bf0;
  --accent-light: rgba(140,125,243,0.16);
  --accent-glow: rgba(140,125,243,0.28);
  --shadow:    0 2px 16px rgba(0,0,0,0.28);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(108,92,231,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,92,231,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}
.bg-grid::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(108,92,231,0.10) 0%, transparent 70%);
}

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1140px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand-icon { font-size: 21px; }
.brand-name { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; color: var(--muted); letter-spacing: -0.02em; }
.brand-name strong { color: var(--text); font-weight: 700; }

.nav-links { display: flex; gap: 28px; margin-left: 8px; }
.nav-links a { font-size: 0.87rem; font-weight: 500; color: var(--muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: transparent; border: 1px solid var(--border); color: var(--muted);
  cursor: pointer; transition: all 0.15s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-icon-moon { display: none; }
[data-theme="dark"] .theme-icon-sun { display: none; }
[data-theme="dark"] .theme-icon-moon { display: block; }

/* ===== BUTTONS ===== */
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: inherit; font-weight: 600; font-size: 0.86rem;
  padding: 9px 16px; border-radius: 10px; cursor: pointer;
  transition: all 0.18s; border: none;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 2px 14px var(--accent-glow); }
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); box-shadow: 0 4px 20px var(--accent-glow); }
.btn-secondary { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 13px 24px; font-size: 0.95rem; border-radius: 12px; }

/* ===== HERO ===== */
.hero {
  max-width: 1140px; margin: 0 auto; padding: 72px 24px 40px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-block; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent); background: var(--accent-light);
  padding: 5px 12px; border-radius: 20px; margin-bottom: 18px;
}
.hero h1 {
  font-family: 'Space Grotesk', sans-serif; font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; margin-bottom: 18px;
}
.hero-sub { font-size: 1rem; color: var(--muted); max-width: 480px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.hero-note {
  display: flex; align-items: center; gap: 7px; font-size: 0.8rem; color: var(--dim);
}
.hero-note svg { flex-shrink: 0; }

/* ===== HERO VISUAL (mock calendar card) ===== */
.hero-visual { display: flex; justify-content: center; }
.mock-card {
  width: 100%; max-width: 360px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-lg);
}
.mock-card-header { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; }
.mock-dot { width: 9px; height: 9px; border-radius: 50%; }
.mock-title { margin-left: auto; font-size: 0.72rem; color: var(--dim); font-weight: 600; }
.mock-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.mock-chip {
  flex-shrink: 0; width: 84px; font-size: 0.68rem; font-weight: 700; text-align: center;
  padding: 4px 0; border-radius: 20px; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent);
}
.mock-bar { flex: 1; height: 8px; border-radius: 6px; background: var(--bg); position: relative; overflow: hidden; }
.mock-bar::after {
  content: ''; position: absolute; inset: 0; width: 100%; border-radius: 6px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0.85;
}
.mock-platforms { display: flex; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.mock-p { width: 22px; height: 22px; border-radius: 7px; }

/* ===== LOGOS ===== */
.logos { max-width: 1140px; margin: 0 auto; padding: 24px 24px 64px; text-align: center; }
.logos-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--dim); margin-bottom: 24px; }
.logos-row { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; }
.logo-svg { width: 24px; height: 24px; fill: var(--dim); transition: fill 0.15s, transform 0.15s; }
.logo-svg:hover { fill: var(--accent); transform: translateY(-2px); }

/* ===== SECTIONS ===== */
.section-head { max-width: 560px; margin: 0 auto 44px; text-align: center; }
.section-head h2 {
  font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px;
}
.section-head p { color: var(--muted); font-size: 0.95rem; }

/* ===== FEATURES ===== */
.features { max-width: 1140px; margin: 0 auto; padding: 40px 24px 80px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.feature-icon {
  width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); margin-bottom: 16px;
}
.feature-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.02rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature-card p { font-size: 0.86rem; color: var(--muted); line-height: 1.55; }

/* ===== HOW IT WORKS ===== */
.how { max-width: 1140px; margin: 0 auto; padding: 20px 24px 84px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { position: relative; padding-left: 4px; }
.step-num {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; margin-bottom: 16px;
  background: var(--accent); color: #fff; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.95rem;
  box-shadow: 0 2px 14px var(--accent-glow);
}
.step h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 0.86rem; color: var(--muted); line-height: 1.55; }

/* ===== PRICING ===== */
.pricing { max-width: 1140px; margin: 0 auto; padding: 20px 24px 84px; }
.pricing-card {
  max-width: 420px; margin: 0 auto; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 40px 36px; box-shadow: var(--shadow-lg);
}
.pricing-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-light); padding: 5px 12px; border-radius: 20px; margin-bottom: 18px;
}
.pricing-amount {
  font-family: 'Space Grotesk', sans-serif; font-size: 2.6rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--text); margin-bottom: 24px;
}
.pricing-amount span { font-size: 0.85rem; font-weight: 500; color: var(--dim); display: block; margin-top: 4px; }
.pricing-features { list-style: none; text-align: left; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.pricing-features li { font-size: 0.88rem; color: var(--muted); padding-left: 24px; position: relative; }
.pricing-features li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.pricing-cta { width: 100%; }
.pricing-note { font-size: 0.76rem; color: var(--dim); margin-top: 16px; line-height: 1.5; }

/* ===== CTA ===== */
.cta {
  max-width: 720px; margin: 0 auto 90px; padding: 56px 40px; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.cta h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.cta p { color: var(--muted); margin-bottom: 24px; }

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border); padding: 32px 24px 40px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.site-footer p { font-size: 0.8rem; color: var(--dim); }

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-text { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-note { justify-content: center; }
  .hero-visual { order: -1; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .nav-links { display: none; }
}

@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .logos-row { gap: 26px; }
  .cta { padding: 40px 24px; }
}
