:root {
  --bg: #f4f6f5;
  --surface: #ffffff;
  --dark: #0e1211;
  --dark-2: #151a19;
  --border: #e0e5e2;
  --border-dark: rgba(255, 255, 255, 0.09);
  --text: #0e1211;
  --muted: #5f6b66;
  --muted-dark: #8b9791;
  --mint: #0fbf95;
  --mint-bright: #3be0b4;
  --mint-dark: #0a8f70;
  --radius: 22px;
  --font-head: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--mint); color: #fff; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.02; letter-spacing: -0.03em; }

a { color: inherit; text-decoration: none; }

em { font-style: normal; }
.mint { color: var(--mint); }
.outline {
  color: transparent;
  -webkit-text-stroke: 1.5px currentColor;
  text-stroke: 1.5px currentColor;
}
h2 .outline, h1 .outline { -webkit-text-stroke-color: var(--text); }
.section-dark .outline { -webkit-text-stroke-color: #fff; }

/* film grain */
/* static grain: the animated version kept a viewport-sized layer repainting forever */
.noise {
  position: fixed; inset: 0; z-index: 99; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.035;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  z-index: 50; width: min(1200px, calc(100% - 32px));
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(224, 229, 226, 0.9);
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(14, 18, 17, 0.06);
}
.logo { display: flex; align-items: center; gap: 11px; }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 11px;
  background: var(--dark); color: var(--mint-bright);
  font-family: var(--font-head); font-weight: 700; font-size: 18px;
}
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 16px; }
.logo-text span { color: var(--muted); font-weight: 400; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: var(--muted); font-weight: 500; font-size: 14px;
  padding: 8px 16px; border-radius: 999px; transition: all 0.25s ease;
  display: inline-block;
}
.nav-links a:hover { color: var(--text); background: rgba(14, 18, 17, 0.05); }
.nav-cta {
  background: var(--dark); color: #fff !important; font-weight: 600;
}
.nav-cta:hover { background: var(--mint-dark) !important; }

.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 10px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 6px 0; border-radius: 2px; transition: transform 0.3s ease; }
body.menu-open .nav-burger span:first-child { transform: translateY(4px) rotate(45deg); }
body.menu-open .nav-burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 16px 34px; border-radius: 999px;
  font-weight: 600; font-size: 15px; font-family: var(--font-body);
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--mint-dark); box-shadow: 0 14px 40px rgba(15, 191, 149, 0.35); }
.btn-line { border-color: var(--text); color: var(--text); background: transparent; }
.btn-line:hover { background: var(--text); color: var(--bg); }
.btn-mint { background: var(--mint); color: #06231b; }
.btn-mint:hover { background: var(--mint-bright); box-shadow: 0 14px 44px rgba(59, 224, 180, 0.4); }
.btn-wide { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
}
#blob-canvas {
  position: absolute; top: 0; right: -6%;
  width: 62vw; height: 100%;
  pointer-events: none;
  z-index: 1;
}
.hero-inner {
  position: relative; z-index: 2;
  width: min(1200px, 100%); margin: 0 auto; padding: 140px 32px 80px;
}
.hero-kicker {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 34px;
  overflow: hidden;
}
.hero-kicker span { display: inline-block; }
.hero-title {
  font-size: clamp(52px, 9.2vw, 138px);
  font-weight: 600;
  text-transform: none;
}
/* extra bottom padding keeps descenders (the "y" tail) visible under the reveal mask */
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.hero-title .line > span { display: inline-block; will-change: transform; }

