:root {
  --md-primary: #0ea5e9;
  --md-primary-dark: #0369a1;
  --md-primary-container: #e0f2fe;
  --md-secondary: #14b8a6;
  --md-secondary-dark: #0f766e;
  --md-surface: #ffffff;
  --md-surface-2: #f8fafc;
  --md-surface-3: #eef4f9;
  --md-outline: #d7e3ef;
  --md-text: #0f172a;
  --md-text-muted: #51657a;
  --page-bg-start: #f5f9fd;
  --page-bg-end: #f8fafc;
  --header-bg: rgba(255, 255, 255, 0.95);
  --header-border: rgba(148, 163, 184, 0.2);
  --nav-link-color: #334155;
  --menu-bg: #ffffff;
  --band-bg: linear-gradient(90deg, #e0f2fe, #ccfbf1);
  --footer-bg: #0f172a;
  --footer-title: #f8fafc;
  --footer-text: #9db0c8;
  --footer-copy: #7f93af;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --elev-1: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
  --elev-2: 0 8px 20px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.06);
  --elev-3: 0 14px 28px rgba(3, 105, 161, 0.14), 0 2px 8px rgba(3, 105, 161, 0.12);
}

:root[data-theme="dark"] {
  --md-primary: #38bdf8;
  --md-primary-dark: #0ea5e9;
  --md-primary-container: #0d2738;
  --md-secondary: #2dd4bf;
  --md-secondary-dark: #14b8a6;
  --md-surface: #101b2e;
  --md-surface-2: #15243a;
  --md-surface-3: #1b2c45;
  --md-outline: #31475f;
  --md-text: #e2e8f0;
  --md-text-muted: #9eb1c8;
  --page-bg-start: #070d17;
  --page-bg-end: #0e1b2e;
  --header-bg: rgba(9, 15, 27, 0.92);
  --header-border: rgba(148, 163, 184, 0.22);
  --nav-link-color: #cbd5e1;
  --menu-bg: #0f172a;
  --band-bg: linear-gradient(90deg, #10293f, #123a33);
  --footer-bg: #070d17;
  --footer-title: #f1f5f9;
  --footer-text: #a8bbd1;
  --footer-copy: #8fa6bf;
  --elev-1: 0 1px 2px rgba(2, 6, 23, 0.58), 0 2px 6px rgba(2, 6, 23, 0.36);
  --elev-2: 0 12px 24px rgba(2, 6, 23, 0.52), 0 3px 12px rgba(2, 6, 23, 0.3);
  --elev-3: 0 18px 34px rgba(2, 6, 23, 0.58), 0 4px 14px rgba(2, 6, 23, 0.38);
}

:root[data-theme="light"] {
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
  background: linear-gradient(180deg, var(--page-bg-start) 0%, var(--page-bg-end) 100%);
  color: var(--md-text);
  line-height: 1.6;
  transition: background 0.25s ease, color 0.25s ease;
}

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

.container {
  width: min(1120px, calc(100% - 2.4rem));
  margin: 0 auto;
}

.material-symbols-rounded {
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
  line-height: 1;
}

.m-icon {
  font-size: 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  backdrop-filter: blur(8px);
}

.nav-shell {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-logo {
  width: auto;
  height: 44px;
  display: block;
  object-fit: contain;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--md-primary), var(--md-primary-dark));
  color: #ffffff;
  box-shadow: var(--elev-1);
}

.brand-mark .material-symbols-rounded {
  font-size: 24px;
}

.brand-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text small {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--md-text-muted);
  font-weight: 500;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  border-radius: 999px;
  padding: 0.56rem 0.95rem;
  color: var(--nav-link-color);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--md-primary-dark);
  background: var(--md-primary-container);
}

.auth-area {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: 0.65rem;
}

.theme-toggle {
  gap: 0.32rem;
  min-width: 136px;
}

.theme-toggle .material-symbols-rounded {
  font-size: 18px;
}

.theme-label {
  font-size: 0.84rem;
}

.btn {
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.68rem 1.16rem;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--md-primary), var(--md-primary-dark));
  box-shadow: 0 8px 18px rgba(3, 105, 161, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(3, 105, 161, 0.35);
}

