:root {
  --abyss: #06211c;
  --petrol: #0e463c;
  --petrol-2: #0a352d;
  --algae: #2fbe86;
  --algae-deep: #189d6b;
  --lime: #c6f24e;
  --brand: #f0692a;
  --brand-soft: #f68a52;
  --mist: #eaf4ef;
  --mist-dim: #a9c6ba;
  --slate: #06120f;
  --line: rgba(233, 244, 239, 0.12);
  --card: rgba(233, 244, 239, 0.04);

  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --wrap: 1140px;
  --r: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--abyss);
  color: var(--mist);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--lime); color: var(--slate); padding: 8px 14px; border-radius: 8px; font-weight: 600;
}
.skip:focus { left: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--algae); margin-bottom: 16px;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; background: var(--brand);
  transform: rotate(45deg); flex: none;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.btn--solid { background: var(--algae); color: var(--slate); }
.btn--solid:hover { background: var(--lime); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line); color: var(--mist); }
.btn--ghost:hover { border-color: var(--algae); color: var(--algae); transform: translateY(-2px); }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 33, 28, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__logo { height: 30px; width: auto; }
.brand__name { font-family: var(--display); font-weight: 700; letter-spacing: 0.14em; font-size: 16px; color: var(--mist); }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { font-size: 15px; color: var(--mist-dim); transition: color .16s ease; }
.nav__links a:hover { color: var(--mist); }
.nav__cta { margin-left: 8px; }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav__burger span { width: 24px; height: 2px; background: var(--mist); border-radius: 2px; transition: .2s; }
.nav__drawer { display: none; flex-direction: column; gap: 4px; padding: 12px 24px 22px; border-bottom: 1px solid var(--line); background: var(--petrol-2); }
.nav__drawer a { padding: 12px 4px; color: var(--mist); border-bottom: 1px solid var(--line); }
.nav__drawer .btn { margin-top: 12px; }

/* HERO */
.hero { position: relative; padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 110px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 78% 18%, rgba(47, 190, 134, 0.20), transparent 60%),
    radial-gradient(50% 60% at 8% 90%, rgba(198, 242, 78, 0.08), transparent 60%),
    linear-gradient(180deg, var(--abyss), var(--petrol-2));
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero__title { font-size: clamp(38px, 6vw, 68px); font-weight: 700; }
.hero__title .hl { color: var(--algae); }
.hero__lead { margin-top: 22px; font-size: 19px; color: var(--mist-dim); max-width: 33ch; }
.hero__lead strong { color: var(--mist); font-weight: 600; }
.hero__actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero__facts { display: flex; gap: 30px; margin: 42px 0 0; flex-wrap: wrap; }
.hero__facts div { display: flex; flex-direction: column; }
.hero__facts dt { font-family: var(--mono); font-size: 17px; color: var(--lime); font-weight: 500; }
.hero__facts dd { margin: 4px 0 0; font-size: 13.5px; color: var(--mist-dim); }

