/* StackRoll - Homepage Styles (Modern Poker Theme) */

/* Hero Section */
.hero {
    position: relative;
    padding: 140px 0 110px;
    text-align: center;
    color: #ffffff;
    background-color: #0c231d;
    /* Felt base + subtle vignettes + weave tile */
    background-image:
      url("../images/felt-weave-h2Gtqz8.svg"),
      radial-gradient(1200px 700px at 10% -10%, rgba(33, 94, 74, 0.22), rgba(33, 94, 74, 0) 60%),
      radial-gradient(1200px 700px at 90% -10%, rgba(10, 64, 46, 0.28), rgba(10, 64, 46, 0) 65%),
      linear-gradient(180deg, #0e2b23 0%, #0c231d 60%, #0c231d 100%);
    background-repeat: repeat, no-repeat, no-repeat, no-repeat;
    background-position: center, center, center, center;
    background-size: 160px 160px, auto, auto, auto;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
}

/* Falling chips - back layer (slow) */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
      url("../images/chip-ring-blue-RIEqEF6.svg"),
      url("../images/chip-ring-DXi1-02.svg"),
      url("../images/chip-ring-gold-Gsf8Ank.svg"),
      url("../images/chip-ring-red-XnTv_eP.svg"),
      url("../images/chip-ring-blue-RIEqEF6.svg"),
      url("../images/chip-ring-DXi1-02.svg"),
      url("../images/chip-ring-gold-Gsf8Ank.svg"),
      url("../images/chip-ring-red-XnTv_eP.svg"),
      url("../images/chip-ring-blue-RIEqEF6.svg"),
      url("../images/chip-ring-DXi1-02.svg");
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
    background-size:
      60px 60px,
      52px 52px,
      46px 46px,
      50px 50px,
      44px 44px,
      56px 56px,
      48px 48px,
      42px 42px,
      54px 54px,
      48px 48px;
    /* x positions spread across, y start above viewport */
    background-position:
      6% -200px,
      14% -560px,
      22% -380px,
      30% -720px,
      38% -480px,
      50% -960px,
      62% -640px,
      74% -800px,
      86% -540px,
      94% -1100px;
    opacity: 0.18;
    mix-blend-mode: screen;
    animation: chipsFallSlow 18s linear infinite;
}

/* Foreground layer (faster) */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
      url("../images/chip-ring-gold-Gsf8Ank.svg"),
      url("../images/chip-ring-blue-RIEqEF6.svg"),
      url("../images/chip-ring-red-XnTv_eP.svg"),
      url("../images/chip-ring-DXi1-02.svg"),
      url("../images/chip-ring-gold-Gsf8Ank.svg"),
      url("../images/chip-ring-blue-RIEqEF6.svg"),
      url("../images/chip-ring-red-XnTv_eP.svg"),
      url("../images/chip-ring-DXi1-02.svg"),
      url("../images/chip-ring-gold-Gsf8Ank.svg");
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
    background-size:
      92px 92px,
      84px 84px,
      74px 74px,
      86px 86px,
      80px 80px,
      88px 88px,
      78px 78px,
      82px 82px,
      96px 96px;
    background-position:
      10% -900px,
      22% -700px,
      32% -1100px,
      44% -600px,
      58% -1000px,
      68% -750px,
      78% -1200px,
      88% -850px,
      96% -1050px;
    opacity: 0.24;
    mix-blend-mode: screen;
    animation: chipsFallFast 12s linear infinite;
    animation-delay: -3s;
}

.hero .container { position: relative; }

