:root {
  --bg: #17182a;
  --bg-soft: #1d1f33;
  --bg-elevated: #23253b;

  --surface: #202238;
  --surface-2: #282a43;
  --surface-3: #30324e;

  --card: #21233a;
  --card-hover: #282b46;

  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  --text: #ffffff;
  --text-soft: #d8d9e6;
  --muted: #9ea2b8;
  --muted-dark: #74788f;

  --accent: #ff2f5b;
  --accent-2: #ff466d;
  --accent-light: #ff7894;
  --accent-dark: #d91f48;

  --violet: #8358ff;
  --cyan: #19d5da;
  --green: #35e27b;
  --yellow: #f4d21f;

  --success: #35e27b;
  --warning: #f6c64b;
  --danger: #ff4d66;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --container: 1180px;

  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.18);
  --shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
  --shadow-accent: 0 12px 30px rgba(255, 47, 91, 0.18);

  --transition: 180ms ease;
}

/* =========================================================
   RESET
========================================================= */

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

html {
  min-width: 320px;

  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  min-width: 320px;
  min-height: 100vh;

  margin: 0;
  padding-top: var(--header-height);

  overflow-x: hidden;

  color: var(--text);
  background: var(--bg);

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Arial,
    sans-serif;

  font-size: 16px;
  line-height: 1.65;

  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
}

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

button {
  padding: 0;
}

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

img,
svg,
video,
canvas,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

