/* === CSS RESET & BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Noto Sans', system-ui, sans-serif;
    line-height: 1.6;
    font-size: 15px;
    overflow-x: clip;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .font-heading {
    font-family: 'Bricolage Grotesque', sans-serif;
    line-height: 1.1;
    font-weight: 800;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

/* === PREMIUM TOKENS (LIGHT THEME) === */
:root {
  --bg: #ffffff;
  --bg-subtle: #f9fafb;
  --bg-alt: #f3f4f6;
  --text: #111827;
  --text-muted: #4b5563;
  --accent: #e11d48; /* Lottery Red */
  --accent-secondary: #fbbf24; /* Lottery Gold */
  --accent-tertiary: #2563eb; /* Lottery Blue */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --shadow-glass: 0 8px 32px 0 rgba(0,0,0,0.06);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.05);
  --container-width: 1240px;
  --section-spacing-lg: 100px;
  --section-spacing-sm: 60px;
}

/* === NOISE TEXTURE OVERLAY === */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: 9999;
}

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

section {
    padding: var(--section-spacing-lg) 0;
    position: relative;
    overflow: hidden;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* === NAVIGATION === */
.lottery-nav {
    position: sticky;
    top: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 32px;
    flex: 1;
}

.nav-links.left { justify-content: flex-end; padding-right: 40px; }
.nav-links.right { justify-content: flex-start; padding-left: 40px; }

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
    color: var(--text);
}

/* Animated Underline */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 120px;
}

.nav-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.nav-logo span {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

/* === HERO SECTION === */
.hero-stage {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    background: radial-gradient(circle at 10% 20%, rgba(225, 29, 72, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 90% 80%, rgba(37, 99, 235, 0.05) 0%, transparent 50%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(3.5rem, 8vw, 6rem);
    margin-bottom: 24px;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--text) 60%, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-badges {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    align-items: center;
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-alt);
    border-radius: 100px;
    font-weight: 700;
}

.rating-badge i { color: var(--accent-secondary); }

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-mini-card {
    background: var(--bg);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.04);
    border: 1px solid var(--glass-border);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-mini-card:hover {
    transform: translateY(-8px);
}

.feature-mini-card i {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

.card-1 i { color: var(--accent); }
.card-2 i { color: var(--accent-tertiary); }
.card-3 i { color: var(--accent-secondary); }
.card-4 i { color: #10b981; }

.feature-mini-card span {
    font-weight: 700;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1rem;
}

/* === STATS SECTION === */
.stat-ticker {
    background: var(--bg-subtle);
    padding: var(--section-spacing-sm) 0;
}

.stats-flex {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item h2 {
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--accent);
    margin-bottom: 8px;
}

.stat-item p {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* === SCREENSHOT GALLERY (VERTICAL STORY) === */
.story-gallery {
    padding-bottom: 150px;
}

.story-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.story-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--glass-border) 10%, var(--glass-border) 90%, transparent);
    transform: translateX(-50%);
    z-index: 1;
}

.story-step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 120px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.story-step:nth-child(even) .story-image { grid-column: 2; }
.story-step:nth-child(even) .story-text { grid-column: 1; grid-row: 1; text-align: right; }

.story-image {
    display: flex;
    justify-content: center;
}

.screenshot-img {
    max-width: 320px;
    width: 100%;
    border-radius: 40px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.12);
    border: 8px solid #1f2937;
}

.story-text h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text);
}

.story-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* === FEATURES ACCORDION === */
.feature-pulse {
    background: var(--bg-alt);
}

.accordion-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.accordion-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accordion-item {
    background: var(--bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.accordion-header {
    width: 100%;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
}

.accordion-header i {
    font-size: 1.5rem;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.accordion-item.active {
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(225, 29, 72, 0.05);
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-inner {
    padding: 0 24px 24px 24px;
    color: var(--text-muted);
}

.accordion-visual {
    position: sticky;
    top: 120px;
    height: 600px;
    border-radius: var(--radius-lg);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

.accordion-visual img {
    height: 90%;
    width: auto;
    object-fit: contain;
}

/* === REVIEWS SCROLL === */
.vox-populi {
    padding-bottom: var(--section-spacing-lg);
}

.reviews-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 40px 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.reviews-track::-webkit-scrollbar { display: none; }

.review-card {
    min-width: 380px;
    background: var(--bg-subtle);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    flex-shrink: 0;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.avatar-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 0.9rem;
}

.stars {
    color: var(--accent-secondary);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.review-text {
    font-style: italic;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.review-name {
    display: block;
    margin-top: 16px;
    font-weight: 700;
    color: var(--text);
}

/* === DOWNLOAD CTA === */
.download-nexus {
    text-align: center;
    background: linear-gradient(to bottom, var(--bg) 0%, var(--bg-alt) 100%);
    padding: 120px 0;
}

.cta-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 32px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.download-nexus h2 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.download-nexus p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 48px;
}

.app-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* === FOOTER === */
.lottery-footer {
    background: var(--text);
    color: #fff;
    padding: 80px 0 40px;
}

.footer-cta {
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-cta h2 { font-size: 2.5rem; max-width: 500px; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 60px;
}

.footer-brand img {
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    border-radius: 10px;
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    margin-bottom: 24px;
}

.footer-col h4 {
    margin-bottom: 24px;
    font-size: 1.1rem;
    color: #fff;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: rgba(255,255,255,0.6); font-size: 0.95rem; }
.footer-col ul li a:hover { color: var(--accent-secondary); }

.social-strip {
    display: flex;
    gap: 16px;
}

.social-btn {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}

/* === BUTTONS === */
.btn-solid {
    background: var(--text);
    color: #fff;
    padding: 16px 32px;
    border-radius: 100px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-solid:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(225, 29, 72, 0.2);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    padding: 14px 30px;
    border-radius: 100px;
    font-weight: 700;
    border: 2px solid var(--text);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-ghost:hover {
    background: var(--text);
    color: #fff;
}

.btn-accent {
    background: var(--accent);
    color: #fff;
    padding: 16px 32px;
    border-radius: 100px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(225, 29, 72, 0.3);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .hero-grid, .accordion-layout { grid-template-columns: 1fr; }
    .hero-visual { order: -1; max-width: 500px; margin: 0 auto; }
    .hero-content { text-align: center; }
    .hero-btns, .hero-badges { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .accordion-visual { display: none; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-mobile-toggle { display: block; }
    .nav-container { justify-content: space-between; }
    .nav-logo { min-width: auto; position: absolute; left: 50%; transform: translateX(-50%); }

    .story-step { grid-template-columns: 1fr; gap: 40px; }
    .story-step:nth-child(even) .story-text { grid-row: auto; text-align: left; }
    .story-line { left: 24px; }
    .story-image { justify-content: flex-start; padding-left: 20px; }

    .footer-cta { flex-direction: column; text-align: center; gap: 32px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .social-strip { justify-content: center; }
    .footer-bottom { flex-direction: column; align-items: center; gap: 20px; }
}

/* Legal Pages Styling */
.legal-content {
    padding: 140px 0 100px;
}

.legal-content h1 {
    font-size: 3.5rem;
    margin-bottom: 40px;
    text-align: center;
}

.legal-text-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg);
    padding: 60px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.02);
}

.legal-text-wrapper h2 {
    margin: 40px 0 20px;
}

.legal-text-wrapper p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--text-muted);
}

.legal-text-wrapper ul {
    margin-bottom: 24px;
    padding-left: 20px;
}

.legal-text-wrapper ul li {
    margin-bottom: 12px;
    color: var(--text-muted);
}
