/* ============================================================
   DarkLust AI — Premium Editorial Dark Theme
   Typography: Plus Jakarta Sans & Outfit
   Palette: Rich obsidian, midnight violet, glowing rose & magenta
   High contrast readable typography.
   ============================================================ */

:root {
  /* Canvas layers */
  --bg: #07040b;
  --bg-subtle: #0d0815;
  --bg-card: rgba(18, 11, 28, 0.88);
  --bg-card-hover: rgba(28, 16, 44, 0.94);
  --bg-elevated: #160d24;

  /* Typography */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* High contrast text hierarchy - clean, legible, distinct from background */
  --text-main: #ffffff;
  --text-body: #f1e9f7;        /* bright, crisp text */
  --text-muted: #cdbedb;       /* readable secondary text */
  --text-faint: #9c8aae;       /* muted metadata */

  /* Accent colors */
  --rose-core: #ff2a6d;
  --rose-light: #ff689c;
  --fuchsia-core: #d946ef;
  --purple-core: #9333ea;
  --violet-deep: #4c1d95;
  --navy-night: #0e172a;

  /* High-end gradients */
  --grad-primary: linear-gradient(135deg, #ff2a6d 0%, #ec4899 50%, #9333ea 100%);
  --grad-primary-hover: linear-gradient(135deg, #ff4780 0%, #f472b6 50%, #a855f7 100%);
  /* High contrast text gradient (keeps high luminance across entire range) */
  --grad-text: linear-gradient(135deg, #ffffff 15%, #ffe4ee 50%, #f5d0fe 80%, #ffffff 100%);

  /* Borders & Highlights */
  --border-subtle: rgba(244, 114, 182, 0.16);
  --border-glow: rgba(255, 42, 109, 0.45);
  --border-solid: rgba(255, 255, 255, 0.12);

  /* Shadows */
  --shadow-sm: 0 4px 18px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 12px 32px -8px rgba(0, 0, 0, 0.7), 0 0 24px -6px rgba(147, 51, 234, 0.2);
  --shadow-lg: 0 24px 64px -16px rgba(0, 0, 0, 0.85), 0 0 40px -8px rgba(255, 42, 109, 0.3);
  --shadow-btn: 0 10px 28px -6px rgba(255, 42, 109, 0.5);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-full: 9999px;

  --nav-h: 74px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background-image: 
    radial-gradient(ellipse 90% 60% at 50% -15%, rgba(255, 42, 109, 0.16), transparent 60%),
    radial-gradient(ellipse 70% 50% at 90% 40%, rgba(147, 51, 234, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 10% 80%, rgba(14, 23, 42, 0.45), transparent 60%);
  background-attachment: fixed;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection {
  background: rgba(255, 42, 109, 0.4);
  color: #fff;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #281639; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #442461; }

.skip-link {
  position: absolute; left: 20px; top: -50px; z-index: 2000;
  background: var(--bg-elevated); border: 1px solid var(--border-glow);
  padding: 10px 20px; border-radius: var(--radius-full);
  font-weight: 600; color: #fff; transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 16px; }

/* Global Container */
.container {
  width: min(1160px, 100% - 64px);
  margin-inline: auto;
}

@media (max-width: 768px) {
  .container {
    width: calc(100% - 40px);
  }
}
@media (max-width: 480px) {
  .container {
    width: calc(100% - 32px);
  }
}

main { flex: 1; }

/* ================= 2-SECOND PRELOADER SPLASH ================= */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #07040b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
#preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: preloaderIn 0.8s var(--ease) forwards;
}
@keyframes preloaderIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
.preloader-logo-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 26px;
  padding: 3px;
  background: var(--grad-primary);
  box-shadow: 0 0 35px rgba(255, 42, 109, 0.5), 0 0 70px rgba(147, 51, 234, 0.3);
}
.preloader-logo {
  width: 100%;
  height: 100%;
  border-radius: 23px;
  object-fit: cover;
}
.preloader-name {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}
.preloader-name em {
  font-style: normal;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.preloader-bar {
  width: 140px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-top: 14px;
  overflow: hidden;
  position: relative;
}
.preloader-bar::after {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0;
  background: var(--grad-primary);
  animation: barProgress 1.9s ease-in-out forwards;
}
@keyframes barProgress {
  0% { width: 0; }
  100% { width: 100%; }
}

/* Aurora Background Effect */
.aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.aurora::before, .aurora::after {
  content: "";
  position: absolute;
  width: 55vmax;
  height: 55vmax;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.28;
}
.aurora::before {
  background: radial-gradient(circle, var(--rose-core), var(--fuchsia-core) 50%, transparent 70%);
  top: -20vmax;
  left: -15vmax;
  animation: driftOne 24s ease-in-out infinite alternate;
}
.aurora::after {
  background: radial-gradient(circle, var(--purple-core), var(--navy-night) 60%, transparent 75%);
  bottom: -22vmax;
  right: -15vmax;
  animation: driftTwo 28s ease-in-out infinite alternate;
}

@keyframes driftOne { to { transform: translate(6vmax, 6vmax) scale(1.1); } }
@keyframes driftTwo { to { transform: translate(-6vmax, -5vmax) scale(1.08); } }

/* Reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ================= HEADER / NAVBAR ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(9, 5, 14, 0.78);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
  background: rgba(9, 5, 14, 0.95);
  border-color: rgba(244, 114, 182, 0.22);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8), 0 0 20px -8px rgba(255, 42, 109, 0.25);
}

.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
}
.brand:hover { transform: scale(1.02); }
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(255, 42, 109, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: #fff;
  white-space: nowrap;
}
.brand-name em {
  font-style: normal;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

/* Navigation items */
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.site-nav a {
  position: relative;
  display: inline-block;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-body);
  transition: color 0.2s, background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.site-nav a:hover {
  color: #fff;
  background: rgba(244, 114, 182, 0.1);
  transform: translateY(-1px);
}
.site-nav a[aria-current="page"] {
  color: #fff;
  font-weight: 600;
  background: rgba(244, 114, 182, 0.12);
}
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-primary);
  box-shadow: 0 0 10px var(--rose-core);
}

.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* Mobile Menu Button */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: all 0.2s;
}
.burger:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #fbcfe8;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: all 0.28s var(--ease);
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  font-weight: 700;
  box-shadow: var(--shadow-btn);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.btn-primary:hover {
  background: var(--grad-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -6px rgba(255, 42, 109, 0.65), 0 0 24px rgba(147, 51, 234, 0.4);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #fff;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(244, 114, 182, 0.4);
  transform: translateY(-2px);
}

.btn-sm { padding: 10px 22px; font-size: 14px; }
.btn-lg { padding: 16px 36px; font-size: 16px; font-weight: 700; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--rose-light);
  transition: color 0.2s, gap 0.25s var(--ease);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.link-arrow:hover { color: #fff; gap: 12px; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ================= SECTION HEADINGS ================= */
.section { padding: 92px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 50px; }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose-light);
  margin-bottom: 14px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #fff;
}
.section-head h2 {
  font-size: clamp(28px, 4.2vw, 42px);
  margin-bottom: 16px;
}
.lede {
  color: var(--text-body);
  font-size: clamp(16.5px, 2vw, 18.5px);
  line-height: 1.7;
}

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

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease);
}

/* ================= FOOTER ================= */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(14, 8, 22, 0.4), var(--bg));
  margin-top: auto;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 68px 0 46px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 14px;
  max-width: 32ch;
  line-height: 1.65;
}
.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose-light);
  margin-bottom: 18px;
  font-weight: 700;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 14.5px;
  color: var(--text-body);
  transition: all 0.2s;
}
.footer-col a:hover {
  color: #fff;
  transform: translateX(4px);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  justify-content: space-between;
  padding: 24px 0 30px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13.5px;
  color: var(--text-faint);
}
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a { color: var(--text-faint); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--rose-light); }

/* ================= RESPONSIVE NAVBAR & GRIDS ================= */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; padding-bottom: 36px; }
}

@media (max-width: 780px) {
  :root { --nav-h: 66px; }
  .nav-actions .btn { display: none; }
  .burger { display: flex; margin-left: auto; }

  .site-nav {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 18px 20px 28px;
    background: rgba(11, 6, 17, 0.98);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-glow);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
    transform: translateY(-16px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s var(--ease);
    z-index: 95;
    max-height: calc(100svh - var(--nav-h));
    overflow-y: auto;
  }
  .site-nav.open {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .site-nav a {
    padding: 14px 18px;
    font-size: 16px;
    border-radius: var(--radius-sm);
  }
  .site-nav a:hover {
    background: rgba(244, 114, 182, 0.12);
  }
  .site-nav a[aria-current="page"] {
    background: rgba(255, 42, 109, 0.16);
    color: #fff;
  }
  .site-nav a[aria-current="page"]::after { display: none; }
  .site-nav .nav-mobile-cta { display: block; margin-top: 10px; }
  .site-nav .nav-mobile-cta .btn { display: inline-flex; width: 100%; }
}

@media (min-width: 781px) {
  .nav-mobile-cta { display: none; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
}
