:root {
  --ink: #17212b;
  --navy: #173a59;
  --blue: #2f6f9f;
  --blue-dark: #245779;
  --blue-soft: #eaf2f7;
  --paper: #ffffff;
  --canvas: #f5f7f8;
  --warm: #f0ece5;
  --muted: #5f6b75;
  --line: #d9e0e5;
  --success: #1f6b49;
  --danger: #9c2f2f;
  --shadow: 0 18px 50px rgba(21, 47, 68, 0.09);
  --radius: 8px;
  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--navy);
  color: white;
}
.skip-link:focus { left: 8px; }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--ink);
}
.brand span { color: var(--blue); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  color: #35424d;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--blue); }

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 21px;
  border: 1px solid var(--navy);
  border-radius: 5px;
  background: var(--navy);
  color: white !important;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.nav-cta { min-height: 42px; padding: 0 17px; }
.button:hover, .nav-cta:hover { background: var(--blue-dark); }
.button.secondary { background: transparent; color: var(--navy) !important; }
.button.secondary:hover { background: var(--blue-soft); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  color: var(--ink);
  font-size: 22px;
}

.hero {
  padding: 98px 0 90px;
  background: linear-gradient(110deg, var(--paper) 0 63%, var(--blue-soft) 63% 100%);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 72px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
h1, h2, h3 {
  margin-top: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.12;
}
h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(44px, 6.5vw, 76px);
  letter-spacing: -2.4px;
}
h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4.5vw, 50px);
  letter-spacing: -1.3px;
}
h3 { margin-bottom: 10px; font-size: 25px; }
.lead {
  max-width: 720px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

.intro-card {
  padding: 34px;
  border-top: 5px solid var(--blue);
  background: white;
  box-shadow: var(--shadow);
}
.intro-card h2 { font-size: 28px; letter-spacing: -.4px; }
.intro-card p { color: var(--muted); }
.plain-list { margin: 22px 0 0; padding: 0; list-style: none; }
.plain-list li { padding: 11px 0; border-top: 1px solid var(--line); font-weight: 700; }

.section { padding: 88px 0; }
.section.alt { background: var(--canvas); }
.section.dark { background: var(--navy); color: white; }
.section.dark h2, .section.dark h3 { color: white; }
.section.dark .eyebrow { color: #9dc3dc; }
.section.dark p { color: #d7e1e8; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 18px; }

.service-grid,
.feature-grid,
.pricing-grid,
.work-grid,
.process-grid {
  display: grid;
  gap: 20px;
}
.service-grid { grid-template-columns: repeat(3, 1fr); }
.feature-grid { grid-template-columns: repeat(3, 1fr); }
.pricing-grid { grid-template-columns: repeat(4, 1fr); }
.work-grid { grid-template-columns: repeat(3, 1fr); }
.process-grid { grid-template-columns: repeat(4, 1fr); }

.service-card,
.feature-card,
.price-card,
.process-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}
.service-card { display: flex; min-height: 285px; flex-direction: column; }
.service-card .number {
  margin-bottom: 38px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
}
.service-card p,
.feature-card p,
.price-card p,
.process-card p { color: var(--muted); }
.service-card .text-link { margin-top: auto; }
.text-link { color: var(--blue); font-weight: 800; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.statement {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
  align-items: start;
}
.statement p { margin-top: 0; color: var(--muted); font-size: 19px; }

.page-hero {
  padding: 82px 0 72px;
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { max-width: 920px; font-size: clamp(42px, 6vw, 68px); }
.page-hero .lead { margin-bottom: 0; }

.legal-hero {
  padding: 76px 0 64px;
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}
.legal-container { width: min(900px, calc(100% - 40px)); margin: 0 auto; }
.legal-hero h1 { max-width: 780px; font-size: clamp(40px, 6vw, 62px); }
.legal-hero > .legal-container > p:not(.eyebrow):not(.updated) { max-width: 760px; color: var(--muted); font-size: 18px; }
.legal-hero .updated { margin: 22px 0 0; color: var(--muted); font-size: 14px; }
.legal-content { padding: 48px 0 76px; }
.legal-content .notice,
.legal-content .terms-card,
.legal-content .policy-card {
  margin-bottom: 18px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}
.legal-content .notice { border-left: 4px solid var(--blue); background: var(--blue-soft); color: #43515d; }
.legal-content .terms-card h2,
.legal-content .policy-card h2 { margin-bottom: 12px; font-size: clamp(22px, 3vw, 28px); }
.legal-content h2 span { color: var(--blue); }
.legal-content p,
.legal-content li { color: var(--muted); }
.legal-content strong { color: var(--ink); }
.legal-content ul,
.legal-content ol { padding-left: 24px; }
.legal-content li { margin-bottom: 7px; }
.legal-content .summary { border-color: #b9cbd8; background: var(--canvas); }

.price-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 600;
}
.price-card.featured { border-color: var(--blue); box-shadow: var(--shadow); }

.work-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.work-card:hover { transform: translateY(-3px); border-color: #aebbc4; box-shadow: var(--shadow); }
.work-card:focus-visible { outline: 3px solid rgba(47, 111, 159, .35); outline-offset: 3px; }
.work-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.work-card div { padding: 22px; }
.work-card h3 { font-size: 22px; }
.work-card p { margin-bottom: 0; color: var(--muted); }
.work-card .work-type { margin: 0 0 5px; color: var(--blue); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.work-card .work-link { display: inline-block; margin-top: 16px; color: var(--navy); font-size: 14px; font-weight: 800; }

.process-card .step {
  display: flex;
  width: 38px;
  height: 38px;
  margin-bottom: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--navy);
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}
.panel {
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}
.card-preview { max-width: 430px; margin: 0 auto; border-radius: 12px; box-shadow: var(--shadow); }

.cta-band { padding: 64px 0; background: var(--navy); color: white; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band h2 { margin-bottom: 8px; color: white; font-size: 38px; }
.cta-band p { margin: 0; color: #d7e1e8; }
.cta-band .button { border-color: white; background: white; color: var(--navy) !important; flex: 0 0 auto; }

.game-callout {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 38px;
  align-items: center;
  padding: 38px;
  border-radius: var(--radius);
  background: #111820;
  color: white;
}
.game-callout img { width: 170px; border-radius: 18px; }
.game-callout h2 { margin-bottom: 10px; color: white; font-size: 38px; }
.game-callout p { margin: 0; color: #cad3da; }
.game-callout .button { border-color: #d83a3a; background: #d83a3a; white-space: nowrap; }
.game-callout .button:hover { background: #b82e2e; }

.form-layout {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 56px;
  align-items: start;
}
.contact-details { padding: 30px; border-left: 4px solid var(--blue); background: var(--blue-soft); }
.contact-details a { color: var(--navy); font-weight: 700; }
.contact-form {
  display: grid;
  gap: 19px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 800; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid #bdc8d0;
  border-radius: 4px;
  background: white;
  color: var(--ink);
}
.field textarea { min-height: 145px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: 3px solid rgba(47, 111, 159, .2); border-color: var(--blue); }
.form-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-note { margin: 0; color: var(--muted); font-size: 14px; }
.form-status { min-height: 24px; margin: 0; font-weight: 700; }
.form-status.success { color: var(--success); }
.form-status.error { color: var(--danger); }

.site-footer { padding: 56px 0 28px; background: #101d28; color: #d7e1e8; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; }
.site-footer .brand { color: white; }
.site-footer h3 { color: white; font-family: Arial, Helvetica, sans-serif; font-size: 15px; text-transform: uppercase; letter-spacing: 1px; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: #d7e1e8; text-decoration: none; }
.footer-links a:hover { color: white; }
.footer-bottom { margin-top: 42px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); color: #9babb8; font-size: 14px; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    padding: 22px 20px 26px;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    background: white;
    border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .hero { background: var(--paper); }
  .hero-grid, .statement, .split, .form-layout { grid-template-columns: 1fr; gap: 38px; }
  .game-callout { grid-template-columns: 120px 1fr; }
  .game-callout img { width: 120px; }
  .game-callout .button { grid-column: 1 / -1; justify-self: start; }
  .service-grid, .feature-grid, .work-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid, .process-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, var(--max)); }
  .hero, .section, .page-hero { padding: 64px 0; }
  .legal-container { width: min(100% - 28px, 900px); }
  .legal-hero { padding: 58px 0 48px; }
  .legal-content { padding: 30px 0 54px; }
  .legal-content .notice,
  .legal-content .terms-card,
  .legal-content .policy-card { padding: 22px 20px; }
  h1 { font-size: 43px; letter-spacing: -1.5px; }
  .lead { font-size: 18px; }
  .service-grid, .feature-grid, .pricing-grid, .work-grid, .process-grid, .footer-grid, .field-row { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .cta-band .container { align-items: flex-start; flex-direction: column; }
  .game-callout { grid-template-columns: 1fr; }
  .game-callout img { width: 135px; }
  .game-callout .button { grid-column: auto; }
  .contact-form { padding: 25px; }
}

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