:root {
  --teal: #1D9E75;
  --teal-dark: #0d3b34;
  --blue: #378ADD;
  --coral: #D85A30;
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --border: #E7E7E1;
  --text-hi: #16241F;
  --text-mid: #4A5550;
  --text-mute: #8A948F;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg);
  color: var(--text-mid);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

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

h1, h2, h3 { font-family: var(--font-display); color: var(--text-hi); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 18px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
p { margin-bottom: 18px; color: var(--text-mid); }
strong { color: var(--text-hi); font-weight: 600; }
a { color: inherit; text-decoration: none; }

.tagline {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 14px;
}

blockquote {
  border-left: 3px solid var(--teal);
  padding: 4px 0 4px 20px;
  margin: 24px 0 6px;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-hi);
}

.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(250, 250, 248, 0.82);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.nav-container { max-width: var(--container); margin: 0 auto; padding: 0 28px; display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.02em; color: var(--text-hi); }
.logo-accent { color: var(--teal); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 0.92rem; color: var(--text-mid); transition: color 0.2s var(--ease); font-weight: 500; }
.nav-links a:hover { color: var(--teal); }
.btn-nav {
  background: var(--teal);
  color: white !important;
  padding: 9px 20px;
  border-radius: 999px;
  transition: all 0.2s var(--ease);
}
.btn-nav:hover { background: var(--teal-dark); transform: translateY(-1px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text-hi); transition: transform 0.25s var(--ease), opacity 0.2s; }
.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); }

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s var(--ease);
}
.btn-primary { background: var(--text-hi); color: white; }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); }
.btn-secondary { background: rgba(255,255,255,0.18); border: 1.5px solid rgba(255,255,255,0.5); color: white; }
.btn-secondary:hover { background: rgba(255,255,255,0.3); }
.btn-block { width: 100%; text-align: center; border: none; cursor: pointer; }
.btn-link { color: var(--teal); font-weight: 600; font-size: 0.92rem; }
.btn-link:hover { color: var(--blue); }

.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 140px 28px 80px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 45%, var(--blue) 100%);
  text-align: center;
}
.hero-blob {
  position: absolute; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%);
  top: -160px; right: -120px; border-radius: 50%;
  pointer-events: none;
}
.hero-blob::after {
  content: ''; position: absolute; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 70%);
  bottom: -400px; left: -450px; border-radius: 50%;
}

.hero-content { position: relative; z-index: 1; max-width: 720px; }
.eyebrow { font-family: var(--font-display); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; color: rgba(255,255,255,0.85); }
.hero-title { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 18px 0 22px; color: white; }
.hero-subtitle { font-size: 1.1rem; color: rgba(255,255,255,0.9); max-width: 600px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-bottom: 46px; }

.reveal-line { opacity: 0; transform: translateY(16px); animation: lineUp 0.7s var(--ease) forwards; }
.hero-title.reveal-line { animation-delay: 0.1s; }
.hero-subtitle.reveal-line { animation-delay: 0.28s; }
.hero-actions.reveal-line { animation-delay: 0.44s; }
.hero-cards.reveal-line { animation-delay: 0.6s; }
@keyframes lineUp { to { opacity: 1; transform: translateY(0); } }

