/* =================================================
   Evolve 40x — Stylesheet
   Slate + Lavender + Peach palette
   Light & Dark mode support
================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,500;1,400;1,500;1,600&family=JetBrains+Mono:wght@400;500&display=swap');

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

/* ============ THEME VARIABLES ============ */
:root {
  --slate-50: #F8F9FB;
  --slate-100: #EFF1F5;
  --slate-200: #DEE2EA;
  --slate-300: #C5CCD9;
  --slate-400: #94A0B4;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;
  --lavender: #B4A7E5;
  --lavender-deep: #8B7DD8;
  --lavender-soft: rgba(180, 167, 229, 0.12);
  --peach: #FCB89C;
  --peach-deep: #F58E68;
  --peach-soft: rgba(252, 184, 156, 0.15);

  /* Semantic theme tokens */
  --bg: #FFFFFF;
  --bg-soft: var(--slate-50);
  --bg-card: #FFFFFF;
  --ink: var(--slate-900);
  --ink-soft: var(--slate-600);
  --ink-muted: var(--slate-500);
  --line: var(--slate-200);
  --line-soft: rgba(15, 23, 42, 0.06);
  --header-bg: rgba(255, 255, 255, 0.85);
  --shadow-md: 0 16px 40px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
}

[data-theme="dark"] {
  --bg: #0A0E1A;
  --bg-soft: #11162A;
  --bg-card: #161B2E;
  --ink: #F1F5FB;
  --ink-soft: #B4BCC9;
  --ink-muted: #7A8499;
  --line: rgba(241, 245, 251, 0.08);
  --line-soft: rgba(241, 245, 251, 0.05);
  --header-bg: rgba(10, 14, 26, 0.85);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-soft);
  padding: 16px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s;
}
.logo-link:hover { opacity: 0.85; }
.logo-img {
  height: 36px;
  width: auto;
}
.logo-img.dark-only { display: none; }
[data-theme="dark"] .logo-img.light-only { display: none; }
[data-theme="dark"] .logo-img.dark-only { display: inline-block; }

.nav-right {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--ink);
  color: var(--bg) !important;
  padding: 10px 20px;
  border-radius: 100px;
  font-weight: 600 !important;
  font-size: 13px !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  text-decoration: none;
}
.nav-cta:hover {
  background: var(--peach-deep);
  color: var(--slate-900) !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(245, 142, 104, 0.3);
}

/* THEME TOGGLE */
.theme-toggle {
  width: 56px;
  height: 28px;
  border-radius: 100px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  position: relative;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}
.theme-toggle:hover { border-color: var(--peach-deep); }
.toggle-knob {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lavender-deep), var(--peach-deep));
  position: absolute;
  left: 2px;
  top: 2px;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 2px 8px rgba(139, 125, 216, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 11px;
}
[data-theme="dark"] .toggle-knob { transform: translateX(28px); }
.toggle-icon-sun, .toggle-icon-moon { position: absolute; transition: opacity 0.3s ease; line-height: 1; }
.toggle-icon-moon { opacity: 0; }
[data-theme="dark"] .toggle-icon-sun { opacity: 0; }
[data-theme="dark"] .toggle-icon-moon { opacity: 1; }

/* ============ SHARED SECTION STYLES ============ */
.tiny-label {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--peach-deep);
  margin-bottom: 20px;
  font-weight: 700;
}
.section-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  transition: color 0.4s ease;
}
.section-title em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--lavender-deep), var(--peach-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-sub {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto 64px;
  line-height: 1.5;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  text-decoration: none;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover {
  background: var(--peach-deep);
  color: var(--slate-900);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(245, 142, 104, 0.4);
}
.btn-ghost {
  background: var(--bg-card);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.btn-peach {
  background: var(--peach-deep);
  color: var(--slate-900);
  padding: 16px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}
.btn-peach:hover {
  background: white;
  color: var(--slate-900);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(252, 184, 156, 0.4);
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--slate-900);
  color: var(--slate-400);
  padding: 60px 56px 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.site-footer a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}
.footer-brand {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

/* ============ FORM STYLES ============ */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--ink);
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--peach-deep);
  box-shadow: 0 0 0 4px var(--peach-soft);
}
.form-group textarea {
  min-height: 140px;
  resize: vertical;
}
.form-status {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
}
.form-status.success {
  background: rgba(132, 225, 188, 0.15);
  color: #1FA078;
  border: 1px solid rgba(132, 225, 188, 0.4);
}
.form-status.error {
  background: rgba(252, 184, 156, 0.15);
  color: var(--peach-deep);
  border: 1px solid rgba(252, 184, 156, 0.4);
}

/* ============ MOBILE ============ */
@media (max-width: 900px) {
  .site-header { padding: 12px 24px; }
  .nav-links { display: none; }
  .section-title { font-size: clamp(40px, 9vw, 64px); }
  .site-footer {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    padding: 40px 24px 32px;
  }
}
