/* ═══════════════════════════════════════════════════
   TERRACLAW — MAIN CSS
   Midnight galaxy theme · Architectural aesthetic
═══════════════════════════════════════════════════ */

:root {
  --void: #03040a;
  --deep: #070b18;
  --cosmos: #0c1228;
  --nebula: #111a35;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-b: rgba(255, 255, 255, 0.08);
  --glass-s: rgba(255, 255, 255, 0.07);
  --cyan: #00e5ff;
  --cyan-dim: rgba(0, 229, 255, 0.14);
  --cyan-glow: rgba(0, 229, 255, 0.07);
  --teal: #00b8cc;
  --amber: #ffab00;
  --amber-dim: rgba(255, 171, 0, 0.12);
  --violet: #7c4dff;
  --violet-dim: rgba(124, 77, 255, 0.12);
  --white: #f0f4ff;
  --muted: rgba(240, 244, 255, 0.5);
  --faint: rgba(240, 244, 255, 0.2);
  --grid-c: rgba(0, 229, 255, 0.035);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--void);
  color: var(--white);
  font-family: 'Instrument Sans', sans-serif;
  overflow-x: hidden;
  cursor: none;
  line-height: 1.6;
}

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

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: none;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--void);
}

::-webkit-scrollbar-thumb {
  background: var(--cyan);
  border-radius: 2px;
}

/* ── NOISE OVERLAY ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9997;
  opacity: 0.5;
}

/* ── STARFIELD ── */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── GRID OVERLAY ── */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-c) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-c) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 80%);
}

/* ── CURSOR ── */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: screen;
}

.cursor-ring {
  position: fixed;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0, 229, 255, 0.45);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor.hover {
  width: 18px;
  height: 18px;
  background: white;
}

.cursor-ring.hover {
  width: 54px;
  height: 54px;
  border-color: rgba(0, 229, 255, 0.2);
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 24px 48px;
  background: rgba(3, 4, 10, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-b);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

nav .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav.scrolled {
  padding: 14px 48px;
  border-color: var(--glass-b);
  background: rgba(3, 4, 10, 0.88);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.nav-logo-mark svg {
  width: 100%;
  height: 100%;
}

.nav-logo-text {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.nav-logo-text span {
  color: var(--cyan);
}

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--cyan);
  transition: width 0.3s;
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: transparent;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  padding: 9px 22px;
  font-family: 'Syne', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}

.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cyan);
  transform: translateY(101%);
  transition: transform 0.3s;
  z-index: -1;
}

.nav-cta:hover {
  color: var(--void);
}

.nav-cta:hover::before {
  transform: translateY(0);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(3, 4, 10, 0.97);
  backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu ul {
  list-style: none;
  text-align: center;
}

.mobile-menu li {
  margin-bottom: 32px;
}

.mobile-menu a {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--muted);
  transition: color 0.3s;
}

.mobile-menu a:hover,
.mobile-menu a.cta {
  color: var(--cyan);
}

/* ─────────────────────────────
   SHARED LAYOUT
───────────────────────────── */
section {
  position: relative;
  z-index: 1;
  padding-left: 48px;
  padding-right: 48px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.section-header {
  margin-bottom: 72px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.section-label::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--cyan);
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.section-sub {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
  font-weight: 300;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--cyan);
  color: var(--void);
  border: none;
  padding: 15px 38px;
  font-family: 'Syne', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.btn-primary:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.35);
}

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--glass-b);
  padding: 15px 38px;
  font-family: 'Syne', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.btn-ghost:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

/* ─────────────────────────────
   HERO
───────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 160px 48px 100px;
  overflow-x: hidden;
  text-align: center;
}

.hero-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(0, 229, 255, 0.07), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: pulseGlow 7s ease-in-out infinite;
}

.hero-glow-2 {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(124, 77, 255, 0.06), transparent 70%);
  top: 30%;
  right: 8%;
  pointer-events: none;
  animation: pulseGlow 9s ease-in-out infinite reverse;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 32px;
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0;
  animation: fadeUp 0.8s 0.3s forwards;
}

.eyebrow-line {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}

.eyebrow-line:last-child {
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3.2rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
  max-width: 900px;
  margin-bottom: 28px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeUp 0.9s 0.5s forwards;
}

.line-plain {
  display: block;
  color: var(--white);
}

.line-gradient {
  display: block;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--violet) 55%, var(--amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  max-width: 580px;
  margin-bottom: 48px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 0.9s 0.7s forwards;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  animation: fadeUp 0.9s 0.9s forwards;
  margin-bottom: 56px;
}

/* VIEWPORT MOCKUP */
.viewport-mockup {
  width: 100%;
  max-width: 920px;
  margin-top: 40px;
  opacity: 0;
  animation: fadeUp 1s 1.1s forwards;
}

