:root {
  --bg: #01153b;
  --bg-alt: #031c4c;
  --surface: #07265c;
  --surface-2: #0b3070;
  --border: rgba(120, 165, 255, 0.2);
  --text: #e6ecf7;
  --text-muted: #a9b9d8;
  --accent: #38bdf8;
  --accent-2: #6366f1;
  --accent-contrast: #04101c;
  --radius: 14px;
  --container: 1120px;
  --header-h: 88px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  display: block;
}

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

a:hover {
  text-decoration: underline;
}

h1, h2, h3 {
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 56px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.site-nav a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

.site-nav a.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-contrast);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
}

.site-nav a.nav-cta:hover,
.site-nav a.nav-cta.active {
  color: var(--accent-contrast);
  filter: brightness(1.1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease, background 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-contrast);
}

.btn-primary:hover { filter: brightness(1.1); }

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* Layout */

.app-view {
  min-height: calc(100vh - var(--header-h));
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}

.lead {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.center { text-align: center; }

/* Hero */

.hero {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  background:
    radial-gradient(1000px 500px at 15% 0%, rgba(56, 189, 248, 0.12), transparent 60%),
    radial-gradient(800px 500px at 85% 20%, rgba(99, 102, 241, 0.14), transparent 60%),
    var(--bg);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-copy .lead {
  font-size: 1.15rem;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-art img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

/* Stats */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

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

.stat strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

/* Split / About */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split-copy p { color: var(--text-muted); }

.split-media img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
}

.pillar p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Services */

.services {
  display: grid;
  gap: 1rem;
}

.split-top { align-items: start; }

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
}

.service-card h3 { margin-bottom: 0.4rem; }

.service-index {
  display: block;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
}

.service-body p {
  color: var(--text-muted);
  margin: 0;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-facts {
  display: grid;
  gap: 0.8rem;
  margin-top: 2rem;
}

.contact-facts p {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  margin: 0;
}

.contact-facts strong {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem);
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.optional {
  color: var(--text-muted);
  font-weight: 400;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.field input.invalid,
.field textarea.invalid {
  border-color: #f87171;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.error {
  display: block;
  color: #f87171;
  font-size: 0.82rem;
  margin-top: 0.3rem;
  min-height: 1em;
}

.form-status {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--accent);
}

/* Footer */

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer-inner {
  display: grid;
  gap: 1.4rem;
  text-align: center;
  justify-items: center;
}

.footer-logo {
  height: 64px;
  width: auto;
  margin: 0 auto 0.6rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
  max-width: 420px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-nav a:hover { color: var(--text); }

.footer-copy {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: 0;
}

/* Reveal animation */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Responsive */

@media (max-width: 900px) {
  .hero-inner,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-art { order: -1; }

  .stats,
  .pillars {
    grid-template-columns: 1fr;
  }

  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
    transform: translateY(-130%);
    transition: transform 0.3s ease;
  }

  .site-nav.open { transform: translateY(0); }

  .site-nav a {
    padding: 0.9rem 1.4rem;
    border-bottom: 1px solid var(--border);
  }

  .site-nav a.nav-cta {
    margin: 0.8rem 1.4rem;
    text-align: center;
    border-bottom: 0;
  }

  body.nav-open { overflow: hidden; }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .site-nav,
  .nav-toggle span {
    transition: none;
  }
}
