/* ===== AreaTech Global Styles ===== */
:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --sky-400: #38bdf8;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --emerald-400: #34d399;
  --amber-400: #fbbf24;
  --rose-400: #fb7185;
  --font-display: 'Instrument Serif', serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--slate-950);
  color: var(--slate-300);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid rgba(56, 189, 248, 0.06);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav-brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--sky-500), var(--sky-400));
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 16px;
  color: var(--slate-950);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  color: var(--slate-400);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  background: rgba(56, 189, 248, 0.1) !important;
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--sky-400) !important;
  padding: 10px 22px;
  border-radius: 10px;
  font-weight: 600 !important;
  transition: all 0.2s !important;
}
.nav-cta:hover {
  background: rgba(56, 189, 248, 0.15) !important;
  border-color: var(--sky-400) !important;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.15);
}
.nav-mobile {
  display: none;
  background: none;
  border: none;
  color: var(--slate-400);
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 160px 48px 120px;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(ellipse, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--sky-400);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--sky-400);
  opacity: 0.5;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 400;
  color: #fff;
  line-height: 1.05;
  max-width: 900px;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: italic;
  color: var(--sky-400);
}
.hero-sub {
  font-size: 18px;
  color: var(--slate-400);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 48px;
  font-weight: 400;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--sky-500), var(--sky-600));
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.3), inset 0 1px 0 rgba(255,255,255,0.1);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(14, 165, 233, 0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--slate-700);
  color: var(--slate-200);
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--slate-500);
  transform: translateY(-2px);
}

/* ===== METRICS ===== */
.metrics {
  padding: 60px 48px;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  background: rgba(15, 23, 42, 0.5);
}
.metrics-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.metric-val {
  font-family: var(--font-display);
  font-size: 42px;
  color: #fff;
  margin-bottom: 6px;
}
.metric-label {
  font-size: 13px;
  color: var(--slate-500);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== SECTIONS ===== */
.section-header {
  text-align: center;
  margin-bottom: 80px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 54px);
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.section-header p {
  font-size: 17px;
  color: var(--slate-400);
  max-width: 520px;
  margin: 0 auto;
}

/* ===== FEATURES ===== */
.features {
  padding: 140px 48px;
  max-width: 1200px;
  margin: 0 auto;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 40px 32px;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.feature-card:hover {
  border-color: rgba(56, 189, 248, 0.15);
  background: rgba(255,255,255,0.03);
  transform: translateY(-4px);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  font-size: 22px;
}
.feature-icon.blue { background: rgba(56, 189, 248, 0.1); color: var(--sky-400); }
.feature-icon.green { background: rgba(52, 211, 153, 0.1); color: var(--emerald-400); }
.feature-icon.amber { background: rgba(251, 191, 36, 0.1); color: var(--amber-400); }
.feature-icon.rose { background: rgba(251, 113, 133, 0.1); color: var(--rose-400); }
.feature-card h3 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 12px;
  font-weight: 600;
}
.feature-card p {
  font-size: 14px;
  color: var(--slate-400);
  line-height: 1.7;
}

/* ===== PREVIEW ===== */
.preview {
  padding: 0 48px 140px;
  max-width: 1200px;
  margin: 0 auto;
}
.preview-window {
  background: var(--slate-900);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03);
}
.preview-toolbar {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  gap: 8px;
}
.preview-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--slate-700); }
.preview-dot:nth-child(1) { background: #ff5f57; }
.preview-dot:nth-child(2) { background: #ffbd2e; }
.preview-dot:nth-child(3) { background: #28c840; }
.preview-url {
  margin-left: 16px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 6px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate-500);
}
.preview-content {
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  min-height: 360px;
}
.preview-chart {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.preview-chart-title {
  font-size: 12px;
  color: var(--slate-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.preview-chart-value {
  font-family: var(--font-display);
  font-size: 32px;
  color: #fff;
  margin-bottom: 16px;
}
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  flex: 1;
  padding-top: 16px;
}
.chart-bar {
  flex: 1;
  background: rgba(56, 189, 248, 0.2);
  border-radius: 4px 4px 0 0;
  min-height: 20px;
  transition: all 0.3s;
}
.chart-bar:hover { background: rgba(56, 189, 248, 0.4); }
.preview-sidebar-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 24px;
}
.preview-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.preview-stat-row:last-child { border-bottom: none; }
.preview-stat-label { font-size: 13px; color: var(--slate-400); }
.preview-stat-value { font-size: 13px; color: #fff; font-weight: 600; font-family: var(--font-mono); }
.preview-stat-value.up { color: var(--emerald-400); }
.preview-stat-value.down { color: var(--rose-400); }

/* ===== INTEGRATIONS ===== */
.integrations {
  padding: 140px 48px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.04);
  background: rgba(15, 23, 42, 0.3);
}
.integrations-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 60px;
  opacity: 0.5;
}
.int-logo {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--slate-400);
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 140px 48px;
  text-align: center;
}
.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  color: #fff;
  margin-bottom: 16px;
}
.cta-inner p {
  font-size: 17px;
  color: var(--slate-400);
}

