﻿:root {
  --bg: #f8f7f2;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --surface-accent: #f4f7ff;
  --text: #1d2740;
  --muted: #667089;
  --line: rgba(29, 39, 64, 0.1);
  --brand: #1f3f8a;
  --brand-deep: #142a5c;
  --brand-soft: #e7eefb;
  --warning: #d3ad3b;
  --danger: #b7483d;
  --shadow: 0 24px 60px rgba(20, 42, 92, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(31, 63, 138, 0.14), transparent 28%),
    radial-gradient(circle at right 20%, rgba(211, 173, 59, 0.16), transparent 22%),
    linear-gradient(180deg, #fcfbf7 0%, var(--bg) 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-shell {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
  padding: 24px 0 80px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
  margin-bottom: 28px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(20, 42, 92, 0.08);
}

.brand-block {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 8px 0;
}

.brand-logo {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
}

.eyebrow,
.section-kicker,
.category-tag,
.metric-chip,
.result-label {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.79rem;
  font-weight: 700;
}

.eyebrow,
.section-kicker,
.category-tag {
  color: var(--brand);
}

.brand-name {
  display: inline-block;
  margin-top: 2px;
  font-family: "Outfit", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--muted);
  font-weight: 600;
}

.hero-panel,
.calculator-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: stretch;
}

.hero-panel {
  margin-bottom: 32px;
}

.hero-copy,
.hero-card,
.panel-card,
.content-card,
.info-card,
.category-card {
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
}

.hero-copy,
.panel-card,
.content-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
}

.hero-copy {
  padding: 44px;
}

.hero-copy h1,
.page-hero-copy h1 {
  margin: 10px 0 14px;
  font-family: "Outfit", sans-serif;
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  line-height: 0.98;
}

.hero-description,
.page-lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 100%);
  color: #fff;
  box-shadow: 0 20px 30px rgba(31, 63, 138, 0.22);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(29, 39, 64, 0.1);
  color: var(--text);
}

.hero-card {
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(231, 238, 251, 0.95) 100%);
}

.metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--brand-deep);
  background: rgba(255, 255, 255, 0.8);
}

.hero-card h2,
.section-heading h2,
.content-card h2,
.content-card h3,
.panel-card h2,
.result-card h3 {
  font-family: "Outfit", sans-serif;
}

.hero-card h2 {
  margin: 18px 0 10px;
  font-size: 2rem;
}

.feature-list,
.range-list,
.formula-list,
.content-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li,
.range-list li,
.formula-list li,
.content-list li {
  position: relative;
  padding-left: 22px;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.65;
}

.feature-list li::before,
.range-list li::before,
.formula-list li::before,
.content-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #39a96b 0%, #9cd26b 100%);
}

.content-section {
  margin-top: 32px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.category-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.category-card,
.info-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.82);
}

.category-card h3,
.info-card h3 {
  margin: 8px 0 10px;
  font-family: "Outfit", sans-serif;
  font-size: 1.45rem;
}

.category-card p,
.info-card p,
.content-card p {
  color: var(--muted);
  line-height: 1.7;
}

.category-card a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--brand-deep);
  font-weight: 700;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
}

.breadcrumb span {
  opacity: 0.5;
}

.page-hero {
  margin-bottom: 20px;
}

.page-hero-copy {
  padding: 10px 0 0;
}

.page-hero-copy h1 {
  margin: 8px 0 10px;
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  line-height: 1.02;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 360px);
  gap: 24px;
  align-items: start;
}

.page-main-column {
  display: grid;
  align-content: start;
  min-width: 0;
}

.page-form-section {
  margin-top: 18px;
  width: 100%;
}

.page-hero-visual {
  padding: 12px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(31, 63, 138, 0.08), rgba(211, 173, 59, 0.08));
  border: 1px solid rgba(29, 39, 64, 0.08);
}

.panel-card {
  padding: 28px;
}

.hero-side-card {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 20px;
}

.hero-visual-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 20px;
  background:
    radial-gradient(circle at top left, rgba(31, 63, 138, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 255, 0.95));
}

.hero-visual-image {
  width: min(100%, 280px);
  max-height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(23, 52, 37, 0.12));
}

.hero-side-copy h2 {
  margin: 0 0 10px;
  font-size: 1.7rem;
}

.hero-side-copy p:last-child {
  margin-bottom: 0;
}

