/* ============================================
   Elevate Labs — Minimal Modern UI
   Works for: Home, Contact, Privacy, Terms, Code of Conduct
   ============================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap");

/* ============================================
   THEME VARIABLES — Light & Dark
   ============================================ */

:root {
  /* Light theme (default) */
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-hover: #272727;
  --text: #0a0a0a;
  --text-muted: #6b6b6b;
  --border: #ececec;
  --border-strong: #d8d8d8;
  --accent: #ff5b2e;
  --accent-soft: #fff1ec;
  --header-bg: rgba(250, 250, 249, 0.85);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.04);
  --cross-bg: #fef2f2;
  --cross-color: #dc2626;

  --radius: 14px;
  --radius-sm: 8px;
  --transition: 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Dark theme */
[data-theme="dark"] {
  --bg: #0c0c0d;
  --surface: #161618;
  --surface-hover: #cecece;
  --text: #f5f5f4;
  --text-muted: #9b9b9b;
  --border: #26262a;
  --border-strong: #3a3a3f;
  --accent: #ff7a52;
  --accent-soft: rgba(255, 122, 82, 0.12);
  --header-bg: rgba(12, 12, 13, 0.8);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
  --cross-bg: rgba(220, 38, 38, 0.15);
  --cross-color: #f87171;
}

/* Smooth transition between themes */
html {
  transition: background-color 0.3s ease;
}

body,
header,
footer,
.feature-card,
.step,
.btn,
.eyebrow,
nav,
.nav-toggle {
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

/* Prevent flash on load */
html:not([data-theme]) {
  visibility: hidden;
}

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

html {
  scroll-behavior: smooth;
}

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

::-webkit-scrollbar-thumb {
  background-color: var(--accent);
  border-radius: 10px;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}

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

/* ============== HEADER ============== */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.heder-nav-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

header .logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: -0.01em;
  color: var(--text);
  z-index: 60;
}

.logo::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

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

nav a {
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-cta {
  background: var(--text);
  color: var(--surface) !important;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  transition:
    transform var(--transition),
    background var(--transition);
}
.nav-cta:hover {
  transform: translateY(-1px);
  background: var(--surface-hover);
}

/* ============== MOBILE NAV TOGGLE ============== */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 60;
  transition: border-color var(--transition);
}

.nav-toggle:hover {
  border-color: var(--text);
}

.nav-toggle span {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform var(--transition),
    opacity var(--transition);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform var(--transition),
    top var(--transition);
}

.nav-toggle span::before {
  top: -6px;
}
.nav-toggle span::after {
  top: 6px;
}

/* Open state — turns into an X */
.nav-toggle.is-open span {
  background: transparent;
}
.nav-toggle.is-open span::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle.is-open span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ============== MAIN ============== */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
}

/* ============== TYPOGRAPHY ============== */
h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 2.5rem 0 0.75rem;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  letter-spacing: -0.01em;
}

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1rem;
}

ul,
ol {
  list-style-position: outside;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

li {
  margin-bottom: 0.4rem;
}

a.email-link,
main a:not(.btn):not(.logo):not(.nav-cta):not(.strip-email):not(.toc-nav a) {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

a.email-link:hover,
main a:not(.btn):not(.logo):not(.nav-cta):not(.strip-email):hover {
  border-bottom-color: var(--accent);
}

/* ============== HERO ============== */
.hero {
  text-align: center;
  padding: 3rem 0 5rem;
}

.hero-sm {
  padding: 2rem 0 3rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  margin-bottom: 1.5rem;
}

.hero-sm h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

.hero h1 em {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 2.5rem;
}

.meta-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
  font-style: italic;
}

.cta-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  transition:
    transform var(--transition),
    background var(--transition),
    border-color var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--text);
  color: var(--surface);
}
.btn-primary:hover {
  background: var(--surface-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--text);
  transform: translateY(-1px);
}

/* ============== FEATURE CARDS ============== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-align: left;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

.feature-num {
  font-family: "Instrument Serif", serif;
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
}
.feature-card p {
  margin: 0;
  font-size: 0.95rem;
}

/* ============== DOCUMENT PAGES ============== */
/* (Code of Conduct, Privacy, Terms) */

.doc {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}

.doc-section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 6rem;
}

.doc-section:last-of-type {
  border-bottom: none;
}

.section-num {
  display: inline-block;
  font-family: "Instrument Serif", serif;
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.doc-section h2 {
  margin: 0 0 1rem;
  font-size: 1.65rem;
}

.doc-section p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.doc-section strong {
  color: var(--text);
  font-weight: 600;
}

/* ===== Pretty Lists (check & cross) ===== */
.check-list,
.cross-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}

.check-list li,
.cross-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 2rem;
  color: var(--text-muted);
  border-bottom: 1px dashed var(--border);
  margin-bottom: 0;
}

