/* =====================
   01. TOKENS
===================== */

:root {
  --bg: #04070d;
  --bg-2: #0b1320;

  --text: #e8edf5;
  --text-2: #b0bac8;
  --text-3: #7b8798;

  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.12);

  --accent-blue: #3aa7e2;
  --accent-green: #b7f13d;
  --accent-green-2: #99eb45;

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-pill: 999px;

  --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  --blur: blur(18px);
}

/* =====================
   02. LIGHT THEME
===================== */

html[data-theme="light"] {
  --bg: #edf4fa;
  --bg-2: #dbe7f2;

  --text: #0b1b2e;
  --text-2: #43566d;
  --text-3: #667a92;

  --line: rgba(22, 42, 68, 0.08);
  --line-2: rgba(22, 42, 68, 0.14);

  --shadow: 0 18px 42px rgba(31, 58, 97, 0.08);
}

/* =====================
   03. BASE
===================== */

* {
  box-sizing: border-box;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

a,
button,
input,
textarea,
select {
  font: inherit;
}

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

button {
  appearance: none;
  -webkit-appearance: none;
}

/* =====================
   04. BACKGROUND
===================== */

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.page-bg__gradient,
.page-bg__grid,
.page-bg__glow,
.page-bg__cursor,
.page-bg__vignette {
  position: absolute;
  inset: 0;
}

.page-bg__gradient {
  background:
    radial-gradient(circle at 12% 16%, rgba(58, 167, 226, .10), transparent 24%),
    radial-gradient(circle at 82% 22%, rgba(58, 167, 226, .12), transparent 26%),
    radial-gradient(circle at 78% 82%, rgba(58, 167, 226, .06), transparent 26%),
    linear-gradient(180deg, #040a14 0%, #08111d 100%);
}

html[data-theme="light"] .page-bg__gradient {
  background:
    radial-gradient(circle at 12% 16%, rgba(58, 167, 226, .06), transparent 24%),
    radial-gradient(circle at 82% 22%, rgba(58, 167, 226, .08), transparent 26%),
    radial-gradient(circle at 78% 82%, rgba(58, 167, 226, .04), transparent 26%),
    linear-gradient(180deg, #f0f6fc 0%, #e4eef7 100%);
}

.page-bg__grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 68px 68px;
}

html[data-theme="light"] .page-bg__grid {
  background-image:
    linear-gradient(rgba(22, 42, 68, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 42, 68, .05) 1px, transparent 1px);
}

.page-bg__glow { filter: blur(34px); border-radius: 999px; }

.page-bg__glow--1 {
  inset: auto auto 58% 60%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(58, 167, 226, .14) 0%, rgba(58, 167, 226, .05) 34%, transparent 72%);
}

.page-bg__glow--2 {
  inset: 68% auto auto -6%;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(58, 167, 226, .08) 0%, rgba(58, 167, 226, .03) 34%, transparent 72%);
}

.page-bg__cursor {
  width: 360px; height: 360px;
  margin-left: -180px; margin-top: -180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(58, 167, 226, .14) 0%, rgba(58, 167, 226, .05) 42%, transparent 72%);
  opacity: 0.55;
  filter: blur(10px);
  transform: translate(-9999px, -9999px);
  transition: transform 0.08s linear;
}

html[data-theme="light"] .page-bg__cursor {
  background: radial-gradient(circle, rgba(58, 167, 226, .10) 0%, rgba(58, 167, 226, .04) 42%, transparent 72%);
  opacity: 0.42;
}

.page-bg__vignette {
  background:
    linear-gradient(180deg, rgba(3, 8, 20, .08) 0%, transparent 18%, transparent 78%, rgba(3, 8, 20, .18) 100%),
    linear-gradient(90deg, rgba(2, 8, 20, .14) 0%, transparent 12%, transparent 88%, rgba(2, 8, 20, .10) 100%);
}

html[data-theme="light"] .page-bg__vignette {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .16) 0%, transparent 18%, transparent 78%, rgba(219, 230, 240, .14) 100%),
    linear-gradient(90deg, rgba(232, 240, 248, .14) 0%, transparent 12%, transparent 88%, rgba(232, 240, 248, .10) 100%);
}

