/* Icicle Delights — global theme (dark + yellow accent) */

:root {
  color-scheme: dark;

  --bg: #0b0d10;
  --bg-elev: #0f141b;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.7);
  --muted-2: rgba(255, 255, 255, 0.56);

  --accent: #f7c948;
  --accent-2: #ffdf7a;
  --accent-ink: #101010;

  --shadow: 0 16px 60px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);

  --radius: 18px;
  --radius-sm: 14px;
  --radius-lg: 26px;

  --container: 1120px;
  --gutter: 20px;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji";
  background: radial-gradient(1200px 800px at 20% -10%, rgba(247, 201, 72, 0.18), transparent 55%),
    radial-gradient(900px 600px at 90% 10%, rgba(255, 223, 122, 0.12), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html,
body {
  overflow-x: hidden;
}

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

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

.container {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
}

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

/* -------------------------- */
/* Buttons                    */
/* -------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
  will-change: transform;
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: var(--accent-ink);
  box-shadow: 0 12px 26px rgba(247, 201, 72, 0.18);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(247, 201, 72, 0.24);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text);
}
.btn-secondary:hover {
  transform: translateY(-1px);
  border-color: rgba(247, 201, 72, 0.5);
  box-shadow: var(--shadow-soft);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.btn:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid rgba(247, 201, 72, 0.9);
  outline-offset: 3px;
}

/* -------------------------- */
/* Header / Nav               */
/* -------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 13, 16, 0.72);
  backdrop-filter: blur(14px);
}

.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  object-fit: contain;
  padding: 6px;
}

.brand .name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand .name strong {
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.brand .name span {
  font-size: 0.82rem;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 650;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}
.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.nav a[aria-current="page"] {
  color: var(--text);
  border-color: rgba(247, 201, 72, 0.32);
  background: rgba(247, 201, 72, 0.08);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .nav {
    position: fixed;
    inset: 66px 12px auto 12px;
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 12, 15, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
  }
  .nav[data-open="true"] {
    display: flex;
  }
  .nav a {
    width: 100%;
    justify-content: center;
  }
  .nav-cta {
    width: 100%;
  }
  .nav-cta .btn {
    width: 100%;
  }
}

/* -------------------------- */
/* Sections / Cards           */
/* -------------------------- */
.section {
  padding: 64px 0;
}

.section-tight {
  padding: 44px 0;
}

.section-title {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.section-subtitle {
  color: var(--muted);
  margin: 0 0 26px;
  max-width: 70ch;
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 10px;
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

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

@media (max-width: 900px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.card strong {
  display: block;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.popular {
  border: 1px solid rgba(247, 201, 72, 0.28);
  background: linear-gradient(180deg, rgba(247, 201, 72, 0.14), rgba(255, 255, 255, 0.04));
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 650;
  font-size: 0.9rem;
}

.cta-band {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: center;
  box-shadow: var(--shadow-soft);
}

.cta-band h2 {
  margin: 0 0 6px;
  letter-spacing: -0.03em;
}

.cta-band p {
  margin: 0;
  color: var(--muted);
}

/* -------------------------- */
/* Sticky Mobile CTA          */
/* -------------------------- */
.sticky-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  display: none;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 12, 15, 0.78);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.sticky-cta .inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}

.sticky-cta .copy {
  min-width: 0;
}

.sticky-cta .copy strong {
  display: block;
  color: var(--text);
  letter-spacing: -0.02em;
  font-size: 0.95rem;
}

.sticky-cta .copy span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 2px;
}

.sticky-cta .btn {
  padding: 11px 14px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .sticky-cta {
    display: block;
  }
  body.has-sticky-cta {
    padding-bottom: 86px; /* keep content above sticky CTA */
  }
}

.pill-accent {
  border-color: rgba(247, 201, 72, 0.35);
  background: rgba(247, 201, 72, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

/* -------------------------- */
/* Footer                     */
/* -------------------------- */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 34px 0 38px;
  color: var(--muted);
}

.site-footer .inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.site-footer .footer-center {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  line-height: 1.65;
}

.site-footer .footer-center .copyright {
  color: rgba(255, 255, 255, 0.82);
  display: block;
  margin-bottom: 4px;
}

@media (max-width: 900px) {
  .site-footer .inner {
    gap: 14px;
  }
}

/* -------------------------- */
/* Reveal on scroll           */
/* -------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms ease, transform 500ms ease;
}

[data-reveal].reveal-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 16px;
  }

  .section,
  .section-tight {
    padding: 24px 0;
  }

  .btn {
    width: 100%;
  }

  .card {
    width: 95%;
    margin-inline: auto;
  }
}
