:root {
  --brand-teal: #078068;
  --brand-teal-strong: #056b58;
  --brand-teal-soft: #329682;
  --brand-navy: #00183f;
  --brand-mint: #e5f8f5;
  --brand-line: #cfe8e2;
  --brand-white: #ffffff;
  --text: #173052;
  --text-soft: #4f627f;
  --surface: #f8fcfb;
  --shadow: 0 18px 40px rgba(0, 24, 63, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --wrap: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Lato', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfb 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
}

.wrap {
  width: min(var(--wrap), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 14px;
  z-index: 30;
  padding: 0 0 10px;
  background: transparent;
  pointer-events: none;
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(var(--wrap) + 24px), calc(100% - 24px));
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 18px 38px rgba(0, 24, 63, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.brand img,
.footer-logo {
  width: auto;
  height: 42px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(0, 24, 63, 0.04);
}

.site-nav a,
.nav-parent {
  padding: 12px 14px;
  border-radius: 999px;
  color: var(--brand-navy);
  font-size: 0.95rem;
  font-weight: 700;
  transition:
    160ms ease,
    box-shadow 160ms ease;
}

.site-nav a:hover,
.site-nav a.active,
.nav-group.active > .nav-parent,
.nav-parent:hover {
  color: var(--brand-white);
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-teal-soft));
  box-shadow: 0 10px 22px rgba(7, 128, 104, 0.26);
}

.nav-group {
  position: relative;
  padding-bottom: 10px;
  margin-bottom: -10px;
}

.nav-parent {
  display: inline-flex;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 38px rgba(0, 24, 63, 0.14);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 140ms ease,
    visibility 140ms ease;
}

.nav-dropdown a {
  display: block;
  border-radius: 12px;
}

.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-teal-soft));
  color: var(--brand-white);
  padding: 10px 16px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(7, 128, 104, 0.24);
}

.page-hero {
  padding: 138px 0 56px;
  background:
    radial-gradient(circle at top left, rgba(99, 218, 194, 0.18), transparent 30%),
    radial-gradient(circle at right center, rgba(7, 128, 104, 0.22), transparent 26%),
    linear-gradient(145deg, #03275b 0%, #044c66 52%, #06745f 100%);
}

.page-hero-home {
  background:
    radial-gradient(circle at top left, rgba(125, 237, 214, 0.2), transparent 28%),
    radial-gradient(circle at 82% 24%, rgba(7, 128, 104, 0.24), transparent 22%),
    linear-gradient(145deg, #03275b 0%, #05556a 56%, #0a7e67 100%);
}

.page-hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: center;
}

.page-hero:not(.page-hero-home) .eyebrow,
.page-hero:not(.page-hero-home) .card-kicker {
  color: #91ebda;
}

.page-hero:not(.page-hero-home) h1,
.page-hero:not(.page-hero-home) h3 {
  color: var(--brand-white);
}

.page-hero:not(.page-hero-home) .lead,
.page-hero:not(.page-hero-home) .hero-panel p {
  color: rgba(255, 255, 255, 0.82);
}

.page-hero:not(.page-hero-home) .hero-panel {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 48px rgba(0, 16, 42, 0.22);
  backdrop-filter: blur(10px);
}

.page-hero-home .hero-copy .eyebrow {
  color: #b7fff1 !important;
}

.page-hero-home .hero-copy h1 {
  color: #ffffff !important;
  text-shadow: 0 10px 26px rgba(0, 16, 42, 0.32);
}

.page-hero-home .hero-copy p,
.page-hero-home .hero-copy .lead {
  color: rgba(255, 255, 255, 0.96) !important;
}

.page-hero-home .hero-actions .button-primary {
  color: #ffffff;
  background: #0aa083;
  box-shadow: 0 16px 28px rgba(0, 16, 42, 0.22);
}

.page-hero-home .hero-actions .button-outline {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.34);
}

.page-hero-home .hero-actions .button-outline:hover {
  background: rgba(255, 255, 255, 0.2);
}

.page-hero-home .metric-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 48px rgba(0, 16, 42, 0.2);
  backdrop-filter: blur(10px);
}

.page-hero-home .metric-card strong {
  color: var(--brand-white);
}

.page-hero-home .metric-card p {
  color: rgba(255, 255, 255, 0.82);
}

.hero-copy h1,
.page-hero h1,
.section-title h2,
.archive-card h2,
.content-card h3,
.team-card h3,
.news-card h3,
.panel h3 {
  margin: 0;
  font-family: 'Roboto Slab', serif;
  color: var(--brand-navy);
}

.hero-copy h1,
.page-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.1;
  max-width: 14ch;
}

.section-title h2,
.archive-card h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.18;
}

.content-card h3,
.team-card h3,
.news-card h3,
.panel h3 {
  font-size: 1.4rem;
  line-height: 1.2;
}

.eyebrow,
.card-kicker,
.stat-label,
.section-title p:first-child {
  margin: 0 0 12px;
  color: var(--brand-teal);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
}

