/* ===================================
   SNUGGLE CREDITS — STYLE SHEET
   =================================== */

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Outfit', sans-serif;
    color: #2d2d3a;
    background: #fefefe;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ---- Tokens ---- */
:root {
    --red: #E8344E;
    --coral: #FF6B8A;
    --blue: #5BB7F5;
    --light-blue: #D9EFFF;
    --purple: #A78BFA;
    --orange: #FFB86C;
    --green: #34D399;
    --pink: #F472B6;
    --dark: #1B1B2F;
    --gray: #6B7280;
    --light: #F8FAFC;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 24px rgba(0, 0, 0, .06);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, .1);
    --gradient: linear-gradient(135deg, var(--coral) 0%, var(--blue) 100%);
    --gradient-warm: linear-gradient(135deg, var(--coral) 0%, var(--purple) 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Typography ---- */
h1 {
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.02em;
}

h2 {
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.015em;
}

h3 {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.35;
}

h4 {
    font-size: 1rem;
    font-weight: 600;
}

p {
    line-height: 1.7;
    color: var(--gray);
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: .95rem;
    padding: 14px 28px;
    border-radius: 60px;
    border: none;
    cursor: pointer;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(232, 52, 78, .25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(232, 52, 78, .35);
}

.btn-ghost {
    background: transparent;
    color: var(--dark);
    border: 2px solid #e5e7eb;
}

.btn-ghost:hover {
    border-color: var(--coral);
    color: var(--coral);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

/* ---- Navbar ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all .35s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, .06);
    padding: 10px 0;
}

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

.nav-logo-img {
    height: 44px;
    transition: height .3s ease;
}

.navbar.scrolled .nav-logo-img {
    height: 36px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    font-size: .95rem;
    color: var(--dark);
    transition: color .25s;
}

.nav-links a:hover {
    color: var(--coral);
}

.nav-cta {
    background: var(--gradient) !important;
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 60px;
    box-shadow: 0 2px 12px rgba(232, 52, 78, .2);
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(232, 52, 78, .3);
}

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.mobile-menu-btn span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--dark);
    border-radius: 4px;
    transition: all .3s;
}

.mobile-menu-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: linear-gradient(180deg, #FFF5F7 0%, #F0F8FF 50%, #fff 100%);
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: .15;
}

.shape-1 {
    width: 500px;
    height: 500px;
    top: -100px;
    right: -100px;
    background: var(--coral);
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: 10%;
    left: -80px;
    background: var(--blue);
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 30%;
    left: 20%;
    background: var(--purple);
    opacity: .08;
}

.shape-4 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    right: 20%;
    background: var(--orange);
    opacity: .1;
}

/* Floating hearts */
.floating-heart {
    position: absolute;
    font-size: 1.6rem;
    opacity: .4;
    animation: floatUp 8s ease-in-out infinite;
}

.fh-1 {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
}

.fh-2 {
    right: 15%;
    top: 40%;
    animation-delay: 2s;
    font-size: 1.2rem;
}

.fh-3 {
    left: 30%;
    bottom: 15%;
    animation-delay: 4s;
}

.fh-4 {
    right: 30%;
    top: 15%;
    animation-delay: 1s;
    font-size: 1.4rem;
}

.fh-5 {
    left: 50%;
    bottom: 25%;
    animation-delay: 3s;
    font-size: 1rem;
}

@keyframes floatUp {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: .4;
    }

    50% {
        transform: translateY(-30px) rotate(10deg);
        opacity: .7;
    }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(232, 52, 78, .08), rgba(91, 183, 245, .08));
    color: var(--coral);
    font-weight: 600;
    font-size: .85rem;
    padding: 8px 20px;
    border-radius: 30px;
    margin-bottom: 20px;
    border: 1px solid rgba(232, 52, 78, .12);
}

.hero-subtitle {
    font-size: 1.15rem;
    margin: 20px 0 32px;
    max-width: 520px;
    color: #555;
}

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

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 40px;
    padding: 20px 28px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: fit-content;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--dark);
}

.stat-label {
    font-size: .8rem;
    color: var(--gray);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: #e5e7eb;
}