.btn-soft {
  color: var(--md-primary-dark);
  background: var(--md-primary-container);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.btn-soft:hover {
  background: #d5ecfb;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--md-outline);
  border-radius: 12px;
  background: var(--menu-bg);
  color: var(--md-primary-dark);
  align-items: center;
  justify-content: center;
}

.menu-toggle .material-symbols-rounded {
  font-size: 24px;
}

.hero {
  background: linear-gradient(135deg, #0b385f 0%, #0a6698 42%, #0f766e 100%);
  color: #f8fafc;
  padding: 5.8rem 0 4.8rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 1.4rem;
  align-items: center;
}

.hero-copy {
  max-width: 700px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #ecfeff;
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.kicker .material-symbols-rounded {
  font-size: 18px;
}

.hero h1 {
  margin: 1rem 0 0.9rem;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0;
  color: rgba(241, 245, 249, 0.95);
  font-size: 1.02rem;
}

.hero-actions {
  margin-top: 1.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-card {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  backdrop-filter: blur(4px);
  box-shadow: var(--elev-2);
}

.hero-card h3 {
  margin: 0;
  font-size: 1rem;
}

.hero-card p {
  margin: 0.55rem 0 0;
  font-size: 0.94rem;
}

.metrics {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.metric {
  background: rgba(2, 6, 23, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  padding: 0.68rem 0.78rem;
}

.metric strong {
  display: block;
  color: #f0f9ff;
  font-size: 1.28rem;
  line-height: 1.2;
}

.metric span {
  color: rgba(226, 232, 240, 0.95);
  font-size: 0.83rem;
}

.section {
  padding: 4.7rem 0;
}

.section-slim {
  padding: 3.4rem 0;
}

.section-title {
  max-width: 740px;
  margin-bottom: 1.7rem;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
  letter-spacing: -0.015em;
}

.section-title p {
  margin: 0.64rem 0 0;
  color: var(--md-text-muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.panel {
  border: 1px solid var(--md-outline);
  border-radius: var(--radius-md);
  background: var(--md-surface);
  box-shadow: var(--elev-1);
  padding: 1.2rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

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

.panel-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--md-primary-container);
  color: var(--md-primary-dark);
}

.panel-icon .material-symbols-rounded {
  font-size: 22px;
}

.panel h3 {
  margin: 0.85rem 0 0.45rem;
  font-size: 1.08rem;
}

.panel p {
  margin: 0;
  color: var(--md-text-muted);
  font-size: 0.95rem;
}

.band {
  background: var(--band-bg);
  border-top: 1px solid var(--md-outline);
  border-bottom: 1px solid var(--md-outline);
}

.band-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.band-item {
  padding: 1rem 0;
}

.band-item strong {
  display: block;
  font-size: 1.28rem;
  color: var(--md-primary-dark);
}

.band-item span {
  color: var(--md-secondary-dark);
  font-weight: 500;
  font-size: 0.9rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.76rem;
}

.timeline li {
  border: 1px solid var(--md-outline);
  background: var(--md-surface);
  border-radius: 12px;
  padding: 0.86rem 0.95rem;
}

.timeline li strong {
  display: block;
  color: var(--md-primary-dark);
  margin-bottom: 0.12rem;
  font-size: 0.95rem;
}

.timeline li span {
  color: var(--md-text-muted);
  font-size: 0.92rem;
}

.values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.58rem;
}

.value-chip {
  border-radius: 999px;
  border: 1px solid #bfe7fb;
  background: #ecf7fe;
  color: var(--md-primary-dark);
  padding: 0.35rem 0.72rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1rem;
}

.info-stack {
  display: grid;
  gap: 0.8rem;
}

.info-block {
  border: 1px solid var(--md-outline);
  border-radius: var(--radius-md);
  background: var(--md-surface);
  box-shadow: var(--elev-1);
  padding: 1rem;
}

.info-block h3 {
  margin: 0;
  font-size: 1.02rem;
}

.info-block p,
.info-block a {
  margin: 0.38rem 0 0;
  color: var(--md-text-muted);
}

.info-block a:hover {
  color: var(--md-primary-dark);
}

.contact-form {
  border: 1px solid var(--md-outline);
  border-radius: var(--radius-md);
  background: var(--md-surface);
  box-shadow: var(--elev-2);
  padding: 1.2rem;
}

.field {
  margin-bottom: 0.85rem;
}

.field label {
  display: block;
  margin-bottom: 0.3rem;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--md-outline);
  border-radius: 12px;
  background: var(--md-surface-2);
  color: var(--md-text);
  padding: 0.75rem 0.88rem;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: #7dd3fc;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.field textarea {
  min-height: 148px;
  resize: vertical;
}

.alert {
  border-radius: 12px;
  padding: 0.72rem 0.88rem;
  margin-bottom: 0.85rem;
  border: 1px solid transparent;
  font-size: 0.92rem;
}

.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  margin-top: 1.8rem;
  padding: 2.7rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem;
}

.site-footer h3 {
  margin: 0 0 0.62rem;
  font-size: 1rem;
  color: var(--footer-title);
}

.site-footer p,
.site-footer a,
.site-footer li {
  color: var(--footer-text);
  font-size: 0.93rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.34rem;
}

.site-footer a:hover {
  color: #e0f2fe;
}

.footer-copy {
  margin-top: 1.55rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding-top: 0.95rem;
  font-size: 0.84rem;
  color: var(--footer-copy);
}

:root[data-theme="dark"] .contact-form .field label {
  color: #cbd5e1;
}

:root[data-theme="dark"] .hero-actions .btn-soft {
  color: #dbeafe;
  background: rgba(14, 165, 233, 0.2);
  border-color: rgba(125, 211, 252, 0.45);
}

:root[data-theme="dark"] .hero-actions .btn-soft:hover {
  background: rgba(14, 165, 233, 0.28);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.show {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .container {
    width: min(1120px, calc(100% - 2rem));
  }

  .hero-grid,
  .split,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 780px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav,
  .auth-area {
    position: absolute;
    left: 1rem;
    right: 1rem;
    border: 1px solid var(--md-outline);
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--elev-2);
    padding: 0.74rem;
    display: none;
  }

  :root[data-theme="dark"] .site-nav,
  :root[data-theme="dark"] .auth-area {
    background: var(--menu-bg);
  }

  .site-nav {
    top: 78px;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
  }

  .site-nav a {
    border-radius: 10px;
  }

  .auth-area {
    top: calc(78px + 214px);
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
  }

  .auth-area .btn {
    width: 100%;
  }

  .theme-label {
    display: none;
  }

  body.nav-open .site-nav,
  body.nav-open .auth-area {
    display: flex;
  }

  .hero {
    padding-top: 4.8rem;
    padding-bottom: 3.9rem;
  }

  .section {
    padding: 3.9rem 0;
  }

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

@media (max-width: 620px) {
  .card-grid,
  .band-grid {
    grid-template-columns: 1fr;
  }

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

  .hero p {
    font-size: 0.95rem;
  }
}
