/* GrowTechSocial Production Stylesheet — Zero External Dependencies */
:root {
  --bg: #050608;
  --bg-deep: #040507;
  --surface: rgba(16, 20, 28, 0.80);
  --surface-elevated: rgba(20, 25, 36, 0.90);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #F4F7FA;
  --text-soft: #CBD5E1;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --accent: #22D3EE;
  --accent-rgb: 34, 211, 238;
  --emerald: #34D399;
  --sky: #38BDF8;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
@media (min-width: 640px) {
  .container { padding-left: 32px; padding-right: 32px; }
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
.tabular { font-variant-numeric: tabular-nums; }
.kicker {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker-emerald { color: var(--emerald); }

/* Surfaces */
.surface-glass {
  background: linear-gradient(180deg, rgba(16, 20, 28, 0.78) 0%, rgba(9, 11, 16, 0.94) 100%);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-md);
}
.surface-elevated {
  background: linear-gradient(165deg, rgba(20, 25, 36, 0.88) 0%, rgba(10, 12, 18, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
}
.surface-highlight {
  background: linear-gradient(165deg, rgba(20, 28, 40, 0.92) 0%, rgba(10, 14, 22, 0.98) 100%);
  border: 1px solid rgba(var(--accent-rgb), 0.55);
  border-radius: var(--radius-md);
}

/* Header & Mobile Drawer */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: 64px;
  background: rgba(5, 6, 8, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.85);
}
.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  color: var(--text-muted);
}
.nav-links a:hover { color: #fff; }
@media (min-width: 900px) {
  .nav-links { display: flex; }
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}
@media (min-width: 900px) {
  .menu-toggle { display: none; }
}
.mobile-drawer {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 55;
  background: rgba(5, 6, 8, 0.97);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 20px;
  display: none;
  flex-direction: column;
  gap: 14px;
}
.mobile-drawer.open { display: flex; }
.mobile-drawer a {
  padding: 10px 4px;
  font-size: 15px;
  color: var(--text-soft);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-drawer a:last-child { border-bottom: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 12px 24px;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn-sm { padding: 8px 16px; font-size: 12px; }
.btn-primary {
  background: #FFFFFF;
  color: #050608;
}
.btn-primary:hover { background: var(--accent); color: #050608; }
.btn-accent {
  background: var(--accent);
  color: #050608;
}
.btn-accent:hover { filter: brightness(1.1); }
.btn-outline {
  background: transparent;
  color: #E2E8F0;
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-outline:hover { border-color: rgba(var(--accent-rgb), 0.7); color: #fff; }

/* Sections & Grids */
.section {
  padding: 88px 0;
  border-top: 1px solid var(--border);
  position: relative;
}
@media (min-width: 768px) {
  .section { padding: 118px 0; }
}
.section-header {
  max-width: 680px;
  margin-bottom: 52px;
}
.h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.03;
  color: #fff;
}
.h2 {
  margin: 12px 0 0;
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #fff;
}
.h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.015em;
}
.sub-muted {
  color: var(--text-muted);
  font-weight: 300;
}
.lead {
  font-size: 16px;
  color: var(--text-soft);
  line-height: 1.65;
  font-weight: 300;
}
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
.grid-5 { grid-template-columns: repeat(2, 1fr); }
.grid-12 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .grid-12 { grid-template-columns: repeat(12, 1fr); }
  .span-4 { grid-column: span 4; }
  .span-5 { grid-column: span 5; }
  .span-6 { grid-column: span 6; }
  .span-7 { grid-column: span 7; }
  .span-8 { grid-column: span 8; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  padding-top: 96px;
  padding-bottom: 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: radial-gradient(circle at 50% 42%, rgba(var(--accent-rgb), 0.08) 0%, rgba(16, 185, 129, 0.03) 38%, rgba(5, 6, 8, 0) 70%);
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 10;
  margin: auto 0;
  padding: 28px 0 44px;
}
.hero-hud-right {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  text-align: right;
  pointer-events: none;
}
@media (min-width: 1024px) {
  .hero-hud-right { display: flex; }
}
.hud-callout {
  width: 260px;
  padding-right: 16px;
  border-right: 1px solid rgba(var(--accent-rgb), 0.55);
}
.hud-callout.emerald { border-right-color: rgba(52, 211, 153, 0.55); }
.hud-callout.neutral { border-right-color: rgba(255, 255, 255, 0.25); }

.telemetry-bar {
  position: relative;
  z-index: 10;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.telemetry-val {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: #fff;
}
.telemetry-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Exploded 3D Architecture Stack */
.stack-stage {
  perspective: 1200px;
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stack-wrapper {
  position: relative;
  width: 270px;
  height: 178px;
  transform-style: preserve-3d;
  transform: rotateX(56deg) rotateZ(-36deg);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 640px) {
  .stack-wrapper { width: 336px; height: 214px; }
}
.stack-layer {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, rgba(20, 28, 40, 0.9), rgba(7, 10, 16, 0.95));
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 20px;
}
.stack-layer.is-active {
  border-color: rgba(var(--accent-rgb), 0.78);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.8), 0 0 32px rgba(var(--accent-rgb), 0.2), inset 0 1px 0 rgba(var(--accent-rgb), 0.45);
}
.stack-layer.is-dimmed { opacity: 0.45; }

.spec-btn {
  width: 100%;
  text-align: left;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(16, 20, 28, 0.78), rgba(9, 11, 16, 0.94));
  color: inherit;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.spec-btn:hover { border-color: rgba(255, 255, 255, 0.24); }
.spec-btn.active {
  border-color: rgba(var(--accent-rgb), 0.58);
  background: linear-gradient(165deg, rgba(20, 28, 40, 0.92), rgba(10, 14, 22, 0.98));
}

/* Orbital Canvas Stage */
.orbit-stage {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}
.orbit-canvas {
  width: 100%;
  height: 310px;
  display: block;
}
@media (min-width: 640px) {
  .orbit-canvas { height: 360px; }
}
.orbit-hud-top {
  position: absolute;
  top: 16px;
  left: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}
.orbit-hud-bottom {
  position: absolute;
  bottom: 16px;
  left: 20px;
  right: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.chip {
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid var(--border-strong);
  background: rgba(5, 6, 8, 0.65);
  color: var(--text-soft);
  transition: all 0.2s ease;
}
.chip:hover { color: #fff; border-color: rgba(255,255,255,0.35); }
.chip.active { background: #fff; color: #050608; border-color: #fff; font-weight: 600; }

/* Browser Mockup Frame */
.browser-frame {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #080A10;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.72);
}
.browser-bar {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: #0D1018;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.browser-url {
  flex: 1;
  max-width: 380px;
  margin: 0 auto;
  padding: 5px 12px;
  border-radius: 7px;
  background: #06080D;
  border: 1px solid var(--border);
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Inputs & Sliders */
.field-label {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.field-input, .field-select, .field-textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  background: #07090F;
  border: 1px solid var(--border-strong);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}
.field-input:focus, .field-select:focus, .field-textarea:focus {
  border-color: rgba(var(--accent-rgb), 0.75);
}

input[type="range"].precision-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  outline: none;
}
input[type="range"].precision-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #F4F7FA;
  border: 3px solid var(--accent);
  cursor: pointer;
  box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.55);
}
input[type="range"].precision-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #F4F7FA;
  border: 3px solid var(--accent);
  cursor: pointer;
}

/* Tables */
.matrix-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(12, 15, 22, 0.75);
}
.matrix-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 13px;
}
.matrix-table th, .matrix-table td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.matrix-table th {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
}
.matrix-table tr:last-child td { border-bottom: none; }

/* FAQ Accordion */
.faq-item {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(16, 20, 28, 0.78), rgba(9, 11, 16, 0.94));
  overflow: hidden;
}
.faq-trigger {
  width: 100%;
  padding: 18px 22px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-panel {
  display: none;
  padding: 0 22px 20px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}
.faq-item.open .faq-panel { display: block; }

/* Radio cards */
.radio-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #07090F;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.radio-card:hover { border-color: rgba(var(--accent-rgb), 0.5); }
.radio-card input { margin-top: 3px; accent-color: var(--accent); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* Reveal utility */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Helper spacing & flex utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.p-5 { padding: 20px; }
.p-6 { padding: 24px; }
.p-7 { padding: 28px; }
.p-8 { padding: 32px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.pt-4 { padding-top: 16px; }
.pt-6 { padding-top: 24px; }
.pb-4 { padding-bottom: 16px; }
.border-t { border-top: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.text-center { text-align: center; }
.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.text-accent { color: var(--accent); }
.text-emerald { color: var(--emerald); }
.text-white { color: #FFFFFF; }
.hidden { display: none !important; }
.w-full { width: 100%; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
}
