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

:root {
  --page: #06101f;
  --page-2: #09162a;
  --surface: rgba(9, 20, 40, 0.78);
  --surface-2: rgba(10, 26, 52, 0.9);
  --surface-3: rgba(255, 255, 255, 0.04);
  --text: #F8FAFC;
  --text-2: #CBD5E1;
  --text-3: #94A3B8;
  --border: rgba(148, 163, 184, 0.18);
  --border-2: rgba(148, 163, 184, 0.34);
  --action: #60A5FA;
  --action-hover: #93C5FD;
  --nav-bg: rgba(6, 16, 31, 0.68);
  --nav-bg-solid: rgba(6, 16, 31, 0.95);
  --shadow: 0 30px 100px rgba(0,0,0,0.48);
  --serif: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background:
    radial-gradient(circle at 22% 18%, rgba(59, 130, 246, 0.18), transparent 28%),
    radial-gradient(circle at 78% 8%, rgba(59, 130, 246, 0.1), transparent 20%),
    linear-gradient(180deg, var(--page-2) 0%, var(--page) 40%, #030914 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.page-shell, nav, main, footer { position: relative; z-index: 1; }
body::before {
  content: "";
  position: fixed;
  inset: -12%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 68% 32%, rgba(96, 165, 250, 0.22) 0%, rgba(96, 165, 250, 0.10) 16%, transparent 34%),
    radial-gradient(circle at 78% 38%, rgba(167, 139, 250, 0.10) 0%, transparent 20%),
    radial-gradient(circle at 50% 68%, rgba(255,255,255,0.04) 0%, transparent 20%);
}

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 88px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}
.logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--text); }
.logo-img {
  height: clamp(44px, 3.3vw, 56px);
  width: auto;
  display: block;
  filter: drop-shadow(0 0 0.75px rgba(255,255,255,0.12)) drop-shadow(0 14px 28px rgba(0,0,0,0.55));
}
.logo-text,
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.nav-desktop {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
.nav-desktop a {
  text-decoration: none;
  color: var(--text-2);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav-desktop a:hover,
.nav-desktop a.is-active {
  color: var(--text);
  background: rgba(96, 165, 250, 0.12);
}
.nav-cta {
  border: 1px solid var(--action);
  color: var(--action) !important;
}
.nav-cta:hover { background: rgba(96, 165, 250, 0.12); color: var(--action-hover) !important; }
.nav-actions { display: inline-flex; align-items: center; gap: 0.75rem; }
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: none;
  border: none;
}
.hamburger span {
  height: 1.5px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-menu {
  display: none;
  position: fixed;
  top: 88px;
  left: 0; right: 0; bottom: 0;
  background: var(--nav-bg-solid);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  padding: 0 5vw 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
  z-index: 95;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  padding: 1rem 0;
  font-size: 1rem;
}
.mobile-menu a:first-child { border-top: 1px solid rgba(148, 163, 184, 0.16); }
.mobile-menu .m-cta {
  margin-top: 1rem;
  border: 1px solid var(--action);
  border-radius: 999px;
  padding: 0.9rem 1.1rem;
  text-align: center;
  color: var(--action);
}

main { padding: 128px 5vw 72px; }
.container { max-width: 1160px; margin: 0 auto; }

.hero-grid {
  min-height: min(88vh, 880px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 1.08fr);
  gap: clamp(1.6rem, 3vw, 3rem);
  align-items: center;
  position: relative;
}
.hero-copy {
  max-width: 620px;
  position: relative;
  z-index: 3;
}
.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--action-hover);
  margin-bottom: 1rem;
}
.hero-copy h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(4.2rem, 10vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  margin-bottom: 1.2rem;
}
.hero-copy p {
  font-size: 1.05rem;
  line-height: 1.92;
  color: var(--text-2);
  max-width: 62ch;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.5rem 0 1.75rem;
}
.hero-points span,
.panel-list span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(7, 17, 34, 0.5);
  color: var(--text-2);
  font-size: 0.82rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 48px;
  padding: 0 1.35rem;
  font-size: 0.92rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--action);
  color: #071120;
  box-shadow: 0 10px 30px rgba(96, 165, 250, 0.22);
}
.btn-primary:hover { background: var(--action-hover); }

