/* =========================================================
   PT PUSPA MAZU JAYA — Technology That Blooms
   puspamazu.asia
   ========================================================= */

:root {
  --bg: #05060f;
  --bg-2: #0a0c1d;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);

  --text: #eef1ff;
  --muted: #9ba4c9;
  --dim: #5f678f;

  --cyan: #3ef0ff;
  --violet: #8b5cf6;
  --pink: #ff4fd8;
  --lime: #b6ff5c;

  --grad: linear-gradient(110deg, var(--cyan) 0%, var(--violet) 50%, var(--pink) 100%);

  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 24px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --container: 1240px;
  --nav-h: 76px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--pink); color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.grad {
  background: var(--grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradShift 8s linear infinite;
}

@keyframes gradShift { to { background-position: 200% center; } }

/* ---------- Ambient background ---------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.35;
  animation: float 22s ease-in-out infinite alternate;
}
.orb-1 { width: 520px; height: 520px; background: var(--violet); top: -160px; left: -140px; }
.orb-2 { width: 440px; height: 440px; background: var(--cyan); top: 40%; right: -180px; opacity: 0.18; animation-delay: -7s; }
.orb-3 { width: 380px; height: 380px; background: var(--pink); bottom: -160px; left: 30%; opacity: 0.2; animation-delay: -14s; }

@keyframes float {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(80px, 60px) scale(1.12); }
  100% { transform: translate(-60px, 100px) scale(0.95); }
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 560px;
  height: 560px;
  margin: -280px 0 0 -280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.13), transparent 62%);
  pointer-events: none;
  z-index: -1;
  transform: translate3d(-1000px, -1000px, 0);
  will-change: transform;
}

@media (hover: none) { .cursor-glow { display: none; } }

/* ---------- Glass ---------- */
.glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line-2);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: 0;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s;
  will-change: transform;
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s var(--ease);
}
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  color: #05060f;
  background: var(--grad);
  background-size: 200% auto;
  box-shadow: 0 10px 40px -10px rgba(139, 92, 246, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  animation: gradShift 6s linear infinite;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover { box-shadow: 0 18px 60px -12px rgba(255, 79, 216, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.4); }

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.3); }

.btn-block { width: 100%; }

/* ---------- Spotlight card ---------- */
.spot {
  position: relative;
  isolation: isolate;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.4s, background 0.4s;
}
.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 92, 246, 0.16), transparent 42%);
  opacity: 0;
  transition: opacity 0.4s;
}
.spot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(62, 240, 255, 0.85), rgba(255, 79, 216, 0.4) 30%, transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.spot:hover::before,
.spot:hover::after { opacity: 1; }
.spot:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.05); }

/* ---------- Reveal ---------- */
/* uses the individual `translate` property so hover/magnetic `transform` never conflicts */
.js .reveal {
  opacity: 0;
  translate: 0 34px;
  filter: blur(6px);
  transition:
    opacity 1s var(--ease) var(--d, 0s),
    translate 1s var(--ease) var(--d, 0s),
    filter 1s var(--ease) var(--d, 0s),
    transform 0.6s var(--ease),
    border-color 0.4s,
    background-color 0.4s,
    box-shadow 0.4s;
}
.js .reveal.in { opacity: 1; translate: none; filter: none; }

/* ---------- Pulse dot ---------- */
.pulse-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
  flex-shrink: 0;
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--lime);
  animation: ping 2s ease-out infinite;
}
@keyframes ping { to { transform: scale(3); opacity: 0; } }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  transition: background 0.4s, border-color 0.4s, height 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  --nav-h: 66px;
  background: rgba(5, 6, 15, 0.62);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom-color: var(--line);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 38px; height: 38px; flex-shrink: 0; }
.logo-mark .petals { transform-origin: 20px 20px; animation: spin 18s linear infinite; }
.brand:hover .logo-mark .petals { animation-duration: 3s; }
@keyframes spin { to { transform: rotate(360deg); } }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: 0.08em; }
.brand-text small { font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  position: relative;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.3s, background 0.3s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-links .nav-cta {
  margin-left: 10px;
  color: var(--text);
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
}
.nav-links .nav-cta:hover { border-color: var(--cyan); box-shadow: 0 0 24px -6px var(--cyan); }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  position: relative;
  z-index: 60;
}
.nav-toggle span {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 19px; }
.nav-toggle span:nth-child(2) { top: 26px; }
.nav-open .nav-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 120px;
  overflow: hidden;
}