.viewport-frame {
  background: var(--glass);
  border: 1px solid var(--glass-b);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.viewport-titlebar {
  background: rgba(0, 0, 0, 0.45);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--glass-b);
}

.titlebar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.titlebar-dot.red {
  background: #ff5f57;
}

.titlebar-dot.yellow {
  background: #ffbd2e;
}

.titlebar-dot.green {
  background: #28ca41;
}

.titlebar-label {
  margin-left: 12px;
  font-family: 'Space Mono', monospace;
  font-size: 0.66rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.viewport-body {
  position: relative;
  height: 380px;
  overflow: hidden;
  background: linear-gradient(160deg, #040812, #080f22 50%, #040a1a);
}

#cityCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.viewport-ui-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.vp-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--cyan);
  border-style: solid;
  border-width: 0;
  opacity: 0.6;
}

.vp-corner.tl {
  top: 14px;
  left: 14px;
  border-top-width: 2px;
  border-left-width: 2px;
}

.vp-corner.tr {
  top: 14px;
  right: 14px;
  border-top-width: 2px;
  border-right-width: 2px;
}

.vp-corner.bl {
  bottom: 50px;
  left: 14px;
  border-bottom-width: 2px;
  border-left-width: 2px;
}

.vp-corner.br {
  bottom: 50px;
  right: 14px;
  border-bottom-width: 2px;
  border-right-width: 2px;
}

.vp-tools {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: all;
}

.vp-tool {
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--glass-b);
  color: var(--muted);
  font-size: 0.8rem;
  transition: all 0.2s;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vp-tool:hover,
.vp-tool.active {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-dim);
}

.vp-score {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(0, 229, 255, 0.2);
  padding: 10px 16px;
  text-align: center;
}

.score-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 4px;
}

.score-val {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.vp-coords {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  color: var(--cyan);
  background: rgba(0, 0, 0, 0.65);
  padding: 4px 14px;
  white-space: nowrap;
}

.sun-scrubber {
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid var(--glass-b);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.sun-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.64rem;
  color: var(--muted);
  white-space: nowrap;
}

.sun-slider {
  flex: 1;
  -webkit-appearance: none;
  height: 2px;
  background: linear-gradient(90deg, #1a2a4a, var(--amber), #1a2a4a);
  outline: none;
  border-radius: 1px;
  cursor: pointer;
}

.sun-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 171, 0, 0.6);
  cursor: pointer;
}

.hero-stats {
  display: flex;
  gap: 60px;
  margin-top: 40px;
  padding-top: 48px;
  border-top: 1px solid var(--grid-c);
  width: 100%;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.9s 1.3s forwards;
}

.hero-stat {
  text-align: center;
}

.hero-stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--cyan);
  display: block;
}

.hero-stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 1s 1.6s forwards;
}

.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

/* ─────────────────────────────
   FEATURES
───────────────────────────── */
#features {
  padding: 140px 0;
  background: linear-gradient(180deg, var(--void), var(--deep) 50%, var(--void));
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--glass-b);
  border: 1px solid var(--glass-b);
}

.feature-card {
  background: var(--deep);
  padding: 48px 36px;
  position: relative;
  overflow: hidden;
  transition: background 0.4s;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.feature-card:hover {
  background: var(--nebula);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--glass-b);
  background: var(--glass);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-num {
  position: absolute;
  top: -7px;
  right: -7px;
  font-family: 'Space Mono', monospace;
  font-size: 0.56rem;
  color: var(--cyan);
  background: var(--void);
  padding: 2px 4px;
}

.feature-name {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.feature-desc {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.65;
  font-weight: 300;
}

.feature-tag {
  display: inline-block;
  margin-top: 18px;
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-dim);
  padding: 4px 10px;
}

/* ─────────────────────────────
   HOW IT WORKS
───────────────────────────── */
#how-it-works {
  padding: 140px 0;
  background: var(--void);
}

.steps-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
  margin-top: 72px;
}