.hero-visual-wrap {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  border-radius: 0;
  overflow: hidden;
  border: 0;
  background: none;
  box-shadow: none;
  z-index: 0;
}
.hero-visual-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 66% 46%, rgba(138, 175, 255, 0.14), transparent 15%),
    radial-gradient(circle at 58% 54%, rgba(255, 255, 255, 0.035), transparent 17%),
    radial-gradient(circle at 72% 26%, rgba(96,165,250,0.07), transparent 17%),
    radial-gradient(circle at 30% 24%, rgba(5, 13, 25, 0.50), transparent 36%);
  pointer-events: none;
  filter: blur(18px);
}
.hero-visual-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 60% 48%, transparent 18%, rgba(5, 13, 25, 0.10) 42%, rgba(5, 13, 25, 0.22) 100%),
    linear-gradient(90deg, rgba(5, 13, 25, 0.84) 0%, rgba(5, 13, 25, 0.42) 18%, rgba(5, 13, 25, 0.10) 34%, rgba(5, 13, 25, 0.10) 78%, rgba(5, 13, 25, 0.34) 100%);
}
.hero-visual-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0.76;
  z-index: 1;
  filter: brightness(0.92) contrast(1.02) saturate(0.96);
}

.functions-section { padding-top: 0.5rem; position: relative; z-index: 3; }
.section-head {
  max-width: 760px;
  margin-bottom: 1.35rem;
}
.section-head span {
  display: inline-block;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.75rem;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 0.8rem;
}
.section-head p {
  color: var(--text-2);
  line-height: 1.84;
}

.functions-panel {
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: 32px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(8, 20, 40, 0.82) 0%, rgba(7, 15, 30, 0.9) 100%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.panel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.panel-top strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.panel-top span { color: var(--text-3); font-size: 0.84rem; }
.panel-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.function-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}
.function-card {
  padding: 1.2rem;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(4, 14, 30, 0.58);
}
.function-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}
.function-card p {
  color: var(--text-2);
  line-height: 1.78;
  font-size: 0.93rem;
}
.functions-cta {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.functions-cta p {
  color: var(--text-2);
  line-height: 1.8;
  max-width: 60ch;
}

footer {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding: 1.6rem 5vw 1.9rem;
}
.footer-inner {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  justify-self: start;
}
.footer-logo-img {
  height: 50px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 0.75px rgba(255,255,255,0.12)) drop-shadow(0 14px 28px rgba(0,0,0,0.55));
}
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  flex: none;
  justify-self: center;
}
.footer-social a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-2);
  background: rgba(7, 17, 34, 0.56);
  transition: transform 0.2s, border-color 0.2s, background 0.2s, color 0.2s;
}
.footer-social a:hover {
  transform: translateY(-1px);
  color: var(--text);
  border-color: var(--border-2);
  background: rgba(15, 28, 54, 0.86);
}
.footer-social svg { width: 17px; height: 17px; display: block; }
.footer-copy {
  color: var(--text-3);
  font-size: 0.78rem;
  justify-self: end;
}

@media (max-width: 1080px) {
  .hero-grid,
  .function-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { align-items: start; }
}

@media (max-width: 820px) {
  nav { height: 84px; }
  .nav-desktop { display: none; }
  .hamburger { display: inline-flex; }
  .mobile-menu { display: flex; top: 84px; }
  main { padding-top: 112px; }
  .hero-grid,
  .function-grid,
  .functions-cta { grid-template-columns: 1fr; }
  .hero-grid { min-height: auto; }
  .hero-copy h1 { font-size: clamp(3.5rem, 18vw, 5rem); }
  .hero-visual-wrap {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    order: initial;
  }
  .functions-cta { display: grid; }
  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .footer-logo,
  .footer-copy,
  .footer-social { justify-self: center; }
}

@media (max-width: 640px) {
  .hero-points,
  .panel-list,
  .hero-actions {
    width: 100%;
  }
  .hero-actions .btn,
  .functions-cta .btn {
    width: 100%;
  }
  .hero-copy p,
  .function-card p,
  .functions-cta p,
  .section-head p { font-size: 0.96rem; }
}