/* ===== FOUNDER SECTION ===== */
.founder-section {
  padding: 100px 48px 140px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.founder-inner {
  max-width: 600px;
  margin: 0 auto;
}
.founder-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  color: #fff;
  margin-bottom: 16px;
}
.founder-inner p {
  font-size: 16px;
  color: var(--slate-400);
  line-height: 1.7;
}
.founder-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--emerald-400);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ===== FOOTER ===== */
.footer {
  padding: 80px 48px 40px;
  border-top: 1px solid rgba(255,255,255,0.04);
  background: rgba(0,0,0,0.3);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}
.footer-col h4 {
  color: var(--slate-200);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  color: var(--slate-500);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 12px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--slate-300); }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: #fff;
  font-size: 16px;
  margin-bottom: 16px;
}
.footer-desc {
  font-size: 14px;
  color: var(--slate-500);
  line-height: 1.7;
  max-width: 280px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.04);
  color: var(--slate-600);
  font-size: 13px;
}
.footer-social {
  display: flex;
  gap: 20px;
}
.footer-social a {
  color: var(--slate-500);
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--slate-300); }

/* ===== PAGE LAYOUT (for inner pages) ===== */
.page-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 160px 48px 100px;
}
.page-container h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.page-container .page-subtitle {
  font-size: 18px;
  color: var(--slate-400);
  margin-bottom: 48px;
  line-height: 1.7;
}
.page-container h2 {
  font-size: 24px;
  color: #fff;
  margin: 48px 0 16px;
  font-weight: 600;
}
.page-container h3 {
  font-size: 18px;
  color: var(--slate-200);
  margin: 32px 0 12px;
  font-weight: 600;
}
.page-container p {
  color: var(--slate-400);
  margin-bottom: 16px;
  line-height: 1.8;
  font-size: 15px;
}
.page-container ul, .page-container ol {
  color: var(--slate-400);
  margin: 0 0 20px 24px;
  line-height: 1.8;
  font-size: 15px;
}
.page-container li { margin-bottom: 8px; }
.page-container a { color: var(--sky-400); text-decoration: underline; text-underline-offset: 3px; }
.page-container a:hover { color: var(--sky-500); }
.page-container code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--sky-400);
}
.page-container pre {
  background: var(--slate-900);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 24px;
  overflow-x: auto;
  margin: 24px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--slate-300);
}
.last-updated {
  font-size: 13px;
  color: var(--slate-600);
  margin-bottom: 32px;
  font-family: var(--font-mono);
}

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav { padding: 16px 24px; }
  .nav-links { display: none; position: fixed; top: 72px; left: 0; right: 0; background: rgba(2,6,23,0.98); backdrop-filter: blur(20px); flex-direction: column; padding: 32px 24px; gap: 20px; border-bottom: 1px solid var(--slate-800); }
  .nav-links.open { display: flex; }
  .nav-mobile { display: block; }
  .hero { padding: 140px 24px 100px; }
  .metrics-inner { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .features, .preview, .cta-section { padding-left: 24px; padding-right: 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .preview-content { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; }
  .page-container { padding: 120px 24px 60px; }
}