.calculator-form {
  display: grid;
  gap: 18px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  font-weight: 700;
}

.form-group input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-strong);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  margin: 2px 0 0;
  border-radius: 5px;
  accent-color: var(--brand);
}

.form-group input:focus {
  outline: none;
  border-color: rgba(31, 63, 138, 0.5);
  box-shadow: 0 0 0 4px rgba(31, 63, 138, 0.12);
}

.form-group textarea {
  width: 100%;
  min-height: 160px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-strong);
  color: var(--text);
  font: inherit;
  line-height: 1.6;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group textarea:focus {
  outline: none;
  border-color: rgba(31, 63, 138, 0.5);
  box-shadow: 0 0 0 4px rgba(31, 63, 138, 0.12);
}

.form-group input[type="checkbox"]:focus {
  box-shadow: none;
}

.form-group[hidden] {
  display: none;
}

.select-input:focus {
  outline: none;
  border-color: rgba(31, 63, 138, 0.5);
  box-shadow: 0 0 0 4px rgba(31, 63, 138, 0.12);
}

.select-input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-strong);
  color: var(--text);
  appearance: none;
}

.checkbox-row {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  font-weight: 500 !important;
  line-height: 1.55;
  cursor: pointer;
}

.checkbox-row span {
  display: block;
  font-weight: 500;
}

.date-fragment-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.date-fragment-row .select-input,
.date-fragment-row input {
  width: auto;
  min-width: 88px;
  flex: 0 0 auto;
}

.date-fragment-row .date-fragment-day {
  min-width: 68px;
}

.date-fragment-row .date-fragment-year {
  min-width: 96px;
}

.date-fragment-separator {
  color: var(--text-soft);
  font-weight: 700;
  font-size: 1.1rem;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.choice-grid.choice-grid-single {
  grid-template-columns: 1fr;
}

.choice-grid.choice-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.choice-grid.choice-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-card {
  position: relative;
}

.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-strong);
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.choice-card input:checked + span {
  border-color: rgba(31, 63, 138, 0.55);
  background: rgba(31, 63, 138, 0.08);
  box-shadow: 0 0 0 4px rgba(31, 63, 138, 0.12);
}

.result-stack {
  display: grid;
  gap: 12px;
  margin: 16px 0 12px;
}

.result-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(31, 63, 138, 0.08);
}

.result-stat strong {
  font-family: "Outfit", sans-serif;
  font-size: 1.08rem;
}

.sleep-time-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 12px;
}

.sleep-time-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(31, 63, 138, 0.08);
}

.sleep-time-item strong {
  font-family: "Outfit", sans-serif;
  font-size: 1.4rem;
}

.sleep-time-item span {
  color: var(--muted);
  font-weight: 700;
}

.hint-text,
.disclaimer {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.result-card {
  padding: 24px;
  margin-top: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(231, 238, 251, 0.72), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(31, 63, 138, 0.12);
}

.result-card h3 {
  margin: 10px 0 6px;
  font-size: 1.8rem;
}

.result-value {
  margin: 10px 0 4px;
  font-family: "Outfit", sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
}

.badge-ideal {
  background: rgba(31, 63, 138, 0.12);
  color: var(--brand-deep);
}

.badge-thin {
  background: rgba(34, 92, 165, 0.12);
  color: #225ca5;
}

.badge-high {
  background: rgba(209, 154, 36, 0.16);
  color: #8a5a00;
}

.badge-obese {
  background: rgba(183, 72, 61, 0.14);
  color: var(--danger);
}

.calculator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 28px;
  width: 100%;
}

.calculator-shell,
.content-card,
.result-card {
  width: 100%;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.seo-section .content-card h3,
.faq-item h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.faq-list .content-card {
  border-color: rgba(29, 39, 64, 0.06);
}

.content-card {
  padding: 30px;
}

.content-card h2,
.content-card h3 {
  margin: 0 0 12px;
  font-size: 1.7rem;
}

.formula-box {
  padding: 18px 20px;
  margin-top: 16px;
  border-radius: 20px;
  background: var(--surface-accent);
  border: 1px solid rgba(31, 63, 138, 0.1);
}

.formula-box strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Outfit", sans-serif;
  font-size: 1.1rem;
}

.site-footer {
  margin-top: 34px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.site-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(180px, 0.75fr));
  gap: 28px;
  align-items: start;
}