/* Signature reactor */
.hero__stage { position: relative; display: flex; justify-content: center; align-items: center; min-height: 440px; }
.reactor { position: relative; display: flex; flex-direction: column; align-items: center; }
.reactor__lights {
  position: absolute; left: -26px; top: 8%; bottom: 12%; width: 8px; border-radius: 8px;
  background: linear-gradient(180deg, var(--lime), rgba(198, 242, 78, 0.15));
  box-shadow: 0 0 22px 4px rgba(198, 242, 78, 0.35);
  animation: glow 3.4s ease-in-out infinite;
}
.reactor__glass {
  position: relative; width: 128px; height: 400px; border-radius: 64px;
  background: linear-gradient(100deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02));
  border: 1px solid rgba(233,244,239,0.18);
  overflow: hidden; box-shadow: inset 0 0 30px rgba(0,0,0,0.35);
}
.reactor__cap { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 54px; height: 16px; border-radius: 8px; background: #123; border: 1px solid var(--line); }
.reactor__liquid {
  position: absolute; left: 0; right: 0; bottom: 0; height: 86%;
  background: linear-gradient(180deg, rgba(47,190,134,0.55), var(--algae-deep) 60%, #0c6b48);
}
.reactor__diffuser { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 70px; height: 6px; border-radius: 4px; background: #06342a; box-shadow: 0 0 8px rgba(0,0,0,.4); }
.reactor__tag { margin-top: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--mist-dim); }

.bubbles { position: absolute; inset: 0; }
.bubbles i {
  position: absolute; bottom: 4px; width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #eafff5, rgba(198,242,78,0.5));
  opacity: 0; animation: rise linear infinite;
}
@keyframes rise {
  0% { transform: translateY(0) scale(0.7); opacity: 0; }
  12% { opacity: .9; }
  90% { opacity: .8; }
  100% { transform: translateY(-330px) scale(1.15); opacity: 0; }
}
@keyframes glow { 0%,100% { opacity: .75; } 50% { opacity: 1; } }

/* Telemetry card */
.telemetry {
  position: absolute; right: -6px; top: 26px; width: 260px;
  background: rgba(9, 46, 38, 0.82); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.telemetry__head { font-family: var(--mono); font-size: 12px; color: var(--mist-dim); display: flex; align-items: center; gap: 8px; letter-spacing: 0.08em; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--algae); box-shadow: 0 0 8px var(--algae); animation: blink 2s ease-in-out infinite; }
.dot--amber { background: var(--brand); box-shadow: 0 0 8px var(--brand); animation: none; }
.dot--dim { background: #3a5a50; box-shadow: none; animation: none; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.telemetry__grid { list-style: none; margin: 14px 0 10px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.telemetry__grid .k { display: block; font-size: 11px; color: var(--mist-dim); font-family: var(--mono); letter-spacing: 0.06em; }
.telemetry__grid .v { display: block; font-family: var(--mono); font-size: 17px; color: var(--mist); font-weight: 500; margin-top: 2px; }
.telemetry__grid .v--tag { color: var(--lime); }
.spark { width: 100%; height: 40px; }

/* SECTIONS */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section__head { max-width: 720px; margin-bottom: 52px; }
.section__head h2 { font-size: clamp(28px, 4vw, 44px); }
.section__sub { margin-top: 18px; color: var(--mist-dim); font-size: 18px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 28px 24px 26px; transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(47,190,134,0.5); background: rgba(47,190,134,0.06); }
.card__code { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--algae); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; }
.card h3 { font-size: 20px; margin: 18px 0 10px; }
.card p { color: var(--mist-dim); font-size: 15.5px; }

/* SOFTWARE */
.software { background: linear-gradient(180deg, var(--petrol-2), var(--abyss)); border-block: 1px solid var(--line); }
.software__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.software__title { font-size: clamp(34px, 5vw, 56px); color: var(--algae); letter-spacing: 0.02em; }
.feature { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; }
.feature li { position: relative; padding-left: 30px; color: var(--mist-dim); font-size: 16px; }
.feature li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 12px; border-radius: 3px;
  background: var(--algae); box-shadow: 0 0 10px rgba(47,190,134,0.6);
}
.feature strong { color: var(--mist); font-weight: 600; }

/* Dashboard mock */
.dash { background: rgba(9, 46, 38, 0.7); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,0.4); }
.dash__bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: rgba(0,0,0,0.15); }
.dash__title { font-family: var(--mono); font-size: 12px; color: var(--mist-dim); margin-left: 8px; }
.dash__body { padding: 22px 22px 20px; }
.gauge { display: grid; grid-template-columns: 130px 1fr auto; align-items: center; gap: 14px; margin-bottom: 16px; }
.gauge__label { font-size: 13px; color: var(--mist-dim); }
.gauge__track { height: 8px; border-radius: 8px; background: rgba(233,244,239,0.08); overflow: hidden; }
.gauge__fill { height: 100%; width: var(--p); border-radius: 8px; background: linear-gradient(90deg, var(--algae), var(--lime)); }
.gauge__fill--2 { background: linear-gradient(90deg, #2fbe86, #52d4a5); }
.gauge__fill--3 { background: linear-gradient(90deg, #189d6b, #2fbe86); }
.gauge__val { font-family: var(--mono); font-size: 13px; color: var(--mist); }
.dash__cols { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; margin: 20px 0 16px; height: 60px; align-items: end; }
.dash__cols span { display: block; background: linear-gradient(180deg, var(--algae), rgba(47,190,134,0.25)); border-radius: 3px 3px 0 0; }
.dash__foot { font-family: var(--mono); font-size: 12px; color: var(--mist-dim); }
.dash__foot b { color: var(--algae); font-weight: 600; }

/* FLOW */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none; }
.flow__step { position: relative; padding: 26px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.flow__step::after { content: "→"; position: absolute; right: -16px; top: 50%; transform: translateY(-50%); color: var(--algae); font-size: 18px; }
.flow__step:last-child::after { display: none; }
.flow__n { font-family: var(--mono); font-size: 13px; color: var(--lime); letter-spacing: 0.1em; }
.flow__step h3 { font-size: 19px; margin: 12px 0 8px; }
.flow__step p { color: var(--mist-dim); font-size: 14.5px; }

/* METRICS */
.metrics { background: var(--mist); color: var(--slate); }
.metrics__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: clamp(48px, 6vw, 76px) 24px; }
.metric { display: flex; flex-direction: column; gap: 10px; }
.metric__n { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 4.4vw, 50px); color: var(--algae-deep); letter-spacing: -0.02em; }
.metric__l { font-size: 15px; color: #33544a; max-width: 22ch; }

/* EMPRESA */
.empresa__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: start; }
.empresa__text { display: grid; gap: 18px; color: var(--mist-dim); font-size: 18px; }
.empresa__text strong { color: var(--algae); font-weight: 600; }

/* CONTACT */
.contact { padding: clamp(64px, 9vw, 110px) 0; background: linear-gradient(180deg, var(--abyss), var(--petrol)); }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.contact__title { font-size: clamp(28px, 4vw, 46px); }
.contact__sub { margin-top: 18px; color: var(--mist-dim); font-size: 18px; }
.contact__form { display: grid; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.contact__form label { display: grid; gap: 8px; font-size: 13px; font-family: var(--mono); letter-spacing: 0.06em; color: var(--mist-dim); text-transform: uppercase; }
.contact__form input, .contact__form textarea {
  font-family: var(--body); font-size: 16px; color: var(--mist);
  background: rgba(6,18,15,0.5); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; resize: vertical;
}
.contact__form input:focus, .contact__form textarea:focus { outline: 2px solid var(--algae); outline-offset: 1px; border-color: transparent; }
.contact__note { font-family: var(--body); text-transform: none; letter-spacing: 0; color: var(--algae); font-size: 14px; }

/* FOOTER */
.foot { border-top: 1px solid var(--line); background: var(--petrol-2); padding: 56px 0 30px; }
.foot__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.foot__logo { height: 34px; width: auto; }
.foot__brand p { color: var(--mist-dim); margin-top: 14px; font-size: 15px; max-width: 36ch; }
.foot__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.foot__cols a { display: block; color: var(--mist-dim); font-size: 14.5px; padding: 5px 0; transition: color .16s; }
.foot__cols a:hover { color: var(--algae); }
.foot__h { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mist); margin-bottom: 10px; }
.foot__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: 13px; color: var(--mist-dim); }
.foot__legal .mono { font-family: var(--mono); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero__grid, .software__grid, .contact__inner, .empresa__grid { grid-template-columns: 1fr; }
  .hero__stage { min-height: 400px; margin-top: 12px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow__step:nth-child(2)::after { display: none; }
  .metrics__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav[data-open="true"] .nav__drawer { display: flex; }
}
@media (max-width: 560px) {
  .cards, .metrics__grid, .foot__inner, .foot__cols { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow__step::after { display: none; }
  .telemetry { position: relative; right: auto; top: 22px; width: 100%; }
  .hero__stage { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .bubbles i, .reactor__lights, .dot { animation: none !important; }
}