/* =====================
   05. TOP CONTROLS
===================== */

.top-controls {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.theme-toggle {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: var(--text-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    background 160ms ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--line-2);
  color: var(--text);
}

.theme-toggle__icon {
  font-size: 16px;
  line-height: 1;
}

.theme-toggle__icon--sun { display: none; }

html[data-theme="light"] .theme-toggle__icon--moon { display: none; }
html[data-theme="light"] .theme-toggle__icon--sun  { display: block; }

/* =====================
   06. LAYOUT
===================== */

.site-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 16px 80px;
}

/* =====================
   07. PANELS
===================== */

.panel {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%),
    rgba(13, 24, 40, 0.72);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

html[data-theme="light"] .panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.76) 0%, rgba(255,255,255,0.54) 100%),
    rgba(255,255,255,0.78);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 42%);
  pointer-events: none;
}

.panel--reveal {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    background 240ms ease,
    border-color 240ms ease,
    box-shadow 240ms ease,
    transform 200ms ease;
}

.panel--reveal:hover,
.panel--reveal.is-active {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%),
    rgba(13, 24, 40, 0.72);
  border-color: var(--line-2);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(58, 167, 226, 0.08);
  transform: translateY(-4px);
}

@media (hover: none) {
  .panel--reveal {
    transition:
      background 600ms ease,
      border-color 600ms ease,
      box-shadow 600ms ease,
      transform 500ms ease;
  }
}

/* =====================
   08. TYPO
===================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  width: fit-content;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: rgba(183,241,61,0.10);
  border: 1px solid rgba(183,241,61,0.24);
  color: var(--accent-green);
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-size: clamp(28px, 2.9vw, 44px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 900;
  color: var(--text);
  text-wrap: balance;
}

.section-title--sm {
  font-size: clamp(22px, 1.8vw, 30px);
  line-height: 1.02;
}

.section-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-2);
}

/* =====================
   10. BUTTONS
===================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 16px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  color: #09111a;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
  box-shadow:
    0 16px 30px rgba(58,167,226,0.16),
    0 0 18px rgba(183,241,61,0.10);
}

.btn--secondary {
  background: rgba(255,255,255,0.03);
  border-color: var(--line);
  color: var(--text);
}

.btn--secondary:hover {
  border-color: var(--line-2);
}

/* =====================
   11. PANEL VARIANTS
===================== */

.panel--strong {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .04) 0%, rgba(255, 255, 255, .015) 100%),
    rgba(20, 37, 65, .84);
}

html[data-theme="light"] .panel--strong {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .84) 0%, rgba(255, 255, 255, .62) 100%),
    rgba(255, 255, 255, .90);
}

.panel--strong.panel--reveal:hover,
.panel--strong.panel--reveal.is-active {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .04) 0%, rgba(255, 255, 255, .015) 100%),
    rgba(20, 37, 65, .84);
}

.panel__shade {
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .24) 100%);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

html[data-theme="light"] .panel__shade {
  background: linear-gradient(180deg, transparent 0%, rgba(14, 24, 40, .08) 100%);
}

.panel--reveal:hover .panel__shade,
.panel--reveal.is-active .panel__shade { opacity: 1; }

.panel__inner {
  position: relative;
  z-index: 1;
  min-height: 100%;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel__copy { display: grid; gap: 12px; }

/* =====================
   12. TYPOGRAPHY EXT
===================== */

.section-title--xl { font-size: clamp(38px, 5vw, 72px); line-height: 0.92; }
.section-title--sm { font-size: clamp(22px, 1.8vw, 30px); line-height: 1.02; }

/* =====================
   13. HERO ACTIONS
===================== */

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* =====================
   14. SECTIONS
===================== */

.s-section {
  margin-bottom: 16px;
}

/* =====================
   12. RESPONSIVE
===================== */

@media (max-width: 760px) {
  .site-shell {
    padding: 14px 12px 48px;
  }

  .btn {
    width: 100%;
    justify-content: center;
    min-height: 50px;
  }

  .section-title {
    font-size: 30px;
  }

  .section-title--sm {
    font-size: 24px;
  }

  .section-text {
    font-size: 14px;
  }
}
