@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
  --navy-deep: #0b1a2e;
  --navy: #132238;
  --slate-700: #2d3a4f;
  --slate-500: #5a6a7e;
  --slate-400: #8a96a6;
  --slate-300: #b0bcc6;
  --slate-200: #d1d9e0;
  --slate-100: #e8ecf0;
  --slate-50: #f4f6f8;
  --white: #ffffff;
  --teal-700: #0f766e;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --teal-300: #5eead4;
  --teal-200: #99f6e4;
  --teal-100: #ccfbf1;
  --teal-50: #f0fdfa;
  --blue-accent: #38bdf8;
  --font-serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(11,26,46,0.06), 0 1px 2px rgba(11,26,46,0.04);
  --shadow-md: 0 4px 12px rgba(11,26,46,0.08), 0 2px 4px rgba(11,26,46,0.04);
  --shadow-lg: 0 12px 36px rgba(11,26,46,0.10), 0 4px 12px rgba(11,26,46,0.05);
  --shadow-xl: 0 20px 50px rgba(11,26,46,0.12), 0 8px 20px rgba(11,26,46,0.06);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: clamp(0.938rem, 0.9rem + 0.25vw, 1.063rem);
  line-height: 1.7;
  color: var(--slate-700);
  background-color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--navy-deep);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.5rem, 2rem + 3vw, 4.25rem);
}

h2 {
  font-size: clamp(1.875rem, 1.5rem + 2vw, 3rem);
}

h3 {
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem);
}

h4 {
  font-size: clamp(1.125rem, 0.95rem + 0.8vw, 1.5rem);
}

p {
  max-width: none;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

a {
  color: var(--teal-600);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--teal-700);
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 3rem);
}

/* ===== HEADER / NAV ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.site-header.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 0.85rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 3rem);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--white);
  text-decoration: none;
  transition: color var(--transition);
  flex-shrink: 0;
}

.site-header.scrolled .site-logo {
  color: var(--navy-deep);
}

.site-logo svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.site-header.scrolled .nav-link {
  color: var(--slate-500);
}

.site-header.scrolled .nav-link:hover {
  color: var(--navy-deep);
  background: var(--slate-50);
}

.nav-link.active {
  color: var(--white);
}

.site-header.scrolled .nav-link.active {
  color: var(--navy-deep);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  line-height: 1.4;
}

.btn-primary {
  background: var(--teal-600);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(13,148,136,0.3);
}

.btn-primary:hover {
  background: var(--teal-700);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(13,148,136,0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--slate-200);
  border: 1.5px solid rgba(255,255,255,0.25);
}

.btn-secondary:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
}

.btn-outline {
  background: transparent;
  color: var(--teal-600);
  border: 1.5px solid var(--teal-600);
}

.btn-outline:hover {
  background: var(--teal-600);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--slate-500);
  border: 1.5px solid var(--slate-200);
}

.btn-ghost:hover {
  color: var(--navy-deep);
  border-color: var(--slate-300);
  background: var(--slate-50);
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.813rem;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.site-header.scrolled .nav-toggle span {
  background: var(--navy-deep);
}

/* ===== HERO ===== */
.page-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 40%, #1a3a5c 100%);
  overflow: hidden;
  padding: clamp(8rem, 12vw, 10rem) 0 clamp(5rem, 8vw, 7rem);
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 70vw;
  height: 70vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(20,184,166,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  background: radial-gradient(circle, rgba(56,189,248,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 5vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 600px;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.813rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-400);
  margin-bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1.5px;
  background: var(--teal-400);
}

.hero-title {
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-title em {
  font-style: italic;
  color: var(--teal-300);
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(1.063rem, 0.95rem + 0.5vw, 1.25rem);
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-meta-value {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--white);
}

.hero-meta-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-mockup {
  width: 100%;
  max-width: 560px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
}

.mockup-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}

.mockup-dot:first-child { background: #ff6b6b; }
.mockup-dot:nth-child(2) { background: #ffd93d; }
.mockup-dot:last-child { background: #6bcb77; }

.mockup-body {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.mockup-field {
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
}

.mockup-field.highlight {
  border-color: var(--teal-500);
  background: rgba(20,184,166,0.08);
  box-shadow: 0 0 0 3px rgba(20,184,166,0.1);
}

.mockup-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.mockup-btn {
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--teal-600);
  opacity: 0.8;
  align-self: flex-start;
}

/* ===== SECTIONS ===== */
.section-wrapper {
  padding: clamp(4rem, 7vw, 7rem) 0;
}

.section-wrapper.alt-bg {
  background: var(--slate-50);
}

.section-wrapper.dark-bg {
  background: var(--navy-deep);
}

.section-heading-wrapper {
  text-align: center;
  max-width: 700px;
  margin: 0 auto clamp(3rem, 4vw, 4rem);
}

.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.813rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 0.875rem;
  display: inline-block;
}

.section-heading {
  margin-bottom: 1rem;
}

.lead-paragraph {
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.188rem);
  color: var(--slate-500);
  line-height: 1.75;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== CARD GRID ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.75rem;
}

.card-grid.three-col {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid.two-col {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 2vw, 2.25rem);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--slate-200);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--teal-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--teal-600);
  font-size: 1.25rem;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy-deep);
  margin-bottom: 0.75rem;
}

.card-text {
  font-size: 0.938rem;
  color: var(--slate-500);
  line-height: 1.7;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--teal-600);
  margin-top: 1.25rem;
  text-decoration: none;
}

.card-link:hover {
  color: var(--teal-700);
  gap: 0.6rem;
}

.card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.card:hover .card-link svg {
  transform: translateX(3px);
}

/* ===== IMAGE / FIGURE ===== */
.image-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  line-height: 0;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-wrapper:hover img {
  transform: scale(1.02);
}

/* ===== CONTENT SECTIONS ===== */
.body-text {
  font-size: 1rem;
  color: var(--slate-500);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 5vw, 5rem);
  align-items: center;
}

.content-grid.reverse {
  direction: rtl;
}

.content-grid.reverse > * {
  direction: ltr;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.6);
  padding: clamp(3.5rem, 5vw, 5rem) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.25fr;
  gap: clamp(2rem, 3vw, 3rem);
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.375rem;
  color: var(--white);
  text-decoration: none;
  margin-bottom: 1rem;
}

.footer-logo svg {
  width: 28px;
  height: 28px;
}

.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
}

.footer-col-title {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-cta-text {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  font-size: 0.813rem;
  color: rgba(255,255,255,0.3);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-bottom-links a:hover {
  color: rgba(255,255,255,0.7);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-meta {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .card-grid.three-col {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .content-grid.reverse {
    direction: ltr;
  }

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

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 0.5rem;
    transition: right var(--transition);
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
  }

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

  .nav-link {
    color: rgba(255,255,255,0.7);
    width: 100%;
    padding: 0.75rem 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    border-radius: 0;
  }

  .nav-link:hover {
    background: none;
    color: var(--white);
  }

  .nav-toggle {
    display: flex;
  }

  .header-actions .btn-secondary {
    display: none;
  }

  .card-grid.three-col,
  .card-grid.two-col {
    grid-template-columns: 1fr;
  }

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

  .hero-meta {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    text-align: center;
  }
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-2 { gap: 1rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
/* universal guards (not a template) */
*{box-sizing:border-box}img,svg,video{max-width:100%;height:auto}h1,h2,h3,h4,p,li,a,span,blockquote{overflow-wrap:break-word;word-break:normal}html{-webkit-text-size-adjust:100%}body{margin:0}
