/* =========================================
   STAXR — Design System
   ========================================= */
:root {
  --bg: #0B0D17;
  --bg-alt: #10131F;
  --bg-card: #161A2A;
  --bg-elev: #1C2036;
  --primary: #818CF8;
  --primary-strong: #6366F1;
  --accent: #22D3EE;
  --accent-strong: #06B6D4;
  --text: #F8FAFC;
  --text-dim: #94A3B8;
  --text-soft: #CBD5E1;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --grad: linear-gradient(135deg, #818CF8 0%, #22D3EE 100%);
  --grad-soft: linear-gradient(135deg, rgba(129,140,248,.15), rgba(34,211,238,.15));
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 60px rgba(129, 140, 248, 0.25);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --font-sans: 'Pretendard', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Space Mono', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* =========================================
   Brand Identity (Logo)
   ========================================= */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.logo-text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.logo-text em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =========================================
   Navigation
   ========================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(11, 13, 23, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-menu {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-menu a {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-menu a:hover { color: var(--text); }
.nav-actions { display: flex; gap: 12px; align-items: center; }

/* =========================================
   Buttons
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #0B0D17;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(129, 140, 248, 0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--primary);
}
.btn-lg { padding: 16px 30px; font-size: 15px; }

/* =========================================
   Layout
   ========================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
section { padding: 120px 0; position: relative; }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  padding: 6px 14px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 100px;
  background: rgba(34, 211, 238, 0.05);
}
h1, h2, h3, h4 {
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-weight: 700;
}
h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 16px; }
h3 { font-size: 22px; margin-bottom: 10px; }
.lead {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* =========================================
   Hero
   ========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 100px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  width: 1000px;
  height: 1000px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(129, 140, 248, 0.15), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}
.hero h1 {
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 19px;
  color: var(--text-dim);
  margin-bottom: 36px;
  max-width: 540px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  gap: 48px;
}
.hero-stat .num {
  font-size: 28px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}
.hero-stat .lbl {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 2px;
}

/* Hero visual — floating 3D jenga tower */
.hero-visual {
  position: relative;
  height: 520px;
  perspective: 1200px;
}
.tower {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateX(18deg) rotateY(-20deg);
  transform-style: preserve-3d;
  animation: float 8s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translate(-50%, -50%) rotateX(18deg) rotateY(-20deg) translateY(0); }
  50% { transform: translate(-50%, -50%) rotateX(18deg) rotateY(-20deg) translateY(-16px); }
}
.block {
  width: 180px;
  height: 26px;
  background: linear-gradient(135deg, #2A2F4A, #1A1E32);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  position: relative;
  margin-bottom: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.block::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent, rgba(129, 140, 248, 0.1), transparent);
}
.block.hot {
  background: linear-gradient(135deg, #6366F1, #22D3EE);
  border-color: transparent;
  box-shadow: 0 0 40px rgba(129, 140, 248, 0.6);
}
.tracking-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.6; }
}
.data-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.6;
}

/* =========================================
   Products
   ========================================= */
.products {
  background: var(--bg-alt);
  position: relative;
}
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.product-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s;
}
.product-card:hover::before { opacity: 1; }
.product-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.product-card h3 {
  font-size: 28px;
  margin-bottom: 12px;
}
.product-card p {
  color: var(--text-dim);
  margin-bottom: 28px;
  line-height: 1.7;
}
.product-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.product-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-soft);
}
.product-features li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--grad-soft);
  border: 1px solid var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
}
.product-visual {
  margin-top: 32px;
  height: 200px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

/* =========================================
   Features grid
   ========================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.25s ease;
}
.feature:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--grad-soft);
  border: 1px solid rgba(129, 140, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
}

/* =========================================
   Process (How it works)
   ========================================= */
.process {
  background: var(--bg-alt);
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 26px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
  opacity: 0.4;
}
.step {
  position: relative;
  text-align: center;
  padding: 0 10px;
}
.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-weight: 700;
  font-size: 16px;
  background: var(--bg);
  position: relative;
  z-index: 2;
}
.step-num span {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.step h3 { font-size: 16px; margin-bottom: 8px; }
.step p {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.6;
}

/* =========================================
   Data / Metrics
   ========================================= */
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.metrics-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.chart-title { font-size: 14px; color: var(--text-dim); }
.chart-value { font-size: 24px; font-weight: 700; }
.chart-value em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.chart-svg { width: 100%; height: 220px; }
.data-rows {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}
.data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 10px 14px;
  background: var(--bg-elev);
  border-radius: 8px;
  border-left: 2px solid var(--accent);
}
.data-row .key { color: var(--text-dim); }
.data-row .val { color: var(--text); }

.metric-list {
  list-style: none;
  display: grid;
  gap: 20px;
}
.metric-item {
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
}
.metric-item h4 {
  font-size: 16px;
  margin-bottom: 4px;
}
.metric-item p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* =========================================
   Use Cases
   ========================================= */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.usecase {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.usecase-icon {
  font-size: 32px;
  margin-bottom: 16px;
}
.usecase h4 { font-size: 15px; margin-bottom: 6px; }
.usecase p { font-size: 13px; color: var(--text-dim); }

/* =========================================
   Tech stack
   ========================================= */
.tech {
  background: var(--bg-alt);
}
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.tech-item {
  padding: 28px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.2s;
}
.tech-item:hover {
  border-color: var(--primary);
  background: var(--bg-elev);
}
.tech-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.tech-role { font-size: 12px; color: var(--text-dim); }

/* =========================================
   CTA
   ========================================= */
.cta {
  text-align: center;
}
.cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(129, 140, 248, 0.15), transparent 60%);
  pointer-events: none;
}
.cta-box > * { position: relative; z-index: 2; }
.cta h2 { margin-bottom: 16px; }
.cta-actions {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  justify-content: center;
}

/* =========================================
   Footer
   ========================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
  background: var(--bg-alt);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p {
  color: var(--text-dim);
  margin-top: 16px;
  font-size: 14px;
  max-width: 320px;
  line-height: 1.7;
}
.footer-col h5 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--text-soft);
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 13px;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 960px) {
  .nav { padding: 16px 20px; }
  .nav-menu { display: none; }
  .container { padding: 0 20px; }
  section { padding: 80px 0; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 360px; }
  .hero-stats { gap: 28px; flex-wrap: wrap; }
  .products-grid, .metrics-grid { grid-template-columns: 1fr; gap: 20px; }
  .features-grid, .tech-grid, .usecase-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 30px; }
  .process-steps::before { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
@media (max-width: 560px) {
  .features-grid, .tech-grid, .usecase-grid, .process-steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .product-card { padding: 28px; }
}