.site-footer-brand {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.footer-brand-mark {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.footer-brand-logo {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
}

.site-footer-copy {
  max-width: 420px;
}

.site-footer-brand h2,
.site-footer-column h3 {
  margin: 0 0 12px;
  font-family: "Outfit", sans-serif;
}

.site-footer-brand h2 {
  font-size: 1.15rem;
  line-height: 1.3;
}

.site-footer-brand p,
.site-footer-bottom {
  color: var(--muted);
}

.site-footer-column {
  padding-top: 2px;
}

.site-footer-links {
  display: grid;
  gap: 10px;
}

.footer-title {
  margin: 0 0 14px;
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.footer-link-list {
  display: grid;
  gap: 12px;
}

.footer-link-list a {
  color: var(--text);
  font-weight: 600;
  line-height: 1.45;
}

.site-footer-bottom {
  margin-top: 26px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  border-top: 1px solid rgba(31, 43, 36, 0.08);
  font-size: 0.98rem;
}

.site-footer-bottom p {
  margin: 0;
}

.site-footer-bottom p + p {
  margin-top: 8px;
}

.site-footer-inline-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
  max-width: 480px;
}

.site-footer-inline-links a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.footer-note {
  padding-top: 22px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 980px) {
  .site-header,
  .hero-panel,
  .calculator-shell,
  .calculator-grid,
  .page-hero-grid,
  .category-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .hero-side-card {
    position: static;
  }

  .site-header {
    border-radius: 28px;
    padding: 18px;
  }

  .header-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: 24px;
  }

  .site-footer-brand {
    grid-template-columns: 1fr;
  }

  .site-footer-copy {
    max-width: none;
  }

  .site-footer-bottom {
    flex-direction: column;
  }

  .site-footer-inline-links {
    justify-content: flex-start;
    max-width: none;
  }

  .brand-mark,
  .footer-brand-mark {
    min-width: 0;
  }

  .brand-logo,
  .footer-brand-logo {
    width: 180px;
  }

  .hero-copy,
  .panel-card,
  .content-card {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(calc(100% - 20px), var(--container));
    padding-top: 16px;
  }

  .hero-copy h1,
  .page-hero-copy h1 {
    line-height: 1.05;
  }

  .button {
    width: 100%;
  }

  .choice-grid.choice-grid-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .choice-grid.choice-grid-three {
    grid-template-columns: 1fr;
  }
}
.checkbox-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.25rem 0 1rem;
  font-weight: 600;
  color: var(--text-primary, #173f35);
}

.checkbox-field input {
  width: 1rem;
  height: 1rem;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.result-item {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(23, 63, 53, 0.06);
}

.result-item-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-secondary, #4f6f67);
}

.practical-inline-result {
  margin-top: 18px;
}

.password-output {
  margin: 8px 0 0;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(23, 63, 53, 0.06);
  font-size: clamp(1.2rem, 3vw, 1.85rem);
  line-height: 1.45;
  word-break: break-all;
}

input[type="range"] {
  width: 100%;
}

.qr-output {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 264px;
  margin: 16px 0 10px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(23, 63, 53, 0.06);
}

.qr-output img,
.qr-output canvas {
  max-width: 100%;
  height: auto;
}

.fancy-nick-card {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(23, 63, 53, 0.05);
}

.fancy-nick-line {
  font-family: "Outfit", sans-serif;
  font-size: 1.15rem;
  line-height: 1.55;
  word-break: break-word;
}

.raffle-stage {
  position: relative;
  margin: 14px 0 16px;
  padding: 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.2), transparent 42%),
    linear-gradient(135deg, rgba(20, 42, 92, 0.08), rgba(31, 63, 138, 0.14));
  border: 1px solid rgba(31, 63, 138, 0.14);
  overflow: hidden;
}

.raffle-result-card {
  position: relative;
  overflow: hidden;
}

.color-preview-box {
  min-height: 168px;
  margin: 14px 0 18px;
  border-radius: 24px;
  border: 1px solid rgba(31, 63, 138, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.color-input-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.color-picker-input {
  width: 88px;
  height: 56px;
  padding: 4px;
  border: none;
  border-radius: 18px;
  background: rgba(20, 42, 92, 0.08);
  cursor: pointer;
}

.color-code-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(23, 63, 53, 0.05);
}

.color-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.color-code-line {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
  word-break: break-word;
}

.raffle-stage-label {
  margin: 0 0 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-secondary, #4f6f67);
}

.raffle-reel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  padding: 18px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--text-primary, #173f35);
}

