@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700&display=swap');

:root {
  --bg: #eaf1ff;
  --bg-2: #f5f8ff;
  --surface: #ffffff;
  --surface-alt: #f3f6ff;
  --text: #0f172a;
  --muted: #475569;
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --accent: #ff7eb6;
  --accent-2: #22c55e;
  --accent-3: #f97316;
  --border: #d9e3f5;
  --shadow: 0 18px 50px rgba(30, 64, 175, 0.15);
  --radius: 18px;
  --max-width: 1180px;
  --brand-gradient: linear-gradient(135deg, #ff5f6d, #ffb347, #ffe066, #69db7c, #4dabf7, #9775fa, #f06595);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  background: radial-gradient(circle at 15% 20%, rgba(255, 126, 182, 0.18), transparent 30%),
    radial-gradient(circle at 85% 10%, rgba(37, 99, 235, 0.18), transparent 30%),
    radial-gradient(circle at 80% 80%, rgba(34, 197, 94, 0.14), transparent 30%),
    var(--bg);
  color: var(--text);
  line-height: 1.7;
  letter-spacing: 0.01em;
  background-attachment: fixed;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
  grid-template-rows: 1fr auto;
}

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

img { max-width: 100%; height: auto; }

.skip-link {
  position: absolute;
  left: -999px;
  top: -999px;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 1000;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

.site-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 18px;
  background: rgba(255, 255, 255, 0.94);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  left: 0;
  height: 100vh;
  width: 280px;
  z-index: 12;
  backdrop-filter: blur(14px);
  box-shadow: 16px 0 34px rgba(15, 23, 42, 0.08);
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.header-actions {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-direction: column;
  width: 100%;
}

.sidebar-toggle {
  font-size: 14px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: var(--text);
}

.sidebar-open {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 15;
  display: none;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, #fff, #eef2ff);
  box-shadow: 0 14px 28px rgba(30, 64, 175, 0.16);
  color: var(--primary-strong);
}

.read-toggle {
  font-size: 14px;
  padding: 10px 14px;
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.2);
  color: var(--primary-strong);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  padding: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.brand:hover .brand-logo {
  transform: translateY(-2px) rotate(-2deg) scale(1.02);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

.brand-name {
  font-weight: 700;
  color: var(--text);
  font-size: 18px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 6px 0;
}

.nav {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(217, 227, 245, 0.8);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 14px 28px rgba(30, 64, 175, 0.08);
  width: 100%;
}

.nav ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  position: relative;
  display: block;
  padding: 12px 12px;
  border-radius: 10px;
  color: var(--text);
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  letter-spacing: 0.01em;
  transition: color 160ms ease;
  word-break: normal;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 3px;
  border-radius: 999px;
  background: var(--brand-gradient);
  opacity: 0;
  transform: translateY(6px) scaleX(0.4);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav a.active,
.nav a:focus,
.nav a:hover {
  color: var(--primary-strong);
}

.nav a.active::after,
.nav a:focus::after,
.nav a:hover::after {
  opacity: 1;
  transform: translateY(0) scaleX(1);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, #fff, #eef2ff);
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 8px 10px;
  box-shadow: var(--shadow);
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: var(--primary-strong);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

body.nav-collapsed {
  grid-template-columns: 0px 1fr;
}

body.nav-collapsed .site-header {
  transform: translateX(-110%);
  box-shadow: none;
}

body.nav-collapsed .sidebar-open {
  display: inline-flex;
}

body.nav-collapsed main,
body.nav-collapsed .site-footer {
  grid-column: 1 / 3;
}

main {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 32px 20px 64px;
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

main p {
  max-width: 72ch;
}

h1, h2, h3 {
  color: var(--text);
  letter-spacing: -0.01em;
}

h2 { margin-top: 0; font-size: clamp(22px, 3vw, 28px); }
h3 { margin-top: 0; font-size: 20px; }

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(243, 246, 255, 0.98));
  border: 1px solid rgba(217, 227, 245, 0.9);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  animation: fadeUp 600ms ease 40ms both;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 10px;
  pointer-events: none;
  background: radial-gradient(circle at 20% 20%, rgba(255, 126, 182, 0.18), transparent 35%),
    radial-gradient(circle at 80% 10%, rgba(37, 99, 235, 0.16), transparent 34%),
    radial-gradient(circle at 70% 80%, rgba(34, 197, 94, 0.16), transparent 30%);
  z-index: 0;
  filter: blur(0px);
}

.hero > * { position: relative; z-index: 1; }

.hero-text h1 {
  margin: 8px 0 12px;
  line-height: 1.2;
  font-size: clamp(28px, 4.2vw, 42px);
}

.lead {
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 14px;
  max-width: 70ch;
}

.hero-card {
  background: var(--surface-alt);
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  animation: float 7s ease-in-out infinite alternate;
}

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

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  color: #fff;
  font-weight: 800;
  border: 1px solid var(--primary);
  box-shadow: var(--shadow);
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.button:hover,
.button:focus {
  background: linear-gradient(135deg, var(--primary-strong), #1e40af);
  border-color: var(--primary-strong);
  transform: translateY(-1px);
  filter: saturate(1.05);
}

.button.ghost {
  background: transparent;
  color: var(--primary-strong);
  border: 1px solid var(--border);
  box-shadow: none;
}

.panel {
  margin-top: 32px;
  padding: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.98));
  border: 1px solid rgba(217, 227, 245, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: fadeUp 620ms ease both;
  position: relative;
}

.panel::before {
  content: '';
  position: absolute;
  inset: 10px auto auto 10px;
  height: 4px;
  width: 120px;
  border-radius: 999px;
  background: var(--brand-gradient);
  opacity: 0.9;
}

.panel.alt { background: linear-gradient(180deg, rgba(243, 246, 255, 0.96), rgba(236, 244, 255, 0.96)); }

.panel-text { max-width: 980px; }

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.card {
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.96));
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  animation: fadeUp 640ms ease both;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.18);
}

