:root {
  --bg: #05080f;
  --bg-2: #0a1020;
  --panel: #0d1526;
  --line: #1b2a47;
  --text: #f4f7fc;
  --muted: #b9c6dc;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --glow: 0 0 32px rgba(34, 211, 238, .25);
  --maxw: 1160px;
  --mono: var(--sans);   /* kept as a variable name; the site no longer uses a monospace voice */
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); line-height: 1.65; -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(900px 500px at 80% -10%, rgba(59,130,246,.18), transparent 60%),
    radial-gradient(700px 400px at 0% 10%, rgba(34,211,238,.10), transparent 60%),
    linear-gradient(rgba(34,211,238,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,.035) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  background-attachment: fixed;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; color: var(--muted); }
.grad { background: linear-gradient(90deg, var(--cyan), var(--blue) 55%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px;
  background: linear-gradient(90deg, var(--cyan), var(--blue) 55%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow::before { content: ""; width: 30px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--cyan), var(--violet)); flex: none; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: rgba(5,8,15,.72); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--text); letter-spacing: .02em; }
.logo:hover { text-decoration: none; }
.logo svg { width: 28px; height: 28px; }
.logo span em { font-style: normal; color: var(--cyan); }
.nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav ul a { color: var(--muted); padding: 8px 14px; border-radius: 8px; font-size: .95rem; }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--text); background: rgba(34,211,238,.08); text-decoration: none; }
.nav ul a.cta { color: #031018; background: var(--cyan); font-weight: 650; }
.nav ul a.cta:hover { box-shadow: var(--glow); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 8px 12px; font-size: 1rem; cursor: pointer; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 10px; font-weight: 650; border: 1px solid transparent; cursor: pointer; font-size: 1rem; font-family: inherit; transition: .2s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(90deg, var(--cyan), var(--blue)); color: #031018; }
.btn-primary:hover { box-shadow: var(--glow); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--cyan); }

/* sections */
section { padding: 88px 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.hero { padding: 96px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 1.15rem; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.page-hero { padding: 80px 0 40px; }
.page-hero p { max-width: 680px; font-size: 1.1rem; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 56px; }
.stat { background: var(--panel); padding: 22px; }
.stat b { display: block; font-size: 1.8rem; font-weight: 800; letter-spacing: -.01em; color: var(--text); font-family: var(--sans); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .88rem; }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)); border: 1px solid var(--line); border-radius: 16px; padding: 28px; transition: .25s; position: relative; }
.card:hover { border-color: rgba(34,211,238,.5); box-shadow: var(--glow); transform: translateY(-3px); }
.card p:last-child { margin-bottom: 0; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.3); margin-bottom: 18px; color: var(--cyan); }
.icon svg { width: 22px; height: 22px; }
.num { font-family: var(--sans); font-weight: 800; color: transparent; background: linear-gradient(90deg, var(--cyan), var(--violet)); -webkit-background-clip: text; background-clip: text; font-size: 1.5rem; margin-bottom: 8px; display: block; }

.band { background: linear-gradient(180deg, transparent, rgba(10,16,32,.9) 20%, rgba(10,16,32,.9) 80%, transparent); }