.hero-cards { display: flex; gap: 14px; max-width: 620px; margin: 0 auto; }
.gcard {
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  padding: 18px 16px;
  flex: 1;
  color: white;
  font-size: 0.85rem;
  text-align: left;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.gcard:hover { transform: translateY(-4px); background: rgba(255,255,255,0.22); }
.gcard-icon { width: 26px; height: 26px; margin-bottom: 10px; color: white; }
.gcard-icon svg { width: 100%; height: 100%; }
.gcard b { display: block; font-family: var(--font-display); font-size: 1rem; margin-bottom: 2px; }

.scroll-indicator { position: relative; z-index: 1; margin-top: 30px; display: flex; align-items: center; gap: 10px; font-size: 0.72rem; color: rgba(255,255,255,0.7); letter-spacing: 0.06em; }
.arrow-down { width: 1px; height: 22px; background: linear-gradient(rgba(255,255,255,0.7), transparent); }

body.reduced-motion .reveal-line { animation: none; opacity: 1; transform: none; }

.story-section { padding: 110px 0; }
.grid-2 { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; }
.grid-2.align-start { align-items: start; }
.grid-2.align-center { align-items: center; }

.spec-sheet {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(20, 40, 35, 0.06);
  opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.spec-sheet.in-view { opacity: 1; transform: translateY(0); }
.spec-sheet-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 22px;
  background: linear-gradient(120deg, var(--teal-dark), var(--teal));
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
  color: white;
}
.spec-rev { color: rgba(255,255,255,0.7); }
.spec-rows { display: flex; flex-direction: column; }
.spec-row {
  display: grid; grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.spec-row:last-child { border-bottom: none; }
.spec-row dt { font-family: var(--font-display); font-size: 0.76rem; font-weight: 600; color: var(--teal); letter-spacing: 0.03em; text-transform: uppercase; padding-top: 2px; }
.spec-row dd { color: var(--text-hi); font-size: 0.95rem; }

.specialties-section { padding: 100px 0; background: var(--surface); }
.section-header { max-width: 640px; margin: 0 auto 60px; text-align: center; }
.section-header p { font-size: 1.05rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.specialty-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  opacity: 0; transform: translateY(20px);
}
.specialty-card.in-view { opacity: 1; transform: translateY(0); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.specialty-card:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(20,40,35,0.1); }
.icon-wrap { width: 52px; height: 52px; border-radius: 14px; padding: 12px; margin-bottom: 20px; }
.icon-wrap svg { width: 100%; height: 100%; }
.icon-teal { background: #E1F5EE; color: var(--teal); }
.icon-blue { background: #E6F1FB; color: var(--blue); }
.icon-coral { background: #FAECE7; color: var(--coral); }
.specialty-card p { font-size: 0.95rem; }

.network-section { padding: 100px 0; }
.stats-row { display: flex; gap: 40px; margin-top: 30px; }
.stat-item { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; background: linear-gradient(120deg, var(--teal), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-family: var(--font-display); font-size: 0.72rem; font-weight: 600; color: var(--text-mute); letter-spacing: 0.06em; margin-top: 4px; }

.network-visual { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.network-visual.in-view { opacity: 1; transform: translateY(0); }
.map-svg { width: 100%; height: auto; }
.arc { stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw 2s var(--ease) forwards; }
.network-visual.in-view .arc:nth-child(1) { animation-delay: 0.1s; }
.network-visual.in-view .arc:nth-child(2) { animation-delay: 0.25s; }
.network-visual.in-view .arc:nth-child(3) { animation-delay: 0.4s; }
.network-visual.in-view .arc:nth-child(4) { animation-delay: 0.55s; }
.network-visual.in-view .arc:nth-child(5) { animation-delay: 0.7s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hub-ring { transform-origin: 200px 160px; animation: ring 2.4s ease-in-out infinite; }
@keyframes ring { 0% { r: 6; opacity: 1; } 100% { r: 22; opacity: 0; } }
.hub-label { font-family: var(--font-display); font-size: 11px; font-weight: 600; fill: var(--text-mute); letter-spacing: 1px; }

.contact-section { padding: 100px 0; background: var(--surface); }
.contact-box {
  max-width: 640px; margin: 0 auto;
  background: linear-gradient(160deg, #F3FBF8, #EAF4FB);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 50px 44px;
  opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.contact-box.in-view { opacity: 1; transform: translateY(0); }
.contact-box .section-header { margin-bottom: 34px; text-align: left; max-width: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text-hi);
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin-bottom: 14px;
  transition: border-color 0.2s;
}
.contact-form textarea { grid-column: 1 / -1; resize: vertical; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--text-mute); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--teal); }

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.form-status { min-height: 22px; font-size: 0.9rem; margin-top: 4px; margin-bottom: 0; }
.form-status.success { color: var(--teal); }
.form-status.error { color: #C0392B; }

.contact-form button:disabled { opacity: 0.7; cursor: not-allowed; }

.footer { padding: 64px 0 28px; background: var(--text-hi); }
.footer .logo { color: white; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 0.88rem; margin-top: 12px; max-width: 320px; color: rgba(255,255,255,0.6); }
.footer-links h4, .footer-info h4 { font-family: var(--font-display); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; color: rgba(255,255,255,0.5); margin-bottom: 14px; }
.footer-links a, .footer-info p { display: block; font-size: 0.9rem; color: rgba(255,255,255,0.75); margin-bottom: 10px; }
.footer-links a:hover { color: var(--teal); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; font-size: 0.85rem; color: rgba(255,255,255,0.5); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 2px;
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed; top: 64px; right: 0; left: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: flex-start; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease);
  }
  .nav-links.open { max-height: 340px; }
  .nav-links a { width: 100%; padding: 14px 28px; border-bottom: 1px solid var(--border); }
  .btn-nav { margin: 14px 28px; display: inline-block; }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero-cards { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .story-section, .specialties-section, .network-section, .contact-section { padding: 70px 0; }
}
