/* VibeNWise, design system v1 */

:root {
  --bg: #070b14;
  --bg-2: #0b1120;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --ink: #eef2ff;
  --ink-soft: #a8b3cf;
  --ink-dim: #6f7c9b;
  --brand: #4f8cff;
  --brand-2: #22d3ee;
  --brand-3: #a78bfa;
  --ok: #34d399;
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1180px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.75);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(79, 140, 255, 0.20), transparent 60%),
    radial-gradient(760px 480px at 92% 4%, rgba(34, 211, 238, 0.13), transparent 62%),
    radial-gradient(900px 700px at 60% 100%, rgba(167, 139, 250, 0.12), transparent 60%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 20%, transparent 78%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.14;
  letter-spacing: -0.035em;
  font-weight: 650;
}
h1 { font-size: clamp(2.35rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.85rem, 3.7vw, 2.7rem); }
h3 { font-size: 1.16rem; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; color: var(--ink-soft); }

.lead {
  font-size: clamp(1.02rem, 1.7vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 62ch;
}

.grad {
  background: linear-gradient(100deg, #fff 6%, var(--brand-2) 46%, var(--brand-3) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.735rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-2));
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 11, 20, 0.6);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled {
  background: rgba(7, 11, 20, 0.88);
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 680;
  font-size: 1.06rem;
  letter-spacing: -0.03em;
  margin-right: auto;
}
.brand .mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--brand), var(--brand-3));
  box-shadow: 0 6px 18px -6px rgba(79, 140, 255, 0.8);
  flex: none;
}
.brand .mark svg { width: 18px; height: 18px; }
.brand b { font-weight: 680; }
.brand span { color: var(--brand-2); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative;
  padding: 8px 13px;
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 520;
  color: var(--ink-soft);
  transition: color 0.18s ease, background 0.18s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--panel-2); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 11px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.22s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand), #6f6bff 55%, var(--brand-3));
  color: #fff;
  box-shadow: 0 12px 30px -12px rgba(79, 140, 255, 0.95);
}
.btn-primary:hover { box-shadow: 0 18px 40px -12px rgba(79, 140, 255, 1); }

.btn-ghost {
  background: var(--panel);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--panel-2); border-color: rgba(255, 255, 255, 0.28); }

.btn-sm { padding: 9px 16px; font-size: 0.86rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(64px, 9vw, 116px) 0 clamp(56px, 7vw, 92px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 30px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  font-size: 0.79rem;
  font-weight: 550;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2.4s infinite;
  flex: none;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  max-width: 520px;
}
.hero-stats .n {
  font-size: clamp(1.5rem, 3vw, 1.95rem);
  font-weight: 680;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, #fff, var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.hero-stats .l { font-size: 0.775rem; color: var(--ink-dim); letter-spacing: 0.02em; margin-top: 3px; }

/* Terminal card */
.term {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: linear-gradient(170deg, rgba(18, 26, 45, 0.96), rgba(9, 13, 24, 0.96));
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.term::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120, 190, 255, 0.7), transparent);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; display: block; }
.term-bar i:nth-child(2) { background: #febc2e; }
.term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 8px; font-family: var(--mono); font-size: 0.74rem; color: var(--ink-dim); }

.term-body {
  padding: 18px 20px 22px;
  font-family: var(--mono);
  font-size: 0.795rem;
  line-height: 1.85;
  color: #c6d2ec;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 268px;
}
.term-body .c { color: var(--ink-dim); }
.term-body .g { color: var(--ok); }
.term-body .b { color: var(--brand-2); }
.term-body .p { color: var(--brand-3); }
.term-body .y { color: #fbbf24; }

.caret {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--brand-2);
  vertical-align: -2px;
  animation: blink 1.05s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Marquee ---------- */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
  padding: 18px 0;
  overflow: hidden;
  position: relative;
}
.strip::before, .strip::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 110px;
  z-index: 2;
  pointer-events: none;
}
.strip::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.strip::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }

.marquee { display: flex; width: max-content; animation: slide 34s linear infinite; }
.strip:hover .marquee { animation-play-state: paused; }
.marquee ul { display: flex; gap: 44px; list-style: none; margin: 0; padding: 0 22px; }
.marquee li {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { position: relative; }
.sec { padding: clamp(64px, 8vw, 104px) 0; }
.sec-head { max-width: 720px; margin-bottom: 46px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .eyebrow::before { display: none; }
.sec-head p { margin-top: 16px; }
.sec-head.center p { margin-left: auto; margin-right: auto; }

.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;
  padding: 28px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.3, 1), border-color 0.28s ease, background 0.28s ease;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(340px 200px at var(--mx, 50%) var(--my, 0%), rgba(79, 140, 255, 0.15), transparent 70%);
  pointer-events: none;
}
.card:hover { transform: translateY(-5px); border-color: var(--line-strong); background: var(--panel-2); }
.card:hover::after { opacity: 1; }
.card h3 { margin-bottom: 9px; }
.card p { margin: 0; font-size: 0.93rem; }

.ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(150deg, rgba(79, 140, 255, 0.22), rgba(167, 139, 250, 0.14));
  border: 1px solid rgba(120, 160, 255, 0.24);
  color: #b9d0ff;
}
.ico svg { width: 21px; height: 21px; }
.card:nth-child(3n+2) .ico {
  background: linear-gradient(150deg, rgba(34, 211, 238, 0.2), rgba(79, 140, 255, 0.12));
  border-color: rgba(34, 211, 238, 0.26);
  color: #9fe8f6;
}
.card:nth-child(3n+3) .ico {
  background: linear-gradient(150deg, rgba(167, 139, 250, 0.22), rgba(236, 72, 153, 0.12));
  border-color: rgba(167, 139, 250, 0.28);
  color: #d6c6ff;
}

.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-dim);
  letter-spacing: 0.01em;
}

/* ---------- Process ---------- */
.steps {
  counter-reset: s;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.step {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.step:hover { border-color: var(--line-strong); background: var(--panel-2); transform: translateY(-4px); }
.step .num {
  counter-increment: s;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--brand-2);
  letter-spacing: 0.14em;
  display: block;
  margin-bottom: 14px;
}
.step .num::before { content: "0" counter(s); }
.step h3 { font-size: 1.03rem; margin-bottom: 8px; }
.step p { font-size: 0.89rem; margin: 0; }

/* ---------- Split / about ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}
.panel {
  padding: 30px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow);
}

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.94rem; color: var(--ink-soft); }
.checklist svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--brand-2); }
.checklist b { color: var(--ink); font-weight: 600; }

/* Skill bars */
.skills { display: grid; gap: 18px; }
.skill .top { display: flex; justify-content: space-between; font-size: 0.87rem; margin-bottom: 8px; }
.skill .top span:last-child { color: var(--ink-dim); font-family: var(--mono); font-size: 0.78rem; }
.bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Timeline */
.timeline { position: relative; padding-left: 30px; display: grid; gap: 28px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--brand), var(--brand-3), transparent);
}
.tl-item { position: relative; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 7px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 2px solid var(--brand);
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.12);
}
.tl-item .when { font-family: var(--mono); font-size: 0.74rem; color: var(--brand-2); letter-spacing: 0.06em; }
.tl-item h3 { margin: 5px 0 7px; font-size: 1.05rem; }
.tl-item p { font-size: 0.92rem; margin: 0; }

/* ---------- CTA ---------- */
.cta-box {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  padding: clamp(38px, 6vw, 66px) clamp(26px, 5vw, 56px);
  text-align: center;
  overflow: hidden;
  background: linear-gradient(150deg, rgba(79, 140, 255, 0.16), rgba(167, 139, 250, 0.1) 50%, rgba(34, 211, 238, 0.09));
  box-shadow: var(--shadow);
}
.cta-box::before {
  content: "";
  position: absolute;
  inset: -50% -10%;
  background: conic-gradient(from 0deg, transparent 0 60%, rgba(120, 190, 255, 0.14) 75%, transparent 88%);
  animation: spin 16s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cta-box > * { position: relative; }
.cta-box h2 { margin-bottom: 14px; }
.cta-box p { margin: 0 auto 28px; max-width: 56ch; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(26px, 4vw, 48px);
  align-items: start;
}
.contact-card {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}
.contact-card:hover { border-color: var(--line-strong); background: var(--panel-2); transform: translateX(3px); }
.contact-card .ico { margin: 0; width: 40px; height: 40px; border-radius: 11px; }
.contact-card .t { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.11em; color: var(--ink-dim); }
.contact-card .v { font-weight: 570; font-size: 0.95rem; word-break: break-word; margin-top: 2px; }

form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-size: 0.82rem; font-weight: 560; color: var(--ink-soft); letter-spacing: 0.01em; }

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: rgba(6, 10, 20, 0.6);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.93rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f7c9b' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 17px;
  padding-right: 40px;
}
select option { background: #0b1120; color: var(--ink); }
textarea { resize: vertical; min-height: 132px; line-height: 1.6; }
input::placeholder, textarea::placeholder { color: #55617e; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(79, 140, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.16);
  background: rgba(6, 10, 20, 0.85);
}
.form-note { font-size: 0.8rem; color: var(--ink-dim); margin: 0; }

.faq details {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
  padding: 0 20px;
  margin-bottom: 11px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.faq details[open] { border-color: var(--line-strong); background: var(--panel-2); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 17px 0;
  font-weight: 570;
  font-size: 0.97rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--brand-2);
  line-height: 1;
  transition: transform 0.22s ease;
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 17px; font-size: 0.93rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 52px 0 28px;
  background: rgba(255, 255, 255, 0.015);
}
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 34px; margin-bottom: 38px; }
.foot-grid p { font-size: 0.9rem; max-width: 40ch; margin: 16px 0 0; }
.foot-col h4 {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  margin-bottom: 14px;
  font-weight: 600;
}
.foot-col a { display: block; font-size: 0.91rem; color: var(--ink-soft); padding: 5px 0; transition: color 0.16s ease; }
.foot-col a:hover { color: var(--brand-2); }

