/* Lucky Loop — Homepage design system
   Palette: clover #0F3D2E (deep bg), cream #F7F3E8 (light), lime #C9F24D (win accent),
            sage #9FB8A8 (muted), rust #D4823A (money accent)
   Type: Fraunces (display), Inter (body), JetBrains Mono (numbers/amounts)
*/

.home {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #F7F3E8;
    color: #14241D;
    line-height: 1.5;
}

.home .wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Nav ---------- */
.home-nav {
    background: #0F3D2E;
    padding: 18px 0;
}

.home-nav .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home .logo {
    font-family: 'Fraunces', serif;
    font-size: 24px;
    font-weight: 600;
    color: #F7F3E8;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.home .logo span {
    color: #C9F24D;
}

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

.home .nav-link {
    color: #DDEADD;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}

.home .nav-link:hover {
    color: #C9F24D;
}

.home .nav-cta {
    background: #C9F24D;
    color: #0F3D2E;
    padding: 8px 16px;
    border-radius: 100px;
    font-weight: 700;
    white-space: nowrap;
}

.home .nav-cta:hover {
    color: #0F3D2E;
    opacity: 0.9;
}

/* ---------- Hero ---------- */
.hero {
    background: #0F3D2E;
    color: #F7F3E8;
    padding: 64px 0 80px;
}

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

.eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9FB8A8;
    margin: 0 0 18px;
}

.hero h1 {
    font-family: 'Fraunces', serif;
    font-size: 56px;
    line-height: 1.08;
    font-weight: 600;
    margin: 0 0 22px;
    letter-spacing: -0.01em;
}

.hero h1 em {
    font-style: normal;
    color: #C9F24D;
}

.hero-sub {
    font-size: 17px;
    color: #DDEADD;
    max-width: 480px;
    margin: 0 0 32px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.hero-note {
    font-size: 14px;
    color: #9FB8A8;
}

.home .btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

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

.btn-lime {
    background: #C9F24D;
    color: #0F3D2E;
}

.btn-lime:hover {
    opacity: 0.92;
}

.btn-ghost {
    background: transparent;
    color: #F7F3E8;
    border-color: #2A5A47;
}

.btn-ghost:hover {
    border-color: #C9F24D;
    color: #C9F24D;
}

/* ---------- Hero visual: the loop ring ---------- */
.hero-visual {
    display: flex;
    justify-content: center;
}

.loop-ring {
    width: 100%;
    max-width: 420px;
    height: auto;
}

.spin-ring {
    transform-origin: 210px 210px;
    animation: spin-ring 18s linear infinite;
}

@keyframes spin-ring {
    to { transform: rotate(360deg); }
}

.node-circle {
    fill: #16493A;
    stroke: #2A5A47;
    stroke-width: 1.5;
}

.node-active {
    fill: #C9F24D;
}

.node-label {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    fill: #F7F3E8;
    text-anchor: middle;
    dominant-baseline: middle;
}

.node-label-dark {
    fill: #0F3D2E;
}

.center-amount {
    font-family: 'JetBrains Mono', monospace;
    font-size: 34px;
    font-weight: 700;
    fill: #C9F24D;
    text-anchor: middle;
}

.center-label {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    fill: #9FB8A8;
    text-anchor: middle;
}

.center-label-sub {
    fill: #6E8A7C;
    font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
    .spin-ring { animation: none; }
}

/* ---------- How it works ---------- */
.how {
    padding: 72px 0;
    background: #F7F3E8;
}

.how h2 {
    font-family: 'Fraunces', serif;
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 36px;
    color: #0F3D2E;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.how-card {
    background: #fff;
    border: 1px solid #E6E0D2;
    border-radius: 16px;
    padding: 24px;
}

.how-mark {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    color: #D4823A;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.how-card h3 {
    font-family: 'Fraunces', serif;
    font-size: 19px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #0F3D2E;
}

.how-card p {
    font-size: 14.5px;
    color: #4A5C53;
    margin: 0;
}

/* ---------- Rules / stats ---------- */
.rules {
    padding: 72px 0;
    background: #EFE9D8;
}

.rules-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 48px;
    align-items: start;
}

.rules h2 {
    font-family: 'Fraunces', serif;
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 24px;
    color: #0F3D2E;
}

.rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rules-list li {
    font-size: 15px;
    color: #3C4D44;
    padding-left: 24px;
    border-left: 3px solid #D4823A;
}

.rules-list strong {
    color: #0F3D2E;
}

.stats-card {
    background: #0F3D2E;
    color: #F7F3E8;
    border-radius: 16px;
    padding: 28px;
}

.stats-card h3 {
    font-family: 'Fraunces', serif;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px;
    color: #C9F24D;
}

.stat {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px solid #2A5A47;
}

.stat:last-child {
    border-bottom: none;
}

.stat-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 22px;
    font-weight: 700;
    color: #C9F24D;
}

.stat-label {
    font-size: 13px;
    color: #9FB8A8;
}

/* ---------- Footer ---------- */
.home-footer {
    background: #0A2E21;
    color: #9FB8A8;
    padding: 48px 0 24px;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 20px;
}

.footer-brand {
    font-family: 'Fraunces', serif;
    font-size: 20px;
    font-weight: 600;
    color: #F7F3E8;
    margin-bottom: 12px;
}

.footer-col p {
    margin: 0;
    line-height: 1.6;
    color: #6E8A7C;
    font-size: 13.5px;
}

.footer-heading {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9FB8A8;
    margin-bottom: 12px;
}

