/* ===== Theme tokens ===== */
:root {
  --bg: #020617;
  --bg-gradient-start: #1f2937;
  --bg-gradient-end: #020617;
  --surface: rgba(15, 23, 42, 0.98);
  --surface-soft: rgba(15, 23, 42, 0.9);
  --border: #1f2937;
  --border-soft: #111827;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --primary: #38bdf8;
  --primary-soft: rgba(56, 189, 248, 0.14);
  --accent: #22c55e;
  --danger: #f97373;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.85);
  --shadow-subtle: 0 8px 24px rgba(15, 23, 42, 0.6);
}

/* ===== Base ===== */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(circle at top, var(--bg-gradient-start) 0, var(--bg-gradient-end) 45%, var(--bg) 100%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Layout ===== */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-main {
  flex: 1;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

/* ===== Top Nav ===== */
.site-header {
  border-bottom: 1px solid rgba(15, 23, 42, 0.6);
  background: radial-gradient(circle at top, rgba(30, 64, 175, 0.16), rgba(15, 23, 42, 0.96));
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.7);
}

.nav-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 0%, #38bdf8 0, #0ea5e9 30%, #0b1120 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #e5f3ff;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.4), 0 10px 25px rgba(15, 23, 42, 0.8);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.logo-sub {
  font-size: 11px;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.nav-links a {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
}

.nav-links a:hover {
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.4);
}

.nav-links a.nav-active {
  color: #0b1120;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  border-color: transparent;
  font-weight: 600;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-cta a {
  font-size: 12px;
}

/* ===== Buttons ===== */
.btn {
  border-radius: 999px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  background: #020617;
  font-size: 13px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.btn:hover {
  opacity: 0.95;
}

.btn-primary {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  border-color: transparent;
  color: #0b1120;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.25);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.95);
  color: var(--muted);
}

/* ===== Hero / Sections ===== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.3fr);
  gap: 28px;
  margin-top: 28px;
  margin-bottom: 32px;
}

.hero-text h1 {
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.hero-text p {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--muted);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.badge {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.hero-side-card {
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.14), var(--surface));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  padding: 14px 14px 16px;
  font-size: 12px;
}

.hero-side-card h3 {
  margin: 0 0 8px;
  font-size: 13px;
}

.hero-side-metric {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.hero-side-metric strong {
  font-size: 20px;
}

.hero-side-meta {
  font-size: 11px;
  color: var(--muted);
}

/* ===== Generic cards / grids ===== */
.section {
  margin-bottom: 28px;
}

.section-header {
  margin-bottom: 10px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
}

.section-subtitle {
  font-size: 12px;
  color: var(--muted);
}

.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-subtle);
  padding: 12px 12px 14px;
  font-size: 12px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.card p {
  margin: 0 0 6px;
  color: var(--muted);
}

.card-list {
  font-size: 12px;
  padding-left: 18px;
  margin: 4px 0 0;
  color: var(--muted);
}

/* Pills & labels */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid var(--border-soft);
  color: var(--muted);
}

/* ===== Forms (Contact) ===== */
.form-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-subtle);
  padding: 14px 14px 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  font-size: 12px;
}

.form-field label {
  margin-bottom: 4px;
  color: var(--muted);
}

input[type="text"],
input[type="email"],
textarea {
  padding: 7px 9px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: #020617;
  color: var(--text);
  font-size: 13px;
}

textarea {
  resize: vertical;
  min-height: 86px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid #020617;
  background: #020617;
  padding: 12px 16px 16px;
  font-size: 11px;
  color: var(--muted);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Only stack nav on small screens, keep other layout at 768px */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 24px;
  }
  .card-grid-3 {
    grid-template-columns: 1fr;
  }
  .card-grid-2 {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Nav-specific breakpoint */
@media (max-width: 600px) {
  .nav-shell {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links {
    flex-wrap: wrap;
  }
}
