:root {
  --dark-navy: #020617;
  --navy: #0b1120;
  --navy-soft: #111a2e;
  --emerald: #22c55e;
  --emerald-dark: #16a34a;
  --sky: #38bdf8;
  --white: #fafcff;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --max-width: 1180px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --transition: 220ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--white);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 45%),
    linear-gradient(180deg, var(--dark-navy) 0%, #111b37 100%);
  min-height: 100vh;
}

body.theme-light {
  color: var(--slate-900);
  background: #f8fafc;
}

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

a:hover {
  text-decoration: underline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 0 clamp(1.4rem, 5vw, 3rem);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
  background: rgba(2, 6, 23, 0.85);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

body.theme-light .site-header {
  background: rgba(248, 250, 252, 0.9);
  border-bottom-color: rgba(148, 163, 184, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  height: clamp(85px, 6vw, 110px);
  width: auto;
  display: block;
}

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

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  color: rgba(248, 250, 252, 0.95);
}

.nav-link:hover {
  color: rgba(248, 250, 252, 1);
  text-decoration: none;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.1), var(--emerald), rgba(34, 197, 94, 0.1));
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--transition), transform var(--transition);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  background: transparent;
  border: none;
  color: rgba(248, 250, 252, 0.95);
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
}

.dropdown-toggle:hover {
  color: rgba(248, 250, 252, 1);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  min-width: 220px;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  background: rgba(2, 6, 23, 0.97);
  box-shadow: 0 24px 45px rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.25);
  display: grid;
  gap: 0.35rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition);
}

body.theme-light .dropdown-menu {
  background: rgba(248, 250, 252, 0.98);
  border-color: rgba(148, 163, 184, 0.4);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.2);
}

.dropdown-menu a {
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  color: inherit;
  font-weight: 500;
}

.dropdown-menu a:hover {
  background: rgba(148, 163, 184, 0.18);
  text-decoration: none;
}

.dropdown[data-open="true"] .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.header-call-ring {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 28% 25%, rgba(255, 255, 255, 0.2), transparent 55%),
    linear-gradient(135deg, var(--emerald) 0%, var(--emerald-dark) 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 15px 25px rgba(34, 197, 94, 0.35), 0 6px 12px rgba(4, 9, 20, 0.25);
  margin-left: 0.65rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.header-call-ring svg {
  width: 20px;
  height: 20px;
}

.header-call-ring:hover,
.header-call-ring:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(34, 197, 94, 0.45), 0 10px 18px rgba(4, 9, 20, 0.3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-dark) 100%);
  color: #fff;
  box-shadow: 0 18px 28px rgba(34, 197, 94, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 36px rgba(34, 197, 94, 0.4);
}

.btn-outline {
  border-color: rgba(148, 163, 184, 0.4);
  color: inherit;
}

.btn-outline:hover {
  background: rgba(148, 163, 184, 0.14);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: inherit;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle span:nth-child(1) { transform: translateY(-6px); }
.menu-toggle span:nth-child(2) { transform: translateY(0); }
.menu-toggle span:nth-child(3) { transform: translateY(6px); }

nav[data-open="true"] { display: grid; }

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

.mobile-panel {
  display: none;
}

@media (max-width: 960px) {
  .nav,
  .nav-list,
  .nav-actions {
    display: none;
  }

  .header-call-ring {
    margin-left: auto;
    margin-right: 0.5rem;
  }

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

  nav[data-open="true"],
  .nav-list[data-open="true"],
  .nav-actions[data-open="true"] {
    display: grid;
  }

  .mobile-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(2, 6, 23, 0.95);
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    padding: 1.25rem;
    display: none !important;
    gap: 0.85rem;
  }

  .mobile-panel[data-open="true"] {
    display: grid !important;
  }

  body.theme-light .mobile-panel {
    background: rgba(248, 250, 252, 0.95);
    border-bottom-color: rgba(148, 163, 184, 0.35);
  }

  .mobile-panel .nav-list {
    display: grid;
    gap: 0.75rem;
  }

  .mobile-panel .dropdown-menu {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0.4rem 0;
    background: transparent;
    gap: 0.2rem;
  }

  .mobile-panel .dropdown-menu a {
    padding: 0.45rem 0.5rem;
    border-radius: 8px;
  }

  .mobile-panel .nav-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
}

.section-title {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: rgba(226, 232, 240, 0.78);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  max-width: 60ch;
}

body.theme-light .section-subtitle {
  color: var(--slate-600);
}

footer {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(0, 12, 36, 0.65);
}

body.theme-light footer {
  background: rgba(241, 245, 249, 0.85);
  border-top-color: rgba(148, 163, 184, 0.35);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer-logo {
  height: 46px;
  width: auto;
  margin-bottom: 0.85rem;
}

.footer-list {
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.tagline {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.75rem;
  color: rgba(148, 197, 255, 0.85);
}

body.theme-light .tagline {
  color: var(--slate-500);
}