.bloom {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 45%, #000 20%, transparent 75%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 220px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: 1;
}

.hero-inner { position: relative; z-index: 2; pointer-events: none; }
.hero-copy { max-width: 760px; pointer-events: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.hero-title {
  margin: 28px 0 26px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 6vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-shadow: 0 4px 40px rgba(5, 6, 15, 0.6);
}

.rotator {
  display: inline;
  color: var(--text);
  font-style: italic;
  font-weight: 700;
}
.caret {
  display: inline-block;
  width: 0.08em;
  height: 0.85em;
  margin-left: 0.06em;
  vertical-align: -0.06em;
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan);
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-sub {
  max-width: 580px;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  color: var(--muted);
}
.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  max-width: 580px;
}
.hero-meta li { font-size: 13px; color: var(--dim); line-height: 1.4; }
.hero-meta span { display: block; font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--text); }

.hero-chip {
  position: absolute;
  right: max(24px, calc((100vw - var(--container)) / 2 + 24px));
  bottom: 110px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: 18px;
  font-family: var(--font-mono);
}
.hero-chip small { display: block; font-size: 11px; color: var(--muted); }
.hero-chip strong { font-size: 20px; font-weight: 500; letter-spacing: 0.04em; }
.hero-chip em { font-style: normal; font-size: 11px; color: var(--cyan); }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid var(--line-2);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.mouse span {
  width: 3px;
  height: 7px;
  border-radius: 3px;
  background: var(--cyan);
  animation: wheel 1.8s var(--ease) infinite;
}
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  position: relative;
  padding: 26px 0;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.35);
  transition: color 0.3s;
}
.marquee span:nth-of-type(3n + 1) { color: var(--text); -webkit-text-stroke: 0; }
.marquee i { font-style: normal; color: var(--pink); font-size: 18px; }
@keyframes marquee { to { transform: translateX(calc(-50% - 18px)); } }

/* =========================================================
   SECTIONS (shared)
   ========================================================= */
.section { position: relative; padding: clamp(90px, 12vw, 160px) 0; scroll-margin-top: 40px; }

.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head.center { margin-inline: auto; text-align: center; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.section-title {
  margin: 18px 0 22px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.section-lead { color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.1rem); max-width: 620px; }
.section-lead + .section-lead { margin-top: 18px; }
.section-lead strong { color: var(--text); font-weight: 600; }

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.name-cards { display: grid; gap: 16px; }

.name-card { padding: 28px 30px; }
.name-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.name-origin {
  position: absolute;
  top: 30px;
  right: 30px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
}
.name-mean {
  margin: 6px 0 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.name-card p:last-child { color: var(--muted); font-size: 15px; }
.name-card:nth-child(2) { margin-left: clamp(0px, 4vw, 48px); }
.name-card:nth-child(3) { margin-left: clamp(0px, 8vw, 96px); }

/* =========================================================
   SERVICES
   ========================================================= */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service { padding: 32px; display: flex; flex-direction: column; min-height: 320px; }
.service-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 36px; }

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(62, 240, 255, 0.14), rgba(255, 79, 216, 0.14));
  border: 1px solid var(--line-2);
  transition: transform 0.5s var(--ease), box-shadow 0.5s;
}
.service-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service:hover .service-icon { transform: rotate(-8deg) scale(1.08); box-shadow: 0 0 40px -6px rgba(62, 240, 255, 0.6); }

.service-num { font-family: var(--font-mono); font-size: 13px; color: var(--dim); }

.service h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.service p { color: var(--muted); font-size: 15px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 26px; }
.tags li {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

/* =========================================================
   LAB / BENTO
   ========================================================= */
.lab::before {
  content: "";
  position: absolute;
  inset: 10% 0;
  z-index: -1;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(139, 92, 246, 0.12), transparent 70%);
}

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(260px, auto);
  gap: 18px;
}
.bento-card { padding: 32px; display: flex; flex-direction: column; }
.bento-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 14px 0 10px;
}
.bento-card p { color: var(--muted); font-size: 15px; }

