:root {
  --bg: #f8f9fc;
  --surface: #ffffff;
  --text: #0f1f3d;
  --muted: #475569;
  --accent: #6d28d9;
  --accent-dark: #5b21b6;
  --accent-soft: #ede9fe;
  --border: #e2e8f0;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 31, 61, .05), 0 8px 24px rgba(15, 31, 61, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

[hidden] { display: none !important; }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--text);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }

.logo {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: .12em;
  color: var(--text);
  text-decoration: none;
}
.logo span { color: var(--accent); }
.logo:hover { color: var(--text); }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.nav a {
  display: block;
  padding: .55rem .9rem;
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.nav a:hover { background: var(--accent-soft); color: var(--accent-dark); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  padding: .55rem .8rem;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* Mobile nav only collapses when JS is available */
@media (max-width: 760px) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }
  .js .nav.is-open { display: block; }
  .js .nav ul { flex-direction: column; padding: .75rem 1.25rem 1rem; }
  .js .nav a { padding: .8rem 1rem; }
  .header-inner { position: relative; flex-wrap: wrap; }
  html:not(.js) .nav ul { flex-wrap: wrap; padding-bottom: .5rem; }
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .75rem 1.4rem;
  font: inherit;
  font-weight: 700;
  border-radius: 10px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn-on-dark { background: #fff; color: var(--accent-dark); }
.btn-on-dark:hover { background: var(--accent-soft); color: var(--accent-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

/* Hero */
.hero { padding: clamp(3rem, 8vw, 6rem) 0; }
.hero-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 38em; margin-bottom: 2rem; }

.hero-art { position: relative; min-height: 320px; }
.art-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.art-chart {
  inset: 0 18% 22% 0;
  display: flex;
  align-items: flex-end;
  gap: 10%;
  padding: 2rem 2rem 1.5rem;
}
.art-chart span { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--accent-soft); }
.art-chart span:last-child, .art-chart span:nth-child(4) { background: var(--accent); }
.art-lines {
  right: 0;
  bottom: 0;
  width: 55%;
  padding: 1.25rem;
  display: grid;
  gap: .6rem;
}
.art-lines i { display: block; height: 10px; border-radius: 5px; background: var(--border); }
.art-lines i:first-child { width: 60%; background: var(--text); opacity: .85; }
.art-lines i:last-child { width: 75%; }
.art-dot {
  position: absolute;
  top: -14px;
  right: 10%;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #a78bfa, var(--accent));
  box-shadow: var(--shadow);
}

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }

.cards {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.card p { color: var(--muted); margin: 0; }

.icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--accent-soft);
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-sm { width: 36px; height: 36px; padding: 8px; margin: 0; }

.about { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; align-items: start; }
.about-text { font-size: 1.15rem; color: var(--muted); margin: 0; }

.steps {
  list-style: none;
  margin: 2rem 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.step h3 { margin: 0; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}
.note {
  padding: 1.1rem 1.4rem;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 10px 10px 0;
  margin: 0;
}

/* Contact */
.contact {
  background: linear-gradient(135deg, #1e1b4b, var(--accent-dark));
  color: #fff;
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(2rem, 6vw, 4rem);
  box-shadow: var(--shadow);
}
.contact .eyebrow { color: #ddd6fe; }
.contact p { color: #ede9fe; max-width: 40em; }
.contact-email { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; font-size: 1.25rem; margin: 1.5rem 0; }
.contact-email a { color: #fff; font-weight: 700; word-break: break-all; }
.contact-email a:hover { color: #ddd6fe; }
.contact-email .icon { background: rgba(255, 255, 255, .15); stroke: #fff; }
.contact :focus-visible { outline-color: #fff; }
.copy-status { min-height: 1.6em; margin: 1rem 0 0; font-weight: 600; }

/* Footer */
.site-footer { background: var(--text); color: #cbd5e1; padding: 3rem 0 1.5rem; font-size: .95rem; }
.site-footer p { margin: 0 0 .4rem; }
.site-footer strong { color: #fff; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #ddd6fe; }
.site-footer :focus-visible { outline-color: #fff; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.logo-footer { color: #fff; margin-bottom: .9rem !important; }
.logo-footer span { color: #c4b5fd; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2rem; padding-top: 1.25rem; font-size: .875rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { min-height: 240px; max-width: 460px; }
  .steps { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; gap: 1rem; }
  .actions .btn { width: 100%; }
  .hero-art { display: none; }
}
