/* ==========================================================================
   GiftLive — giftlive.app
   Premium marketing site. Colours are taken straight from the app logo:
     violet plate  #6E1BD4 .. #9B03FF
     magenta jewel #E6179B .. #FF0D7B
     gold crown    #FFD54A .. #F0A500
     app ink       #100F17
   ========================================================================== */

:root {
  --violet-900: #2a0b52;
  --violet-800: #3d1076;
  --violet-700: #550fa8;
  --violet-600: #6e1bd4;
  --violet-500: #8319f0;
  --violet-400: #9b03ff;

  --magenta-600: #c50ce3;
  --magenta-500: #e6179b;
  --magenta-400: #ff0d7b;

  --gold-500: #f0a500;
  --gold-400: #ffc12e;
  --gold-300: #ffd54a;

  --ink: #100f17;
  --ink-soft: #171526;
  --card: rgba(255, 255, 255, 0.05);
  --card-line: rgba(255, 255, 255, 0.12);

  --text: #ffffff;
  --text-dim: #c8bfe0;
  --text-mute: #9a8fb8;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow-glow: 0 24px 60px -18px rgba(155, 3, 255, 0.55);
  --shadow-card: 0 18px 44px -22px rgba(0, 0, 0, 0.85);

  --grad-brand: linear-gradient(135deg, var(--violet-400) 0%, var(--magenta-500) 55%, var(--magenta-400) 100%);
  --grad-gold: linear-gradient(135deg, var(--gold-300) 0%, var(--gold-500) 100%);
  --grad-plate: radial-gradient(120% 120% at 12% 0%, #4a11a0 0%, var(--violet-800) 42%, var(--ink) 100%);

  --wrap: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  filter: saturate(1.15);
  box-shadow: 0 30px 70px -18px rgba(255, 13, 123, 0.6);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  border: 1px solid var(--card-line);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.12);
}

.btn-gold {
  background: var(--grad-gold);
  color: #2b1600;
  box-shadow: 0 20px 50px -20px rgba(240, 165, 0, 0.75);
}

.btn-gold:hover {
  transform: translateY(-3px);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 17px;
}

/* ------------------------------------------------------------------ header */

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(16, 15, 23, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 21px;
  letter-spacing: -0.4px;
  flex: none;
}

.brand img {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  box-shadow: 0 8px 22px -8px rgba(155, 3, 255, 0.9);
}

.brand span em {
  font-style: normal;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-inline: auto;
}

.nav a {
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dim);
  transition: color 0.2s, background 0.2s;
}

.nav a:hover,
.nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.head-cta {
  flex: none;
}

.head-cta .btn {
  padding: 11px 24px;
  font-size: 15px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--card-line);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

/* -------------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding: 84px 0 96px;
  background: var(--grad-plate);
  overflow: hidden;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: -1;
}

.hero::before {
  width: 620px;
  height: 620px;
  top: -240px;
  right: -140px;
  background: radial-gradient(circle, rgba(255, 13, 123, 0.42), transparent 68%);
}

.hero::after {
  width: 520px;
  height: 520px;
  bottom: -260px;
  left: -160px;
  background: radial-gradient(circle, rgba(155, 3, 255, 0.4), transparent 68%);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 17px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--card-line);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 22px;
}

.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #35e07a;
  box-shadow: 0 0 0 4px rgba(53, 224, 122, 0.22);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.06;
  letter-spacing: -1.6px;
  font-weight: 900;
}

.hero h1 em {
  font-style: normal;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lede {
  margin: 0 0 32px;
  font-size: 18px;
  color: var(--text-dim);
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-mute);
}

.hero-note strong {
  color: var(--gold-300);
}

.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-stats div strong {
  display: block;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.6px;
}

.hero-stats div span {
  font-size: 13.5px;
  color: var(--text-mute);
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-art .glow {
  position: absolute;
  inset: 6%;
  border-radius: 40px;
  background: radial-gradient(circle at 50% 40%, rgba(255, 13, 123, 0.5), transparent 65%);
  filter: blur(46px);
}

.hero-art img.logo {
  /* Fluid on every screen: never wider than its slot, never wider than 380px,
     and always square. `height:auto` stops it stretching on narrow phones,
     which is what made the logo look oversized on mobile. */
  width: 100%;
  max-width: 380px;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 46px;
  /* logo.png has transparent corners, so drop-shadow follows the icon's own
     rounded shape (box-shadow drew a dark square halo behind it). */
  filter: drop-shadow(0 26px 44px rgba(155, 3, 255, 0.45)) drop-shadow(0 0 30px rgba(255, 13, 123, 0.28));
  animation: float 6.5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(-9px); }
  50% { transform: translateY(9px); }
}