.step-item {
  display: flex;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--glass-b);
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.step-item:first-child {
  border-top: 1px solid var(--glass-b);
}

.step-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--cyan);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s;
}

.step-item.active::before {
  transform: scaleY(1);
}

.step-item.active .step-num {
  color: var(--cyan);
  border-color: var(--cyan);
  background: var(--cyan-dim);
}

.step-item.active .step-name {
  color: var(--white);
}

.step-num {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
  border: 1px solid var(--glass-b);
  width: 42px;
  height: 42px;
  min-width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.step-name {
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
  transition: color 0.3s;
}

.step-desc {
  color: var(--faint);
  font-size: 0.83rem;
  line-height: 1.65;
  font-weight: 300;
}

.steps-visual {
  position: sticky;
  top: 110px;
}

.steps-panel {
  background: var(--glass);
  border: 1px solid var(--glass-b);
  backdrop-filter: blur(24px);
  padding: 44px;
  min-height: 360px;
  overflow: hidden;
}

.panel-content {
  display: none;
  animation: fadeIn 0.4s forwards;
}

.panel-content.active {
  display: block;
}

.panel-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.panel-icon.cyan {
  border: 1px solid rgba(0, 229, 255, 0.2);
  background: var(--cyan-glow);
}

.panel-icon.violet {
  border: 1px solid rgba(124, 77, 255, 0.2);
  background: var(--violet-dim);
}

.panel-icon.amber {
  border: 1px solid rgba(255, 171, 0, 0.2);
  background: var(--amber-dim);
}

.panel-icon svg {
  width: 36px;
  height: 36px;
}

.panel-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.panel-desc {
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 24px;
}

.panel-code {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--glass-b);
  padding: 16px 18px;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--cyan);
  line-height: 1.7;
  white-space: pre;
  overflow-x: auto;
}

/* ─────────────────────────────
   TECHNOLOGY
───────────────────────────── */
#technology {
  padding: 140px 0;
  background: linear-gradient(180deg, var(--void), var(--cosmos));
  position: relative;
  overflow: hidden;
}

.tech-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
}

.tech-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  margin-bottom: 72px;
  align-items: end;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.tech-card {
  background: var(--glass);
  border: 1px solid var(--glass-b);
  backdrop-filter: blur(20px);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s;
}

.tech-card::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, var(--cyan-dim), transparent);
  top: -90px;
  right: -90px;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.tech-card:hover {
  border-color: rgba(0, 229, 255, 0.18);
  transform: translateY(-4px);
}

.tech-card:hover::after {
  opacity: 1;
}

.tech-card-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

.tech-card-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.tech-card-desc {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 20px;
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tech-pills span {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-b);
  padding: 4px 10px;
}

/* ─────────────────────────────
   EXPORT
───────────────────────────── */
#export {
  padding: 140px 0;
  background: var(--deep);
}

.export-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 72px;
}

.export-formats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.format-row {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--glass);
  border: 1px solid var(--glass-b);
  padding: 20px 24px;
  transition: all 0.3s;
}

.format-row:hover {
  border-color: rgba(0, 229, 255, 0.18);
  background: var(--glass-s);
}

.format-badge {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 12px;
  min-width: 52px;
  text-align: center;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.format-badge.gold {
  background: var(--amber-dim);
  color: var(--amber);
  border: 1px solid rgba(255, 171, 0, 0.22);
}

.format-badge.silver {
  background: var(--glass);
  color: rgba(210, 220, 240, 0.8);
  border: 1px solid var(--glass-b);
}

.format-badge.cyan-badge {
  background: var(--cyan-dim);
  color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, 0.2);
}

.format-badge.violet-badge {
  background: var(--violet-dim);
  color: #b39dff;
  border: 1px solid rgba(124, 77, 255, 0.2);
}

.format-info {
  flex: 1;
}

.format-name {
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.format-desc {
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 300;
}

.format-compat {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.format-compat span {
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  color: var(--faint);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3px 7px;
}

.export-pipeline {
  background: var(--glass);
  border: 1px solid var(--glass-b);
  backdrop-filter: blur(20px);
  padding: 36px;
}

.pipeline-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 24px;
}

.pipe-step {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 14px 0;
  position: relative;
}

.pipe-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--cyan);
  background: var(--cyan-dim);
  margin-top: 3px;
  position: relative;
}

