﻿
/* =========================================
   PREMIUM DARK UI — MODERN DESIGN SYSTEM
   ========================================= */

:root {
  /* Background colors */
  --bg: #080D1B;
  --bg-2: #0D1528;
  --surface: #111C32;
  --surface-2: #172540;
  --surface-hover: #1C2D4C;

  /* Text colors */
  --text: #F8FAFC;
  --muted: #A1AEC4;
  --muted-light: #CBD5E1;

  /* Accent colors */
  --blue: #4F7CFF;
  --blue-2: #60A5FA;
  --purple: #A78BFA;
  --cyan: #22D3EE;
  --green: #34D399;
  --red: #FB7185;

  /* Borders and effects */
  --border: rgba(148, 163, 184, 0.15);
  --border-hover: rgba(96, 165, 250, 0.55);

  --radius: 18px;
  --radius-sm: 12px;

  --shadow:
    0 12px 35px rgba(0, 0, 0, 0.20);

  --shadow-hover:
    0 20px 45px rgba(0, 0, 0, 0.30),
    0 0 25px rgba(79, 124, 255, 0.10);

  --gradient-primary:
    linear-gradient(135deg, #4F7CFF 0%, #8B5CF6 100%);

  --gradient-text:
    linear-gradient(135deg, #60A5FA 0%, #A78BFA 55%, #22D3EE 100%);
}


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

* {
  box-sizing: border-box;
}

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

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

  background:
    radial-gradient(
      ellipse at 15% 0%,
      rgba(79, 124, 255, 0.12),
      transparent 35%
    ),
    radial-gradient(
      ellipse at 90% 20%,
      rgba(139, 92, 246, 0.09),
      transparent 30%
    ),
    var(--bg);

  color: var(--text);

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

  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(96, 165, 250, 0.35);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
  transition:
    color 0.25s ease,
    opacity 0.25s ease;
}

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

button {
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
  display: block;
}


/* =========================================
   NAVIGATION BAR
   ========================================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;

  background: rgba(8, 13, 27, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

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

  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

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

  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;

  gap: 24px;
}

.nav__brand {
  font-weight: 850;
  font-size: 21px;
  letter-spacing: -0.7px;

  background: var(--gradient-text);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  white-space: nowrap;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav__links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;

  padding: 9px 13px;
  border-radius: 9px;

  transition:
    color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}

.nav__links a:hover,
.nav__links a:focus-visible {
  color: var(--text);
  background: rgba(96, 165, 250, 0.10);
  outline: none;
}


/* =========================================
   HERO SECTION
   ========================================= */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  padding: 105px 20px 80px;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;

  width: 450px;
  height: 450px;

  top: -180px;
  left: 50%;
  transform: translateX(-50%);

  background: rgba(79, 124, 255, 0.13);
  filter: blur(100px);
  border-radius: 50%;

  pointer-events: none;
}

.hero h1 {
  max-width: 950px;
  margin: 22px auto 18px;

  font-size: clamp(36px, 6vw, 68px);
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -2.5px;
}

.hero .accent {
  background: var(--gradient-text);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lede {
  max-width: 680px;
  margin: 0 auto 34px;

  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.9;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;

  color: #93C5FD;
  background: rgba(79, 124, 255, 0.10);

  border: 1px solid rgba(96, 165, 250, 0.30);
  border-radius: 999px;

  padding: 8px 15px;

  box-shadow: 0 0 25px rgba(79, 124, 255, 0.08);
}


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

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;

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

  padding: 13px 23px;

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

  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;

  cursor: pointer;
  white-space: normal;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

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

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

.btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

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

  box-shadow:
    0 8px 22px rgba(79, 124, 255, 0.25);
}

.btn--primary:hover {
  box-shadow:
    0 12px 30px rgba(79, 124, 255, 0.38);
}

.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
  border-color: var(--border);
}

.btn--ghost:hover {
  background: rgba(96, 165, 250, 0.09);
  border-color: var(--border-hover);
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}


/* =========================================
   CONTENT SECTIONS
   ========================================= */

.section {
  width: 100%;
  max-width: 1200px;

  padding: 65px 24px;
  margin: 0 auto;
}

.section__head {
  margin-bottom: 30px;
}

