@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

/* =========================================================
   SugarPivot — Global styles
   ========================================================= */

:root {
  --bg: #08060d;
  --panel: #15101f;
  --panel-soft: #130d1e;
  --text: #f8f4ff;
  --muted: #a9a0b7;
  --purple: #a653ff;
  --purple-light: #d08aff;
  --gold: #f1c66c;
  --danger: #ff6d8a;
  --line: #ffffff18;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  background:
    radial-gradient(circle at 20% 0, #7b35ff22, transparent 35%),
    radial-gradient(circle at 90% 40%, #d06bff16, transparent 30%),
    var(--bg);

  color: var(--text);
  font-family: Inter, sans-serif;
}

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

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

/* =========================================================
   Header
   ========================================================= */

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

  width: 100%;

  background: #08060dcc;
  backdrop-filter: blur(16px);

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

.header-container {
  width: min(1200px, calc(100% - 40px));
  min-height: 76px;

  margin: 0 auto;

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

/* Brand: logo + SugarPivot stay together */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;

  min-width: 0;

  font: 700 20px 'Space Grotesk', sans-serif;
}

.brand-logo {
  width: 54px;
  height: 54px;

  object-fit: contain;
  flex: 0 0 54px;

  border-radius: 10px;
}

.brand-name {
  white-space: nowrap;
}

/* Desktop navigation */
.site-nav {
  display: flex;
  align-items: center;
  gap: 7px;
}

.site-nav a {
  padding: 11px 16px;

  border-radius: 12px;

  color: var(--muted);
  font-size: 14px;

  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  background: #ffffff0c;
  color: white;
}

/* Mobile menu button */
.menu-button {
  display: none;

  border: 0;
  background: transparent;

  color: white;
  font-size: 28px;
  line-height: 1;

  cursor: pointer;

  padding: 8px;
}

/* =========================================================
   Layout
   ========================================================= */

.container {
  width: min(1160px, calc(100% - 52px));
  margin: 0 auto;
}

.hero {
  min-height: 640px;

  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;

  gap: 35px;
}

.hero-content {
  padding: 70px 0;
}

.eyebrow {
  color: var(--purple-light);

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.hero h1 {
  margin: 18px 0;

  font:
    700 clamp(50px, 7vw, 82px) / 0.98
    'Space Grotesk',
    sans-serif;

  letter-spacing: -0.05em;
}

.hero h1 span {
  display: block;

  color: transparent;

  background:
    linear-gradient(
      90deg,
      #ffffff,
      #bd6aff,
      var(--gold)
    );

  background-clip: text;
}

.hero p {
  max-width: 600px;

  color: var(--muted);

  font-size: 18px;
  line-height: 1.8;
}

.hero-art {
  display: grid;
  place-items: center;
}

.hero-art img {
  width: min(460px, 90%);

  border: 1px solid #ffffff1c;
  border-radius: 30px;

  box-shadow:
    0 35px 90px #0009,
    0 0 70px #963fff22;
}

/* =========================================================
   Buttons
   ========================================================= */

.button {
  display: inline-flex;

  margin-top: 18px;
  padding: 14px 20px;

  border-radius: 13px;

  background:
    linear-gradient(
      135deg,
      #8739e5,
      #b95cff
    );

  color: white;

  font-size: 14px;
  font-weight: 800;

  box-shadow: 0 15px 35px #8b38e52c;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

/* =========================================================
   Dream Glitch project
   ========================================================= */

.project-card {
  display: grid;
  grid-template-columns: 350px 1fr;

  gap: 38px;

  padding: 25px;

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

  background: #171022cc;

  box-shadow: 0 25px 80px #0005;
}

.project-image img {
  width: 100%;
  border-radius: 20px;
}

.project-content h2 {
  margin: 10px 0;

  font:
    700 48px
    'Space Grotesk',
    sans-serif;
}

.project-content p {
  color: var(--muted);
  line-height: 1.8;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  margin: 20px 0;
}

.tags span {
  padding: 8px 11px;

  border: 1px solid #c06fff22;
  border-radius: 999px;

  background: #a653ff14;

  color: #d9b9ff;

  font-size: 12px;
}

/* =========================================================
   Support card
   ========================================================= */

.support-card {
  margin-top: 25px;
  padding: 30px;

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

  background: #130d1ecc;
}

.support-card h2 {
  margin: 8px 0;

  font:
    700 30px
    'Space Grotesk',
    sans-serif;
}

.support-card p {
  color: var(--muted);
  line-height: 1.7;
}

.support-card a {
  color: var(--purple-light);
  font-weight: 700;
}

/* =========================================================
   Legal pages
   ========================================================= */

.legal-page {
  padding: 75px 0;
}

.legal-page > h1 {
  margin: 12px 0;

  font:
    700 clamp(44px, 6vw, 68px)
    'Space Grotesk',
    sans-serif;
}

.muted {
  color: var(--muted);
  line-height: 1.7;
}

.legal-card,
.delete-card,
.steps-card {
  border: 1px solid var(--line);
  border-radius: 25px;

  background: #130d1ecc;

  line-height: 1.75;
}

.legal-card {
  max-width: 900px;
  padding: 36px;

  color: #d9d2e0;
}

.legal-card h2 {
  margin: 30px 0 8px;

  color: white;

  font:
    700 23px
    'Space Grotesk',
    sans-serif;
}

.legal-card a {
  color: var(--purple-light);
  text-decoration: underline;
}

.legal-card li {
  margin: 8px 0;
}

/* =========================================================
   Delete account page
   ========================================================= */

.delete-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;

  gap: 18px;
}

.delete-card {
  padding: 36px;
}

.delete-card h2 {
  margin-top: 0;

  font:
    700 34px
    'Space Grotesk',
    sans-serif;
}

.delete-card li {
  margin: 8px 0;
  color: var(--muted);
}

.danger {
  background: #ff5b7b18;

  border: 1px solid #ff6d8a44;

  color: #ff9caf;

  box-shadow: none;
}

.tiny {
  margin-top: 24px;

  color: var(--muted);

  font-size: 12px;
  line-height: 1.7;
}

.steps-card {
  padding: 30px;
}

.step {
  display: grid;
  grid-template-columns: 45px 1fr;

  gap: 12px;

  margin-bottom: 28px;
}

.step:last-child {
  margin-bottom: 0;
}

.step > span {
  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  border-radius: 11px;

  background: #a653ff18;

  color: #d09aff;

  font-weight: 800;
}

.step strong {
  display: block;
}

.step p {
  margin: 5px 0 0;

  color: var(--muted);

  font-size: 13px;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  width: min(1160px, calc(100% - 52px));
  margin: 0 auto;

  padding: 24px 0 38px;

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

  display: flex;
  justify-content: space-between;

  color: #81788b;

  font-size: 12px;
}

.site-footer a:hover {
  color: white;
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 800px) {

  .header-container {
    width: calc(100% - 30px);
    min-height: 72px;
  }

  .brand {
    gap: 8px;
    font-size: 18px;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    display: none;

    position: absolute;

    top: 72px;
    left: 15px;
    right: 15px;

    flex-direction: column;

    padding: 10px;

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

    background: #120c1c;
    box-shadow: 0 20px 50px #0008;
  }

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

  .site-nav a {
    width: 100%;
    text-align: center;
  }

  .container {
    width: calc(100% - 36px);
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 55px 0;
  }

  .hero-art {
    order: -1;
  }

  .hero-art img {
    width: min(330px, 82%);
  }

  .project-card,
  .delete-layout {
    grid-template-columns: 1fr;
  }

  .project-content h2 {
    font-size: 40px;
  }

  .legal-page {
    padding-top: 55px;
  }

  .site-footer {
    width: calc(100% - 36px);

    flex-direction: column;
    gap: 12px;
  }
}