.pipe-dot::after {
  content: '';
  position: absolute;
  width: 1px;
  height: 30px;
  background: var(--glass-b);
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.pipe-step.final .pipe-dot {
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
}

.pipe-step.final .pipe-dot::after {
  display: none;
}

.final-dot {
  border-color: var(--cyan) !important;
}

.pipe-step-num {
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  color: var(--muted);
  margin-bottom: 2px;
}

.pipe-step-val {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
}

.final-num {
  color: var(--cyan) !important;
}

/* ─────────────────────────────
   INDUSTRIES
───────────────────────────── */
#industries {
  padding: 140px 0;
  background: var(--void);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--glass-b);
  border: 1px solid var(--glass-b);
  margin-top: 72px;
}

.industry-card {
  background: var(--void);
  padding: 44px 32px;
  position: relative;
  overflow: hidden;
  transition: background 0.4s;
}

.industry-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.industry-card:hover {
  background: var(--deep);
}

.industry-card:hover::after {
  transform: scaleX(1);
}

.industry-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
}

.industry-icon svg {
  width: 100%;
  height: 100%;
}

.industry-name {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.industry-desc {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.65;
  font-weight: 300;
}

.industry-use {
  margin-top: 18px;
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  color: var(--cyan);
  letter-spacing: 0.06em;
  line-height: 1.6;
}

/* ─────────────────────────────
   STATS
───────────────────────────── */
#stats {
  padding: 120px 0;
  background: var(--deep);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--glass-b);
  border: 1px solid var(--glass-b);
  margin-bottom: 48px;
}

.stat-cell {
  background: var(--deep);
  padding: 52px 44px;
  text-align: center;
}

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  display: block;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--white));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-sub {
  color: var(--faint);
  font-size: 0.73rem;
  margin-top: 7px;
  font-weight: 300;
}

.chart-container {
  background: var(--glass);
  border: 1px solid var(--glass-b);
  backdrop-filter: blur(20px);
  padding: 44px;
}

.chart-title {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.chart-subtitle {
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 36px;
  font-weight: 300;
}

.bar-chart {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  height: 160px;
  margin-bottom: 28px;
}

.bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.bar-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 140px;
}

.bar {
  width: 55%;
  border-top-width: 2px;
  border-top-style: solid;
  transition: height 1.2s cubic-bezier(0.34, 1.3, 0.64, 1);
  position: relative;
  height: 0;
}

.bar::before {
  content: attr(data-val);
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  white-space: nowrap;
}

.bar-cyan {
  background: linear-gradient(to top, var(--cyan), rgba(0, 229, 255, 0.25));
  border-top-color: var(--cyan);
}

.bar-cyan::before {
  color: var(--cyan);
}

.bar-violet {
  background: linear-gradient(to top, var(--violet), rgba(124, 77, 255, 0.25));
  border-top-color: var(--violet);
}

.bar-violet::before {
  color: #b39dff;
}

.bar-amber {
  background: linear-gradient(to top, var(--amber), rgba(255, 171, 0, 0.25));
  border-top-color: var(--amber);
}

.bar-amber::before {
  color: var(--amber);
}

.bar-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  color: var(--muted);
  text-align: center;
}

.chart-scrubber {
  width: 100%;
  -webkit-appearance: none;
  height: 2px;
  background: var(--glass-b);
  outline: none;
  cursor: pointer;
}

.chart-scrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

.chart-scrubber-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  color: var(--muted);
  margin-top: 10px;
  letter-spacing: 0.05em;
}

/* ─────────────────────────────
   PRICING
───────────────────────────── */
#pricing {
  padding: 140px 0;
  background: linear-gradient(180deg, var(--void), var(--deep));
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 72px auto 0;
}

.pricing-card {
  background: var(--glass);
  border: 1px solid var(--glass-b);
  backdrop-filter: blur(20px);
  padding: 44px 36px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s;
}

.pricing-card.featured {
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.035);
}

.pricing-card:hover {
  transform: translateY(-5px);
}

.pricing-card.featured:hover {
  box-shadow: 0 0 50px rgba(0, 229, 255, 0.1);
}

.pricing-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--cyan);
  color: var(--void);
  padding: 4px 10px;
}

.pricing-plan {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}

.pricing-price {
  font-family: 'Syne', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 7px;
}

.pricing-price .currency {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--muted);
  vertical-align: super;
  margin-right: 3px;
}

