/* ============================================================
   WheelGenerator — Shared Styles (header, footer, base)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --pri:        #FF6B35;
  --pri-dk:     #E85520;
  --pri-lt:     #FFF4F0;
  --sec:        #2ECC71;
  --acc:        #6C5CE7;
  --gold:       #FFD700;
  --bg:         #F8F9FC;
  --bg2:        #EEF1F7;
  --srf:        #FFFFFF;
  --bdr:        #E2E8F0;
  --txt:        #1A202C;
  --txt2:       #4A5568;
  --txt3:       #94A3B8;
  --r:          16px;
  --r-sm:       10px;
  --sh:         0 4px 24px rgba(0,0,0,.07);
  --sh-lg:      0 12px 48px rgba(0,0,0,.13);
  --nav-h:      64px;
  --f-body:     'Nunito', sans-serif;
  --f-disp:     'Space Grotesk', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--txt);
  line-height: 1.7;
  overflow-x: hidden;
  padding-top: var(--nav-h);
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ── Header ─────────────────────────────────────── */
#site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 900; height: var(--nav-h);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
#site-header.scrolled { border-color: var(--bdr); box-shadow: 0 2px 18px rgba(0,0,0,.07); }
.hdr-inner {
  max-width: 1200px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; gap: 8px; padding: 0 20px;
}
.hdr-logo {
  display: flex; align-items: center; gap: 7px; flex-shrink: 0;
  font-family: var(--f-disp); font-weight: 700; font-size: 1.1rem; color: var(--txt);
}
.hdr-logo-icon { font-size: 1.35rem; }
.hdr-nav {
  display: flex; align-items: center; gap: 2px; margin-left: auto; flex-wrap: wrap;
}
.hdr-nav a {
  display: block; padding: 7px 11px; border-radius: 8px;
  font-size: .82rem; font-weight: 700; color: var(--txt2);
  transition: background .15s, color .15s; white-space: nowrap;
}
.hdr-nav a:hover, .hdr-nav a.active {
  background: var(--pri-lt); color: var(--pri);
}
.hdr-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 34px; height: 34px; margin-left: auto; flex-shrink: 0;
}
.hdr-burger span {
  display: block; height: 2px; background: var(--txt); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hdr-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hdr-burger.open span:nth-child(2) { opacity: 0; }
.hdr-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Footer ─────────────────────────────────────── */
#site-footer {
  background: #111827; color: rgba(255,255,255,.75);
  padding: 56px 20px 0; margin-top: 80px;
}
.ftr-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding-bottom: 48px;
}
.ftr-brand p { font-size: .85rem; opacity: .6; line-height: 1.7; margin-top: 10px; max-width: 220px; }
.ftr-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ftr-col h4 {
  font-size: .78rem; font-weight: 800; color: #fff;
  text-transform: uppercase; letter-spacing: .07em; margin-bottom: 12px;
}
.ftr-col li { margin-bottom: 7px; }
.ftr-col a { font-size: .82rem; opacity: .6; transition: opacity .2s; }
.ftr-col a:hover { opacity: 1; color: var(--pri); }
.ftr-bottom {
  max-width: 1200px; margin: 0 auto;
  padding: 18px 0; border-top: 1px solid rgba(255,255,255,.08);
  font-size: .78rem; opacity: .45; color: #fff;
}
.ftr-bottom a { color: #fff; }

/* ── Section helpers ─────────────────────────────── */
.pg-hero {
  background: linear-gradient(135deg, #FFF8F5 0%, #F0F4FF 60%, #F5FFF8 100%);
  padding: 56px 20px 48px; text-align: center;
  position: relative; overflow: hidden;
}
.pg-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 60%, rgba(255,107,53,.06) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(108,92,231,.07) 0%, transparent 60%);
}
.pg-hero-inner { position: relative; max-width: 680px; margin: 0 auto; }
.pg-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,107,53,.1); color: var(--pri);
  padding: 5px 14px; border-radius: 50px; font-size: .78rem; font-weight: 800;
  margin-bottom: 16px; border: 1px solid rgba(255,107,53,.2);
  text-transform: uppercase; letter-spacing: .06em;
}
.pg-hero h1 {
  font-family: var(--f-disp); font-size: clamp(2rem,5vw,3.2rem);
  font-weight: 700; line-height: 1.15; margin-bottom: 14px;
}
.pg-hero h1 span { color: var(--pri); }
.pg-hero p {
  font-size: 1.05rem; color: var(--txt2); max-width: 500px; margin: 0 auto;
}
.section { padding: 72px 20px; }
.section-alt { background: var(--bg2); }
.wrap { max-width: 1100px; margin: 0 auto; }
.wrap-sm { max-width: 760px; margin: 0 auto; }
.sec-label {
  display: inline-block; background: rgba(255,107,53,.1); color: var(--pri);
  padding: 4px 13px; border-radius: 50px; font-size: .76rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .07em; margin-bottom: 10px;
}
.sec-title {
  font-family: var(--f-disp); font-size: clamp(1.6rem,3.5vw,2.4rem);
  font-weight: 700; margin-bottom: 12px; line-height: 1.25;
}
.sec-desc { font-size: 1rem; color: var(--txt2); max-width: 560px; }

