/* CasinoIQ — Apple-style design system */
:root {
  --bg: #000000;
  --bg-alt: #0b0b0d;
  --tile: #16161a;
  --tile-hover: #1d1d22;
  --hairline: rgba(255, 255, 255, 0.14);
  --green: #30d158;
  --green-bright: #4ade80;
  --text: #f5f5f7;
  --muted: #86868b;
  --muted-bright: #a1a1a6;
  --radius: 28px;
  --maxw: 1024px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 22px;
  height: 52px; display: flex; align-items: center; gap: 28px;
}
.nav-brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; color: var(--text);
}
.nav-brand:hover { text-decoration: none; }
.nav-brand img { width: 26px; height: 26px; border-radius: 6px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--muted-bright); font-size: 0.8rem; font-weight: 400; letter-spacing: -0.01em; transition: color 0.2s ease; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  background: var(--green); color: #000 !important; font-weight: 600;
  padding: 5px 14px; border-radius: 980px; font-size: 0.8rem;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--green-bright); text-decoration: none; }
@media (max-width: 720px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ---------- Buttons ---------- */
.btn-appstore {
  display: inline-flex; align-items: center; gap: 11px;
  background: #fff; color: #000; border-radius: 980px;
  padding: 13px 28px; font-weight: 500; line-height: 1.15;
  transition: transform 0.25s cubic-bezier(0.25, 0.1, 0.25, 1), background 0.2s ease;
}
.btn-appstore:hover { transform: scale(1.03); text-decoration: none; background: #e8e8ed; }
.btn-appstore svg { width: 22px; height: 22px; flex-shrink: 0; }
.btn-appstore .small { display: block; font-size: 0.64rem; font-weight: 400; color: #515154; letter-spacing: 0; }
.btn-appstore .big { display: block; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.015em; }

.btn-link {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--green); font-size: 1.05rem; font-weight: 400; letter-spacing: -0.01em;
}
.btn-link::after { content: "›"; font-size: 1.2em; line-height: 1; transition: transform 0.2s ease; }
.btn-link:hover { text-decoration: underline; }
.btn-link:hover::after { transform: translateX(2px); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 100px; text-align: center; overflow: hidden; }
.hero-eyebrow {
  display: block; color: var(--green); font-size: 1rem; font-weight: 600;
  letter-spacing: -0.01em; margin-bottom: 14px;
}
h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.75rem); line-height: 1.05;
  letter-spacing: -0.022em; font-weight: 700;
  margin: 0 auto 22px; max-width: 17em;
}
h1 .accent { color: var(--green); }
.hero-sub {
  font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--muted-bright);
  line-height: 1.45; letter-spacing: -0.01em;
  max-width: 33em; margin: 0 auto 32px;
}
.hero-actions {
  display: flex; gap: 28px; align-items: center; justify-content: center;
  flex-wrap: wrap; margin-bottom: 22px;
}
.hero-proof { color: var(--muted); font-size: 0.85rem; letter-spacing: -0.005em; }
.hero-proof .stars { color: var(--text); letter-spacing: 1px; margin-right: 6px; }
.hero-phone { display: flex; justify-content: center; margin-top: 56px; }
.hero-phone img {
  width: min(380px, 82vw); border-radius: 44px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 140px rgba(48, 209, 88, 0.12);
}

/* ---------- Sections ---------- */
section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }
.kicker {
  color: var(--green); font-weight: 600; font-size: 1rem;
  letter-spacing: -0.01em; margin-bottom: 10px; text-align: center;
}
h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -0.02em;
  line-height: 1.08; font-weight: 700; margin-bottom: 16px; text-align: center;
}
.section-sub {
  color: var(--muted-bright); font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  letter-spacing: -0.01em; line-height: 1.5;
  max-width: 38em; margin: 0 auto 56px; text-align: center;
}

/* Stat bar */
.statbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.statbar .stat {
  background: var(--tile); border-radius: 22px;
  padding: 30px 22px; text-align: center;
}
.stat .num {
  font-size: 1.9rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--green); line-height: 1.1;
}
.stat .lbl { font-size: 0.84rem; color: var(--muted); margin-top: 6px; letter-spacing: -0.005em; }
@media (max-width: 720px) { .statbar { grid-template-columns: repeat(2, 1fr); } }

/* Screenshots */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(260px, 64vw);
  gap: 24px; overflow-x: auto; padding: 8px 4px 28px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }
