/* === Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0f1a;
  --bg-card: #111827;
  --bg-card-hover: #1e293b;
  --bg-terminal: #0c1222;
  --surface: #111827;
  --border: #1e3a5f;
  --border-light: #334155;
  --text: #f8fafc;
  --text-dim: #94a3b8;
  --text-muted: #64748b;
  --accent: #38bdf8;
  --accent-dim: #0369a1;
  --accent-glow: rgba(56, 189, 248, 0.12);
  --warm: #f59e0b;
  --green: #4ade80;
  --yellow: #facc15;
  --red: #f87171;
  --blue: #60a5fa;
  --mono: 'JetBrains Mono', monospace;
  --display: 'Satoshi', 'Inter', -apple-system, sans-serif;
  --sans: 'Inter', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* === Nav === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 15, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 6px;
}

.logo-text {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--warm);
  color: var(--bg) !important;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.nav-cta:hover { opacity: 0.9; text-decoration: none !important; }

/* === Hero === */
.hero {
  padding: 8rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner { position: relative; z-index: 1; }

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 3rem;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--warm);
  color: var(--bg);
}

.btn-primary:hover {
  opacity: 0.9;
  text-decoration: none;
}

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

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-dim);
  text-decoration: none;
}

/* === Terminal === */
.terminal {
  max-width: 700px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  text-align: left;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 0.9rem;
  background: #1c1c20;
  border-bottom: 1px solid var(--border);
}

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

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.terminal-body {
  background: var(--bg-terminal);
  padding: 1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.8;
}

.term-line {
  opacity: 0;
  animation: termFade 0.3s ease forwards;
}

.term-line:nth-child(1) { animation-delay: 0.3s; }
.term-line:nth-child(2) { animation-delay: 0.8s; }
.term-line:nth-child(3) { animation-delay: 1.2s; }
.term-line:nth-child(4) { animation-delay: 1.4s; }
.term-line:nth-child(5) { animation-delay: 1.6s; }
.term-line:nth-child(6) { animation-delay: 1.8s; }
.term-line:nth-child(7) { animation-delay: 2.5s; }
.term-line:nth-child(8) { animation-delay: 3.2s; }
.term-line:nth-child(9) { animation-delay: 3.8s; }

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

.term-time { color: var(--text-muted); }
.term-tag { font-weight: 700; margin: 0 0.25rem; }
.term-tag.biz { color: var(--yellow); }
.term-tag.tech { color: var(--blue); }
.term-tag.ok { color: var(--green); }
.term-dim { color: var(--text-muted); }

.typing::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: var(--accent);
}

@keyframes blink {
  50% { opacity: 0; }
}

/* === Sections === */
.section {
  padding: 5rem 1.5rem;
}

.section-dark {
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.section-dark::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(245, 158, 11, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-sub {
  color: var(--text-dim);
  text-align: center;
  max-width: 550px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

/* === Architecture Grid === */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.arch-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: border-color 0.2s, background 0.2s;
}

.arch-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}

.arch-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.arch-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.arch-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* === Capabilities Grid === */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.cap-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}

.cap-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
}

.cap-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.cap-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.cap-card p {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* === Stats === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.stat-num {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* === Stack Bar === */
.stack-bar {
  text-align: center;
}

.stack-bar h3 {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-radius: 6px;
  color: var(--accent);
}

/* === CTA Section === */
.section-cta {
  background: linear-gradient(180deg, var(--bg) 0%, #081020 100%);
}

.section-cta .section-sub { max-width: 650px; }

.link { color: var(--accent); font-weight: 600; }

/* === Offer Grid === */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.offer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  position: relative;
}

.offer-card.featured {
  border-color: var(--accent-dim);
  background: rgba(34, 211, 238, 0.03);
}

.offer-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.offer-card p {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.offer-price {
  font-family: var(--mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}

.offer-soon {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--yellow);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === Contact Box === */
.contact-box {
  text-align: center;
}

.contact-box p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

/* === Footer === */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-left .logo-icon {
  width: 22px;
  height: 22px;
  font-size: 0.7rem;
}

.footer-right {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-right a {
  color: var(--text-dim);
}

/* === Mobile === */
@media (max-width: 768px) {
  .nav-links a:not(.nav-cta) { display: none; }

  .hero { padding: 6rem 1.25rem 3rem; }
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 1rem; }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .terminal { font-size: 0.7rem; }

  .section { padding: 3.5rem 1.25rem; }

  .arch-grid,
  .cap-grid,
  .offer-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