.hero-title {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 900;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    line-height: 1.08;
    background: linear-gradient(180deg, #ffffff 0%, #eaffe9 60%, #d2ffee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 20px rgba(44, 245, 168, 0.06);
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255,255,255,0.82);
    margin-bottom: 44px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* (no ::after) */

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

/* Waitlist form */
.waitlist-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center; /* vertically center button with input */
    margin-top: 12px;
    flex-wrap: wrap;
    padding: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.04);
}
.waitlist-form input[type="email"] {
    width: min(420px, 100%);
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.08);
    color: #e8fff7;
    font-size: 16px;
    outline: none;
}
.waitlist-form input[type="email"]::placeholder { color: rgba(255,255,255,0.7); }
.waitlist-form input[type="email"]:focus {
    border-color: rgba(77, 226, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(77, 226, 255, 0.2);
}
.waitlist-form button[type="submit"] {
    background: linear-gradient(135deg, var(--neon-green), #67ffd2);
    color: #06251a;
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(46, 255, 191, 0.32);
}
.waitlist-form button[type="submit"]:hover {
    transform: translateY(-2px);
}
.waitlist-note {
    flex-basis: 100%;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    margin-top: 2px;
}
.visually-hidden { position: absolute; left: -9999px; }

.button-primary {
    background: linear-gradient(135deg, var(--neon-green), #67ffd2);
    color: #06251a;
    padding: 16px 32px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    font-size: 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(46, 255, 191, 0.3), inset 0 -2px 0 rgba(0,0,0,0.08);
}

.btn-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
}

.button-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(46, 255, 191, 0.35);
}

.button-secondary {
    background: rgba(255,255,255,0.08);
    color: #e8fff7;
    padding: 16px 32px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    border: 1px solid rgba(255,255,255,0.18);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(6px);
}

.button-secondary:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.28);
}

/* Features Section */
.features {
    padding: 96px 0 80px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfa 100%);
}

#features { scroll-margin-top: 96px; }

.features-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.features-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 60px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: linear-gradient(#ffffff, #ffffff) padding-box,
                linear-gradient(135deg, rgba(44,108,84,0.15), rgba(37,99,235,0.15)) border-box;
    border: 1px solid transparent;
    border-radius: 18px;
    padding: 32px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: var(--shadow-soft);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
}

.feature-icon {
    font-size: 44px;
    margin-bottom: 16px;
    display: block;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.feature-description {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Download Section */
.download-section {
    background:
      radial-gradient(900px 500px at 10% 0%, rgba(44,108,84,0.25), rgba(44,108,84,0) 60%),
      linear-gradient(180deg, #0b1a16 0%, #0d2a22 100%);
    padding: 88px 0;
    text-align: center;
    position: relative;
}

#download { scroll-margin-top: 96px; }

.download-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-green));
    opacity: 0.65;
}

.download-section::after {
    /* subtle fade to footer's deeper tone for visual separation */
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 28px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(11,21,18,0.5) 60%, rgba(11,21,18,1) 100%);
    pointer-events: none;
}

.download-title {
    font-size: 36px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
}

.download-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.download-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.download-button {
    background: linear-gradient(180deg, rgba(10,11,12,0.94) 0%, rgba(6,8,8,0.94) 100%);
    color: #ffffff;
    padding: 14px 18px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255,255,255,0.04);
}

.download-button:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.28);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34);
}

.store-icon {
    width: 28px;
    height: 28px;
    color: #ffffff;
}

.store-text { text-align: left; line-height: 1.1; }
.store-overline { font-size: 11px; opacity: 0.8; font-weight: 600; letter-spacing: 0.02em; }
.store-title { font-size: 18px; font-weight: 800; }

