/* ==========================================================================
   Lifted Sites - main stylesheet (dark theme)
   ========================================================================== */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/fonts/plus-jakarta-sans-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --indigo: #6366F1;
  --indigo-hi: #818CF8;
  --teal: #2DD4BF;
  --grad: linear-gradient(135deg, #6366F1 0%, #2DD4BF 100%);

  --ink: #F1F5F9;          /* headings */
  --text: #C2CCDA;         /* body copy */
  --muted: #8B98AD;        /* secondary copy */
  --faint: #5B6B84;
  --line: rgba(148, 163, 184, .14);
  --line-hi: rgba(148, 163, 184, .24);

  --bg: #080C18;
  --bg-alt: #0C1222;
  --surface: #111829;
  --surface-hi: #172036;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, .55);
  --max: 1160px;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; background: var(--bg); }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--indigo-hi); text-decoration: none; }
a:hover { color: #A5B4FC; }
::selection { background: rgba(99, 102, 241, .45); color: #fff; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3, .h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }

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

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }

.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--indigo); color: #fff; box-shadow: 0 0 0 1px rgba(129, 140, 248, .4) inset, 0 8px 30px rgba(99, 102, 241, .35); }
.btn-primary:hover { background: #5458E8; color: #fff; box-shadow: 0 0 0 1px rgba(129, 140, 248, .6) inset, 0 10px 40px rgba(99, 102, 241, .5); }
.btn-ghost { border-color: var(--line-hi); color: var(--ink); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: var(--indigo-hi); color: #fff; }
.btn-light { background: #fff; color: #312E81; }
.btn-light:hover { color: #1E1B4B; }
.btn-sm { padding: .55rem 1.1rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 12, 24, .72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-word { font-size: 1.35rem; letter-spacing: -0.03em; }
.brand-word strong { font-weight: 800; }
.brand-word span { font-weight: 500; color: var(--indigo-hi); }

.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a:not(.btn) { color: var(--text); font-weight: 600; font-size: .95rem; }
.nav-links a:not(.btn):hover { color: #fff; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; padding: 80px 0 56px; overflow: hidden; }
.hero::before {
  /* faint tech grid that fades out towards the edges */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; top: -260px; right: -160px; width: 760px; height: 760px;
  background: radial-gradient(closest-side, rgba(99, 102, 241, .28), rgba(45, 212, 191, .08) 55%, transparent 75%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 2rem; }

.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.trust li { font-size: .9rem; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: .45rem; }
.trust li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: rgba(45, 212, 191, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%232DD4BF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }

/* Hero visual */
.hero-visual { position: relative; padding: 24px 24px 40px; }
.browser {
  background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line-hi);
  overflow: hidden; transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: var(--surface-hi); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.browser-bar i:nth-child(1) { background: #F87171; }
.browser-bar i:nth-child(2) { background: #FBBF24; }
.browser-bar i:nth-child(3) { background: #34D399; }
.browser-bar span { margin-left: 12px; font-family: var(--mono); font-size: .72rem; color: var(--muted); background: var(--bg); padding: 3px 12px; border-radius: 999px; }
.browser-body { padding: 28px; }
.sk { height: 12px; border-radius: 6px; background: rgba(148, 163, 184, .12); margin-bottom: 10px; }
.sk-title { height: 22px; width: 70%; background: var(--grad); margin-bottom: 16px; }
.sk-line { width: 90%; }
.sk-line.short { width: 60%; }
.sk-btn { width: 120px; height: 32px; border-radius: 999px; background: var(--indigo); margin: 18px 0 24px; box-shadow: 0 6px 20px rgba(99, 102, 241, .4); }
.sk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sk-cards div { height: 74px; border-radius: 10px; background: rgba(148, 163, 184, .08); border: 1px solid var(--line); }

.float-card {
  position: absolute; background: rgba(23, 32, 54, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line-hi);
  padding: 12px 16px; display: flex; align-items: center; gap: 10px;
  animation: float 6s ease-in-out infinite;
}
.float-card small { display: block; font-size: .75rem; color: var(--muted); }
.float-card strong { color: var(--ink); font-size: .92rem; }
.fc-lead { left: -8px; bottom: 8px; }
.fc-lead .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px rgba(45, 212, 191, .18), 0 0 14px var(--teal); }
.fc-stat { right: 0; top: 0; flex-direction: column; align-items: flex-start; gap: 0; animation-delay: -3s; }
.fc-stat small { font-family: var(--mono); }
.fc-stat strong { font-size: 1.6rem; font-weight: 800; color: var(--teal); }
.fc-stat strong span { font-size: .85rem; color: var(--muted); font-weight: 600; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Flow strip ------------------------------------------------------------- */
.flow { padding: 8px 0 24px; position: relative; z-index: 1; }
.flow-steps {
  list-style: none; margin: 0; padding: 18px; display: flex; justify-content: space-between; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.flow-steps li { display: flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--ink); font-size: .95rem; position: relative; flex: 1; justify-content: center; }
.flow-steps li + li::before { content: "→"; position: absolute; left: -10px; color: var(--faint); }
.flow-steps span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(99, 102, 241, .16); color: var(--indigo-hi); font-family: var(--mono); font-size: .8rem; font-weight: 700; flex-shrink: 0; }

/* Sections --------------------------------------------------------------- */
.section { padding: 96px 0; position: relative; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head p:last-child { color: var(--muted); font-size: 1.08rem; }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card {
  position: relative; background: linear-gradient(180deg, var(--surface-hi), var(--surface)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(129, 140, 248, .45); box-shadow: var(--shadow-lg), 0 0 40px rgba(99, 102, 241, .12); }
.card p { color: var(--muted); }
.card-num { position: absolute; top: 28px; right: 28px; font-family: var(--mono); font-weight: 600; font-size: .85rem; color: var(--faint); }
.icon { width: 52px; height: 52px; border-radius: 14px; background: var(--grad); display: grid; place-items: center; margin-bottom: 20px; box-shadow: 0 8px 24px rgba(99, 102, 241, .3); }
.icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.ticks { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.ticks li { position: relative; padding-left: 1.7rem; margin-bottom: .55rem; font-size: .95rem; color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(45, 212, 191, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.6L13 6.5' fill='none' stroke='%232DD4BF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.split > div > p { color: var(--muted); font-size: 1.08rem; }

.check-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check-grid li {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px 14px 46px; font-weight: 600; font-size: .95rem; color: var(--ink); position: relative;
}
.check-grid li::before {
  content: ""; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.3l2.7 2.7L14 7.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat, var(--grad);
}

/* Tech / AI strip */
.tech { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.tech div { padding: 20px; border-radius: var(--radius-sm); border: 1px dashed var(--line-hi); }
.tech strong { display: block; color: var(--ink); font-size: .98rem; margin-bottom: .2rem; }
.tech small { color: var(--muted); font-size: .88rem; line-height: 1.5; display: block; }
.tech code { font-family: var(--mono); font-size: .72rem; color: var(--teal); letter-spacing: .06em; text-transform: uppercase; display: block; margin-bottom: .5rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li { position: relative; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 18px;
  background: rgba(99, 102, 241, .14); border: 1px solid rgba(129, 140, 248, .3); color: var(--indigo-hi); font-family: var(--mono); font-weight: 700; font-size: 1.05rem;
}

/* CRM section */
.section.glow { overflow: hidden; }
.section.glow::before {
  content: ""; position: absolute; left: -240px; top: -120px; width: 640px; height: 640px;
  background: radial-gradient(closest-side, rgba(45, 212, 191, .14), transparent 70%);
  pointer-events: none;
}
.section.glow .container { position: relative; }

.pipeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.pipe-col { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px; min-height: 240px; }
.pipe-col h4 { color: var(--muted); font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; display: flex; justify-content: space-between; }
.pipe-card { background: var(--surface-hi); border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 10px; border-left: 3px solid var(--indigo); }
.pipe-card.won { border-left-color: var(--teal); }
.pipe-card strong { display: block; color: var(--ink); font-size: .9rem; }
.pipe-card small { color: var(--muted); font-size: .8rem; }

/* Projects */
.gugo { --accent: #FF5A1F; }
.hugos { --accent: #F59E0B; }
.next { --accent: var(--indigo-hi); }

.project {
  position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center;
  padding: 48px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); overflow: hidden;
}
.project::before {
  content: ""; position: absolute; left: -10%; top: -30%; width: 70%; height: 140%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent 75%);
  pointer-events: none;
}
.project > * { position: relative; }
.project-info p { color: var(--muted); }
.project-info h3 { font-size: 1.5rem; }
.project-logo { height: 40px; width: auto; margin-bottom: 20px; }

/* CSS laptop mockup */
.laptop { display: block; transition: transform .3s ease; }
.laptop:hover { transform: translateY(-4px); }
.laptop-screen {
  background: #05070C; padding: 2.4% 2.4% 0; border-radius: 14px 14px 0 0;
  border: 1px solid var(--line-hi); border-bottom: 0;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 60px color-mix(in srgb, var(--accent, var(--indigo)) 18%, transparent);
}
.laptop-screen img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 4px 4px 0 0; }
.laptop-base {
  position: relative; height: 16px; margin: 0 -7%;
  background: linear-gradient(180deg, #3A4358 0%, #1C2232 60%, #0E121C 100%); border-radius: 2px 2px 14px 14px;
}
.laptop-base::after {
  content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 16%; height: 6px; background: #151A27; border-radius: 0 0 8px 8px;
}

.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.badge {
  display: inline-block; font-family: var(--mono); font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line-hi); padding: 4px 10px; border-radius: 999px;
}
.badge.premium { color: #FCD34D; border-color: rgba(252, 211, 77, .35); background: rgba(252, 211, 77, .08); }
.badge.standard { color: var(--teal); border-color: rgba(45, 212, 191, .35); background: rgba(45, 212, 191, .08); }

.project-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.project-card { display: grid; grid-template-columns: 200px 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.project-card-body { padding: 24px; }
.project-card-body p { color: var(--muted); margin: 0; font-size: .95rem; }
.mini-screen {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; text-align: center; padding: 16px;
  background:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 30%, #080C18), #080C18);
  border-right: 1px solid var(--line);
}
.mini-screen span { color: #fff; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.mini-screen small { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.center { text-align: center; margin-top: 40px; }

/* Projects page */
.project-detail { padding: 56px 0; border-top: 1px solid var(--line); }
.project-detail:first-of-type { border-top: 0; }
.project-detail .project { margin-bottom: 32px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 32px; }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.facts dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; color: var(--ink); font-weight: 700; }
.detail-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; }
.detail-cols p { color: var(--muted); }
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tier { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.tier.premium { border-color: rgba(252, 211, 77, .3); background: linear-gradient(180deg, rgba(252, 211, 77, .05), var(--surface) 40%); }
.tier p { color: var(--muted); }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: var(--line-hi); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 18px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; font-weight: 500; color: var(--teal); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* Contact */
.contact { align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-list li { display: flex; flex-direction: column; margin-bottom: 1rem; color: var(--ink); font-weight: 600; }
.contact-list span { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow-lg); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 16px; }
.form label em { font-style: normal; color: var(--muted); font-weight: 500; }
.form input, .form select, .form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; font-size: .98rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-hi); border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s;
}
.form input::placeholder, .form textarea::placeholder { color: var(--faint); }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--indigo-hi); box-shadow: 0 0 0 4px rgba(99, 102, 241, .2); }
.form .invalid { border-color: #FB7185; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .82rem; color: var(--muted); margin: 14px 0 0; }
.form-status { margin: 10px 0 0; font-weight: 600; font-size: .95rem; min-height: 1.5em; }
.form-status.ok { color: var(--teal); }
.form-status.err { color: #FB7185; }

/* CTA */
.cta { padding: 0 0 96px; }
.cta-inner {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #4338CA 0%, #0F766E 100%); border-radius: 24px; padding: 56px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  border: 1px solid rgba(255, 255, 255, .12);
}
.cta-inner::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 40px 40px; pointer-events: none;
}
.cta-inner > * { position: relative; }
.cta-inner h2 { color: #fff; margin: 0; max-width: 560px; }

/* Footer */
.site-footer { background: #05080F; border-top: 1px solid var(--line); color: var(--muted); padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid p { margin-top: 1rem; max-width: 320px; }
.footer-grid h4 { color: var(--ink); font-family: var(--mono); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.footer-grid a:not(.brand) { display: block; color: var(--muted); margin-bottom: .5rem; }
.footer-grid a:not(.brand):hover { color: #fff; }
.footer-base { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 24px; font-size: .88rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-base p { margin: 0; }

/* Legal / simple pages */
.page-hero { padding: 72px 0 24px; }
.page-hero p { color: var(--muted); }
.prose { padding-bottom: 96px; }
.prose h2 { font-size: 1.4rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.08rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); }
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 96px 0; }
.not-found .code { font-family: var(--mono); font-size: 5rem; font-weight: 700; line-height: 1; margin-bottom: .2em; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 520px; }
  .cards-3, .cards-2 { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .steps, .tech { grid-template-columns: 1fr 1fr; }
  .flow-steps { flex-wrap: wrap; justify-content: flex-start; }
  .flow-steps li { flex: 0 0 auto; justify-content: flex-start; }
  .flow-steps li + li::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .project { grid-template-columns: 1fr; gap: 40px; padding: 32px; }
  .project-row, .detail-cols, .tiers { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 14px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .section { padding: 72px 0; }
  .hero { padding: 48px 0 32px; }
  .browser { transform: none; }
  .steps, .check-grid, .form .row, .tech { grid-template-columns: 1fr; }
  .form .row { gap: 0; }
  .form { padding: 24px; }
  .pipeline { gap: 8px; padding: 10px; }
  .pipe-col { padding: 10px; min-height: 0; }
  .cta-inner { padding: 40px 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .project { padding: 20px; }
  .project-card { grid-template-columns: 1fr; }
  .mini-screen { min-height: 140px; border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