.lead,
.hero-copy p,
.section-title .section-lead,
.content-card p,
.team-card p,
.news-card p,
.archive-card p,
.panel p,
.site-footer p,
.site-footer a,
.article-body p,
.contact-list li,
.metric-card p {
  color: var(--text-soft);
  line-height: 1.75;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
}

.button-primary {
  color: var(--brand-white);
  background: var(--brand-teal);
}

.button-primary:hover {
  background: var(--brand-teal-strong);
}

.button-outline {
  color: var(--brand-teal);
  background: var(--brand-white);
  border-color: rgba(7, 128, 104, 0.22);
}

.hero-panel,
.panel,
.content-card,
.metric-card,
.team-card,
.news-card,
.archive-card,
.partner-card,
.contact-card {
  background: var(--brand-white);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 28px;
}

.hero-visual {
  display: grid;
  gap: 18px;
}

.hero-badge {
  padding: 20px;
}

.hero-badge img {
  width: 180px;
  margin-bottom: 16px;
}

.hero-slideshow {
  padding: 0;
  overflow: hidden;
}

.hero-video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--brand-line);
  background: rgba(0, 16, 42, 0.38);
  box-shadow: 0 18px 42px rgba(0, 12, 32, 0.22);
}

.hero-video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #021126;
}

.feature-band-video {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
}

.section-video-frame {
  background:
    radial-gradient(circle at top left, rgba(7, 128, 104, 0.18), transparent 42%),
    #021126;
}

.slideshow-track {
  display: flex;
  transition: transform 320ms ease;
}

.slide-card {
  min-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 20px;
  padding: 28px;
  align-items: center;
  background:
    radial-gradient(circle at top left, rgba(7, 128, 104, 0.18), transparent 38%),
    linear-gradient(145deg, rgba(0, 24, 63, 0.98), rgba(6, 96, 82, 0.94));
  color: var(--brand-white);
}

.slide-copy h3 {
  margin-bottom: 14px;
  color: var(--brand-white);
}

.slide-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.slide-copy .card-kicker {
  color: #8de1d0;
}

.slide-copy .button-outline {
  margin-top: 22px;
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--brand-white);
  background: rgba(255, 255, 255, 0.08);
}

.slide-copy .button-outline:hover {
  background: rgba(255, 255, 255, 0.16);
}

.slide-media {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.slide-media img {
  width: 100%;
  max-width: 240px;
  max-height: 210px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.18));
}

.slideshow-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px 18px;
  background: linear-gradient(180deg, rgba(0, 24, 63, 0.02), rgba(7, 128, 104, 0.08));
}

.slideshow-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--brand-white);
  color: var(--brand-navy);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 24, 63, 0.12);
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.slideshow-button:hover {
  transform: translateY(-1px);
  background: var(--brand-teal);
  color: var(--brand-white);
}

.slideshow-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1;
}

.slideshow-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 24, 63, 0.18);
  cursor: pointer;
  transition:
    width 180ms ease,
    background 180ms ease;
}

.slideshow-dot.is-active {
  width: 34px;
  background: var(--brand-teal);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.metric-card {
  padding: 18px;
}

.metric-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-navy);
  font-family: 'Roboto Slab', serif;
  font-size: 2rem;
}

.page-section {
  padding: 56px 0;
}

.page-section.mint {
  background: var(--brand-mint);
}

.section-title {
  margin-bottom: 28px;
  max-width: 760px;
}

.grid-3,
.news-grid,
.team-grid,
.partner-grid,
.contact-grid,
.metrics-grid {
  display: grid;
  gap: 22px;
}

.grid-3,
.news-grid,
.team-grid,
.partner-grid,
.metrics-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-card,
.news-card,
.team-card,
.contact-card,
.archive-card {
  padding: 24px;
}

.content-card ul,
.contact-list {
  margin: 16px 0 0;
  padding-left: 18px;
}

.feature-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.feature-band img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--brand-line);
  box-shadow: var(--shadow);
}

.partner-card {
  min-height: 128px;
  display: grid;
  place-items: center;
  padding: 18px;
}

.partner-card img {
  max-height: 56px;
  width: auto;
  object-fit: contain;
}

.logo-card img {
  max-height: 86px;
  width: auto;
  margin: 0 0 18px;
  object-fit: contain;
}

.logo-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.logo-wall-trust {
  grid-template-columns: 1fr 1fr 1.2fr;
  align-items: stretch;
}

.logo-wall-card,
.badge-stack {
  background: var(--brand-white);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
}

.logo-wall-card {
  min-height: 144px;
  display: grid;
  place-items: center;
}

.logo-wall-card img {
  max-width: 100%;
  max-height: 72px;
  width: auto;
  object-fit: contain;
}

.badge-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: flex-start;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(7, 128, 104, 0.1);
  color: var(--brand-teal-strong);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.team-card {
  display: grid;
  gap: 18px;
}

.team-card img {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid rgba(7, 128, 104, 0.1);
}

.team-card a,
.news-card a,
.site-footer a,
.inline-link {
  color: var(--brand-teal);
  font-weight: 700;
}

