/* Tokens mirror the Artificery Design System (tokens.json). Keep names and values in sync. */
:root {
  /* Surfaces */
  --bg: #0a1628;
  --bg-alt: #0d1d35;
  --card: #11264a;
  --card-border: #22406a;
  --border: #1c3354;
  --border-strong: #2b4a75;

  /* Text */
  --text: #e6eef9;
  --text-heading: #ffffff;
  --text-muted: #b9cae2;
  --text-nav: #c4d4ea;
  --text-label: #8fb4e0;
  --text-footer: #8fa6c6;
  --text-fine: #7f97b8;

  /* Accent and links */
  --accent: #3b9eff;
  --accent-ink: #06121f;
  --link: #7cc0ff;
  --link-hover: #b5dbff;

  /* Logo tiles: brand graphics only, never text */
  --mark-400: #2d6cb8;
  --mark-500: #1e4e8c;
  --mark-700: #12284a;
  --mark-800: #0f2240;

  /* Type */
  --font-body: "Inter", system-ui, sans-serif;
  --font-display: "Pixelify Sans", sans-serif;

  /* Spacing */
  --space-4: 4px;
  --space-10: 10px;
  --space-12: 12px;
  --space-14: 14px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-28: 28px;
  --space-32: 32px;
  --space-40: 40px;
  --space-64: 64px;
  --space-96: 96px;
  --space-112: 112px;
  --space-120: 120px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Layout */
  --max-width: 1180px;
  --gutter: 32px;
  --control-height: 48px;
  --card-min-width: 280px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--text-heading);
}

a {
  color: var(--link);
}

a:hover {
  color: var(--link-hover);
}

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

/* ---------- Layout ---------- */

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

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

.section-heading h2 {
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-nav {
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  text-decoration: none;
  color: var(--text-heading);
}

.brand:hover {
  color: var(--text-heading);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
}

/* ---------- Hero ---------- */

.hero {
  padding-top: var(--space-112);
  padding-bottom: var(--space-120);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-64);
}

.hero-copy {
  flex: 999 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-28);
}

.hero h1 {
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero-lead {
  max-width: 560px;
  font-size: 21px;
  line-height: 1.5;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-14);
  margin-top: 8px;
}

.hero-art {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  min-height: var(--control-height);
  padding: 0 var(--space-24);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
}

.button-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.button-primary:hover {
  background: var(--link);
  color: var(--accent-ink);
}

.button-secondary {
  border-color: var(--border-strong);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--accent);
  color: var(--text-heading);
}

/* ---------- Projects ---------- */

.projects {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.projects-inner {
  padding-top: var(--space-96);
  padding-bottom: var(--space-96);
  display: flex;
  flex-direction: column;
  gap: var(--space-40);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--card-min-width), 1fr));
  gap: var(--space-24);
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-32);
  display: flex;
  flex-direction: column;
  gap: var(--space-14);
}

.card-placeholder {
  background: transparent;
  border: 1px dashed var(--border-strong);
}

.card-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-label);
}

.card h3 {
  font-size: 26px;
}

.card-body {
  color: var(--text-muted);
}

.card-link {
  margin-top: auto;
  font-weight: 600;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  padding-top: var(--space-40);
  padding-bottom: var(--space-40);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-20);
  font-size: 15px;
  color: var(--text-footer);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-brand .brand-name {
  font-size: inherit;
  letter-spacing: normal;
  color: var(--text-heading);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-24);
  font-weight: 500;
}

.disclaimer {
  width: 100%;
  font-size: 13px;
  color: var(--text-fine);
}
