/* ---------- Variables ---------- */
:root {
  --navy: #0f172a;
  --navy-light: #1e293b;
  --blue: #0076c0;
  --cyan: #00a88f;
  --orange: #faa634;
  --red: #e31b23;
  --purple: #9a4e9e;
  --bg: #f8fafc;
  --bg-alt: #eef2f7;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --radius: 14px;
  --max-width: 1140px;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.25; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Brand stripe ---------- */
.brand-stripe {
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--orange), var(--red), var(--purple));
}

/* ---------- Topbar ---------- */
.topbar {
  background: var(--navy);
  color: #cbd5e1;
  font-size: 14px;
}
.topbar-inner {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  padding: 8px 24px;
}
.topbar a:hover { color: var(--cyan); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  white-space: nowrap;
}
.logo-tag {
  color: var(--blue);
  font-family: monospace;
  font-weight: 700;
}
.logo-light { font-weight: 400; color: var(--muted); }

.nav {
  display: flex;
  gap: 32px;
}
.nav a {
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
  transition: color 0.2s;
}
.nav a:hover { color: var(--blue); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 118, 192, 0.25);
}
.btn-primary:hover { background: #005f9e; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 60%, #0c3a5c 100%);
  color: #fff;
  padding: 96px 0 100px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 56px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 14px;
}
.eyebrow.center { text-align: center; }
.hero-text h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.hero-sub {
  margin-top: 20px;
  font-size: 17px;
  color: #cbd5e1;
  max-width: 480px;
}
.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.hero .btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* code window mock */
.code-window {
  background: #0b1220;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.code-window-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-red { background: #f87171; }
.dot-yellow { background: #fbbf24; }
.dot-green { background: #34d399; }
.code-window-body {
  padding: 24px;
  font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
  font-size: 14px;
  color: #cbd5e1;
}
.code-window-body p { margin: 0 0 8px; white-space: pre; }
.c-key { color: var(--purple); }
.c-class { color: var(--blue); }
.c-fn { color: var(--orange); }
.c-var { color: var(--cyan); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 48px;
}
.section-title.center { text-align: center; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-text { font-size: 17px; color: var(--muted); }
.facts {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.fact {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  box-shadow: var(--shadow);
}
.fact-num { font-size: 28px; font-weight: 800; color: var(--blue); }
.fact-label { color: var(--muted); font-size: 15px; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: stretch;
}
.contact-info {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.contact-info h3 { font-size: 20px; margin-bottom: 14px; }
.contact-info p { margin-bottom: 10px; color: var(--muted); }
.contact-info a:hover { color: var(--blue); }
.contact-info .btn { margin-top: 18px; }
.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 320px;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: 56px 0 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.logo-footer { color: #fff; }
.logo-footer .logo-light { color: #94a3b8; }
.footer-inner p { margin-top: 8px; font-size: 14px; color: #94a3b8; }
.footer-contact p { margin-bottom: 6px; font-size: 14px; }
.footer-copy {
  padding: 20px 24px;
  font-size: 13px;
  color: #64748b;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar-inner { justify-content: center; gap: 16px; font-size: 13px; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero-text h1 { font-size: 36px; }
  .section { padding: 64px 0; }
  .section-title { font-size: 26px; }
  .footer-inner { flex-direction: column; }
}
