/* Design Tokens — from design-tokens.json */
:root {
  /* Colors */
  --color-bg: #EEEEEE;
  --color-bg-alt: #F5F5F5;
  --color-text: #000000;
  --color-text-muted: #666666;
  --color-heading: #000000;
  --color-accent: #334488;
  --color-link: #334488;
  --color-border: #E5E5E5;
  --color-btn-primary-bg: #334488;
  --color-btn-primary-text: #FFFFFF;
  --color-surface: #FFFFFF;

  /* Typography */
  --font-heading: 'system-ui', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'system-ui', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --weight-heading: 600;
  --weight-body: 400;

  /* Spacing */
  --section-padding: 100px;
  --container-max-width: 1200px;
  --nav-height: 64px;

  /* Effects */
  --transition: all 0.3s ease;
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
  --border-radius: 0px;
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  font-weight: var(--weight-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: #1a2a5e;
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  color: var(--color-heading);
  line-height: 1.2;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.site-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-heading);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-logo:hover {
  text-decoration: none;
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.nav-links a.active {
  color: var(--color-accent);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  position: relative;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-heading);
  margin: 5px auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Feature Icons ── */
.feature-icon {
  margin-bottom: 20px;
}

/* ── Hero ── */
.hero {
  padding: var(--section-padding) 0;
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

.hero-blob {
  position: absolute;
  top: -100px;
  right: -100px;
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 680px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-text-muted);
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero .cta-link {
  display: inline-block;
  padding: 12px 32px;
  background: var(--color-btn-primary-bg);
  color: var(--color-btn-primary-text);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero .cta-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(51, 68, 136, 0.25);
  background: #1a2a5e;
  text-decoration: none;
  color: var(--color-btn-primary-text);
}

/* ── Sections ── */
.section {
  padding: var(--section-padding) 0;
}

.section--alt {
  background: var(--color-surface);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 16px;
}

/* ── Feature Cards ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  padding: 40px 32px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.section--alt .feature-card {
  background: var(--color-bg-alt);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ── About Preview ── */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-preview h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.about-preview p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about-preview .read-more {
  display: inline-block;
  margin-top: 8px;
  font-weight: 500;
  font-size: 15px;
}

/* ── CTA Banner ── */
.cta-banner {
  text-align: center;
  padding: 80px 0;
  background: var(--color-btn-primary-bg);
  color: var(--color-btn-primary-text);
}

.cta-banner h2 {
  color: var(--color-btn-primary-text);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  font-size: 16px;
}

.cta-banner .cta-link {
  display: inline-block;
  padding: 12px 32px;
  background: var(--color-btn-primary-text);
  color: var(--color-btn-primary-bg);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-banner .cta-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: var(--color-btn-primary-bg);
}

/* ── Footer ── */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer-inner {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  list-style: none;
  margin-bottom: 24px;
}

.footer-nav a {
  font-size: 14px;
  color: var(--color-text-muted);
}

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

.footer-copy {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ── Page Headers (subpages) ── */
.page-header {
  padding: 60px 0;
  text-align: center;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.page-header p {
  color: var(--color-text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* ── Content Blocks (subpages) ── */
.content-block {
  padding: 60px 0;
}

.content-block + .content-block {
  border-top: 1px solid var(--color-border);
}

.content-block h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.content-block p {
  color: var(--color-text-muted);
  max-width: 720px;
  line-height: 1.7;
  margin-bottom: 16px;
}

/* ── Contact Form ── */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--color-heading);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-submit {
  display: inline-block;
  padding: 12px 32px;
  background: var(--color-btn-primary-bg);
  color: var(--color-btn-primary-text);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(51, 68, 136, 0.25);
  background: #1a2a5e;
}

/* ── Services List ── */
.services-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 720px;
  margin: 0 auto;
}

.service-item {
  padding: 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.service-item h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.service-item p {
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ── Entrance Animation ── */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-enter {
  animation: fadeIn 0.6s ease-out both;
}

.content-enter-d1 { animation-delay: 0.1s; }
.content-enter-d2 { animation-delay: 0.2s; }
.content-enter-d3 { animation-delay: 0.3s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-preview {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  :root {
    --section-padding: 60px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100dvh;
    background: var(--color-surface);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    border-left: 1px solid var(--color-border);
    transition: right 0.3s ease;
    z-index: 105;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 16px;
    color: var(--color-text);
  }

  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.3);
    z-index: 104;
  }

  .nav-overlay.open {
    display: block;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 50vh;
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .footer-nav {
    flex-direction: column;
    gap: 12px;
  }
}