.check-list li:last-child,
.cross-list li:last-child {
  border-bottom: none;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 22px;
  height: 22px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.cross-list li::before {
  content: "✕";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 22px;
  height: 22px;
  background: var(--cross-bg);
  color: var(--cross-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

/* ===== Step List (Enforcement Guidelines) ===== */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.step {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition:
    border-color var(--transition),
    transform var(--transition);
}

.step:hover {
  border-color: var(--accent);
  transform: translateX(3px);
}

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--text);
  color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
}

.step h4 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.step p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============== CONTACT STRIP (Dark CTA Banner) ============== */
.contact-strip {
  margin-top: 4rem;
  padding: 2.5rem 2.25rem;
  background: #161618;
  color: var(--surface);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.contact-strip::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.25;
  pointer-events: none;
}

.contact-strip > div {
  position: relative;
  z-index: 1;
}

.strip-label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.4rem;
}

.strip-email {
  font-family: "Instrument Serif", serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-style: italic;
  color: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.strip-email:hover {
  border-bottom-color: var(--accent);
}

.contact-strip .btn-primary {
  background: #fff;
  color: #000;
  position: relative;
  z-index: 1;
}

.contact-strip .btn-primary:hover {
  background: var(--accent);
  color: #fff;
}

/* ============== FOOTER ============== */
footer {
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding: 2rem;
  background: var(--surface);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ============== RESPONSIVE ============== */
@media (max-width: 768px) {
  header {
    padding: 0.85rem 1.25rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: min(80vw, 320px);
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 2rem 1.75rem;
    border-left: 1px solid var(--border);
    box-shadow: -20px 0 40px rgba(0, 0, 0, 0.06);
    transform: translateX(-100%);
    transition: transform 320ms cubic-bezier(0.2, 0.7, 0.2, 1);
    z-index: 55555555555555;
  }

  nav.is-open {
    transform: translateX(0);
  }

  nav a {
    width: 100%;
    padding: 1rem 0;
    font-size: 1.05rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
  }

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

  nav .nav-cta {
    margin-top: 1.5rem;
    width: 100%;
    padding: 0.85rem 1rem;
    text-align: center;
    justify-content: center;
    border-bottom: none;
    color: var(--surface) !important;
  }

  /* Backdrop overlay */
  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    animation: fadeIn 0.3s ease;
  }

  /* body.nav-open { overflow: hidden; } */

  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  main {
    padding: 3rem 1.25rem;
  }
  .hero {
    padding: 1rem 0 3rem;
  }
}

@media (max-width: 600px) {
  .contact-strip {
    padding: 2rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 700px) {
  header {
    padding: 0.85rem 1.25rem;
  }
  nav {
    gap: 1rem;
  }
  nav a:not(.nav-cta) {
    font-size: 0.85rem;
  }
  main {
    padding: 3rem 1.25rem;
  }
  .hero {
    padding: 1rem 0 3rem;
  }
}

@media (max-width: 600px) {
  .contact-strip {
    padding: 2rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 480px) {
  nav {
    gap: 0.75rem;
  }
  nav a {
    font-size: 0.8rem;
  }
}

/* ============== ANIMATIONS ============== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main > * {
  animation: fadeUp 0.6s ease both;
}
main > *:nth-child(1) {
  animation-delay: 0.05s;
}
main > *:nth-child(2) {
  animation-delay: 0.12s;
}
main > *:nth-child(3) {
  animation-delay: 0.19s;
}
main > *:nth-child(4) {
  animation-delay: 0.26s;
}
main > *:nth-child(5) {
  animation-delay: 0.33s;
}
main > *:nth-child(6) {
  animation-delay: 0.4s;
}
main > *:nth-child(7) {
  animation-delay: 0.47s;
}
main > *:nth-child(8) {
  animation-delay: 0.54s;
}

/* ============== THEME TOGGLE BUTTON ============== */
.theme-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--text);
  transition:
    border-color var(--transition),
    transform var(--transition),
    background var(--transition);
}

.theme-toggle:hover {
  border-color: var(--text);
  transform: translateY(-1px);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  transition:
    transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 0.3s ease;
}

/* Show sun in dark mode, moon in light mode */
.theme-toggle .icon-sun {
  display: none;
}
.theme-toggle .icon-moon {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}
[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

.theme-toggle:hover svg {
  transform: rotate(20deg);
}

/* Position the toggle nicely in the header */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* On mobile, place toggle next to hamburger */
@media (max-width: 768px) {
  .theme-toggle {
    width: 40px;
    height: 40px;
  }
}
/* Move theme toggle inside nav area on desktop */
@media (min-width: 769px) {
  .header-actions {
    order: 2;
  }
  .header-actions .nav-toggle {
    display: none;
  }
  nav {
    order: 1;
  }
}
