/* Marin Operations – landing page */

:root {
  --blue: #354ced;
  --blue-600: #2a3fd6;
  --blue-300: #8b9bff;
  --navy: #08376b;
  --ink: #0a1226;
  --ink-2: #111b36;
  --ink-3: #1a2547;
  --text: #1e2539;
  --muted: #5b6480;
  --line: #e4e8f2;
  --soft: #f5f7fc;
  --white: #fff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(10, 18, 38, .18);
  --shadow-lg: 0 30px 60px -20px rgba(10, 18, 38, .45);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Sora", "Inter", system-ui, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-600); }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--white); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue-300); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 .95rem/1 var(--font);
  padding: .8em 1.25em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { font-size: 1rem; padding: 1em 1.6em; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 8px 20px -8px rgba(53, 76, 237, .7); }
.btn-primary:hover { background: var(--blue-600); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .3); }
.btn-outline-light:hover { border-color: var(--white); color: var(--white); background: rgba(255, 255, 255, .06); }
.btn-ghost { background: transparent; color: rgba(255, 255, 255, .85); }
.btn-ghost:hover { color: var(--white); background: rgba(255, 255, 255, .08); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
.site-header.scrolled {
  background: rgba(10, 18, 38, .94);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a { color: rgba(255, 255, 255, .78); font-weight: 500; font-size: .95rem; padding: .5em .8em; border-radius: 8px; }
.nav > a:hover, .nav > a.active { color: var(--white); }
.nav-actions { display: flex; gap: 8px; margin-left: 12px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--white); font-size: 1.9rem; cursor: pointer; padding: 4px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink);
  color: rgba(255, 255, 255, .78);
  padding: calc(var(--header-h) + 64px) 0 40px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .82rem; font-weight: 500; color: #c7cfff;
  padding: .45em .9em; border-radius: 999px;
  background: rgba(53, 76, 237, .16); border: 1px solid rgba(139, 155, 255, .3);
  margin-bottom: 22px;
}
.hero h1 { color: var(--white); font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 700; letter-spacing: -.035em; margin-bottom: 20px; }
.gradient-text {
  background: linear-gradient(100deg, #8b9bff 0%, #354ced 25%, #5ad1ff 50%, #354ced 75%, #8b9bff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: -200% center; } }
.hero .lead { font-size: 1.15rem; max-width: 560px; color: rgba(255, 255, 255, .72); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 28px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .9rem; }
.hero-points i { color: var(--blue-300); margin-right: 4px; }

.hero-visual { position: relative; }
.flow-card {
  background: linear-gradient(180deg, rgba(26, 37, 71, .92), rgba(17, 27, 54, .92));
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 20px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .06);
  padding: 18px;
}
.flow-head { display: flex; align-items: center; gap: 12px; font: 500 .78rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: rgba(255, 255, 255, .45); padding: 4px 4px 16px; }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .15); }
.dots i:first-child { background: #ff5f57; } .dots i:nth-child(2) { background: #febc2e; } .dots i:nth-child(3) { background: #28c840; }
.flow { display: grid; gap: 10px; position: relative; }
.flow-step {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 14px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 12px; padding: 12px 14px;
  opacity: 0; transform: translateY(10px);
  animation: step-in .6s ease forwards; animation-delay: calc(.35s + var(--d) * .45s);
}
.flow-step strong { display: block; color: var(--white); font-weight: 600; font-size: .92rem; }
.flow-step small { display: block; color: rgba(255, 255, 255, .5); font-size: .8rem; line-height: 1.4; }
.flow-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #c7cfff; font-size: 1.1rem; }
.flow-icon.ai { background: linear-gradient(135deg, #354ced, #5ad1ff); color: var(--white); box-shadow: 0 0 24px rgba(53, 76, 237, .6); }
.flow-icon.done { background: rgba(40, 200, 64, .15); color: #5ee27a; }
.flow-tag { font: 600 .72rem/1 ui-monospace, monospace; color: rgba(255, 255, 255, .5); padding: .45em .6em; border-radius: 6px; background: rgba(255, 255, 255, .06); }
.flow-tag.ok { color: #c7cfff; background: rgba(53, 76, 237, .25); }
@keyframes step-in { to { opacity: 1; transform: none; } }

.float-badge {
  position: absolute; left: -32px; bottom: -64px;
  display: flex; align-items: center; gap: 12px;
  background: var(--white); color: var(--text);
  border-radius: 14px; padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  animation: floaty 5s ease-in-out infinite;
}
.float-badge i { font-size: 1.3rem; color: var(--blue); }
.float-badge strong { display: block; font-family: var(--display); font-size: .95rem; color: var(--ink); }
.float-badge small { color: var(--muted); font-size: .78rem; }
@keyframes floaty { 50% { transform: translateY(-8px); } }

.tech-strip { position: relative; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 104px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .08); }
.tech-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255, 255, 255, .4); }
.tech-strip ul { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.tech-strip li { font-family: var(--display); font-weight: 600; color: rgba(255, 255, 255, .55); font-size: .95rem; }

/* ---------- sections ---------- */
.section { padding: 110px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--ink); color: rgba(255, 255, 255, .75); position: relative; overflow: hidden; }
.section-dark::before {
  content: ""; position: absolute; width: 700px; height: 700px; left: -300px; bottom: -380px;
  background: radial-gradient(circle, rgba(53, 76, 237, .35), transparent 65%);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.kicker { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.kicker-light { color: var(--blue-300); }
.muted-light { color: rgba(255, 255, 255, .65); font-size: 1.05rem; }

/* ---------- services bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfd6ff; }
.card p { color: var(--muted); margin: 0; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: #eef0ff; color: var(--blue); font-size: 1.35rem; margin-bottom: 18px;
}
.card-feature {
  grid-row: span 2;
  background: linear-gradient(160deg, #1f2e8f 0%, #354ced 55%, #4c86ff 100%);
  border: 0; color: rgba(255, 255, 255, .85);
  display: flex; flex-direction: column;
}
.card-feature h3 { color: var(--white); font-size: 1.5rem; }
.card-feature p { color: rgba(255, 255, 255, .82); font-size: 1.02rem; }
.card-feature .card-icon { background: rgba(255, 255, 255, .15); color: var(--white); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; }
.chips li { font-size: .82rem; padding: .35em .8em; border-radius: 999px; background: rgba(255, 255, 255, .14); color: var(--white); }
.card-link { margin-top: auto; color: var(--white); font-weight: 600; }
.card-link:hover { color: var(--white); }
.card-link i { transition: transform .2s; display: inline-block; }
.card-link:hover i { transform: translateX(4px); }

/* ---------- AI section ---------- */
.ai-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ai-list { display: grid; gap: 22px; margin: 32px 0 8px; }
.ai-list li { display: flex; gap: 16px; }
.ai-list strong { color: var(--white); font-family: var(--display); font-weight: 600; }
.ai-list p { margin: 2px 0 0; font-size: .95rem; color: rgba(255, 255, 255, .62); }
.ai-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(53, 76, 237, .2); color: var(--blue-300); font-size: 1.2rem; }
.chat-demo {
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow-lg);
}
.bubble { max-width: 85%; padding: 12px 16px; border-radius: 16px; font-size: .93rem; line-height: 1.5; }
.bubble-user { align-self: flex-end; background: var(--blue); color: var(--white); border-bottom-right-radius: 4px; }
.bubble-bot { align-self: flex-start; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .88); border-bottom-left-radius: 4px; }
.typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .08); }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .6); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); }
.step-num { display: block; font: 700 2rem/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--blue); margin-bottom: 18px; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-media { position: relative; }
.code-card {
  position: relative; overflow: hidden; border-radius: 20px; min-height: 380px;
  background: radial-gradient(circle at 100% 0%, rgba(53, 76, 237, .45), transparent 55%), var(--ink);
  box-shadow: var(--shadow-lg); padding: 18px 22px 70px;
}
.code-card > *:not(canvas) { position: relative; z-index: 1; }
.code-card pre { margin: 6px 0 0; overflow-x: auto; }
.code-card code { font: 500 .92rem/1.75 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #dbe1ff; }
.code-card .k { color: #8b9bff; }
.code-card .f { color: #5ad1ff; }
.code-card .s { color: #9fe7b5; }
.code-card .c { color: rgba(255, 255, 255, .38); font-style: italic; }
.cursor { display: inline-block; width: 8px; height: 1.1em; margin-left: 4px; vertical-align: text-bottom; background: #5ad1ff; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.stats {
  position: absolute; left: 24px; right: 24px; bottom: -36px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 8px;
}
.stats div { text-align: center; }
.stats div + div { border-left: 1px solid var(--line); }
.stats strong { display: block; font: 700 1.8rem/1.1 var(--display); color: var(--ink); }
.stats strong::after { content: "+"; color: var(--blue); }
.stats span { font-size: .8rem; color: var(--muted); }
.values { display: grid; gap: 18px; margin-top: 26px; }
.values li { display: flex; gap: 14px; }
.values i { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #eef0ff; color: var(--blue); font-size: 1.1rem; }
.values strong { display: block; color: var(--ink); }
.values span { color: var(--muted); font-size: .95rem; }

/* ---------- contact ---------- */
.contact-wrap {
  display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden;
  border-radius: 24px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.contact-info {
  background: radial-gradient(circle at 0% 100%, rgba(53, 76, 237, .5), transparent 55%), var(--ink);
  color: rgba(255, 255, 255, .75); padding: 48px;
}
.contact-info h2 { color: var(--white); font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.contact-list { display: grid; gap: 16px; margin: 30px 0; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-list i { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .08); color: var(--blue-300); }
.contact-list a, .contact-list span { color: rgba(255, 255, 255, .88); }
.client-link { display: inline-flex; gap: 8px; align-items: center; color: var(--blue-300); font-weight: 500; font-size: .95rem; }
.client-link:hover { color: var(--white); }
.contact-form { background: var(--white); padding: 48px; display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field span { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .news-form input {
  width: 100%; font: inherit; font-size: .97rem; color: var(--text);
  padding: .8em 1em; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--soft);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .news-form input:focus {
  outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgba(53, 76, 237, .12);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #e5484d; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; min-height: 1.4em; font-size: .93rem; text-align: center; }
.form-status.ok { color: #18794e; }
.form-status.err { color: #c62a2f; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .6); padding: 72px 0 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; }
.footer-brand img { height: 34px; width: auto; margin-bottom: 18px; }
.site-footer h4 { color: var(--white); font-size: .95rem; margin-bottom: 16px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, .65); }
.site-footer a:hover { color: var(--white); }
.news-form { display: flex; gap: 8px; margin-top: 12px; }
.news-form input { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: var(--white); border-radius: 999px; }
.news-form input::placeholder { color: rgba(255, 255, 255, .4); }
.news-form input:focus { background: rgba(255, 255, 255, .1); }
.news-msg { color: #9fe7b5; margin: 8px 0 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding: 22px 20px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; }

/* ---------- reveal on scroll ---------- */
/* CSS scroll-driven: unsupported browsers just show the content */
@supports (animation-timeline: view()) {
  .reveal { animation: reveal-in linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
}
@keyframes reveal-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav > a { padding: .5em .55em; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card-feature { grid-row: auto; grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(10, 18, 38, .97); backdrop-filter: blur(14px);
    padding: 12px 20px 24px; border-top: 1px solid rgba(255, 255, 255, .06);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav > a { padding: .85em .4em; font-size: 1.05rem; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .nav-actions { margin: 14px 0 0; flex-direction: column; }
  .site-header.menu-open { background: rgba(10, 18, 38, .97); }
  .hero-grid, .ai-grid, .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 520px; }
  .float-badge { left: auto; right: 12px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .about-grid { gap: 80px; }
}
@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .code-card { min-height: 0; padding-bottom: 22px; }
  .code-card code { font-size: .78rem; }
  .hero { padding-top: calc(var(--header-h) + 40px); }
  .bento, .steps { grid-template-columns: 1fr; }
  .card-feature { grid-column: auto; }
  .field-row { grid-template-columns: 1fr; }
  .contact-info, .contact-form { padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { position: static; margin-top: 16px; }
  .about-grid { gap: 48px; }
  .float-badge { display: none; }
  .hero-ctas .btn { width: 100%; }
}

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

/* ---------- futuristic animated background ---------- */
.neural-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero > .container, .section-dark > .container { position: relative; z-index: 2; }
.contact-info { position: relative; overflow: hidden; }
.contact-info > *:not(canvas) { position: relative; z-index: 1; }

.hero-aurora { position: absolute; inset: -10% -10% 10% -10%; z-index: 0; pointer-events: none; filter: blur(70px); opacity: .85; }
.hero-aurora span { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.hero-aurora span:nth-child(1) {
  width: 55vw; height: 55vw; max-width: 820px; max-height: 820px; top: -25%; right: -8%;
  background: radial-gradient(circle, rgba(53, 76, 237, .75), transparent 65%);
  animation: aurora-a 22s ease-in-out infinite alternate;
}
.hero-aurora span:nth-child(2) {
  width: 40vw; height: 40vw; max-width: 600px; max-height: 600px; top: 20%; left: -10%;
  background: radial-gradient(circle, rgba(90, 209, 255, .35), transparent 65%);
  animation: aurora-b 26s ease-in-out infinite alternate;
}
.hero-aurora span:nth-child(3) {
  width: 36vw; height: 36vw; max-width: 520px; max-height: 520px; bottom: -10%; right: 25%;
  background: radial-gradient(circle, rgba(139, 92, 246, .35), transparent 65%);
  animation: aurora-c 19s ease-in-out infinite alternate;
}
@keyframes aurora-a { to { transform: translate(-12vw, 10vh) scale(1.15); } }
@keyframes aurora-b { to { transform: translate(14vw, -6vh) scale(.9); } }
@keyframes aurora-c { to { transform: translate(-10vw, -12vh) scale(1.2); } }

.hero::before { z-index: 1; opacity: .6; }
.hero-floor {
  position: absolute; left: -50%; right: -50%; bottom: 0; height: 42%; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(90, 209, 255, .22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 209, 255, .22) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(420px) rotateX(64deg);
  transform-origin: bottom center;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, .9), transparent 80%);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, .9), transparent 80%);
  animation: floor-move 2.6s linear infinite;
}
@keyframes floor-move { to { background-position: 0 64px; } }
.hero-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 120px; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(90, 209, 255, .04) 75%, rgba(90, 209, 255, .16) 99%, transparent);
  animation: scan 8s cubic-bezier(.4, 0, .6, 1) infinite;
}
@keyframes scan { 0% { transform: translateY(-120px); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(110vh); opacity: 0; } }

/* glowing animated border on the automation card */
@property --spin { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.flow-card { position: relative; isolation: isolate; }
.flow-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: 21px; padding: 1px; z-index: -1;
  background: conic-gradient(from var(--spin), transparent 0 60%, #5ad1ff 75%, #354ced 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 5s linear infinite;
}
.flow-card::after {
  content: ""; position: absolute; inset: 20% 10%; z-index: -2; border-radius: 50%;
  background: rgba(53, 76, 237, .45); filter: blur(60px);
}
@keyframes spin { to { --spin: 360deg; } }
.flow-icon.ai { animation: ai-pulse 2.4s ease-in-out infinite; }
@keyframes ai-pulse { 50% { box-shadow: 0 0 36px rgba(90, 209, 255, .85); } }

@media (max-width: 640px) {
  .hero-floor { height: 30%; }
  .hero-aurora { filter: blur(50px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scan { display: none; }
}
.hero .neural-canvas { z-index: 1; }

/* Gemini neural map draws its own scanlines */
.hero--map .hero-scan { display: none; }

/* ---------- content sections (v2) ---------- */
p.big { font-size: 1.12rem; color: var(--text); }

.pains { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pain { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.pain:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pain-problem, .pain-fix { display: flex; gap: 14px; align-items: flex-start; padding: 20px 24px; }
.pain p { margin: 0; }
.pain-problem { color: var(--muted); font-style: italic; border-bottom: 1px dashed var(--line); }
.pain-problem i { color: #e5484d; font-size: 1.3rem; flex: none; }
.pain-fix { background: linear-gradient(90deg, #eef0ff, #fff); }
.pain-fix i { color: var(--blue); font-size: 1.3rem; flex: none; }
.pain-fix strong { color: var(--ink); }

.usecases { position: relative; margin-top: 72px; padding: 32px; border-radius: 20px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.usecases h3 { color: var(--white); margin-bottom: 20px; text-align: center; }
.usecases ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.usecases li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(53, 76, 237, .14); color: rgba(255, 255, 255, .88); font-size: .93rem; font-weight: 500; transition: background .2s, transform .2s; }
.usecases li:hover { background: rgba(53, 76, 237, .3); transform: translateY(-2px); }
.usecases i { color: var(--blue-300); font-size: 1.1rem; }

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .2s ease, box-shadow .2s ease; }
.why:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why i { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; margin-bottom: 16px; font-size: 1.3rem; color: var(--white); background: linear-gradient(135deg, #354ced, #5ad1ff); box-shadow: 0 8px 20px -8px rgba(53, 76, 237, .7); }
.why p { color: var(--muted); margin: 0; }

.faq-wrap { max-width: 860px; }
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--white); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: #cfd6ff; box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font: 600 1.05rem/1.4 var(--display); color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: #eef0ff; color: var(--blue); font: 600 1.2rem/1 var(--font); transition: transform .2s;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 24px 22px; margin: 0; color: var(--muted); }

.next-steps { display: grid; gap: 12px; margin: 20px 0 6px; }
.next-steps li { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, .85); }
.next-steps span { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: var(--white); font: 700 .85rem/1 var(--display); }
.form-note { margin: -4px 0 0; text-align: center; font-size: .82rem; color: var(--muted); }
#contact .contact-wrap { background: var(--white); }

@media (max-width: 1080px) {
  .usecases ul { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .pains, .why-grid, .usecases ul { grid-template-columns: 1fr; }
  .usecases { padding: 24px 18px; }
}

/* ---------- language toggle ---------- */
.lang-toggle {
  display: inline-flex; align-items: center; padding: 3px; margin-left: 4px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .05);
}
.lang-toggle a {
  font: 600 .78rem/1 var(--font); letter-spacing: .04em; color: rgba(255, 255, 255, .7);
  padding: .5em .75em; border-radius: 999px; transition: background .2s, color .2s;
}
.lang-toggle a:hover { color: var(--white); }
.lang-toggle a.active { background: var(--blue); color: var(--white); }
@media (max-width: 960px) {
  .header-inner { gap: 12px; }
  .brand { margin-right: auto; }
}

/* ---------- header fit for longer (Spanish) labels ---------- */
.brand { flex: none; }
.nav > a { white-space: nowrap; }
@media (max-width: 1520px) {
  /* client login becomes icon-only; the text stays for screen readers */
  .nav-actions .btn-ghost { font-size: 0; gap: 0; padding: .6em; }
  .nav-actions .btn-ghost i { font-size: 1.25rem; }
  .nav > a { padding: .5em .6em; }
}
@media (max-width: 1240px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(10, 18, 38, .97); backdrop-filter: blur(14px);
    padding: 12px 20px 24px; border-top: 1px solid rgba(255, 255, 255, .06);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav > a { padding: .85em .4em; font-size: 1.05rem; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .nav-actions { margin: 14px 0 0; flex-direction: column; }
  .nav-actions .btn-ghost { font-size: .95rem; gap: .5em; padding: .8em 1.25em; }
  .site-header.menu-open { background: rgba(10, 18, 38, .97); }
  .header-inner { gap: 12px; }
  .brand { margin-right: auto; }
}

/* header gets a little more room than page content (longer Spanish labels) */
.site-header .container { max-width: 1380px; }

/* ---------- more prominent logo ---------- */
:root { --header-h: 84px; }
.brand img {
  height: 50px;
  filter: drop-shadow(0 0 14px rgba(90, 209, 255, .35)) drop-shadow(0 0 2px rgba(255, 255, 255, .4));
  transition: transform .25s ease, filter .25s ease;
}
.brand:hover img { transform: scale(1.04); filter: drop-shadow(0 0 20px rgba(90, 209, 255, .6)) drop-shadow(0 0 2px rgba(255, 255, 255, .5)); }
.footer-brand img { height: 44px; filter: drop-shadow(0 0 12px rgba(90, 209, 255, .3)); }
@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .brand img { height: 40px; }
}

/* ---------- captcha ---------- */
.captcha { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--soft); transition: border-color .2s; }
.captcha.is-error { border-color: #e5484d; }
.captcha.is-done { border-color: #18794e; background: #f0faf4; }
.captcha-box { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; color: var(--ink); user-select: none; }
.captcha-check { position: absolute; opacity: 0; width: 1px; height: 1px; }
.captcha-mark { width: 26px; height: 26px; border-radius: 7px; border: 2px solid #b8c0d9; background: var(--white);
  display: grid; place-items: center; color: transparent; transition: all .2s; }
.captcha-check:focus-visible + .captcha-mark { outline: 3px solid var(--blue-300); outline-offset: 2px; }
.captcha.is-busy .captcha-mark { border-color: var(--blue); border-right-color: transparent; border-radius: 50%; animation: cap-spin .8s linear infinite; }
.captcha.is-done .captcha-mark { background: #18794e; border-color: #18794e; color: var(--white); }
.captcha-brand { font-size: .78rem; color: var(--muted); }
@keyframes cap-spin { to { transform: rotate(360deg); } }

/* let grid columns shrink below their content width (the code card was pushing phones sideways) */
.hero-grid > *, .about-grid > *, .ai-grid > *, .contact-wrap > * { min-width: 0; }
.code-card { max-width: 100%; }