.archive-list {
  display: grid;
  gap: 20px;
}

.archive-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.archive-copy {
  max-width: 760px;
}

.article-hero-inner {
  align-items: start;
}

.article-visual {
  display: flex;
  justify-content: flex-end;
}

.article-visual img {
  max-width: 280px;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--brand-line);
  background: var(--brand-white);
  box-shadow: var(--shadow);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
  gap: 24px;
}

.article-body,
.article-aside {
  padding: 28px;
}

.timeline-list,
.project-list,
.icon-grid,
.developer-grid {
  display: grid;
  gap: 18px;
}

.compact-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timeline-item,
.project-card,
.icon-card,
.developer-card {
  padding: 22px 24px;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  background: var(--brand-white);
  box-shadow: var(--shadow);
}

.icon-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.developer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.icon-card img,
.developer-card img {
  width: auto;
  max-height: 72px;
  margin-bottom: 18px;
}

.icon-card h3,
.developer-card h3 {
  margin-bottom: 10px;
}

.project-card h3,
.icon-card h3,
.developer-card h3 {
  margin-top: 0;
  font-family: 'Roboto Slab', serif;
  color: var(--brand-navy);
}

.timeline-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: start;
}

.timeline-item strong {
  color: var(--brand-teal);
  font-family: 'Roboto Slab', serif;
  font-size: 1.2rem;
}

.timeline-item span,
.project-card p {
  color: var(--text-soft);
  line-height: 1.75;
}

.article-body {
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  background: var(--brand-white);
  box-shadow: var(--shadow);
}

.contact-card strong {
  color: var(--brand-navy);
  font-family: 'Roboto Slab', serif;
  font-size: 1.1rem;
}

.contact-form {
  padding: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-grid label {
  display: grid;
  gap: 8px;
  color: var(--brand-navy);
  font-weight: 700;
}

.form-grid label.full {
  grid-column: 1 / -1;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(0, 24, 63, 0.16);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.form-grid input:focus,
.form-grid textarea:focus {
  outline: 2px solid rgba(7, 128, 104, 0.18);
  border-color: var(--brand-teal);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.form-status {
  margin: 0;
  color: var(--brand-teal);
  font-weight: 700;
}

.form-status.is-error {
  color: #b73434;
}

.site-footer {
  padding: 56px 0 26px;
  background:
    radial-gradient(circle at top left, rgba(7, 128, 104, 0.22), transparent 26%),
    linear-gradient(180deg, #031634 0%, #021126 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 0.8fr 0.55fr;
  gap: 28px;
  padding-bottom: 28px;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.82);
}

.footer-brand,
.footer-column {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer-brand > p {
  max-width: 34ch;
}

.footer-contact-stack {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.footer-contact-stack p {
  margin: 0;
}

.footer-link-list {
  display: grid;
  gap: 10px;
}

.footer-link-list a,
.footer-contact-stack a {
  width: fit-content;
}

.footer-link-list a:hover,
.footer-contact-stack a:hover,
.footer-bottom a:hover {
  color: var(--brand-white);
}

.footer-title {
  margin: 0 0 12px;
  color: var(--brand-white);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.footer-note {
  margin-top: 16px;
  font-size: 0.9rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .page-hero-inner,
  .feature-band,
  .article-layout,
  .footer-grid,
  .archive-card,
  .hero-stats,
  .grid-3,
  .news-grid,
  .team-grid,
  .partner-grid,
  .logo-wall,
  .logo-wall-trust,
  .contact-grid,
  .metrics-grid,
  .compact-list,
  .form-grid,
  .icon-grid,
  .developer-grid {
    grid-template-columns: 1fr;
  }

  .archive-card {
    align-items: flex-start;
  }

  .slide-card {
    grid-template-columns: 1fr;
  }

  .slide-media {
    min-height: 180px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 840px) {
  .site-header {
    top: 10px;
  }

  .header-inner {
    min-height: 74px;
    width: min(calc(var(--wrap) + 8px), calc(100% - 20px));
    padding: 12px 14px;
    border-radius: 24px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 22px 38px rgba(0, 24, 63, 0.16);
    backdrop-filter: blur(18px);
  }

  .site-nav.open {
    display: flex;
  }

  .nav-group {
    position: static;
  }

  .nav-dropdown {
    position: static;
    display: block;
    min-width: 0;
    padding: 6px 0 0 14px;
    border: 0;
    box-shadow: none;
  }

  .nav-dropdown a {
    padding: 8px 10px;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 20px));
  }

  .page-hero {
    padding: 118px 0 40px;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.4rem);
  }

  .hero-panel,
  .content-card,
  .news-card,
  .team-card,
  .contact-card,
  .archive-card,
  .article-body,
  .article-aside,
  .partner-card,
  .timeline-item,
  .project-card,
  .contact-form {
    padding: 20px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .slide-card {
    padding: 22px;
  }

  .slideshow-controls {
    padding: 12px 14px 16px;
  }

  .form-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
