:root {
  --purple: #7e3aed;
  --purple-deep: #5b21b6;
  --lilac: #d8bffc;
  --lilac-deep: #c4a8f0;
  --neon-pink: #ff33cc;
  --neon-purple: #b24dff;
  --turquoise: #2dd4bf;
  --water: #2673bf;
  --water-deep: #0f4c7a;
  --text: #1a0f2e;
  --text-muted: #4a3d66;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.55);
  --shadow: rgba(94, 33, 182, 0.18);
  --radius: 20px;
  --max: 1080px;
  --font: "SF Pro Display", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(165deg, var(--lilac) 0%, #e8dcff 35%, #f5eeff 70%, var(--lilac-deep) 100%);
  line-height: 1.6;
  min-height: 100vh;
}

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

a {
  color: var(--purple-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--neon-pink);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--purple);
  color: #fff;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Bubbles canvas */
#bubble-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.page-wrap {
  position: relative;
  z-index: 1;
}

/* Top bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(216, 191, 252, 0.82);
  border-bottom: 1px solid var(--glass-border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 14px var(--shadow);
}

.brand span {
  font-size: 1.05rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--purple-deep);
  background: rgba(255, 255, 255, 0.45);
}

.nav-toggle {
  display: none;
  border: none;
  background: var(--glass);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 880px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    padding-top: 3.5rem;
  }
}

.hero-copy h1 {
  font-size: clamp(2rem, 5vw, 2.85rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}

.hero-copy h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--purple), var(--neon-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--neon-purple));
  color: #fff;
  box-shadow: 0 8px 24px var(--shadow);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 10px 28px rgba(126, 58, 237, 0.35);
}

.btn-ghost {
  background: var(--glass);
  color: var(--purple-deep);
  border: 1px solid var(--glass-border);
}

.hero-visual {
  position: relative;
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  box-shadow: 0 24px 60px var(--shadow);
  min-height: 280px;
}

.hero-visual-bg {
  position: absolute;
  inset: 0;
  background: url("assets/bg-onboarding.png") center / cover no-repeat;
}

.hero-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 76, 122, 0.55) 100%);
}

.hero-visual-content {
  position: relative;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 280px;
  justify-content: flex-end;
}

.hero-app-icon {
  width: min(120px, 28vw);
  border-radius: 22%;
  margin-bottom: auto;
  margin-top: 1.5rem;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.25));
}

.hero-tank {
  width: min(320px, 85%);
  margin-bottom: -0.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--water-deep);
  margin-bottom: 1rem;
}

.hero-badge img {
  width: 22px;
  height: 22px;
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--purple);
  margin-bottom: 0.5rem;
}

.section h2 {
  font-size: clamp(1.65rem, 3.5vw, 2.1rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.section-intro {
  color: var(--text-muted);
  max-width: 42em;
  margin: 0 0 2rem;
}

.glass-panel {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 12px 40px var(--shadow);
  backdrop-filter: blur(10px);
}

/* Feature grid */
.feature-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 32px var(--shadow);
  display: flex;
  flex-direction: column;
}

.feature-card-media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, var(--lilac-deep), var(--water));
  overflow: hidden;
}

.feature-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card-body {
  padding: 1.15rem 1.25rem 1.35rem;
  flex: 1;
}

.feature-card-body h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.feature-card-body p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Loop strip */
.loop-strip {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .loop-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.loop-step {
  text-align: center;
  padding: 1rem 0.75rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  border: 1px dashed rgba(126, 58, 237, 0.35);
}

.loop-step strong {
  display: block;
  font-size: 1.4rem;
  color: var(--purple);
  margin-bottom: 0.25rem;
}

.loop-step span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Support */
.support-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .support-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.support-card h3 {
  margin-top: 0;
}

.faq details {
  border-bottom: 1px solid rgba(126, 58, 237, 0.15);
  padding: 0.85rem 0;
}

.faq details:last-child {
  border-bottom: none;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--purple);
  font-weight: 700;
}

.faq details[open] summary::after {
  content: "−";
}

.faq p {
  margin: 0.65rem 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.contact-email {
  font-size: 1.1rem;
  font-weight: 700;
  word-break: break-all;
}

.meta-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.meta-list li {
  padding: 0.35rem 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.meta-list strong {
  color: var(--text);
}

/* Privacy */
.privacy-doc {
  font-size: 0.94rem;
  color: var(--text-muted);
}

.privacy-doc h3 {
  color: var(--text);
  font-size: 1.05rem;
  margin: 1.75rem 0 0.5rem;
}

.privacy-doc h3:first-child {
  margin-top: 0;
}

.privacy-doc ul {
  padding-left: 1.25rem;
}

.privacy-doc li {
  margin-bottom: 0.35rem;
}

.privacy-updated {
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  color: var(--purple-deep);
  font-weight: 600;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 2rem 1.25rem 2.5rem;
  background: linear-gradient(180deg, transparent, rgba(91, 33, 182, 0.12));
  border-top: 1px solid var(--glass-border);
}

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

.footer-mark {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-mark img {
  width: 28px;
  opacity: 0.85;
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-bottom: 0.5rem;
  }

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

  .header-inner {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  #bubble-field {
    display: none;
  }
}
