@import url("./tokens.css");

/* ============================================================
   sexkitty — base styles
   Reset + element baselines + small utility surface
   ============================================================ */

/* ---------- Modern reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
:where(ul, ol)[role="list"] { list-style: none; padding: 0; }
:where(a) { color: inherit; }
:where(:focus:not(:focus-visible)) { outline: none; }

/* ---------- Body baseline ---------- */
body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* subtle ambient texture so flat #0b0710 doesn't feel cheap */
  background-image:
    radial-gradient(1200px 600px at 80% -10%, #b14bff15, transparent 60%),
    radial-gradient(900px 500px at -10% 110%, #ff4d8d12, transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
}
h1 { font-size: var(--fs-h1); font-weight: var(--fw-black); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); }
h4 { font-size: 1.125rem; line-height: var(--lh-snug); }

p  { font-size: var(--fs-body); line-height: var(--lh-relaxed); color: var(--color-text); }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
a:hover { color: var(--color-primary-hover); }
a:focus-visible {
  outline: 2px solid var(--color-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

ul, ol { padding-left: 1.25rem; }
li + li { margin-top: .25rem; }

small { font-size: var(--fs-small); color: var(--color-text-muted); }

/* ---------- Forms ---------- */
input, textarea, select {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  color: var(--color-text);
  border-radius: var(--radius-md);
  padding: .75rem 1rem;
  width: 100%;
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--color-text-faint); }
input:hover, textarea:hover, select:hover { border-color: #3a2f55; }
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-ring);
}
button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--color-ring);
}

/* ---------- Utility: container ---------- */
.container {
  width: 100%;
  max-width: var(--w-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
@media (min-width: 720px) { .container { padding-inline: var(--space-6); } }
@media (min-width: 1100px){ .container { padding-inline: var(--space-7); } }

/* ---------- Utility: buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.4rem;
  border-radius: var(--radius-pill);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-body);
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  user-select: none;
  cursor: pointer;
  transition:
    transform var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-base) var(--ease),
    color var(--dur-fast) var(--ease);
  border: 1px solid transparent;
  text-decoration: none;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: .55; cursor: not-allowed; pointer-events: none;
}

.btn-primary {
  background: var(--grad-brand);
  color: var(--color-on-primary);
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px #ff4d8d66,
    0 16px 50px -10px #ff4d8d99,
    0 6px 30px -4px #b14bff99;
  color: var(--color-on-primary);
}

.btn-secondary {
  background: var(--color-surface-2);
  color: var(--color-text);
  border-color: var(--color-line);
}
.btn-secondary:hover {
  background: #271c3d;
  border-color: #3a2f55;
  color: var(--color-text);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: #3a2f55;
}
.btn-ghost:hover {
  background: #1b1428;
  border-color: var(--color-primary);
  color: var(--color-text);
}

.btn-sm { padding: .55rem 1rem; font-size: var(--fs-small); }
.btn-lg { padding: 1.05rem 1.7rem; font-size: var(--fs-lead); }

/* ---------- Utility: card ---------- */
.card {
  background: linear-gradient(180deg, var(--color-surface) 0%, #120c1c 100%);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: #3a2f55;
  box-shadow: var(--shadow-md);
}

/* ---------- Utility: text helpers ---------- */
.muted { color: var(--color-text-muted); }
.faint { color: var(--color-text-faint); }

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

.glow {
  box-shadow: var(--shadow-glow);
}

/* ---------- Utility: layout ---------- */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.stack-lg { gap: var(--space-6); }
.stack-sm { gap: var(--space-2); }

.grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

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

/* visually hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ---------- Component: sticky header (.nav) ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(11, 7, 16, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: .9rem;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: 1.15rem;
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
}
.nav__brand:hover { color: var(--color-text); }
.nav__brand svg { width: 26px; height: 26px; }
.nav__links {
  display: inline-flex;
  gap: var(--space-3);
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav__links a {
  color: var(--color-text-muted);
  font-size: var(--fs-micro);
  font-weight: var(--fw-medium);
  padding: .35rem .15rem;
  position: relative;
  white-space: nowrap;
}
.nav__links a:hover { color: var(--color-text); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease);
  border-radius: 2px;
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { display: inline-flex; }

@media (min-width: 720px) {
  .nav__links { display: inline-flex; gap: var(--space-5); }
  .nav__links a { font-size: var(--fs-small); padding: .4rem .2rem; }
}

/* ---------- Component: footer ---------- */
.footer {
  margin-top: var(--space-10);
  padding-block: var(--space-7) var(--space-6);
  border-top: 1px solid var(--color-line);
  background: linear-gradient(180deg, transparent, #08050d);
  color: var(--color-text-muted);
  font-size: var(--fs-small);
}
.footer__grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 720px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr;
    gap: var(--space-7);
  }
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-5);
}
.footer__links a { color: var(--color-text-muted); }
.footer__links a:hover { color: var(--color-text); }
.footer__legal {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px dashed var(--color-line);
  color: var(--color-text-faint);
  font-size: var(--fs-micro);
  line-height: var(--lh-relaxed);
}

/* ---------- Section rhythm ---------- */
section { padding-block: var(--space-9); }
@media (min-width: 900px) { section { padding-block: var(--space-10); } }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-micro);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: .35rem .7rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.02);
}