.b-ocean { grid-column: span 4; grid-row: span 2; flex-direction: row; align-items: center; gap: 32px; }
.b-lang  { grid-column: span 2; }
.b-agri  { grid-column: span 2; }
.b-twin  { grid-column: span 3; }
.b-vault { grid-column: span 3; flex-direction: row; align-items: center; gap: 24px; }

.bento-text { flex: 1; min-width: 0; }
.b-ocean h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); }

.badge {
  align-self: flex-start;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid currentColor;
}
.badge-cyan   { color: var(--cyan);   background: rgba(62, 240, 255, 0.08); }
.badge-pink   { color: var(--pink);   background: rgba(255, 79, 216, 0.08); }
.badge-lime   { color: var(--lime);   background: rgba(182, 255, 92, 0.08); }
.badge-violet { color: #b49bff;       background: rgba(139, 92, 246, 0.1); }

.mini-stats { display: flex; gap: 32px; margin-top: 28px; }
.mini-stats strong { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; }
.mini-stats small { color: var(--dim); font-size: 12.5px; }

/* Radar */
.radar {
  position: relative;
  flex-shrink: 0;
  width: min(320px, 42%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(62, 240, 255, 0.35);
  background:
    repeating-radial-gradient(circle at center, transparent 0 15%, rgba(62, 240, 255, 0.16) 15% calc(15% + 1px)),
    radial-gradient(circle, rgba(62, 240, 255, 0.08), transparent 70%);
  box-shadow: 0 0 80px -20px rgba(62, 240, 255, 0.5), inset 0 0 60px rgba(62, 240, 255, 0.08);
  overflow: hidden;
}
.radar::before,
.radar::after {
  content: "";
  position: absolute;
  background: rgba(62, 240, 255, 0.18);
}
.radar::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.radar::after  { top: 50%; left: 0; right: 0; height: 1px; }
.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(62, 240, 255, 0.55), rgba(62, 240, 255, 0.08) 18%, transparent 28%);
  animation: spin 4s linear infinite;
}
.blip {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
  animation: blip 4s ease-out infinite;
  animation-delay: var(--t);
}
.blip-pink { background: var(--pink); box-shadow: 0 0 18px var(--pink); width: 10px; height: 10px; margin: -5px 0 0 -5px; }
@keyframes blip {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  10%      { opacity: 1; transform: scale(1.5); }
  40%      { opacity: 0.7; transform: scale(1); }
}

/* Chat */
.chat { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 22px; font-size: 13px; }
.msg { max-width: 88%; padding: 9px 14px; border-radius: 16px; line-height: 1.45; }
.msg-user { align-self: flex-end; background: rgba(255, 255, 255, 0.08); border-bottom-right-radius: 4px; }
.msg-ai {
  align-self: flex-start;
  background: linear-gradient(135deg, rgba(255, 79, 216, 0.18), rgba(139, 92, 246, 0.18));
  border: 1px solid rgba(255, 79, 216, 0.25);
  border-bottom-left-radius: 4px;
}
.msg-ai b { color: var(--pink); font-weight: 600; }
.typing { display: flex; gap: 4px; padding: 12px 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--pink); animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }

/* Bars */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 96px; margin-top: auto; padding-top: 22px; }
.bars i {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 1px 1px;
  background: linear-gradient(to top, rgba(182, 255, 92, 0.12), var(--lime));
  box-shadow: 0 0 14px -4px var(--lime);
  transform-origin: bottom;
  animation: grow 2.6s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -0.22s);
}
@keyframes grow { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }

