/* ============================================================
   ROMBOLD LABS — MAIN STYLESHEET
   Colors: #0a0a0a (bg), #f5f5f5 (text), #e8ff00 (accent)
   Font: Inter
   ============================================================ */

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

:root {
  --bg: #0d0d1a;
  --bg-2: #12122a;
  --bg-3: #1a1a35;
  --text: #f5f5f5;
  --text-muted: #9090b0;
  --accent: #00d4ff;
  --accent-dark: #00a8cc;
  --border: #2a2a4a;
  --radius: 4px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1100px;
  --section-gap: 120px;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a, button {
  touch-action: manipulation;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-gap) 0;
}

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: rgba(13, 13, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a.active {
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

.nav-cta {
  color: var(--accent) !important;
  font-weight: 600 !important;
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #0d0d0d;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--text-muted);
  background: var(--bg-3);
}

.btn-large {
  padding: 18px 40px;
  font-size: 17px;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(0,212,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  overflow: hidden;
}

/* Text block — top 62% */
.hero-text {
  flex: 0 0 62vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 40px 0;
  position: relative;
  z-index: 2;
  transform: translateY(64px);
  animation: heroFadeIn 0.9s ease forwards;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(84px);
  }
  to {
    opacity: 1;
    transform: translateY(64px);
  }
}

/* Grid floor — bottom 38% */
.hero-grid-wrap {
  flex: 0 0 38vh;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}


/* Fade the near-horizon top of the grid so it blends in */
.hero-grid-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

/* The actual grid plane — CSS 3D perspective handles corners correctly */
.grid-plane {
  position: absolute;
  top: 0;
  left: -150%;
  right: -150%;
  bottom: -50%;
  background-image:
    linear-gradient(rgba(0,212,255,0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.6) 1px, transparent 1px);
  background-size: 40px 40px;
  transform: perspective(350px) rotateX(55deg);
  transform-origin: top center;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero-headline {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -2px;
  margin-bottom: 28px;
  color: var(--text);
}

.hero-sub {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   WEDGE
   ============================================================ */

.wedge {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 28px;
}

.section-body {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 20px;
  line-height: 1.75;
}

.section-body.highlight {
  color: var(--text);
  font-weight: 500;
}

/* ============================================================
   SERVICES CARDS
   ============================================================ */

.services-overview {
  background: var(--bg);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 56px;
  border: 1px solid var(--border);
}

.card {
  padding: 48px 36px;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  transition: background 0.2s;
}

.card:last-child {
  border-right: none;
}

.card:hover {
  background: var(--bg-3);
}

.card-number {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 20px;
}

.card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.card-body {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.card-tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.5px;
}

.services-cta {
  margin-top: 48px;
}

/* ============================================================
   ABOUT STRIP
   ============================================================ */

.about-strip {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-strip-inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 80px;
  align-items: center;
}

.about-strip-text h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.about-strip-text p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 560px;
}

.about-strip-stat {
  text-align: center;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat-number {
  display: block;
  font-size: 80px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -4px;
}

.stat-label {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.4;
}

/* ============================================================
   CTA SECTION
   ============================================================ */

.cta-section {
  text-align: center;
  background: var(--bg);
}

.cta-section h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  text-align: center;
}

.footer-logo {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-legal {
  font-size: 12px;
  color: var(--border);
}

/* ============================================================
   SCROLL HINT
   ============================================================ */

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  opacity: 0.4;
}

.scroll-hint span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-arrow {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollDrop 1.8s ease-in-out infinite;
}

@keyframes scrollDrop {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* ============================================================
   SCROLL REVEAL ANIMATION
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .card:last-child {
    border-bottom: none;
  }

  .about-strip-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-strip-stat {
    max-width: 200px;
  }
}

@media (max-width: 640px) {
  .nav {
    padding: 16px 24px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(13, 13, 26, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    gap: 20px;
  }

  .nav-links.nav-open {
    display: flex;
  }

  .nav-hamburger {
    display: block;
  }

  .hero {
    height: 100svh;
  }

  .hero-grid-wrap {
    display: none;
  }

  .hero-text {
    flex: 1;
    padding: 72px 24px 40px;
    animation: heroFadeInMobile 0.9s ease forwards;
  }

  @keyframes heroFadeInMobile {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .hero-headline {
    font-size: clamp(36px, 10vw, 52px);
    letter-spacing: -1px;
  }

  .hero-sub {
    font-size: 17px;
    margin-bottom: 36px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    text-align: center;
    width: 100%;
  }
}