/* Phone mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-mockup {
    position: relative;
    z-index: 2;
}

.phone-frame {
    width: 280px;
    background: #1a1a2e;
    border-radius: 36px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .18), inset 0 0 0 2px rgba(255, 255, 255, .08);
    position: relative;
}

.phone-notch {
    width: 120px;
    height: 28px;
    background: #1a1a2e;
    border-radius: 0 0 16px 16px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.phone-screen {
    background: linear-gradient(180deg, #f0f4ff 0%, #fef2f4 100%);
    border-radius: 24px;
    padding: 16px;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.mock-app-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0 12px;
    font-weight: 700;
    color: var(--dark);
    font-size: .9rem;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    margin-bottom: 4px;
}

.mock-app-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.mock-coupon-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
    animation: slideInCard .6s ease forwards;
    opacity: 0;
    transform: translateX(-20px);
}

.mc-1 {
    animation-delay: .3s;
}

.mc-2 {
    animation-delay: .5s;
}

.mc-3 {
    animation-delay: .7s;
}

.mc-4 {
    animation-delay: .9s;
}

@keyframes slideInCard {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mc-emoji {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.mc-text strong {
    display: block;
    font-size: .85rem;
    color: var(--dark);
}

.mc-text small {
    font-size: .72rem;
    color: var(--gray);
}

.hero-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(232, 52, 78, .15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    filter: blur(40px);
}

/* ---- Section Headers ---- */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.section-tag {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--coral);
    margin-bottom: 12px;
}

.section-header p {
    margin-top: 16px;
    font-size: 1.05rem;
}

/* ---- Features ---- */
.features {
    padding: 100px 0;
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 36px 28px;
    border: 1px solid #f0f0f5;
    transition: all .35s cubic-bezier(.4, 0, .2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.feature-card h3 {
    margin-bottom: 10px;
    color: var(--dark);
}

.feature-card p {
    font-size: .92rem;
}

/* ---- How It Works ---- */
.how-it-works {
    padding: 100px 0;
    background: linear-gradient(180deg, #FFF5F7 0%, #F0F8FF 100%);
}

.steps {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    background: #fff;
    border-radius: var(--radius);
    padding: 32px;
    width: 100%;
    box-shadow: var(--shadow);
    border: 1px solid #f0f0f5;
    position: relative;
    transition: all .35s;
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Quicksand', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 6px;
    color: var(--dark);
}

.step-content p {
    font-size: .9rem;
}

.step-visual {
    flex-shrink: 0;
}

.step-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(232, 52, 78, .08), rgba(91, 183, 245, .08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.step-connector {
    display: flex;
    justify-content: center;
    padding: 4px 0;
}

/* ---- Coupons Showcase ---- */
.coupons-showcase {
    padding: 100px 0;
    background: #fff;
}

.coupons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.coupon-card {
    position: relative;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all .35s;
    overflow: hidden;
}

.coupon-card:hover {
    transform: translateY(-6px) rotate(-1deg);
    box-shadow: var(--shadow-lg);
}

.coupon-body {
    padding: 32px 24px;
    text-align: center;
}

.coupon-icon {
    font-size: 2.8rem;
    margin-bottom: 16px;
}

.coupon-body h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.coupon-body p {
    font-size: .88rem;
}

.coupon-tag {
    display: inline-block;
    margin-top: 14px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--card-accent);
    background: color-mix(in srgb, var(--card-accent) 10%, transparent);
    padding: 4px 14px;
    border-radius: 20px;
}

.coupon-tear-left,
.coupon-tear-right {
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: var(--light);
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, .06);
}

.coupon-tear-left {
    left: -10px;
}

.coupon-tear-right {
    right: -10px;
}

/* ---- Love Banner ---- */
.love-banner {
    padding: 80px 0;
    background: var(--gradient);
    position: relative;
    overflow: hidden;
}

.love-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fff' fill-opacity='.04'%3E%3Ccircle cx='30' cy='30' r='6'/%3E%3C/g%3E%3C/svg%3E");
}

.banner-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.banner-hearts {
    font-size: 2.4rem;
    margin-bottom: 16px;
}

.banner-content h2 {
    color: #fff;
    margin-bottom: 16px;
}

.banner-content p {
    color: rgba(255, 255, 255, .88);
    font-size: 1.1rem;
}

.banner-emojis {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 28px;
    font-size: 2rem;
    opacity: .7;
}

.banner-emojis span {
    animation: floatUp 6s ease-in-out infinite;
}

.banner-emojis span:nth-child(2) {
    animation-delay: .5s;
}

.banner-emojis span:nth-child(3) {
    animation-delay: 1s;
}

.banner-emojis span:nth-child(4) {
    animation-delay: 1.5s;
}

.banner-emojis span:nth-child(5) {
    animation-delay: 2s;
}

.banner-emojis span:nth-child(6) {
    animation-delay: 2.5s;
}

/* ---- Download CTA ---- */
.download {
    padding: 100px 0;
    background: linear-gradient(180deg, #fff 0%, #FFF5F7 100%);
}

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

.download-content h2 {
    margin-bottom: 16px;
}

.download-content p {
    margin-bottom: 28px;
    font-size: 1.05rem;
}

.google-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: var(--dark);
    color: #fff;
    padding: 14px 28px;
    border-radius: 14px;
    transition: all .3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .12);
}