.hero-bottom {
  margin-top: 56px;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 48px; flex-wrap: wrap;
}
.hero-sub { max-width: 440px; color: var(--muted); font-size: 17px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute; left: 32px; bottom: 28px; z-index: 2;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 12px;
}
.hero-scroll-bar {
  display: inline-block; width: 60px; height: 1px; background: var(--border);
  position: relative; overflow: hidden;
}
.hero-scroll-bar::after {
  content: ""; position: absolute; left: -40%; top: 0; height: 100%; width: 40%;
  background: var(--mint);
  animation: scrollbar 1.8s ease-in-out infinite;
}
@keyframes scrollbar { to { left: 100%; } }

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden; padding: 22px 0;
  transform: rotate(-1.2deg) scale(1.02);
  margin: 0 -20px;
}
.marquee-track {
  display: flex; gap: 44px; align-items: center; width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee-track span {
  font-family: var(--font-head); font-size: 26px; font-weight: 500;
  white-space: nowrap; letter-spacing: -0.01em;
}
.marquee-track i { color: var(--mint); font-style: normal; font-size: 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 140px 0; position: relative; }
.section-dark {
  background: var(--dark); color: #f0f4f2;
  border-radius: 40px;
  margin: 0 16px;
}
.section-dark .eyebrow { color: var(--mint-bright); }

.section-head { margin-bottom: 72px; }
.eyebrow {
  font-family: var(--font-mono); color: var(--mint-dark); font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 22px;
}
h2 { font-size: clamp(38px, 5.6vw, 76px); font-weight: 600; }

/* ---------- Product cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 32px 32px;
  display: flex; flex-direction: column; gap: 16px;
  transform-style: preserve-3d; will-change: transform;
  overflow: hidden;
}
.card-glow {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(15, 191, 149, 0.13), transparent 65%);
  transition: opacity 0.3s ease;
}
.card:hover .card-glow { opacity: 1; }
.card:hover { border-color: rgba(15, 191, 149, 0.5); }

.card-top { display: flex; justify-content: space-between; align-items: baseline; }
.card-num { font-family: var(--font-mono); font-size: 13px; color: var(--mint-dark); }
.card-tag {
  font-family: var(--font-mono); color: var(--muted); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.card h3 { font-size: clamp(26px, 2.4vw, 34px); font-weight: 600; margin-top: 6px; }
.card p { color: var(--muted); font-size: 15px; }
.card ul { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-top: 2px; }
.card ul li { font-size: 14.5px; padding-left: 24px; position: relative; }
.card ul li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 12px; height: 6px;
  border-left: 2px solid var(--mint); border-bottom: 2px solid var(--mint);
  transform: rotate(-45deg);
}
.card-link {
  margin-top: auto; padding-top: 16px;
  font-weight: 600; font-size: 15px; color: var(--mint-dark);
  display: inline-flex; gap: 6px; align-items: center;
}
.card-link span { transition: transform 0.25s ease; display: inline-block; }
.card-link:hover span { transform: translate(3px, -3px); }

/* ---------- Services rows ---------- */
.rows { display: flex; flex-direction: column; }
.row {
  display: grid; grid-template-columns: 90px 1.1fr 1.6fr 60px;
  align-items: center; gap: 28px;
  padding: 40px 8px;
  border-bottom: 1px solid var(--border-dark);
  transition: padding 0.3s ease, background 0.3s ease;
  position: relative;
}
.row:first-child { border-top: 1px solid var(--border-dark); }
.row-num { font-family: var(--font-mono); font-size: 14px; color: var(--mint-bright); }
.row-title { font-family: var(--font-head); font-size: clamp(22px, 2.6vw, 32px); font-weight: 600; letter-spacing: -0.02em; }
.row-desc { color: var(--muted-dark); font-size: 15px; }
.row-arrow {
  font-size: 26px; justify-self: end; color: var(--mint-bright);
  transform: translateX(-14px); opacity: 0; transition: all 0.3s ease;
}
.row:hover { background: rgba(255, 255, 255, 0.03); padding-left: 22px; }
.row:hover .row-arrow { transform: translateX(0); opacity: 1; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center; }
.about-lead { color: var(--muted); margin-top: 26px; font-size: 17px; max-width: 480px; }
.about-stats { display: flex; gap: 52px; margin-top: 48px; flex-wrap: wrap; }
.about-stats div { display: flex; flex-direction: column; }
.about-stats strong { font-family: var(--font-head); font-size: 40px; font-weight: 600; letter-spacing: -0.02em; }
.about-stats span { color: var(--muted); font-size: 14px; }

.about-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px 36px;
  box-shadow: 0 12px 40px rgba(14, 18, 17, 0.07);
}
.about-card-img {
  position: absolute; bottom: -60px; right: -70px; width: 250px;
  opacity: 0.85; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 45%, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 45%, transparent 72%);
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(3deg); }
}
.about-card h4 {
  font-family: var(--font-mono); font-weight: 500; font-size: 15px;
  color: var(--mint-dark); letter-spacing: 0.02em; margin-bottom: 28px;
  position: relative;
}
.about-card ul { list-style: none; display: flex; flex-direction: column; gap: 20px; position: relative; }
.about-card li { display: flex; flex-direction: column; font-size: 16px; font-weight: 500; }
.about-card li span {
  font-family: var(--font-mono); color: var(--muted); font-size: 11.5px; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 3px;
}

