@import url("styles-layout.css");

:root {
  --bg: #05070a;
  --bg-soft: #080c11;
  --panel: #0b1118;
  --panel-hover: #101923;

  --white: #f5f8fb;
  --muted: #96a5b5;
  --muted-2: #687789;

  --blue: #19bfff;
  --blue-bright: #48d1ff;
  --blue-dark: #0877ff;

  --line: rgba(255,255,255,.09);
  --line-blue: rgba(25,191,255,.28);

  --max: 1180px;
  --radius: 22px;

  --shadow: 0 30px 90px rgba(0,0,0,.45);
  --blue-shadow: 0 0 70px rgba(25,191,255,.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;

  background:
    radial-gradient(
      circle at 78% 8%,
      rgba(25,191,255,.12),
      transparent 28%
    ),
    radial-gradient(
      circle at 12% 40%,
      rgba(8,119,255,.07),
      transparent 25%
    ),
    var(--bg);

  color: var(--white);

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";

  position: fixed;
  inset: 0;

  pointer-events: none;
  z-index: -1;

  background-image:
    linear-gradient(
      rgba(255,255,255,.018) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255,255,255,.018) 1px,
      transparent 1px
    );

  background-size: 70px 70px;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(
    var(--max),
    calc(100% - 40px)
  );

  margin-inline: auto;
}

.section {
  padding: 105px 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  color: var(--blue);

  font-size: 11px;
  font-weight: 900;

  letter-spacing: .17em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";

  width: 22px;
  height: 1px;

  background: var(--blue);
  box-shadow: 0 0 12px var(--blue);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 28px;

  font-size: clamp(50px,7vw,92px);
  line-height: .94;

  letter-spacing: -.075em;
  font-weight: 900;
}

h2 {
  margin-bottom: 17px;

  font-size: clamp(34px,4vw,56px);
  line-height: .98;

  letter-spacing: -.055em;
  font-weight: 850;
}

h3 {
  margin-bottom: 9px;

  font-size: 22px;
  line-height: 1.1;

  letter-spacing: -.035em;
}

.hero-accent {
  color: var(--blue);

  text-shadow:
    0 0 30px rgba(25,191,255,.22);
}

.lead {
  max-width: 700px;

  margin-bottom: 0;

  color: var(--muted);

  font-size: 18px;
  line-height: 1.7;
}
/* MOBILE NAVIGATION */

@media (max-width: 900px) {

  .nav {
    position: relative;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;

    flex-direction: column;
    align-items: stretch;

    gap: 0;
    margin: 0;
    padding: 12px;

    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 18px 18px;

    background: rgba(5, 7, 10, .97);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    box-shadow: 0 20px 50px rgba(0,0,0,.4);

    z-index: 200;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 13px 14px;

    border-radius: 10px;

    font-size: 14px;
  }

  .nav-links a:hover {
    background: rgba(25,191,255,.08);
  }

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 37px;

    padding: 0;

    font-size: 0;
  }

  .mobile-toggle::before {
    content: "☰";

    font-size: 18px;
    line-height: 1;
  }

  .mobile-toggle[aria-expanded="true"]::before {
    content: "×";
    font-size: 22px;
  }

  .nav-actions {
    margin-left: auto;
  }

  .nav-actions > .btn:not(.mobile-toggle):not(.btn-studio) {
    display: none;
  }

}

.btn-studio {
  background: linear-gradient(135deg, #19bfff, #0ea5e9);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.btn-studio:hover {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  box-shadow: 0 0 20px rgba(25,191,255,.35);
  color: #fff !important;
}


/* =========================================================
   CANONICAL NAVIGATION
   ========================================================= */

.nav-group {
  position: relative;
}

.nav-group-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 0;
  border: 0;
  background: transparent;
  color: #aeb9c5;

  font-size: 13px;
  font-weight: 650;
}

.nav-group-toggle:hover,
.nav-group.is-open .nav-group-toggle {
  color: white;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  min-width: 190px;

  display: none;
  gap: 4px;
  padding: 8px;

  transform: translateX(-50%);

  border: 1px solid var(--line);
  border-radius: 14px;

  background: rgba(5, 7, 10, .98);
  box-shadow: 0 20px 55px rgba(0,0,0,.45);

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  z-index: 250;
}

.nav-group.is-open .nav-dropdown {
  display: grid;
}

.nav-dropdown a {
  padding: 9px 11px;
  border-radius: 9px;
}

.nav-dropdown a:hover,
.nav-dropdown a.active {
  color: white;
  background: rgba(25,191,255,.09);
}

.nav-links > a.active {
  color: white;
}

.site-search {
  display: flex;
  align-items: center;
  width: 150px;
  height: 36px;

  border: 1px solid var(--line);
  border-radius: 999px;

  background: rgba(255,255,255,.035);
}

.site-search:focus-within {
  border-color: var(--line-blue);
  box-shadow: 0 0 20px rgba(25,191,255,.08);
}

.site-search input {
  width: 100%;
  min-width: 0;
  height: 100%;

  padding: 0 10px 0 13px;
  border: 0;
  outline: 0;

  background: transparent;
  color: var(--white);
  font-size: 12px;
}

.site-search input::placeholder {
  color: var(--muted-2);
}

.site-search button {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;

  border: 0;
  background: transparent;
  color: var(--muted);

  font-size: 18px;
}

.site-search button:hover {
  color: white;
}

.page-controls {
  position: fixed;
  right: 22px;
  bottom: 22px;

  display: flex;
  gap: 8px;

  z-index: 180;

  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);

  transition: opacity .2s ease, transform .2s ease;
}

.page-controls.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.page-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  min-height: 40px;
  padding: 9px 13px;

  border: 1px solid var(--line);
  border-radius: 999px;

  background: rgba(5,7,10,.92);
  color: white;

  font-size: 12px;
  font-weight: 800;

  box-shadow: 0 12px 35px rgba(0,0,0,.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.page-control:hover {
  border-color: var(--line-blue);
  transform: translateY(-2px);
}

.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;
}

@media (max-width: 1100px) {
  .site-search {
    width: 120px;
  }

  .nav-links {
    gap: 13px;
  }
}

@media (max-width: 900px) {
  .site-search {
    width: 42px;
    border-radius: 12px;
  }

  .site-search input {
    display: none;
  }

  .site-search button {
    width: 40px;
    flex-basis: 40px;
  }

  .nav-group {
    width: 100%;
  }

  .nav-group-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 13px 14px;
    border-radius: 10px;
  }

  .nav-group-toggle:hover,
  .nav-group.is-open .nav-group-toggle {
    background: rgba(25,191,255,.08);
  }

  .nav-dropdown {
    position: static;
    min-width: 0;

    display: none;
    transform: none;

    margin: 0 0 6px;
    padding: 4px 0 4px 10px;

    border: 0;
    border-radius: 0;

    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .nav-group.is-open .nav-dropdown {
    display: grid;
  }

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

  .page-controls {
    right: 14px;
    bottom: 14px;
  }
}