.google-play-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
}

.gp-app-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
}

.gp-text small {
    display: block;
    font-size: .7rem;
    font-weight: 500;
    opacity: .7;
    letter-spacing: .05em;
}

.gp-text strong {
    font-size: 1.15rem;
    letter-spacing: -.01em;
}

.download-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-frame-sm {
    width: 240px;
}

.phone-screen-download {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
    background: linear-gradient(180deg, #FFF5F7, #F0F8FF) !important;
}

.download-logo {
    width: 140px;
    margin-bottom: 16px;
}

.download-tagline {
    font-size: .85rem;
    font-weight: 600;
    color: var(--coral);
}

/* ---- Footer ---- */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, .7);
    padding: 60px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    height: 48px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: .9rem;
    line-height: 1.6;
}

.footer-links-group h4 {
    color: #fff;
    margin-bottom: 16px;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.footer-links-group li {
    margin-bottom: 10px;
}

.footer-links-group a {
    font-size: .88rem;
    transition: color .25s;
}

.footer-links-group a:hover {
    color: var(--coral);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: .82rem;
    opacity: .6;
}

/* ---- Beta Signup ---- */
.beta-signup {
    padding: 100px 0;
    background: linear-gradient(180deg, #F0F8FF 0%, #FFF5F7 50%, #fff 100%);
    position: relative;
}

.signup-card {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .08);
    border: 1px solid rgba(232, 52, 78, .06);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.signup-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

.signup-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.signup-form {
    margin-top: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
    letter-spacing: .02em;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: .95rem;
    color: var(--dark);
    transition: border-color .25s, box-shadow .25s;
    background: #fafbfc;
    outline: none;
}

.form-group input:focus {
    border-color: var(--coral);
    box-shadow: 0 0 0 4px rgba(232, 52, 78, .08);
    background: #fff;
}

.form-group input::placeholder {
    color: #b0b5c0;
}

.signup-btn {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
}

.signup-btn:disabled {
    opacity: .7;
    cursor: not-allowed;
    transform: none !important;
}

.signup-message {
    margin-top: 16px;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: .92rem;
    font-weight: 500;
    text-align: center;
    animation: fadeIn .35s ease;
}

.msg-success {
    background: rgba(52, 211, 153, .1);
    color: #059669;
    border: 1px solid rgba(52, 211, 153, .2);
}

.msg-error {
    background: rgba(232, 52, 78, .08);
    color: var(--red);
    border: 1px solid rgba(232, 52, 78, .15);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.signup-note {
    margin-top: 16px;
    font-size: .78rem;
    color: var(--gray);
    font-weight: 500;
    opacity: .8;
}

/* ---- Secret Admin ---- */
.secret-admin {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.secret-btn {
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .6);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    padding: 8px 18px;
    font-family: 'Outfit', sans-serif;
    font-size: .8rem;
    cursor: pointer;
    transition: all .25s;
}

.secret-btn:hover {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

/* ---- Scroll Reveal ---- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: all .7s cubic-bezier(.4, 0, .2, 1);
}

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

.feature-card.reveal {
    transition-delay: calc(var(--i, 0) * .1s);
}

.features-grid .feature-card:nth-child(1) {
    --i: 0;
}

.features-grid .feature-card:nth-child(2) {
    --i: 1;
}

.features-grid .feature-card:nth-child(3) {
    --i: 2;
}

.features-grid .feature-card:nth-child(4) {
    --i: 3;
}

.features-grid .feature-card:nth-child(5) {
    --i: 4;
}

.features-grid .feature-card:nth-child(6) {
    --i: 5;
}

.coupons-grid .coupon-card:nth-child(1) {
    --i: 0;
}

.coupons-grid .coupon-card:nth-child(2) {
    --i: 1;
}

.coupons-grid .coupon-card:nth-child(3) {
    --i: 2;
}

.coupons-grid .coupon-card:nth-child(4) {
    --i: 3;
}

.coupons-grid .coupon-card:nth-child(5) {
    --i: 4;
}

.coupons-grid .coupon-card:nth-child(6) {
    --i: 5;
}

.coupon-card.reveal {
    transition-delay: calc(var(--i, 0) * .1s);
}

/* ---- Beta Signup ---- */
.beta-signup {
    padding: 100px 0;
    background: linear-gradient(180deg, #F0F8FF 0%, #FFF5F7 50%, #fff 100%);
    position: relative;
}

.signup-card {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .08);
    border: 1px solid rgba(232, 52, 78, .06);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.signup-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

.signup-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.signup-form {
    margin-top: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
    letter-spacing: .02em;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: .95rem;
    color: var(--dark);
    transition: border-color .25s, box-shadow .25s;
    background: #fafbfc;
    outline: none;
}

.form-group input:focus {
    border-color: var(--coral);
    box-shadow: 0 0 0 4px rgba(232, 52, 78, .08);
    background: #fff;
}

.form-group input::placeholder {
    color: #b0b5c0;
}

.input-hint {
    display: block;
    margin-top: 5px;
    font-size: .72rem;
    color: var(--gray);
    font-weight: 500;
    opacity: .85;
}

.signup-btn {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
}

.signup-btn:disabled {
    opacity: .7;
    cursor: not-allowed;
    transform: none !important;
}

.signup-message {
    margin-top: 16px;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: .92rem;
    font-weight: 500;
    text-align: center;
    animation: fadeIn .35s ease;
}

.msg-success {
    background: rgba(52, 211, 153, .1);
    color: #059669;
    border: 1px solid rgba(52, 211, 153, .2);
}

.msg-error {
    background: rgba(232, 52, 78, .08);
    color: var(--red);
    border: 1px solid rgba(232, 52, 78, .15);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.signup-note {
    margin-top: 16px;
    font-size: .78rem;
    color: var(--gray);
    font-weight: 500;
    opacity: .8;
}

/* ---- Secret Admin ---- */
.secret-admin {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.secret-btn {
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .6);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    padding: 8px 18px;
    font-family: 'Outfit', sans-serif;
    font-size: .8rem;
    cursor: pointer;
    transition: all .25s;
}

.secret-btn:hover {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

/* ---- Beta Panels (two-column layout) ---- */
.beta-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.beta-step-badge {
    display: inline-block;
    background: var(--gradient);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.panel-desc {
    font-size: .9rem;
    margin-bottom: 20px;
    color: var(--gray);
}

.download-beta-btn {
    width: 100%;
    justify-content: center;
}

.download-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.download-card h3 {
    margin-bottom: 8px;
}

/* ---- Responsive ---- */
@media(max-width:1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        margin: 40px auto 0;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .coupons-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .download-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .download-content {
        order: 1;
    }

    .download-visual {
        order: 2;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .beta-panels {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
}

@media(max-width:768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        gap: 24px;
        box-shadow: -8px 0 40px rgba(0, 0, 0, .1);
        transition: right .35s cubic-bezier(.4, 0, .2, 1);
    }

    .nav-links.open {
        right: 0;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .coupons-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .phone-frame {
        width: 240px;
    }

    .phone-screen {
        min-height: 400px;
    }

    .step {
        grid-template-columns: auto 1fr;
        gap: 16px;
        padding: 24px;
    }

    .step-visual {
        display: none;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        margin: 0 auto;
    }

    .hero-stats {
        flex-direction: column;
        gap: 12px;
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: .9rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .signup-card {
        padding: 32px 24px;
    }
}

@media(max-width:480px) {
    h1 {
        font-size: 2rem;
    }

    .phone-frame {
        width: 220px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        justify-content: center;
    }
}