/* ==========================================================================
   Digibadge — Landing Page Styles
   Brand colors: #FF1F8E (pink) · #7B2FBE (purple) · #00C853 (green)
   ========================================================================== */

:root {
  --pink: #FF1F8E;
  --purple: #7B2FBE;
  --green: #00C853;

  --pink-soft: #FFE5F1;
  --purple-soft: #F1E8FA;
  --green-soft: #E5F8EC;

  --ink: #0F1115;
  --ink-2: #2A2D33;
  --muted: #5C6168;
  --line: #E6E8EC;
  --bg: #FFFFFF;
  --bg-soft: #F7F8FA;

  --radius: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 17, 21, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 17, 21, 0.08);

  --container: 1140px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ---------- accents ---------- */
.accent-pink   { color: var(--pink); }
.accent-purple { color: var(--purple); }
.accent-green  { color: var(--green); }

.eyebrow {
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.6em;
  text-transform: none;
}
.eyebrow-green  { color: var(--green); }
.eyebrow-pink   { color: var(--pink); }
.eyebrow-purple { color: var(--purple); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary {
  background: var(--pink);
  color: #fff;
}
.btn-primary:hover { background: #e91a7d; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
  padding: 10px 18px;
  font-size: 0.95rem;
}
.btn-ghost:hover { background: var(--ink); color: #fff; }

.link-cta {
  display: inline-block;
  margin-top: 16px;
  font-weight: 700;
  color: var(--purple);
  background: var(--purple-soft);
  padding: 12px 18px;
  border-radius: var(--radius);
}
.link-cta:hover { text-decoration: none; background: #e7d8f7; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.logo {
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.logo .dot { color: var(--pink); }
.main-nav { display: flex; align-items: center; gap: 18px; }
.main-nav a { color: var(--ink); font-weight: 600; }
.main-nav a:not(.btn):hover { color: var(--purple); text-decoration: none; }

@media (max-width: 640px) {
  .main-nav a:not(.btn) { display: none; }
}

/* ---------- hero ---------- */
.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(36px, 6vw, 64px);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { margin-top: 8px; }
.lede {
  font-size: 1.125rem;
  color: var(--ink-2);
  max-width: 52ch;
  margin: 0 0 28px;
}

.hero-visual {
  position: relative;
}

/* radial rays background — used in multiple places */
.rays {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background:
    repeating-conic-gradient(
      from 0deg at 50% 50%,
      var(--green-soft) 0deg 12deg,
      #fff 12deg 24deg
    );
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rays::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(closest-side, rgba(255,255,255,0.85), rgba(255,255,255,0) 70%);
  pointer-events: none;
}
.rays-small { aspect-ratio: 16 / 9; }

.mascot {
  position: relative;
  z-index: 2;
  width: 78%;
  max-width: 420px;
  filter: drop-shadow(0 18px 30px rgba(123, 47, 190, 0.25));
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { order: -1; max-width: 360px; margin: 0 auto; }
}

/* ---------- problem ---------- */
.problem { padding: 48px 0; }
.problem h2 { max-width: 22ch; }
.problem-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
}
.problem-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: grid;
  gap: 18px;
}
.problem-list li {
  position: relative;
  padding-left: 28px;
}
.problem-list li::before {
  content: "•";
  position: absolute;
  left: 6px;
  top: -2px;
  color: var(--pink);
  font-size: 1.6rem;
  line-height: 1;
}
.problem-list strong { display: block; color: var(--ink); margin-bottom: 4px; }
.problem-list span { color: var(--ink-2); }
.problem-conclusion { margin: 20px 0 0; color: var(--ink-2); }

/* ---------- solution ---------- */
.solution { padding: 64px 0; }
.solution h2 { max-width: 28ch; margin-bottom: 32px; }
.solution h2 u { text-decoration-color: var(--pink); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.solution-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.video-placeholder {
  position: relative;
  z-index: 2;
  width: 70%;
  aspect-ratio: 16/9;
  background: rgba(255, 255, 255, 0.7);
  border: 2px dashed var(--purple);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--purple);
  font-style: italic;
  font-weight: 600;
}
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 18px 0;
  display: grid;
  gap: 14px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  color: var(--ink-2);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
}
.step-pink   { color: var(--pink); }
.step-purple { color: var(--purple); }
.step-green  { color: var(--green); }

@media (max-width: 860px) {
  .solution-grid { grid-template-columns: 1fr; }
}

/* ---------- benefits ---------- */
.benefits { padding: 64px 0; background: var(--bg-soft); }
.benefits h2 { max-width: 24ch; margin-bottom: 32px; }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.benefit-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.benefit-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.benefit-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: 1.2rem;
  margin-bottom: 14px;
}
.benefit-card:nth-child(2) .benefit-icon { background: var(--pink-soft); color: var(--pink); }
.benefit-card:nth-child(3) .benefit-icon { background: var(--purple-soft); color: var(--purple); }
.benefit-card h3 { margin: 0 0 8px; }
.benefit-card p { color: var(--ink-2); margin: 0; }

@media (max-width: 860px) {
  .benefits-grid { grid-template-columns: 1fr; }
}

/* ---------- conviction ---------- */
.conviction { padding: 72px 0; }
.conviction-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.conviction-text p { color: var(--ink-2); }
@media (max-width: 860px) {
  .conviction-inner { grid-template-columns: 1fr; }
  .conviction-visual { order: -1; }
}

/* ---------- final CTA / signup ---------- */
.final-cta { padding: 64px 0 96px; }
.final-cta h2 { max-width: 26ch; }
.signup-card {
  margin-top: 24px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 31, 142, 0.10), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(0, 200, 83, 0.10), transparent 55%),
    var(--purple-soft);
  color: var(--ink);
  border: 1px solid rgba(123, 47, 190, 0.18);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: center;
}
.signup-text p { margin: 0; font-size: 1.15rem; color: var(--ink-2); }
.signup-text strong { color: var(--ink); }
.signup-form {
  display: grid;
  gap: 12px;
}
.signup-form input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  font-family: inherit;
}
.signup-form input[type="email"]::placeholder { color: #9097A1; }
.signup-form input[type="email"]:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 31, 142, 0.18);
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}
.consent a { color: var(--purple); text-decoration: underline; }
.form-message {
  margin: 0;
  font-size: 0.9rem;
  min-height: 1.2em;
}
.form-message.success { color: var(--green); }
.form-message.error { color: var(--pink); }

@media (max-width: 860px) {
  .signup-card { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 40px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: start;
}
.footer-brand p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 42ch;
  font-size: 0.95rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}
.footer-nav a { color: var(--ink-2); font-weight: 600; font-size: 0.95rem; }
.footer-nav a:hover { color: var(--purple); }
.footer-copy {
  grid-column: 1 / -1;
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