.shots figure { scroll-snap-align: center; }
.shots img { border-radius: 34px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7); }
.shots figcaption {
  font-size: 0.84rem; color: var(--muted); margin-top: 16px;
  text-align: center; letter-spacing: -0.005em;
}

/* How it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--tile); border-radius: var(--radius); padding: 32px 28px; }
.step .n {
  font-size: 2.6rem; font-weight: 700; letter-spacing: -0.03em;
  color: var(--green); line-height: 1; margin-bottom: 16px;
}
.step h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.92rem; line-height: 1.55; letter-spacing: -0.005em; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: var(--tile); border-radius: var(--radius); padding: 32px 28px;
  transition: background 0.25s ease;
}
.feature:hover { background: var(--tile-hover); }
.feature .icon { font-size: 1.8rem; margin-bottom: 16px; }
.feature h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.92rem; line-height: 1.55; letter-spacing: -0.005em; }

/* Guide cards */
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 760px) { .guide-grid { grid-template-columns: 1fr; } }
.guide-card {
  background: var(--tile); border-radius: var(--radius);
  padding: 34px 30px; display: block; color: var(--text);
  transition: background 0.25s ease, transform 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.guide-card:hover { background: var(--tile-hover); text-decoration: none; transform: scale(1.012); }
.guide-card .tag {
  display: inline-block; font-size: 0.78rem; font-weight: 600;
  letter-spacing: -0.005em; color: var(--green); margin-bottom: 10px;
}
.guide-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.018em; line-height: 1.25; }
.guide-card p { color: var(--muted); font-size: 0.92rem; line-height: 1.55; letter-spacing: -0.005em; }
.guide-card .more { display: inline-block; margin-top: 16px; color: var(--green); font-weight: 400; font-size: 0.95rem; }

