/* ---------- Fonts ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Inter-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/Inter-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/Inter-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/JetBrainsMono-Regular.woff2") format("woff2");
}

/* ---------- Brand tokens ---------- */
:root {
  --navy:       #0C447C;
  --blue:       #185FA5;
  --deep:       #042C53;
  --coral:      #D85A30;
  --amber:      #EF9F27;
  --sky:        #85B7EB;
  --light-blue: #E6F1FB;
  --text:       #444444;
  --muted:      #6B7280;
  --bg:         #FFFFFF;
  --bg-soft:    #F7FAFD;
  --border:     #E2EAF3;

  --max-width: 1080px;
  --content-width: 760px;
  --gutter: 1.5rem;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo,
               Consolas, monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ---------- Base ---------- */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

main { flex: 1 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 0.95rem;
}
.logo-mark { width: 28px; height: auto; }
.logo-link:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 4px;
  border-radius: 4px;
}
.nav {
  display: flex;
  gap: 1.75rem;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav a {
  color: var(--navy);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav a:hover { border-bottom-color: var(--coral); }
.nav a:focus-visible { outline: 2px solid var(--coral); outline-offset: 4px; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #EAF2FB;
  background: var(--deep);
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(216, 90, 48, 0.18), transparent 60%),
    radial-gradient(800px 400px at 0% 100%, rgba(24, 95, 165, 0.45), transparent 60%),
    linear-gradient(180deg, #042C53 0%, #06335f 100%);
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(133, 183, 235, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(133, 183, 235, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}
.hero-inner {
  padding: clamp(4rem, 10vw, 7rem) var(--gutter) clamp(4rem, 10vw, 6rem);
  max-width: 920px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky);
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(133, 183, 235, 0.3);
  border-radius: 999px;
  background: rgba(133, 183, 235, 0.07);
  margin-bottom: 1.5rem;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(216, 90, 48, 0.18);
}

.hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  max-width: 18ch;
}
.hero h1 .accent {
  color: var(--coral);
  background: linear-gradient(180deg, var(--coral) 0%, var(--amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  margin-top: 1.25rem;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: #B7CDE6;
  max-width: 52ch;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--coral);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(216, 90, 48, 0.35);
}
.btn-primary:hover { background: #C24B23; transform: translateY(-1px); }
.btn-ghost {
  color: #EAF2FB;
  border: 1px solid rgba(133, 183, 235, 0.35);
}
.btn-ghost:hover { background: rgba(133, 183, 235, 0.1); }
.btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* ---------- Sections (general) ---------- */
section { scroll-margin-top: 80px; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--coral);
  text-transform: lowercase;
  margin-bottom: 0.6rem;
}
.section-label.light { color: var(--amber); }

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--navy);
}

/* ---------- Capabilities ---------- */
.capabilities {
  background: var(--bg-soft);
  padding: clamp(4rem, 8vw, 5.5rem) 0;
  border-bottom: 1px solid var(--border);
}
.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2.25rem;
}
.cap-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.cap-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -16px rgba(12, 68, 124, 0.25);
  border-color: var(--sky);
}
.cap-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--light-blue);
  color: var(--navy);
  margin-bottom: 1rem;
}
.cap-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.cap-card p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
}

/* ---------- About ---------- */
.about {
  padding: clamp(4rem, 8vw, 5.5rem) 0;
  border-bottom: 1px solid var(--border);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}
.about-body p {
  font-size: 1.05rem;
  color: var(--text);
}
.meta {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}
.meta div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
  font-size: 0.95rem;
}
.meta dt {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-top: 2px;
}
.meta dd { color: var(--navy); font-weight: 500; }

/* ---------- Contact ---------- */
.contact {
  background:
    radial-gradient(700px 300px at 90% 10%, rgba(216, 90, 48, 0.15), transparent 60%),
    linear-gradient(180deg, #0C447C 0%, #042C53 100%);
  color: #EAF2FB;
  padding: clamp(4rem, 8vw, 6rem) 0;
}
.contact-inner { max-width: 720px; }
.contact h2 { color: #FFFFFF; }
.contact-lede {
  margin-top: 0.75rem;
  font-size: 1.05rem;
  color: #B7CDE6;
  max-width: 50ch;
}
.email {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 500;
  color: #FFFFFF;
  text-decoration: none;
  border-bottom: 1px solid rgba(216, 90, 48, 0.6);
  padding-bottom: 2px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.email:hover {
  border-bottom-color: var(--coral);
  color: var(--amber);
}
.email:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; border-radius: 2px; }

/* ---------- Footer ---------- */
.site-footer {
  flex-shrink: 0;
  background: #021B36;
  color: #8AA4C2;
  font-size: 0.88rem;
  padding: 1.75rem 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #EAF2FB;
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
}
.footer-meta { text-align: right; line-height: 1.5; }
.footer-meta p { margin: 0; }
.company-no { color: #6E8AAA; font-family: var(--font-mono); font-size: 0.8rem; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav { gap: 1.1rem; font-size: 0.88rem; }
  .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .meta div { grid-template-columns: 110px 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
}

@media (max-width: 480px) {
  .nav a:first-child { display: none; }
  .header-inner { height: 58px; }
  .hero h1 { max-width: none; }
  .code-card { font-size: 0.78rem; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