/* ---------------------------------------------------------------- sections */

section {
  padding: 92px 0;
}

.sec-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 54px;
}

.sec-head .kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--magenta-400);
  margin-bottom: 14px;
}

.sec-head h2 {
  margin: 0 0 16px;
  font-size: clamp(29px, 3.8vw, 44px);
  line-height: 1.14;
  letter-spacing: -1.1px;
  font-weight: 900;
}

.sec-head p {
  margin: 0;
  color: var(--text-dim);
  font-size: 17px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 22px;
}

.card {
  padding: 30px 28px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-line);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 13, 123, 0.42);
  background: rgba(255, 255, 255, 0.075);
}

.card .ico {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: var(--grad-brand);
  box-shadow: 0 14px 32px -14px rgba(155, 3, 255, 0.85);
}

.card .ico.gold {
  background: var(--grad-gold);
  box-shadow: 0 14px 32px -14px rgba(240, 165, 0, 0.85);
}

.card .ico svg {
  width: 27px;
  height: 27px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card .ico.gold svg {
  stroke: #33200a;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 15.2px;
}

/* ---------------------------------------------------------------- download */

#download {
  background: linear-gradient(180deg, transparent, rgba(110, 27, 212, 0.16) 42%, transparent);
}

.dl-card {
  position: relative;
  padding: 46px 44px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(110, 27, 212, 0.5), rgba(255, 13, 123, 0.28)),
    var(--ink-soft);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 90px -40px rgba(155, 3, 255, 0.75);
  overflow: hidden;
}

.dl-card::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -180px;
  top: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 213, 74, 0.32), transparent 66%);
  filter: blur(52px);
  pointer-events: none;
}

.dl-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}

.dl-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(27px, 3.4vw, 40px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -1.1px;
}

.dl-copy p {
  margin: 0 0 26px;
  color: var(--text-dim);
  font-size: 16.5px;
}

.dl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.chip {
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 13.4px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--card-line);
  color: var(--text-dim);
}

.chip.gold {
  background: rgba(240, 165, 0, 0.16);
  border-color: rgba(255, 213, 74, 0.42);
  color: var(--gold-300);
}

.chip.live {
  background: rgba(53, 224, 122, 0.14);
  border-color: rgba(53, 224, 122, 0.4);
  color: #6ff2a4;
}

.dl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  align-items: center;
}

.dl-side {
  display: grid;
  gap: 14px;
}

.dl-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(16, 15, 23, 0.55);
  border: 1px solid var(--card-line);
}

.dl-step b {
  flex: none;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13.5px;
  background: var(--grad-gold);
  color: #2b1600;
}

.dl-step span {
  font-size: 14.6px;
  color: var(--text-dim);
}

.dl-version {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 13.6px;
  color: var(--text-mute);
}

.dl-version b {
  color: var(--text);
  font-weight: 700;
}

.release-list {
  margin-top: 34px;
}

.release-list summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 15px;
  color: var(--text-dim);
  padding: 12px 0;
  list-style: none;
}

.release-list summary::-webkit-details-marker {
  display: none;
}

.release-list summary::before {
  content: "\25B8  ";
  color: var(--magenta-400);
}

.release-list[open] summary::before {
  content: "\25BE  ";
}

.rel-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 9px;
  font-size: 14px;
}

.rel-row .v {
  font-weight: 800;
  color: var(--gold-300);
}

.rel-row .d {
  color: var(--text-mute);
  font-size: 13px;
}

.rel-row.cur {
  border-color: rgba(255, 13, 123, 0.5);
  background: rgba(255, 13, 123, 0.1);
}

/* ------------------------------------------------------------------ footer */

.site-foot {
  padding: 66px 0 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0c0b12;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 42px;
}

.foot-grid h4 {
  margin: 0 0 16px;
  font-size: 14px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 800;
}

.foot-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.foot-grid a {
  color: var(--text-dim);
  font-size: 15px;
  transition: color 0.2s;
}

.foot-grid a:hover {
  color: var(--magenta-400);
}

.foot-brand p {
  margin: 16px 0 0;
  color: var(--text-mute);
  font-size: 14.6px;
  max-width: 40ch;
}

.foot-bottom {
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  color: var(--text-mute);
  font-size: 13.6px;
}

/* ------------------------------------------------------------------- legal */