.section__head h2 {
  margin: 0 0 10px;

  font-size: clamp(23px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.8px;
}

.section__head p {
  max-width: 650px;
  color: var(--muted);
  margin: 8px 0 0;
}


/* =========================================
   BEAUTIFUL RESPONSIVE CARDS
   ========================================= */

.card-grid {
  display: grid;
  gap: 22px;

  grid-template-columns:
    repeat(auto-fit, minmax(min(100%, 270px), 1fr));
}

.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      rgba(23, 37, 64, 0.92),
      rgba(15, 23, 42, 0.96)
    );

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

  padding: 25px;

  box-shadow: var(--shadow);

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.card::before {
  content: "";
  position: absolute;
  z-index: -1;

  width: 170px;
  height: 170px;

  top: -100px;
  right: -90px;

  border-radius: 50%;
  background: rgba(96, 165, 250, 0.08);
  filter: blur(30px);

  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.card:hover {
  transform: translateY(-7px);

  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);

  background:
    linear-gradient(
      145deg,
      rgba(28, 45, 76, 0.98),
      rgba(17, 28, 50, 0.98)
    );
}

.card:hover::before {
  background: rgba(139, 92, 246, 0.18);
  transform: scale(1.3);
}

.card h3 {
  margin: 0 0 10px;

  font-size: 19px;
  font-weight: 750;
  line-height: 1.4;
}

.card p {
  margin: 7px 0;

  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.card .price {
  margin: 12px 0;

  font-size: clamp(25px, 3vw, 32px);
  font-weight: 850;
  letter-spacing: -0.8px;

  background: var(--gradient-text);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* =========================================
   STATS / DASHBOARD METRICS
   ========================================= */

.stats {
  display: grid;
  gap: 20px;

  grid-template-columns:
    repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}

.stat {
  position: relative;
  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      rgba(23, 37, 64, 0.9),
      rgba(15, 23, 42, 0.96)
    );

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

  padding: 25px;

  box-shadow: var(--shadow);

  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.stat:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, 0.45);
}

.stat__label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.stat__value {
  margin-top: 8px;

  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.7px;

  color: var(--text);
}


/* =========================================
   EMPTY STATES
   ========================================= */

.empty {
  padding: 55px 24px;
  text-align: center;

  color: var(--muted);

  background: rgba(15, 23, 42, 0.45);

  border: 1px dashed rgba(148, 163, 184, 0.30);
  border-radius: var(--radius);

  line-height: 1.8;
}

.empty h3 {
  color: var(--text);
  margin-top: 0;
}


/* =========================================
   ERROR STATES
   ========================================= */

.error {
  padding: 22px;

  color: #FDA4AF;
  background: rgba(251, 113, 133, 0.07);

  border: 1px solid rgba(251, 113, 133, 0.28);
  border-radius: var(--radius-sm);
}


/* =========================================
   FOOTER
   ========================================= */

.footer {
  position: relative;

  border-top: 1px solid var(--border);
  margin-top: 70px;
  padding: 45px 24px;

  background:
    linear-gradient(
      180deg,
      rgba(13, 21, 40, 0.25),
      rgba(8, 13, 27, 0.85)
    );

  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.footer a {
  color: var(--blue-2);
}

.footer a:hover {
  color: var(--cyan);
}


/* =========================================
   SCROLLBAR
   ========================================= */

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #293956;
  border-radius: 999px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: #4F7CFF;
}


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

@media (max-width: 768px) {
  .nav__inner {
    padding: 13px 16px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .nav__brand {
    font-size: 19px;
  }

  .nav__links {
    gap: 4px;
  }

  .nav__links a {
    padding: 8px 9px;
    font-size: 13px;
  }

  .hero {
    padding: 75px 20px 55px;
  }

  .hero h1 {
    letter-spacing: -1.5px;
  }

  .section {
    padding: 45px 18px;
  }

  .card-grid {
    gap: 16px;
  }

  .card {
    padding: 21px;
  }

  .stats {
    gap: 14px;
  }

  .stat {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .nav__inner {
    justify-content: center;
  }

  .nav__brand {
    width: 100%;
    text-align: center;
  }

  .nav__links {
    justify-content: center;
    width: 100%;
  }

  .nav__links a {
    font-size: 12px;
    padding: 7px 8px;
  }

  .hero {
    padding: 60px 17px 45px;
  }

  .hero h1 {
    font-size: clamp(32px, 9vw, 43px);
    letter-spacing: -1.2px;
  }

  .lede {
    font-size: 15px;
  }

  .cta {
    flex-direction: column;
    align-items: stretch;
  }

  .cta .btn {
    width: 100%;
  }

  .section {
    padding: 38px 16px;
  }

  .card {
    padding: 20px;
  }

  .footer {
    padding: 35px 18px;
  }
}


/* =========================================
   ACCESSIBILITY: REDUCED MOTION
   ========================================= */

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