/* product */
.product { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; padding: 40px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); margin-bottom: 28px; }
.product.flip { grid-template-columns: 1.1fr 1fr; }
.product.flip .p-art { order: 2; }
.tag { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border: 1px solid var(--cyan); color: var(--cyan); border-radius: 999px; display: inline-block; margin-bottom: 14px; }
.tag.alt { border-color: var(--violet); color: #b79bff; }
.specs { width: 100%; border-collapse: collapse; margin: 16px 0 20px; font-size: .93rem; }
.specs td { padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs td:first-child { color: var(--muted); width: 38%; font-weight: 600; font-size: .85rem; }
.art-box { border-radius: 16px; border: 1px solid var(--line); background: radial-gradient(circle at 50% 30%, rgba(34,211,238,.12), transparent 60%), var(--bg-2); padding: 24px; }

/* stack diagram */
.stack { display: grid; gap: 10px; }
.layer { display: grid; grid-template-columns: 70px 1fr; gap: 16px; align-items: center; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.layer code { font-family: var(--sans); font-weight: 800; color: var(--cyan); font-size: 1rem; }
.layer b { color: var(--text); }
.layer span { color: var(--muted); font-size: .92rem; display: block; }

.list { list-style: none; padding: 0; margin: 0; }
.list li { padding-left: 26px; position: relative; margin-bottom: 10px; color: var(--muted); }
.list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 2px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

/* steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { border-top: 2px solid var(--cyan); padding-top: 18px; }
.step b { font-family: var(--sans); font-weight: 800; font-size: 1.15rem; color: var(--cyan); }

/* cta */
.cta-box { text-align: center; padding: 64px 28px; border: 1px solid var(--line); border-radius: 24px; background: radial-gradient(600px 240px at 50% 0%, rgba(34,211,238,.15), transparent 70%), var(--panel); }
.cta-box p { max-width: 560px; margin-left: auto; margin-right: auto; }

/* form */
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: start; }
form { display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-size: .9rem; font-weight: 600; color: var(--muted); display: grid; gap: 6px; }
input, select, textarea { width: 100%; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 12px 14px; font: inherit; font-family: var(--sans); font-size: .97rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,211,238,.15); }
textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-msg { padding: 14px 16px; border-radius: 10px; display: none; font-size: .95rem; }
.form-msg.ok { display: block; background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.5); color: #86efac; }
.form-msg.err { display: block; background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.5); color: #fca5a5; }
.note { font-size: .82rem; color: var(--muted); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 28px; margin-top: 40px; background: rgba(5,8,15,.8); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot h4 { margin: 0 0 12px; font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.foot a { display: block; color: var(--muted); padding: 3px 0; font-size: .93rem; }
.copy { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* animations */
@keyframes pulse { 0%,100% { opacity: .35 } 50% { opacity: 1 } }
@keyframes flow { to { stroke-dashoffset: -24 } }
.blink { animation: pulse 2.2s infinite; }
.blink.d2 { animation-delay: .7s; } .blink.d3 { animation-delay: 1.4s; }
.flow { stroke-dasharray: 6 6; animation: flow 1.2s linear infinite; }
.reveal { opacity: 0; transform: translateY(18px); transition: .6s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .blink, .flow { animation: none; } .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* responsive */
@media (max-width: 960px) {
  .hero-grid, .product, .product.flip, .contact-grid { grid-template-columns: 1fr; }
  .product.flip .p-art { order: 0; }
  .g3, .g4, .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  section { padding: 60px 0; }
  .menu-btn { display: block; }
  .nav ul { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 20px 20px; }
  .nav ul.open { display: flex; }
  .g2, .g3, .g4, .steps, .row, .foot { grid-template-columns: 1fr; }
  .product { padding: 24px; }
  .layer { grid-template-columns: 1fr; gap: 4px; }
}

/* data-ocean hero background */
.hero { position: relative; overflow: hidden; }
.hero > .wrap { position: relative; z-index: 1; }
.ocean-canvas, .o3d-canvas { position: absolute; top: 0; left: 0; width: 100%; height: min(100%, 860px); z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%); mask-image: linear-gradient(to bottom, #000 60%, transparent 100%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(5,8,15,.82) 0%, rgba(5,8,15,.45) 45%, rgba(5,8,15,0) 75%); }

.o3d-canvas { -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%); mask-image: linear-gradient(to bottom, #000 82%, transparent 100%); }

/* bigger frame for the three.js hero */
.o3d-canvas { height: 100%; }
.hero[data-ocean3d] { min-height: clamp(740px, 100vh, 1040px); display: flex; flex-direction: column; justify-content: center; }

/* phones: shorter hero frame so more content shows */
@media (max-width: 720px) {
  .hero[data-ocean3d] { min-height: 0; display: block; padding: 48px 0 36px; }
  .o3d-canvas { height: min(100%, 560px); -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); }
  .hero h1 { font-size: clamp(1.9rem, 9vw, 2.4rem); }
  .hero p.lead { font-size: 1rem; }
  .hero-actions { margin-top: 20px; }
  .hero .art-box { display: none; }
  .stats { margin-top: 32px; }
  .stat { padding: 16px; }
  .stat b { font-size: 1.3rem; }
  section { padding: 52px 0; }
}

/* sub-pages: the sea is a fixed full-screen background behind the whole page */
.o3d-fixed { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1;
  -webkit-mask-image: none; mask-image: none; }
.o3d-veil { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 35%, rgba(5,8,15,.30), rgba(5,8,15,.60)); }
.page-hero[data-ocean] { position: relative; overflow: hidden; }   /* 2D fallback only */
.band { background: linear-gradient(180deg, transparent, rgba(10,16,32,.45) 20%, rgba(10,16,32,.45) 80%, transparent); }

/* services page: black panels at 50% opacity */
.page-services .card, .page-services .cta-box { background: rgba(0, 0, 0, .5); }

/* about + contact: dimmer sea */
.page-about .o3d-veil, .page-contact .o3d-veil { background: radial-gradient(ellipse at 50% 35%, rgba(5,8,15,.52), rgba(5,8,15,.78)); }

/* readability over the animated background */
p, .list li, .specs td, .stat span, .layer span { text-shadow: 0 1px 8px rgba(0, 0, 0, .55); }
.note, .copy, .foot a { color: #aebbd2; }
label { color: #c3cee2; }

/* real product photography */
.art-photo img { width: 100%; height: auto; display: block; filter: drop-shadow(0 28px 50px rgba(60, 120, 255, .22)); }
.hero .art-photo { max-width: 560px; justify-self: end; }
.p-art img { width: 100%; height: auto; display: block; }
.banner { display: block; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); transition: .25s; }
.banner:hover { border-color: rgba(34, 211, 238, .5); box-shadow: var(--glow); transform: translateY(-2px); }
.banner img { width: 100%; height: auto; display: block; }
@media (max-width: 960px) { .hero .art-photo { justify-self: center; max-width: 480px; } }
@media (max-width: 720px) { .hero .art-photo { display: none; } }

/* bigger, bolder hero product image */
.hero-grid { grid-template-columns: .95fr 1.05fr; }
.hero .art-photo { width: 130%; max-width: none; justify-self: end; margin-right: clamp(-90px, calc((1160px - 100vw) / 2), 0px); }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .art-photo { width: 100%; max-width: 560px; justify-self: center; margin-right: 0; }
}
@media (min-width: 961px) and (max-width: 1280px) { .hero .art-photo { width: 108%; } }

/* image logo */
.logo img { height: 34px; width: auto; display: block; }
.site-footer .logo img { height: 30px; }
@media (max-width: 720px) { .logo img { height: 28px; } }