.legal-hero {
  padding: 72px 0 40px;
  background: var(--grad-plate);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(31px, 4.4vw, 48px);
  font-weight: 900;
  letter-spacing: -1.2px;
}

.legal-hero p {
  margin: 0;
  color: var(--text-dim);
  font-size: 16px;
}

.legal-body {
  padding: 56px 0 90px;
}

.doc {
  max-width: 830px;
  margin-inline: auto;
}

.doc h2 {
  margin: 46px 0 14px;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
}

.doc h2:first-child {
  margin-top: 0;
}

.doc h3 {
  margin: 30px 0 10px;
  font-size: 17.5px;
  font-weight: 800;
  color: var(--gold-300);
}

.doc p,
.doc li {
  color: var(--text-dim);
  font-size: 15.8px;
}

.doc ul,
.doc ol {
  padding-left: 22px;
  display: grid;
  gap: 9px;
}

.doc .note {
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  background: rgba(155, 3, 255, 0.12);
  border: 1px solid rgba(155, 3, 255, 0.32);
  margin: 26px 0;
}

.doc .note p {
  margin: 0;
}

.doc a {
  color: var(--magenta-400);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.toc {
  padding: 24px 26px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--card-line);
  margin-bottom: 40px;
}

.toc h4 {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-mute);
}

.toc ol {
  margin: 0;
  padding-left: 20px;
}

.toc a {
  color: var(--text-dim);
  font-size: 14.6px;
}

.toc a:hover {
  color: var(--magenta-400);
}

.updated {
  display: inline-block;
  margin-bottom: 26px;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(240, 165, 0, 0.14);
  border: 1px solid rgba(255, 213, 74, 0.35);
  color: var(--gold-300);
  font-size: 13.2px;
  font-weight: 700;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-weight: 700;
  font-size: 14.6px;
  margin-bottom: 26px;
}

.back-link:hover {
  color: var(--magenta-400);
}

/* ------------------------------------------------- open / join page (/open) */

/* Single centered column instead of the two-column hero used on the home page. */
.open-wrap {
  grid-template-columns: 1fr;
  max-width: 720px;
}

.open-copy {
  text-align: center;
  margin-inline: auto;
}

.open-copy h1 {
  font-size: clamp(30px, 5.6vw, 46px);
}

.open-actions {
  justify-content: center;
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 980px) {
  .hero .wrap,
  .dl-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: -1;
  }

  /* The logo is already fluid (width:100% / max-width:380px), so it only needs
     a smaller ceiling on tablet widths - never a fixed pixel value. */
  .hero-art img.logo {
    max-width: 300px;
  }

  .dl-card {
    padding: 36px 28px;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px 22px;
    background: rgba(12, 11, 18, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 13px 15px;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .head-cta {
    display: none;
  }

  section {
    padding: 68px 0;
  }

  .hero {
    padding: 56px 0 72px;
  }

  .hero-actions .btn,
  .dl-actions .btn {
    width: 100%;
  }

  .hero-stats {
    gap: 22px;
  }

  /* Phone: give the logo a sane ceiling so it never fills the whole screen. */
  .hero-art img.logo {
    max-width: 240px;
    border-radius: 34px;
  }

  .brand {
    font-size: 19px;
  }

  .brand img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .foot-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .doc h2 {
    font-size: 20px;
  }
}

/* ---------------------------------------------------- very narrow phones */
@media (max-width: 420px) {
  .wrap {
    padding-inline: 18px;
  }

  .hero {
    padding: 44px 0 60px;
  }

  .hero-art img.logo {
    max-width: 190px;
    border-radius: 26px;
    filter: drop-shadow(0 16px 28px rgba(155, 3, 255, 0.45)) drop-shadow(0 0 20px rgba(255, 13, 123, 0.28));
  }

  .brand {
    font-size: 17px;
    gap: 9px;
  }

  .brand img {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .site-head .wrap {
    gap: 12px;
    height: 66px;
  }

  .nav {
    top: 66px;
  }

  .pill {
    font-size: 12.5px;
    padding: 7px 13px;
  }

  .hero h1 {
    letter-spacing: -1px;
  }

  .sec-head h2,
  .dl-copy h2 {
    letter-spacing: -0.7px;
  }

  .dl-card {
    padding: 28px 20px;
    border-radius: 24px;
  }

  .card {
    padding: 24px 20px;
  }

  .hero-stats {
    gap: 16px;
  }

  .hero-stats div strong {
    font-size: 21px;
  }

  .chip {
    font-size: 12.4px;
    padding: 7px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