/* FAQ — Apple support style: hairline dividers, no boxes */
.faq-list { max-width: 720px; margin: 0 auto; border-top: 1px solid var(--hairline); }
.faq-list details { border-bottom: 1px solid var(--hairline); }
.faq-list summary {
  cursor: pointer; font-weight: 600; font-size: 1.1rem; letter-spacing: -0.015em;
  padding: 24px 8px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  transition: color 0.2s ease;
}
.faq-list summary:hover { color: var(--green-bright); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; color: var(--muted); font-size: 1.5rem; font-weight: 300;
  flex-shrink: 0; transition: transform 0.25s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .faq-body {
  padding: 0 8px 26px; color: var(--muted-bright);
  font-size: 0.98rem; line-height: 1.6; letter-spacing: -0.005em; max-width: 60ch;
}
.faq-list .faq-body a { font-weight: 500; }

/* CTA band */
.cta-band { text-align: center; padding: 130px 22px; background: var(--bg-alt); }
.cta-band .icon-lg {
  width: 96px; height: 96px; border-radius: 24px; margin: 0 auto 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
.cta-band h2 { margin-bottom: 14px; }
.cta-band p {
  color: var(--muted-bright); margin-bottom: 34px; font-size: 1.15rem;
  letter-spacing: -0.01em;
}

/* ---------- Footer ---------- */
footer { padding: 44px 0 48px; background: var(--bg); }
.footer-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr 0.8fr; gap: 40px;
  padding-bottom: 32px; margin-bottom: 24px; border-bottom: 1px solid var(--hairline);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem; margin-bottom: 10px; }
.footer-brand img { width: 24px; height: 24px; border-radius: 6px; }
footer p, footer li { color: var(--muted); font-size: 0.78rem; line-height: 1.6; }
footer h4 {
  font-size: 0.78rem; font-weight: 600; color: var(--muted-bright);
  margin-bottom: 12px; letter-spacing: -0.005em;
}
footer ul { list-style: none; }
footer ul li { margin-bottom: 8px; }
footer ul a { color: var(--muted); font-size: 0.78rem; }
footer ul a:hover { color: var(--text); }
.footer-legal { font-size: 0.72rem; color: #6e6e73; }
.footer-legal p { font-size: 0.72rem; color: #6e6e73; margin-bottom: 7px; line-height: 1.55; }
.footer-legal a { color: var(--muted-bright); }

/* ---------- Guide / article pages ---------- */
.article { max-width: 692px; margin: 0 auto; padding: 72px 22px 40px; }
.breadcrumb { font-size: 0.8rem; color: var(--muted); margin-bottom: 26px; letter-spacing: -0.005em; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }
.article h1 { font-size: clamp(2.1rem, 5vw, 3rem); text-align: left; margin-left: 0; max-width: none; }
.article .byline { color: var(--muted); font-size: 0.85rem; margin-bottom: 40px; }
.article h2 {
  margin-top: 56px; font-size: 1.7rem; text-align: left; letter-spacing: -0.02em;
}
.article h3 { margin-top: 30px; margin-bottom: 10px; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.015em; }
.article p { margin-bottom: 18px; color: var(--muted-bright); font-size: 1.02rem; line-height: 1.65; letter-spacing: -0.008em; }
.article ul, .article ol { margin: 0 0 20px 22px; color: var(--muted-bright); font-size: 1.02rem; line-height: 1.65; letter-spacing: -0.008em; }
.article li { margin-bottom: 10px; }
.article strong { color: var(--text); font-weight: 600; }
.article table {
  width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.92rem;
  display: block; overflow-x: auto;
}
.article th, .article td { border-bottom: 1px solid var(--hairline); padding: 12px 16px 12px 0; text-align: left; }
.article th { color: var(--text); font-weight: 600; letter-spacing: -0.005em; }
.article td { color: var(--muted-bright); }
.article blockquote {
  border-left: 2px solid var(--green); padding: 4px 0 4px 22px;
  margin: 24px 0; color: var(--muted-bright); font-size: 1.05rem;
}
.article .shot-inline {
  width: min(310px, 78vw); margin: 36px auto; border-radius: 36px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}
.callout {
  background: var(--tile); border-radius: 20px; padding: 24px 26px; margin: 28px 0;
}
.callout strong { color: var(--green); }
.article .cta-inline {
  text-align: center; background: var(--tile);
  border-radius: var(--radius); padding: 48px 32px; margin: 56px 0 8px;
}
.article .cta-inline h2 { margin-top: 0; text-align: center; font-size: 1.8rem; }
.article .cta-inline p { color: var(--muted); font-size: 0.95rem; }
.related { max-width: 692px; margin: 0 auto; padding: 0 22px 88px; }
.related h2 { font-size: 1.4rem; margin-bottom: 20px; text-align: left; }
.related-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 640px) { .related-links { grid-template-columns: 1fr; } }
.related-links a {
  background: var(--tile); border-radius: 16px;
  padding: 16px 20px; color: var(--text); font-size: 0.9rem; font-weight: 500;
  letter-spacing: -0.008em; transition: background 0.25s ease;
}
.related-links a:hover { background: var(--tile-hover); text-decoration: none; }

/* ---------- Terms & privacy page ---------- */
.legal-page { padding: 72px 0 32px; }
.legal-container { max-width: 760px; }
.legal-header { margin-bottom: 40px; max-width: 660px; }
.legal-header h1 { max-width: none; text-align: left; margin: 0 0 18px; }
.legal-header > p:last-child { color: var(--muted-bright); font-size: 1.08rem; line-height: 1.55; }
.legal-section { padding: 0; scroll-margin-top: 80px; }
.legal-section + .legal-section { margin-top: 36px; }
.legal-section h2 { margin: 0 0 28px; padding-bottom: 16px; border-bottom: 1px solid var(--hairline); font-size: clamp(1.75rem, 4vw, 2.25rem); line-height: 1.15; text-align: left; }
.legal-section h2 span { display: block; color: var(--muted); font-size: 0.84rem; font-weight: 500; letter-spacing: -0.005em; margin-top: 10px; }
.legal-section h3 { margin: 36px 0 14px; font-size: 1.38rem; letter-spacing: -0.018em; }
.legal-section h4 { margin: 32px 0 9px; color: var(--text); font-size: 1.02rem; letter-spacing: -0.01em; }
.legal-section h3 + h4 { margin-top: 20px; }
.legal-section p, .legal-section li { color: var(--muted-bright); font-size: 1rem; line-height: 1.7; letter-spacing: -0.006em; }
.legal-section p { margin-bottom: 17px; }
.legal-section ul { margin: 0 0 20px 22px; }
.legal-section li { margin-bottom: 8px; }
.legal-section strong { color: var(--text); font-weight: 600; }
.legal-contact { padding-bottom: 32px; }
@media (max-width: 560px) {
  .legal-page { padding-top: 48px; }
  .legal-header { margin-bottom: 32px; }
  .legal-section + .legal-section { margin-top: 28px; }
}