/* ---------- Contact ---------- */
.contact { text-align: left; }
.contact-title { margin-bottom: 40px; }
.contact-mail {
  font-family: var(--font-head);
  font-size: clamp(22px, 3.6vw, 44px); font-weight: 600;
  color: var(--mint-bright);
  display: inline-flex; align-items: center; gap: 10px;
  border-bottom: 2px solid rgba(59, 224, 180, 0.35);
  padding-bottom: 6px;
  transition: border-color 0.25s ease;
}
.contact-mail:hover { border-color: var(--mint-bright); }
.contact-mail span { font-size: 0.7em; }

.contact-form {
  max-width: 620px; margin-top: 64px;
  display: flex; flex-direction: column; gap: 14px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%; padding: 17px 22px; border-radius: 16px;
  background: var(--dark-2); border: 1px solid var(--border-dark);
  color: #f0f4f2; font-family: var(--font-body); font-size: 15px;
  outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}
.contact-form select option { color: var(--text); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 4px rgba(15, 191, 149, 0.15);
}
.contact-form ::placeholder { color: #6d7a74; }

/* ---------- Footer ---------- */
.footer { padding: 72px 0 44px; }
.footer-inner { display: flex; flex-direction: column; gap: 26px; align-items: center; text-align: center; }
.footer-inner > div:first-child { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer-inner strong { font-family: var(--font-head); }
.footer-inner p { color: var(--muted); font-size: 14px; }
.footer-inner p a { color: var(--mint-dark); }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--muted); font-size: 14.5px; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--mint-dark); }
.footer-copy { color: #9aa6a0 !important; font-size: 13px !important; }

/* ---------- Reveal helpers ---------- */
.reveal, .reveal-line span { opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cards { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 48px; }
  .row { grid-template-columns: 60px 1fr 40px; }
  .row-desc { display: none; }
  #blob-canvas { opacity: 0.5; width: 100vw; right: -20%; }
  .section { padding: 100px 0; }
  .float-img-services { top: -60px; width: 200px; opacity: 0.9; }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(18px);
    border: 1px solid var(--border); border-radius: 24px;
    padding: 16px;
    box-shadow: 0 20px 50px rgba(14, 18, 17, 0.12);
  }
  .nav-links a { padding: 12px 16px; font-size: 16px; text-align: center; }
  body.menu-open .nav-links { display: flex; }
  .nav-burger { display: block; }
  .hero-inner { padding-top: 120px; }
  .hero-bottom { margin-top: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .marquee-track span { font-size: 20px; }
  .section-dark { margin: 0 8px; border-radius: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .about-card-img, .hero-scroll-bar::after { animation: none !important; }
  html { scroll-behavior: auto; }
}