/* CTA Section */
.cta-section {
    background:
      radial-gradient(900px 500px at 15% -10%, rgba(46,255,191,0.22), rgba(46,255,191,0) 55%),
      linear-gradient(135deg, #0e4a3a, #0a6d53);
    padding: 84px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.cta-title {
    font-size: 36px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 32px;
}

.cta-button {
    background: linear-gradient(135deg, var(--neon-green), #67ffd2);
    color: #06251a;
    padding: 16px 32px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    font-size: 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
    box-shadow: 0 12px 28px rgba(46, 255, 191, 0.28);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(46, 255, 191, 0.34);
}

/* Testimonials */
.testimonials {
    position: relative;
    background:
      radial-gradient(900px 500px at 15% -10%, rgba(46,255,191,0.18), rgba(46,255,191,0) 55%),
      linear-gradient(180deg, #0d2a22 0%, #0b1f19 100%);
    padding: 96px 0 84px;
}
.testimonials::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-green));
    opacity: .65;
}
.testimonials-title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    margin-bottom: 12px;
}
.testimonials-subtitle { color: rgba(255,255,255,0.82); text-align: center; margin-bottom: 40px; }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}
.testimonial-card {
    background: linear-gradient(#ffffff, #ffffff) padding-box,
                linear-gradient(135deg, rgba(44,108,84,0.15), rgba(37,99,235,0.15)) border-box;
    border: 1px solid transparent;
    border-radius: 18px;
    padding: 28px;
    box-shadow: var(--shadow-soft);
    position: relative;
}
.testimonial-card { transition: transform .25s ease, box-shadow .25s ease; }
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-strong); }
.testimonial-card::before {
    content: '“';
    position: absolute;
    top: -16px; left: 16px;
    font-size: 56px;
    color: rgba(15, 23, 42, 0.06);
    font-weight: 900;
}
.testimonial-card .quote { color: var(--text-dark); margin-bottom: 12px; }
.testimonial-card footer { color: var(--text-gray); font-size: 14px; }

/* FAQ */
.faq {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 60%, #f8fbfa 100%);
    padding: 84px 0 96px;
}
.faq::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-green));
    opacity: .65;
}
.faq::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 28px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(11,21,18,0.12) 80%, rgba(11,21,18,0.18) 100%);
}
.faq-title {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 12px;
}
.faq-subtitle { color: var(--text-gray); text-align: center; margin-bottom: 36px; }
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}
.faq-item {
    background: linear-gradient(#ffffff, #ffffff) padding-box,
                linear-gradient(135deg, rgba(44,108,84,0.12), rgba(37,99,235,0.12)) border-box;
    border: 1px solid transparent;
    border-radius: 18px;
    padding: 24px 28px;
    box-shadow: var(--shadow-soft);
}
.faq-item { transition: transform .25s ease, box-shadow .25s ease; }
.faq-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-strong); }
.faq-item + .faq-item { margin-top: 0; }

#testimonials, #faq { scroll-margin-top: 96px; }
.faq-item h3 { font-size: 18px; margin-bottom: 8px; color: var(--text-dark); }
.faq-item p { color: var(--text-gray); }

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .button-primary,
    .button-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Scale decorative layers down on mobile */
    .hero::before {
        background-size:
          42px 42px,
          36px 36px,
          32px 32px,
          34px 34px,
          30px 30px,
          40px 40px,
          34px 34px,
          30px 30px,
          38px 38px,
          34px 34px;
        opacity: 0.16;
    }
    .hero::after {
        background-size:
          64px 64px,
          56px 56px,
          50px 50px,
          58px 58px,
          54px 54px,
          60px 60px,
          52px 52px,
          56px 56px,
          66px 66px;
        opacity: 0.20;
    }

    .waitlist-form {
        flex-direction: column;
    }
    .waitlist-form input[type="email"] {
        width: 100%;
        max-width: 100%;
    }
    .waitlist-form button[type="submit"] {
        width: 100%;
        max-width: 300px;
    }
}

/* Animations */
@keyframes chipsFallSlow {
    0% {
        background-position:
          6% -200px,
          14% -560px,
          22% -380px,
          30% -720px,
          38% -480px,
          50% -960px,
          62% -640px,
          74% -800px,
          86% -540px,
          94% -1100px;
    }
    100% {
        background-position:
          6% 1100px,
          14% 1500px,
          22% 1300px,
          30% 1700px,
          38% 1400px,
          50% 1900px,
          62% 1600px,
          74% 1850px,
          86% 1500px,
          94% 2100px;
    }
}

@keyframes chipsFallFast {
    0% {
        background-position:
          10% -900px,
          22% -700px,
          32% -1100px,
          44% -600px,
          58% -1000px,
          68% -750px,
          78% -1200px,
          88% -850px,
          96% -1050px;
    }
    100% {
        background-position:
          10% 1500px,
          22% 1800px,
          32% 1600px,
          44% 1700px,
          58% 1900px,
          68% 1750px,
          78% 2000px,
          88% 1850px,
          96% 1950px;
    }
}