.footer-col a {
    display: block;
    color: #DDEADD;
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 14px;
    transition: color 0.15s ease;
}

.footer-col a:hover {
    color: #C9F24D;
}

.footer-bottom {
    font-size: 13px;
    color: #4A6155;
}

.footer-bottom a {
    color: #6E8A7C;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #C9F24D;
}

@media (max-width: 700px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-col:first-child {
        grid-column: 1 / -1;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
    .hero-grid, .rules-grid {
        grid-template-columns: 1fr;
    }
    .how-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero h1 {
        font-size: 40px;
    }
    .hero-visual {
        order: -1;
    }
}

@media (max-width: 540px) {
    .how-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 34px;
    }
    .home-nav nav {
        gap: 10px;
    }
    .home .logo {
        font-size: 19px;
    }
    .home .nav-link,
    .home .nav-cta {
        font-size: 13px;
    }
    .home .nav-cta {
        padding: 8px 12px;
    }
}

@media (max-width: 400px) {
    .home-nav .wrap {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    .home-nav nav {
        justify-content: center;
        width: 100%;
    }
}

/* ---------- Extra entries section ---------- */
.entries-section {
    padding: 72px 0;
    background: #0F3D2E;
    color: #F7F3E8;
}

.entries-section h2 {
    font-family: 'Fraunces', serif;
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 12px;
    color: #F7F3E8;
}

.entries-sub {
    font-size: 16px;
    color: #9FB8A8;
    margin: 0 0 36px;
    max-width: 600px;
}

.entries-tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}

.entries-tier {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: transform 0.15s ease;
}

.entries-tier:hover {
    transform: translateY(-3px);
}

.entries-tier-mid {
    border-color: rgba(201, 242, 77, 0.3);
}

.entries-tier-top {
    background: rgba(201, 242, 77, 0.08);
    border-color: rgba(201, 242, 77, 0.5);
}

.entries-tier-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 48px;
    font-weight: 700;
    color: #C9F24D;
    line-height: 1;
    margin-bottom: 6px;
}

.entries-tier-label {
    font-size: 13px;
    color: #9FB8A8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.entries-tier-reward {
    font-size: 16px;
    font-weight: 700;
    color: #F7F3E8;
    background: rgba(255,255,255,0.08);
    padding: 8px 16px;
    border-radius: 100px;
    display: inline-block;
}

.entries-tier-top .entries-tier-reward {
    background: #C9F24D;
    color: #0F3D2E;
}

.entries-note {
    font-size: 14px;
    color: #6E8A7C;
    margin: 0;
}

@media (max-width: 600px) {
    .entries-tiers {
        grid-template-columns: 1fr;
        max-width: 280px;
    }
}

/* ---------- SVG center countdown text ---------- */
.center-countdown {
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    fill: #C9F24D;
    text-anchor: middle;
    letter-spacing: 0.04em;
}

/* ---------- Countdown strip ---------- */
.countdown-strip {
    background: #0A2E21;
    border-top: 1px solid rgba(201, 242, 77, 0.12);
    border-bottom: 1px solid rgba(201, 242, 77, 0.12);
    padding: 14px 0;
    position: relative;
    z-index: 10;
    transition: background 0.4s ease;
}

.countdown-strip-warning {
    background: #2A1A00;
    border-color: rgba(212, 130, 58, 0.25);
}

.countdown-strip-urgent {
    background: #2A0000;
    border-color: rgba(198, 40, 40, 0.3);
    animation: strip-pulse 2s ease-in-out infinite;
}

@keyframes strip-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.82; }
}

@media (prefers-reduced-motion: reduce) {
    .countdown-strip-urgent { animation: none; }
}

.countdown-strip-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.countdown-strip-label {
    font-size: 13.5px;
    font-weight: 600;
    color: #9FB8A8;
    white-space: nowrap;
}

.countdown-strip-warning .countdown-strip-label { color: #D4823A; }
.countdown-strip-urgent  .countdown-strip-label { color: #EF9A9A; }

.countdown-strip-clock {
    display: flex;
    align-items: center;
    gap: 8px;
}

.countdown-strip-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.countdown-strip-unit span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 26px;
    font-weight: 700;
    color: #C9F24D;
    line-height: 1;
}

.countdown-strip-warning .countdown-strip-unit span { color: #D4823A; }
.countdown-strip-urgent  .countdown-strip-unit span { color: #EF9A9A; }

.countdown-strip-unit small {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6E8A7C;
}

.countdown-strip-sep {
    font-family: 'JetBrains Mono', monospace;
    font-size: 22px;
    font-weight: 700;
    color: #2A5A47;
    margin-bottom: 10px;
}

.countdown-strip-cta {
    display: inline-block;
    background: linear-gradient(135deg, #C9F24D, #9FE066);
    color: #0F3D2E;
    font-weight: 700;
    font-size: 14px;
    padding: 8px 20px;
    border-radius: 100px;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 6px 16px -6px rgba(46,125,50,0.5);
}

.countdown-strip-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -6px rgba(46,125,50,0.55);
}

.countdown-strip-warning .countdown-strip-cta {
    background: linear-gradient(135deg, #E29A5C, #D4823A);
    color: #fff;
    box-shadow: 0 6px 16px -6px rgba(212,130,58,0.5);
}

@media (max-width: 600px) {
    .countdown-strip-label { display: none; }
    .countdown-strip-cta   { display: none; }
    .countdown-strip-unit span { font-size: 22px; }
}