/* ── App card ─────────────────────────────────────── */
.app-card {
  background: var(--srf); border-radius: 24px;
  box-shadow: var(--sh); overflow: hidden;
  max-width: 860px; margin: -28px auto 0; position: relative; z-index: 2;
}
.app-card-body { padding: 36px 32px; }

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 34px; border-radius: 50px;
  font-family: var(--f-disp); font-weight: 700; font-size: 1rem;
  transition: all .2s; cursor: pointer; border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--pri), var(--pri-dk)); color: #fff;
  box-shadow: 0 6px 22px rgba(255,107,53,.38);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,107,53,.48); }
.btn-primary:active { transform: scale(.97); }
.btn-ghost {
  background: var(--bg2); color: var(--txt2);
  border: 1.5px solid var(--bdr);
}
.btn-ghost:hover { border-color: var(--pri); color: var(--pri); background: var(--pri-lt); }
.btn-sm { padding: 9px 20px; font-size: .85rem; }

/* ── Info grid (features / use cases) ────────────── */
.info-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 20px;
  margin-top: 40px;
}
.info-card {
  background: var(--srf); border: 1.5px solid var(--bdr); border-radius: var(--r);
  padding: 24px 20px; transition: all .25s;
}
.info-card:hover { border-color: var(--pri); transform: translateY(-3px); box-shadow: var(--sh); }
.info-card-icon { font-size: 1.8rem; margin-bottom: 10px; }
.info-card h3 { font-family: var(--f-disp); font-size: 1rem; margin-bottom: 6px; }
.info-card p { font-size: .85rem; color: var(--txt2); }

/* ── FAQ ─────────────────────────────────────────── */
.faq-list { margin-top: 36px; }
.faq-item { border-bottom: 1px solid var(--bdr); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; font-weight: 700; font-size: .95rem; cursor: pointer;
  background: none; color: var(--txt); text-align: left; gap: 16px;
}
.faq-icon {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--bdr);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: .95rem; transition: all .2s;
}
.faq-item.open .faq-icon { background: var(--pri); border-color: var(--pri); color: #fff; transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 0 16px; font-size: .9rem; color: var(--txt2); }
.faq-item.open .faq-a { max-height: 400px; }

/* ── Tags ─────────────────────────────────────────── */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag {
  background: var(--bg2); color: var(--txt2); border: 1px solid var(--bdr);
  padding: 5px 12px; border-radius: 50px; font-size: .78rem; font-weight: 700;
}

/* ── Responsive ──────────────────────────────────── */
@media(max-width:900px) {
  .ftr-inner { grid-template-columns: 1fr; gap: 32px; }
  .ftr-cols { grid-template-columns: repeat(3,1fr); }
}
@media(max-width:700px) {
  .hdr-nav {
    display: none; position: fixed; top: var(--nav-h); inset-inline: 0; bottom: 0;
    background: #fff; flex-direction: column; align-items: flex-start;
    padding: 20px; gap: 2px; overflow-y: auto; z-index: 888;
  }
  .hdr-nav.open { display: flex; }
  .hdr-nav a { padding: 11px 14px; font-size: .95rem; width: 100%; }
  .hdr-burger { display: flex; }
  .app-card-body { padding: 24px 18px; }
  .ftr-cols { grid-template-columns: 1fr 1fr; }
}
@media(max-width:480px) {
  .ftr-cols { grid-template-columns: 1fr; }
  .pg-hero { padding: 40px 16px 36px; }
}