figure {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

::selection {
  color: #19080f;
  background: var(--accent);
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute;

  width: 1px;
  height: 1px;

  margin: -1px;
  padding: 0;

  overflow: hidden;
  clip: rect(0, 0, 0, 0);

  border: 0;

  white-space: nowrap;
}

.screen-reader-text:focus {
  top: 8px;
  left: 8px;
  z-index: 99999;

  width: auto;
  height: auto;

  margin: 0;
  padding: 12px 16px;

  overflow: visible;
  clip: auto;

  color: #19080f;
  background: var(--accent);

  border-radius: var(--radius-sm);

  font-weight: 800;
}

/* =========================================================
   LAYOUT
========================================================= */

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.site-main {
  position: relative;
  z-index: 1;
}

.site-main h2,
.site-main h3,
.site-main h4 {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.section-sm {
  padding-block: 30px;
}

.section-lg {
  padding-block: 78px;
}

.section-title {
  max-width: 760px;

  margin: 0 0 22px;

  color: var(--text);

  font-size: clamp(28px, 3.5vw, 43px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.section-title--small {
  font-size: clamp(22px, 2.6vw, 30px);
}

.section-description {
  max-width: 720px;

  margin: -8px 0 30px;

  color: var(--muted);

  font-size: 17px;
  line-height: 1.75;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-bottom: 15px;

  color: var(--accent);

  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 6px;
  height: 6px;

  content: '';

  background: currentColor;
  border-radius: 50%;
}

/* =========================================================
   BUTTONS
========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  min-height: 46px;
  padding: 11px 20px;

  border: 1px solid transparent;
  border-radius: var(--radius-sm);

  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;

  cursor: pointer;

  transition:
    color var(--transition),
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.btn-primary {
  color: #fff;
  background: var(--accent);

  border-color: var(--accent);
}

.btn-primary:hover {
  color: #fff;
  background: var(--accent-2);
  border-color: var(--accent-2);

  transform: translateY(-2px);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);

  border-color: var(--line-strong);
}

.btn-secondary:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);

  border-color: rgba(255, 255, 255, 0.22);

  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* =========================================================
   SHARED SURFACES
========================================================= */

.surface-card {
  background: var(--surface);

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

  box-shadow: var(--shadow-sm);

  transition:
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.surface-card:hover {
  background: var(--card-hover);
  border-color: var(--line-strong);

  box-shadow: var(--shadow);
}

/* =========================================================
   CONTENT HELPERS
========================================================= */

.text-accent {
  color: var(--accent);
}

.text-muted {
  color: var(--muted);
}

.text-soft {
  color: var(--text-soft);
}

.divider {
  width: 100%;
  height: 1px;

  background: var(--line);
}

/* =========================================================
   SCROLL TO TOP
   Vavada Mirror
========================================================= */

.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 80px;
  z-index: 999;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 46px;
  height: 46px;

  overflow: hidden;

  color: #ffffff;

  background:
    linear-gradient(180deg, #29253f 0%, #1d1e34 52%, #17192d 100%) padding-box,
    linear-gradient(135deg, rgba(255, 47, 91, 0.85) 0%, rgba(132, 83, 174, 0.72) 55%, rgba(112, 117, 149, 0.58) 100%) border-box;

  border: 1px solid transparent;
  border-radius: 12px;

  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.28),
    0 0 14px rgba(255, 47, 91, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);

  font-size: 18px;
  font-weight: 900;
  line-height: 1;

  cursor: pointer;

  opacity: 0;
  visibility: hidden;

  transform: translateY(10px) scale(0.96);

  transition:
    opacity 180ms ease,
    visibility 180ms ease,
    transform 180ms ease,
    filter 180ms ease,
    box-shadow 180ms ease;
}

/* =========================================================
   VISIBLE STATE
========================================================= */

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;

  transform: translateY(0) scale(1);
}

/* =========================================================
   HOVER
========================================================= */

.scroll-top:hover {
  filter: brightness(1.08);

  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.32),
    0 0 20px rgba(255, 47, 91, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);

  transform: translateY(-2px) scale(1.02);
}

.scroll-top:hover::after {
  width: 78%;
  opacity: 1;
}

/* =========================================================
   ACTIVE
========================================================= */

.scroll-top:active {
  transform: translateY(0) scale(0.97);
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {
  .scroll-top {
    right: 10px;

    width: 42px;
    height: 42px;

    border-radius: 10px;

    font-size: 16px;
  }
}

/* =========================================================
   TOUCH DEVICES
========================================================= */

@media (hover: none) {
  .scroll-top:hover {
    filter: none;

    transform: translateY(0) scale(1);
  }

  .scroll-top:hover::after {
    width: 48%;
  }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .scroll-top,
  .scroll-top::after {
    transition: none;
  }
}

/* =========================================================
   404 PAGE
========================================================= */

.error-404 {
  display: flex;
  align-items: center;

  min-height: calc(100vh - var(--header-height));
  padding-block: 76px;
}

.error-404__card {
  width: min(100%, 720px);

  margin-inline: auto;
  padding: 56px 34px;

  text-align: center;

  background: var(--surface);

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

  box-shadow: var(--shadow);
}

.error-404__code {
  margin-bottom: 20px;

  color: var(--accent);

  font-size: clamp(76px, 14vw, 142px);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.07em;
}

.error-404__title,
.error-404 h1 {
  margin: 0 auto 16px;

  color: var(--text);

  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.error-404__text,
.error-404 p {
  margin: 0 auto 28px;

  color: var(--muted);

  font-size: 17px;
  line-height: 1.75;
}

.error-404__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1024px) {
  :root {
    --header-height: 68px;
  }

  .section-lg {
    padding-block: 62px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

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

  .section-sm {
    padding-block: 22px;
  }

  .section-lg {
    padding-block: 48px;
  }

  .section-title {
    margin-bottom: 18px;
  }

  .section-description {
    margin-bottom: 24px;

    font-size: 16px;
  }

  .scroll-top {
    right: 14px;

    width: 44px;
    height: 44px;
  }

  .error-404 {
    padding-block: 52px;
  }

  .error-404__card {
    padding: 42px 24px;

    border-radius: var(--radius-lg);
  }

  .error-404__text,
  .error-404 p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(calc(100% - 22px), var(--container));
  }

  .btn {
    min-height: 44px;
    padding-inline: 17px;
  }

  .error-404__card {
    padding: 36px 18px;
  }

  .error-404__actions .btn {
    width: 100%;
  }
}

/* =========================================================
   TOUCH DEVICES
========================================================= */

@media (hover: none) {
  .btn:hover,
  .surface-card:hover,
  .scroll-top:hover {
    transform: none;
  }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
