/* =========================================
   XSCAPEVISION — PREMIUM DESIGN SYSTEM
   Dark / Light themes
========================================= */

:root {
  color-scheme: dark;

  --ink: #edf4ff;
  --muted: #9aaac0;

  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-soft: rgba(59, 130, 246, .12);

  --bg: #080f1c;
  --surface: #101b2c;
  --surface-alt: #142238;

  --line: #23334a;

  --shadow: 0 12px 35px rgba(0, 0, 0, .25);
  --shadow-hover: 0 18px 45px rgba(0, 0, 0, .35);

  --radius: 14px;
  --content-width: 1120px;

  --header-bg: rgba(8, 15, 28, .88);
}

:root[data-theme="light"] {
  color-scheme: light;

  --ink: #101d35;
  --muted: #64748b;

  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #eff6ff;

  --bg: #f5f8fc;
  --surface: #ffffff;
  --surface-alt: #edf3fa;

  --line: #e0e7f0;

  --shadow: 0 8px 30px rgba(16, 29, 53, .06);
  --shadow-hover: 0 16px 40px rgba(16, 29, 53, .12);

  --header-bg: rgba(255, 255, 255, .90);
}

/* GLOBAL */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: Inter, system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;

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

  margin: 0;
  line-height: 1.7;

  -webkit-font-smoothing: antialiased;

  transition:
    background .25s ease,
    color .25s ease;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .2s ease;
}

a:hover {
  color: var(--accent-hover);
}

button {
  font: inherit;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 1rem max(1.5rem, calc((100% - var(--content-width)) / 2));

  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -.05em;
  color: var(--ink);
}

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

nav a {
  color: var(--muted);
  font-size: .92rem;
  font-weight: 600;
}

nav a:hover {
  color: var(--accent-hover);
}

/* THEME SWITCH */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;

  min-height: 40px;
  padding: .5rem .85rem;

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

  color: var(--ink);
  background: var(--surface);

  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;

  transition: all .2s ease;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
  background: var(--accent-soft);
}

/* REGION BANNER */

.region-banner {
  background: var(--accent-soft);
  border-bottom: 1px solid var(--line);

  padding: .75rem 1.5rem;

  display: flex;
  gap: 1rem;
  align-items: center;

  font-size: .9rem;
  color: var(--ink);
}

.region-banner a {
  color: var(--accent-hover);
  font-weight: 700;
}

.region-banner button {
  margin-left: auto;

  background: var(--surface);
  color: var(--ink);

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

  padding: .4rem .8rem;
  cursor: pointer;
}

/* MAIN */

main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

section {
  padding: 4rem 0;
}

section h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -.04em;
  margin-bottom: 1.5rem;
}

/* HERO */

.hero {
  padding: 7rem 0 6rem;
  max-width: 850px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -.055em;
  font-weight: 800;
  margin: 0 0 1.5rem;
}

.hero p {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 680px;
}

/* BUTTONS */

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

  background: var(--accent);
  color: #fff;

  padding: .9rem 1.5rem;
  border-radius: 9px;

  font-weight: 700;
  font-size: .95rem;

  box-shadow: 0 5px 20px rgba(37, 99, 235, .2);

  transition:
    transform .2s ease,
    background .2s ease,
    box-shadow .2s ease;
}

.cta:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
}

/* CARDS */

.cards {
  list-style: none;
  padding: 0;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.cards li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);

  padding: 1.6rem;

  box-shadow: var(--shadow);

  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

.cards li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.cards strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: .5rem;
}

/* MUTED */

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

/* FOOTER */

footer {
  border-top: 1px solid var(--line);

  padding: 3rem max(1.5rem, calc((100% - var(--content-width)) / 2));

  font-size: .88rem;
  color: var(--muted);

  background: var(--surface);
  line-height: 1.8;
}

footer p {
  margin: 0 0 1rem;
}

footer a {
  font-weight: 500;
}

/* FOCUS */

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

/* MOBILE */

@media (max-width: 700px) {
  .site-header {
    padding: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
  }

  nav {
    width: 100%;
    gap: 1rem;
    flex-wrap: wrap;
  }

  nav a {
    font-size: .85rem;
  }

  main {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .hero {
    padding: 4rem 0;
  }

  .hero h1 {
    font-size: 2.65rem;
  }

  section {
    padding: 2.8rem 0;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  footer {
    padding: 2rem 1.2rem;
  }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}


/* =================================
   THEME OVERRIDE — FINAL
================================= */

html[data-theme="dark"] body {
  background-color: #080f1c;
  color: #edf4ff;
}

html[data-theme="light"] body {
  background-color: #f5f8fc;
  color: #101d35;
}

html[data-theme="dark"] .site-header {
  background-color: rgba(8, 15, 28, .94);
}

html[data-theme="light"] .site-header {
  background-color: rgba(255, 255, 255, .94);
}

html[data-theme="dark"] .cards li {
  background-color: #101b2c;
}

html[data-theme="light"] .cards li {
  background-color: #ffffff;
}

html[data-theme="dark"] footer {
  background-color: #101b2c;
}

html[data-theme="light"] footer {
  background-color: #ffffff;
}


/* BRAND */

.brand-dot {
  color: var(--accent);
}

/* NAVIGATION */

.site-header {
  gap: 2rem;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-cta {
  display: inline-flex;
  padding: .65rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 700;
}

.nav-cta:hover {
  color: #fff;
  background: var(--accent-hover);
}

/* MOBILE MENU BUTTON */

.mobile-menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 9px;
  padding: 9px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
}

/* DOMAIN SEARCH */

.domain-search {
  max-width: 680px;
  margin-top: 2rem;
  padding: .5rem;
  display: flex;
  gap: .5rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.domain-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  padding: .9rem;
  font: inherit;
}

.domain-search button {
  border: 0;
  background: var(--accent);
  color: white;
  border-radius: 9px;
  padding: .9rem 1.3rem;
  font-weight: 700;
  cursor: pointer;
}

.domain-search button:hover {
  background: var(--accent-hover);
}

.domain-search input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: 5px;
}

/* MOBILE */

@media(max-width: 760px) {

  .site-header {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .site-header nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: .5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
  }

  .site-header nav.open {
    display: flex;
  }

  .site-header nav a {
    padding: .7rem .5rem;
  }

  .site-header nav .theme-toggle {
    justify-content: center;
  }

  .domain-search {
    flex-wrap: wrap;
  }

  .domain-search input {
    width: 100%;
    flex-basis: 100%;
  }

  .domain-search button {
    width: 100%;
  }