.grid.two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.grid.two article {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  animation: fadeUp 680ms ease both;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 10px;
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-gradient);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.pill-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-list li {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 600;
  color: var(--primary-strong);
}

.cta {
  margin-top: 40px;
  padding: 26px;
  border-radius: calc(var(--radius) + 2px);
  background: var(--brand-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 20px 50px rgba(240, 101, 149, 0.28);
  position: relative;
  overflow: hidden;
}

.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.18), transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.16), transparent 32%);
  pointer-events: none;
}

.cta .button { background: #fff; color: var(--primary-strong); border-color: #fff; box-shadow: 0 10px 24px rgba(255, 255, 255, 0.35); }
.cta .button.ghost { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.4); }

.myth-fact {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}

.site-footer {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px 40px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border);
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

.footer-links { display: flex; gap: 12px; align-items: center; }

.contact-form {
  display: grid;
  gap: 10px;
  max-width: 480px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 16px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.form-status { margin: 6px 0 0; color: var(--primary-strong); font-weight: 600; min-height: 18px; }

.guided {
  margin-top: 34px;
}

.guided-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.walkthrough-card h3 { margin-bottom: 8px; }

.walkthrough-card .button { margin-top: 12px; width: fit-content; }

.walkthrough-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 30;
}

.walkthrough-overlay[hidden] { display: none; }

.walkthrough-dialog {
  width: 100%;
  max-width: 620px;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.24);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.walkthrough-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.icon-button {
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 600;
}

.icon-button:hover,
.icon-button:focus { background: #eef2ff; border-color: var(--primary); }

.walkthrough-body { min-height: 120px; }

.walkthrough-step { font-size: 18px; line-height: 1.6; color: var(--text); margin: 0; }

.walkthrough-progress { color: var(--muted); margin: 4px 0 0; }

.walkthrough-actions { display: flex; justify-content: space-between; gap: 10px; }

.walkthrough-actions .button { width: 100%; text-align: center; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  body { display: block; }
  .site-header {
    position: sticky;
    flex-direction: column;
    height: auto;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  }
  main { padding: 24px 16px 48px; margin-left: 0; }
  .header-actions { width: 100%; flex-direction: row; justify-content: flex-end; }
  .nav {
    width: 100%;
    margin-top: 10px;
    border-top: 1px solid var(--border);
    padding-top: 10px;
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul {
    flex-direction: column;
    gap: 6px;
  }
  .menu-toggle { display: inline-flex; }
  .sidebar-toggle { display: none; }
  .sidebar-open { display: none !important; }
  .cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .nav ul { width: 100%; flex-direction: column; gap: 8px; }
  .button { width: fit-content; }
}
