/* ── Variables ── */
:root {
  --bg:        #080c10;
  --bg2:       #0c1118;
  --surface:   #111820;
  --surface2:  #161e28;
  --teal:      #2ec4b6;
  --teal2:     #4dd9cc;
  --lime:      #a8e063;
  --glow-teal: rgba(46, 196, 182, 0.12);
  --glow-lime: rgba(168, 224, 99, 0.08);
  --border:    rgba(255, 255, 255, 0.06);
  --border2:   rgba(255, 255, 255, 0.11);
  --text:      #dde8f0;
  --text2:     #7a92a8;
  --text3:     #3d5266;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Cabin', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  position: relative;
}

/* ── Grid texture ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(46,196,182,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,196,182,0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
  z-index: 0;
}

/* ── Orb glows ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 600px at 90% 10%, rgba(46,196,182,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 10% 90%, rgba(168,224,99,0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Layout utility ── */
main { position: relative; z-index: 1; }

/* ── Keyframes ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── prefers-reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  [data-animate] { animation: none !important; opacity: 1 !important; }
}

/* ── Navbar ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(8, 12, 16, 0.85);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.nav-wordmark {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}
.nav-dot { color: var(--teal); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text2);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--teal) !important;
  color: var(--teal) !important;
  border-radius: 2px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--glow-teal) !important; }
.nav-toggle { display: none; }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 14rem 3rem 8rem;
}
.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--teal2);
  animation: fadeUp 0.5s ease both;
}
.eyebrow::before,
.eyebrow::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--teal2);
  opacity: 0.4;
}
.hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  animation: fadeUp 0.5s ease both;
}
.gradient-text {
  background: linear-gradient(135deg, var(--teal), var(--lime));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  max-width: 560px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text2);
  animation: fadeUp 0.5s ease both;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.5s ease both;
}
.btn-primary {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, var(--teal), var(--lime));
  color: var(--bg);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 2px;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  box-shadow: 0 10px 35px rgba(46, 196, 182, 0.3);
}
.btn-ghost {
  display: inline-block;
  padding: 0.85rem 2rem;
  border: 1px solid var(--border2);
  color: var(--text2);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover {
  border-color: var(--text2);
  color: var(--text);
}

/* ── Clients strip ── */
.clients {
  border-top: 1px solid var(--border);
  padding: 2.5rem 3rem;
}
.clients-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.clients-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text3);
  white-space: nowrap;
}
.clients-badges {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.client-badge {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text2);
}
.client-sep { color: var(--border2); }

/* ── Marquee ── */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  overflow: hidden;
  padding: 1rem 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 20s linear infinite;
}
.marquee-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text2);
  white-space: nowrap;
}
.msep {
  font-size: 0.35rem;
  color: var(--teal);
  line-height: 1;
}

/* ── Products ── */
.products {
  padding: 10rem 3rem;
}
.products-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text3);
  margin-bottom: 4rem;
}
.product-card {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 4rem;
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  transition: background 0.3s;
  overflow: hidden;
}
.product-card:last-child { border-bottom: 1px solid var(--border); }
.product-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--teal), var(--lime));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s ease;
}
.product-card:hover::before { transform: scaleY(1); }
.product-card:hover { background: rgba(17, 24, 32, 0.6); }
.product-client-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal2);
  text-decoration: none;
  margin-bottom: 1.2rem;
  transition: color 0.2s;
}
.product-client-badge:hover { color: var(--teal); }
.product-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 2rem;
}
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--border2);
  border-radius: 2px;
  color: var(--text3);
  transition: border-color 0.2s, color 0.2s;
}
.tag:hover {
  border-color: rgba(46,196,182,0.35);
  color: var(--text2);
}
.tag.hi {
  border-color: rgba(46,196,182,0.35);
  color: var(--teal2);
  background: rgba(46,196,182,0.06);
}
.product-right { display: flex; align-items: center; }
.product-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text2);
}

/* ── Services ── */
.services {
  padding: 10rem 3rem;
  background: var(--bg2);
}
.services-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--border);
  gap: 1px;
  margin-top: 4rem;
}
.service-card {
  position: relative;
  background: var(--bg2);
  padding: 3.5rem;
  overflow: hidden;
  transition: background 0.3s;
}
.service-card:hover { background: var(--surface); }
.service-num {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--border2);
  transition: color 0.3s;
  pointer-events: none;
  user-select: none;
}
.service-card:hover .service-num { color: var(--glow-teal); }
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--lime));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.2rem;
  position: relative;
}
.service-desc {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text2);
  position: relative;
}

/* ── Stack ── */
.stack {
  padding: 10rem 3rem;
}
.stack-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--border);
  gap: 1px;
  margin-top: 4rem;
}
.stack-col {
  background: var(--bg);
  padding: 2.5rem;
}
.stack-layer {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--teal2);
  margin-bottom: 1.5rem;
}
.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── CTA Section ── */
.cta-section {
  padding: 8rem 3rem;
  background: var(--bg2);
}
.cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}
.cta-box {
  position: relative;
  max-width: 800px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border2);
  padding: 7rem 4rem;
  text-align: center;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(46,196,182,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-box::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(168,224,99,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.cta-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.2rem;
  position: relative;
}
.cta-sub {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text2);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  position: relative;
}
.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
}
.cta-email {
  font-size: 0.82rem;
  color: var(--text3);
  text-decoration: none;
  transition: color 0.2s;
}
.cta-email:hover { color: var(--text2); }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 3rem;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.footer-legal {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text3);
  line-height: 1.6;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-size: 0.78rem;
  color: var(--text3);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text2); }

/* ── Mobile nav toggle ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text2);
  transition: background 0.2s;
}
.nav-toggle:hover span { background: var(--text); }

/* ── Responsive: tablet (≤ 1024px) ── */
@media (max-width: 1024px) {
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── Responsive: mobile (≤ 768px) ── */
@media (max-width: 768px) {
  /* nav */
  .nav-inner { padding: 1rem 1.5rem; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(8, 12, 16, 0.97);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1.2rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-cta { align-self: flex-start; }

  /* hero */
  .hero { padding: 10rem 1.5rem 5rem; }
  .hero h1 { font-size: clamp(2.2rem, 8vw, 3.5rem); }

  /* sections */
  .products  { padding: 6rem 1.5rem; }
  .services  { padding: 6rem 1.5rem; }
  .stack     { padding: 6rem 1.5rem; }
  .cta-section { padding: 5rem 1.5rem; }
  .clients   { padding: 2rem 1.5rem; }
  .footer    { padding: 2rem 1.5rem; }

  /* grids → single column */
  .services-grid { grid-template-columns: 1fr; }
  .stack-grid    { grid-template-columns: 1fr; }

  /* CTA box */
  .cta-box { padding: 3.5rem 2rem; }

  /* footer */
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { justify-content: center; }
}