/* Digital twin */
.twin {
  position: relative;
  height: 150px;
  margin-top: auto;
  perspective: 420px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  -webkit-mask-image: linear-gradient(to top, #000 45%, transparent);
  mask-image: linear-gradient(to top, #000 45%, transparent);
}
.twin-plane {
  position: absolute;
  inset: -40% -30% -10%;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.55) 1px, transparent 1px);
  background-size: 30px 30px;
  transform: rotateX(64deg);
  transform-origin: bottom;
  animation: gridmove 2.4s linear infinite;
}
@keyframes gridmove { to { background-position: 0 30px; } }
.pillar {
  position: absolute;
  bottom: 14px;
  left: var(--l);
  width: 18px;
  height: var(--ph);
  border-radius: 3px 3px 0 0;
  background: linear-gradient(to top, rgba(139, 92, 246, 0.15), rgba(62, 240, 255, 0.85));
  box-shadow: 0 0 22px -4px var(--cyan);
  transform-origin: bottom;
  animation: pillar 3.2s ease-in-out infinite;
  animation-delay: var(--t);
}
@keyframes pillar { 0%, 100% { transform: scaleY(0.75); opacity: 0.7; } 50% { transform: scaleY(1); opacity: 1; } }

/* Vault */
.vault {
  position: relative;
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
}
.vault .ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed rgba(62, 240, 255, 0.5);
}
.vault .r1 { inset: 0; animation: spin 14s linear infinite; }
.vault .r2 { inset: 18px; border-color: rgba(255, 79, 216, 0.55); border-style: dotted; border-width: 2px; animation: spin 9s linear infinite reverse; }
.vault .r3 { inset: 36px; border-style: solid; border-color: rgba(139, 92, 246, 0.6); border-top-color: transparent; animation: spin 3s linear infinite; }
.vault svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px var(--cyan));
}

/* =========================================================
   PROCESS
   ========================================================= */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
}
.steps::before {
  content: "";
  position: absolute;
  top: 31px;
  left: 32px;
  right: 32px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink));
  opacity: 0.5;
}
.step { position: relative; }
.step-dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 28px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  transition: transform 0.5s var(--ease), box-shadow 0.5s, border-color 0.5s;
}
.step-dot::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--grad);
  opacity: 0.16;
  transition: opacity 0.5s;
}
.step:hover .step-dot { transform: scale(1.1); border-color: var(--cyan); box-shadow: 0 0 40px -6px var(--cyan); }
.step:hover .step-dot::after { opacity: 0.5; }
.step h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; letter-spacing: -0.03em; line-height: 1; }
.step small { display: block; margin: 8px 0 14px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); }
.step p { color: var(--muted); font-size: 15px; }

/* =========================================================
   STATS
   ========================================================= */
.stats {
  border-block: 1px solid var(--line);
  background:
    radial-gradient(ellipse 50% 100% at 50% 0%, rgba(62, 240, 255, 0.07), transparent),
    rgba(255, 255, 255, 0.015);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 56px 24px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat small { display: block; margin-top: 12px; color: var(--muted); font-size: 14px; }

/* =========================================================
   BUILD / TERMINAL
   ========================================================= */
.build-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.build-copy .btn { margin-top: 36px; }

.terminal {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(8, 10, 24, 0.85);
  border: 1px solid var(--line-2);
  box-shadow:
    0 40px 120px -30px rgba(139, 92, 246, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  transform: perspective(1400px) rotateY(-6deg) rotateX(3deg);
  transition: transform 0.8s var(--ease);
}
.terminal:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.terminal-bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.terminal-bar i:nth-child(2) { background: #febc2e; }
.terminal-bar i:nth-child(3) { background: #28c840; }
.terminal-bar span { margin-left: auto; margin-right: auto; padding-right: 52px; font-family: var(--font-mono); font-size: 12px; color: var(--dim); }

.terminal-body {
  min-height: 300px;
  padding: 24px 22px 28px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--muted);
  white-space: pre-wrap;
  word-break: break-word;
}
.terminal-body .p  { color: var(--pink); }
.terminal-body .c  { color: var(--text); }
.terminal-body .ok { color: var(--lime); }
.terminal-body .ar { color: var(--cyan); }
.terminal-body .hl { color: var(--cyan); font-weight: 500; }
.terminal-body .cur {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  vertical-align: -0.2em;
  background: var(--cyan);
  animation: blink 1s steps(2) infinite;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.contact-list { margin-top: 40px; display: grid; gap: 4px; }
.contact-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list small {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 4px;
}
.contact-list a,
.contact-list span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  letter-spacing: -0.02em;
  word-break: break-word;
}
.contact-list a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.5s var(--ease), color 0.3s; }
.contact-list a:hover { color: var(--cyan); background-size: 100% 1px; }

.contact-form {
  padding: clamp(24px, 3.5vw, 40px);
  border-radius: var(--radius);
  display: grid;
  gap: 20px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; border: 0; min-width: 0; }
.field > span { font-size: 13px; font-weight: 500; color: var(--muted); }

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  background: rgba(5, 6, 15, 0.5);
  font-size: 15px;
  outline: none;
  resize: vertical;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--dim); }