.pricing-per {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 300;
  margin-bottom: 28px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 36px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--glass-b);
  font-size: 0.83rem;
  color: var(--muted);
  font-weight: 300;
}

.pricing-features li::before {
  content: '—';
  color: var(--cyan);
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-cta {
  display: block;
  width: 100%;
  padding: 13px;
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  background: transparent;
  border: 1px solid var(--glass-b);
  color: var(--muted);
  transition: all 0.3s;
  cursor: pointer;
}

.pricing-cta:hover {
  border-color: var(--white);
  color: var(--white);
}

.pricing-cta.featured-cta {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--void);
}

.pricing-cta.featured-cta:hover {
  background: white;
}

/* ─────────────────────────────
   VISION
───────────────────────────── */
#vision {
  padding: 140px 48px;
  background: var(--void);
  position: relative;
  overflow: hidden;
}

.vision-bg {
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(124, 77, 255, 0.05), transparent 70%);
  top: 50%;
  left: -150px;
  transform: translateY(-50%);
  pointer-events: none;
}

.vision-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.vision-quote {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
}

.vision-quote em {
  font-style: normal;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.vision-text {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
  font-weight: 300;
  margin-top: 24px;
}

.vision-phases {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.phase-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: var(--glass);
  border: 1px solid var(--glass-b);
  backdrop-filter: blur(20px);
  transition: border-color 0.3s;
}

.phase-item:hover {
  border-color: rgba(0, 229, 255, 0.15);
}

.phase-num {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(0, 229, 255, 0.15);
  padding: 5px 9px;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 3px;
}

.phase-name {
  font-family: 'Syne', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.phase-desc {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
  font-weight: 300;
}

/* ─────────────────────────────
   CTA SECTION
───────────────────────────── */
#cta {
  padding: 160px 48px;
  text-align: center;
  background: var(--void);
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(0, 229, 255, 0.045), transparent);
}

.cta-frame {
  position: absolute;
  inset: 40px;
  border: 1px solid var(--glass-b);
  pointer-events: none;
}

.cta-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--cyan);
  border-style: solid;
  border-width: 0;
}

.cta-corner.tl {
  top: 40px;
  left: 40px;
  border-top-width: 2px;
  border-left-width: 2px;
}

.cta-corner.tr {
  top: 40px;
  right: 40px;
  border-top-width: 2px;
  border-right-width: 2px;
}

.cta-corner.bl {
  bottom: 40px;
  left: 40px;
  border-bottom-width: 2px;
  border-left-width: 2px;
}

.cta-corner.br {
  bottom: 40px;
  right: 40px;
  border-bottom-width: 2px;
  border-right-width: 2px;
}

.cta-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.cta-tag::before,
.cta-tag::after {
  content: '';
  width: 38px;
  height: 1px;
  background: var(--cyan);
}

.cta-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 24px;
}

.cta-sub {
  color: var(--muted);
  font-size: 0.97rem;
  font-weight: 300;
  max-width: 440px;
  margin: 0 auto 44px;
  line-height: 1.75;
}

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

/* ─────────────────────────────
   FOOTER
───────────────────────────── */
footer {
  background: var(--void);
  border-top: 1px solid var(--glass-b);
  padding: 64px 48px 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--glass-b);
}

.footer-brand-desc {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.75;
  font-weight: 300;
  margin-top: 14px;
  max-width: 240px;
}

.footer-col-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 300;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  color: var(--faint);
  font-size: 0.72rem;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.04em;
}

.footer-haslilly {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  color: var(--faint);
  letter-spacing: 0.08em;
}

.footer-haslilly span {
  color: var(--cyan);
}

/* ─────────────────────────────
   RESPONSIVE
───────────────────────────── */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 16px 20px;
  }

  nav.scrolled {
    padding: 12px 20px;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  #hero {
    padding: 100px 20px 60px;
  }

  #features,
  #how-it-works,
  #technology,
  #export,
  #industries,
  #stats,
  #pricing,
  #vision,
  #cta {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-stats {
    gap: 28px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .steps-visual {
    position: static;
  }

  .tech-header {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .tech-grid {
    grid-template-columns: 1fr;
  }

  .export-layout {
    grid-template-columns: 1fr;
  }

  .industries-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .vision-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .bar-chart {
    gap: 8px;
  }

  .titlebar-label {
    display: none;
  }

  .cta-frame,
  .cta-corner {
    display: none;
  }
}

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

  .footer-top {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }
}