.foot-bot {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.83rem;
  color: var(--ink-dim);
}
.socials { display: flex; gap: 9px; }
.socials a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  background: var(--panel);
  transition: all 0.2s ease;
}
.socials a:hover {
  color: #fff;
  border-color: rgba(79, 140, 255, 0.6);
  background: rgba(79, 140, 255, 0.16);
  transform: translateY(-2px);
}
.socials svg { width: 17px; height: 17px; }

/* ---------- Page header ---------- */
.page-head { padding: clamp(50px, 7vw, 84px) 0 clamp(30px, 4vw, 44px); }
.page-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); margin-bottom: 18px; }

/* ---------- Reveal ---------- */
.rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.rv.in { opacity: 1; transform: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 130%);
  z-index: 200;
  padding: 13px 20px;
  border-radius: 12px;
  border: 1px solid rgba(52, 211, 153, 0.4);
  background: rgba(10, 30, 26, 0.95);
  backdrop-filter: blur(10px);
  color: #d3fff0;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .g3, .g4, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { max-width: none; }
}

@media (max-width: 760px) {
  .nav-toggle { display: grid; }
  .nav-links {
    position: absolute;
    top: 72px;
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid var(--line-strong);
    background: rgba(10, 15, 27, 0.97);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 14px; font-size: 0.95rem; }
  .nav-links a.active::after { display: none; }
  .nav-links .btn { margin-top: 6px; }
  .nav-links .btn-header { width: 100%; }
}

@media (max-width: 620px) {
  .g3, .g4, .steps, .g2, .row2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-stats { grid-template-columns: 1fr; gap: 16px; text-align: left; }
  .wrap { padding: 0 18px; }
  .btn { width: 100%; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .nav-links .btn { width: 100%; }
}

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

/* ============================================================
   v3 additions: accessibility, scroll affordances, polish
   ============================================================ */

/* Text selection */
::selection { background: rgba(79, 140, 255, 0.35); color: #fff; }

/* Scrollbar */
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.16) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 99px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.26); }

/* Keyboard focus, visible for keyboard users only */
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }

/* Skip link */
.skip {
  position: absolute;
  left: 16px;
  top: -70px;
  z-index: 200;
  padding: 11px 18px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  transition: top 0.22s ease;
}
.skip:focus { top: 14px; }

/* Scroll progress */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 90;
  background: linear-gradient(90deg, var(--brand), var(--brand-2) 55%, var(--brand-3));
  pointer-events: none;
}

/* Back to top */
.totop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: rgba(13, 19, 33, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink-soft);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s, color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  padding: 0;
}
.totop.show { opacity: 1; visibility: visible; transform: none; }
.totop:hover { color: #fff; border-color: rgba(79, 140, 255, 0.6); background: rgba(79, 140, 255, 0.2); }
.totop svg { width: 19px; height: 19px; }

/* Headline underline accent on hover for footer + nav brand */
.brand:hover .mark { transform: rotate(-6deg) scale(1.05); }
.brand .mark { transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1); }

/* Link affordance inside prose */
.prose-link {
  color: var(--brand-2);
  border-bottom: 1px solid rgba(34, 211, 238, 0.35);
  transition: border-color 0.18s ease;
}
.prose-link:hover { border-bottom-color: var(--brand-2); }

/* Slightly richer card lift on pointer devices only */
@media (hover: none) {
  .card:hover, .step:hover, .contact-card:hover { transform: none; }
}

/* No JavaScript: never hide content behind a reveal that will not fire */
.no-js .rv { opacity: 1; transform: none; }
.no-js .bar i { width: 100% !important; }
.no-js .progress, .no-js .totop { display: none; }

@media (max-width: 620px) {
  .totop { right: 14px; bottom: 14px; width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .totop, .progress { transition: opacity 0.01ms; }
}