.field input:focus,
.field textarea:focus {
  border-color: var(--cyan);
  background: rgba(5, 6, 15, 0.75);
  box-shadow: 0 0 0 4px rgba(62, 240, 255, 0.12);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips i {
  display: inline-block;
  font-style: normal;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  transition: all 0.3s var(--ease);
}
.chips label:hover i { border-color: rgba(255, 255, 255, 0.35); color: var(--text); }
.chips input:checked + i {
  color: #05060f;
  font-weight: 600;
  border-color: transparent;
  background: var(--grad);
  box-shadow: 0 6px 24px -8px rgba(255, 79, 216, 0.8);
}
.chips input:focus-visible + i { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  position: relative;
  padding-top: 80px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-tag { color: var(--muted); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.footer-links a { font-size: 14px; color: var(--muted); transition: color 0.3s; }
.footer-links a:hover { color: var(--cyan); }

.footer-word {
  margin: 50px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 12.5vw, 11.5rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14);
  background: var(--grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.22;
  transition: opacity 0.8s var(--ease);
  user-select: none;
}
.footer:hover .footer-word { opacity: 0.9; animation: gradShift 6s linear infinite; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 28px 0 34px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--dim);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 200;
  max-width: calc(100% - 32px);
  padding: 14px 22px;
  border-radius: 14px;
  background: rgba(10, 12, 29, 0.92);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(14px);
  font-size: 14px;
  box-shadow: 0 20px 60px -20px rgba(62, 240, 255, 0.5);
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .b-ocean { grid-column: span 6; grid-row: auto; }
  .b-lang, .b-agri { grid-column: span 3; }
  .hero-chip { display: none; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    background: rgba(5, 6, 15, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
  }
  .nav-links a {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.5s var(--ease), opacity 0.5s, color 0.3s;
  }
  .nav-links .nav-cta { margin: 16px 0 0; font-size: 1.2rem; padding: 12px 28px; }
  .nav-open .nav-links { opacity: 1; visibility: visible; }
  .nav-open .nav-links a { transform: none; opacity: 1; }
  .nav-open .nav-links a:nth-child(2) { transition-delay: 0.05s; }
  .nav-open .nav-links a:nth-child(3) { transition-delay: 0.1s; }
  .nav-open .nav-links a:nth-child(4) { transition-delay: 0.15s; }
  .nav-open .nav-links a:nth-child(5) { transition-delay: 0.2s; }
  .nav-open { overflow: hidden; }

  .hero { align-items: flex-end; padding-top: calc(var(--nav-h) + 42vh); }
  .bloom { opacity: 0.9; }

  .about-grid,
  .build-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .name-card:nth-child(2),
  .name-card:nth-child(3) { margin-left: 0; }

  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .steps::before { display: none; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .terminal,
  .terminal:hover { transform: none; }
}

@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .service-grid { grid-template-columns: 1fr; }
  .service { min-height: 0; }

  .bento { grid-template-columns: 1fr; }
  .b-ocean, .b-lang, .b-agri, .b-twin, .b-vault { grid-column: auto; }
  .b-ocean, .b-vault { flex-direction: column; align-items: stretch; }
  .radar { width: min(260px, 80%); align-self: center; }
  .vault { align-self: center; }
  .bento-card { padding: 26px; }

  .field-row { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-meta { gap: 12px 22px; }
  .name-origin { position: static; display: block; margin-bottom: 10px; }
  .terminal-body { font-size: 12px; padding: 18px 16px 22px; }
  .terminal-bar span { padding-right: 0; font-size: 11px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; translate: none; filter: none; }
}