.raffle-result-spinning .raffle-reel {
  animation: rafflePulse 0.55s ease-in-out infinite;
}

.raffle-result-celebrating {
  position: relative;
  border-color: rgba(245, 158, 11, 0.28);
  box-shadow: 0 20px 40px rgba(245, 158, 11, 0.12);
}

.raffle-result-celebrating .result-main {
  color: #b45309;
  animation: raffleWinnerPop 0.9s ease;
}

.raffle-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.raffle-confetti-piece {
  position: absolute;
  top: -12%;
  width: 10px;
  height: 18px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(-20px) rotate(0deg);
}

.raffle-result-celebrating .raffle-confetti-piece {
  opacity: 1;
  animation: raffleConfettiFall 3.4s cubic-bezier(0.18, 0.72, 0.16, 1) forwards;
}

@keyframes rafflePulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  }

  50% {
    transform: scale(1.015);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.55),
      0 14px 30px rgba(245, 158, 11, 0.12);
  }
}

@keyframes raffleWinnerPop {
  0% {
    transform: scale(0.88);
    opacity: 0.4;
  }

  60% {
    transform: scale(1.08);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes raffleConfettiFall {
  0% {
    transform: translate3d(0, -24px, 0) rotate(0deg);
    opacity: 0;
  }

  12% {
    opacity: 1;
  }

  100% {
    transform: translate3d(var(--confetti-x, 0px), 340px, 0) rotate(var(--confetti-rotate, 540deg));
    opacity: 0;
  }
}

.homepage-hero .hero-copy {
  position: relative;
  overflow: hidden;
}

.homepage-hero .hero-copy::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(57, 169, 107, 0.18), transparent 68%);
  pointer-events: none;
}

.hero-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.hero-mini-stat {
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(31, 63, 138, 0.08);
}

.hero-mini-stat strong {
  display: block;
  font-family: "Outfit", sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
}

.hero-mini-stat span {
  color: var(--muted);
  font-size: 0.95rem;
}

.spotlight-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.spotlight-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(31, 63, 138, 0.08);
  color: var(--brand-deep);
  font-weight: 700;
}

.homepage-hero-card {
  position: relative;
  overflow: hidden;
}

.homepage-hero-card::before {
  content: "";
  position: absolute;
  inset: auto -80px -60px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.7), transparent 70%);
}

.hero-showcase {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.hero-showcase-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(31, 63, 138, 0.08);
}

.hero-showcase-card span,
.quick-tool-tag,
.category-count,
.step-index {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 800;
}

.hero-showcase-card span,
.quick-tool-tag,
.step-index {
  color: var(--brand);
}

.hero-showcase-card strong {
  font-family: "Outfit", sans-serif;
  font-size: 1.05rem;
}

.hero-showcase-card small {
  color: var(--muted);
  font-size: 0.95rem;
}

.quick-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.quick-tool-card {
  display: grid;
  gap: 10px;
  padding: 24px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(57, 169, 107, 0.12), transparent 28%),
    rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.quick-tool-card:hover,
.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 60px rgba(23, 52, 37, 0.14);
}

.quick-tool-card strong {
  font-family: "Outfit", sans-serif;
  font-size: 1.35rem;
}

.quick-tool-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.category-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.category-count {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(31, 63, 138, 0.08);
  color: var(--brand-deep);
}

.category-links {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.homepage-category-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.category-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 16px;
  background: rgba(23, 63, 53, 0.05);
  color: var(--text);
  font-weight: 700;
}

.category-links.compact-all-tools {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.category-links.compact-all-tools a {
  min-height: 42px;
  padding: 0 12px;
  margin-top: 0;
  font-size: 0.98rem;
  line-height: 1.25;
}

.homepage-info-grid,
.info-grid-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step-card {
  position: relative;
  overflow: hidden;
}

.step-index {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(31, 63, 138, 0.08);
}

@media (max-width: 980px) {
  .quick-tools-grid,
  .homepage-category-grid,
  .homepage-info-grid,
  .info-grid-steps {
    grid-template-columns: 1fr;
  }

  .hero-mini-stats {
    grid-template-columns: 1fr;
  }

  .category-links.compact-all-tools {
    grid-template-columns: 1fr;
  }
}

