/* ================================================================
   ROYALTY POINTS — Design System (Website 2.0 OVERHAUL)
   Premium Light Theme with Smooth Glassmorphism
   ================================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Custom Properties ── */
:root {
    --bg-primary: #f4f7fa;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.65);
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-glass-hover: rgba(255, 255, 255, 0.95);

    --gold: #b38f38;
    --gold-dim: rgba(179, 143, 56, 0.08);
    --gold-glow: rgba(179, 143, 56, 0.25);
    --gold-dark: #8c6d26;
    --gold-gradient: linear-gradient(135deg, #c5a059 0%, #b38f38 100%);

    --text-primary: #0b1a30;
    --text-secondary: #4a5d78;
    --text-muted: #8c9cb3;

    --border: rgba(11, 26, 48, 0.08);
    --border-gold: rgba(179, 143, 56, 0.18);
    --border-hover: rgba(11, 26, 48, 0.22);

    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 50px;

    --shadow-sm: 0 4px 12px rgba(11, 26, 48, 0.03);
    --shadow-md: 0 10px 30px rgba(11, 26, 48, 0.06);
    --shadow-lg: 0 25px 60px rgba(11, 26, 48, 0.1);
    --shadow-gold: 0 8px 25px rgba(179, 143, 56, 0.15);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Outfit', sans-serif;

    --container: 1480px;
    --nav-height: 80px;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}
body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
    line-height: 1.6;
}
a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(255, 215, 0, 0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ── Star Canvas Background ── */
#starCanvas {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
}

/* ── Container ── */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ================================================================
   NAVIGATION
   ================================================================ */
.nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: env(safe-area-inset-top, 0px) max(1.5rem, env(safe-area-inset-right, 0px)) 0 max(1.5rem, env(safe-area-inset-left, 0px));
    height: calc(var(--nav-height) + env(safe-area-inset-top, 0px));
    display: flex; align-items: center; justify-content: space-between;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.nav.scrolled {
    background: rgba(22, 18, 30, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}
.nav-brand {
    display: flex; align-items: center; gap: 0.75rem;
    text-decoration: none; color: var(--text-primary);
}
.nav-brand img {
    height: 40px; border-radius: 6px;
    filter: brightness(0) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
    transition: filter 0.4s ease;
}
/* Turn navbar logo fill white on scroll */
.nav.scrolled .nav-brand img {
    filter: brightness(0) invert(1) drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}
.nav-brand span {
    font-family: var(--font-heading);
    font-weight: 800; font-size: 1.4rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* Turn navbar text white on scroll */
.nav.scrolled .nav-brand span {
    background: linear-gradient(135deg, #ffffff 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-links {
    display: flex; align-items: center; gap: 0.25rem;
}
.nav-links a {
    color: var(--text-secondary); font-weight: 500; font-size: 0.92rem;
    padding: 0.55rem 1.1rem; border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--gold) !important; background: rgba(179, 143, 56, 0.06);
}
/* Navbar text white on scroll */
.nav.scrolled .nav-links a {
    color: rgba(255, 255, 255, 0.8);
}
.nav.scrolled .nav-links a:hover, .nav.scrolled .nav-links a.active {
    color: #ffffff; background: rgba(255, 255, 255, 0.1);
}
.nav-cta {
    background: var(--gold-gradient) !important;
    color: #fff !important; font-weight: 700 !important;
    border-radius: var(--radius-full) !important;
    padding: 0.6rem 1.6rem !important;
    box-shadow: var(--shadow-gold);
}
.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(179, 143, 56, 0.35) !important;
}

/* Favicon top-right floating */
.nav-favicon {
    width: 44px; height: 44px;
    border-radius: 8px;
    filter: drop-shadow(0 4px 10px rgba(179, 143, 56, 0.4));
    animation: floatFavicon 3s ease-in-out infinite;
}
@keyframes floatFavicon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Mobile hamburger */
.nav-toggle {
    display: none;
    background: none; border: none; color: var(--gold);
    font-size: 1.5rem; cursor: pointer; padding: 0.5rem;
}
.mobile-menu {
    display: none;
    position: fixed; top: calc(var(--nav-height) + env(safe-area-inset-top, 0px)); left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    padding: 1.5rem;
    padding-bottom: max(2rem, env(safe-area-inset-bottom, 0px));
    padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
    flex-direction: column; gap: 0.5rem;
    animation: slideDown 0.3s ease;
    overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    color: var(--text-secondary); font-size: 1.15rem; font-weight: 600;
    padding: 1rem 1.25rem; border-radius: var(--radius-md);
    border-bottom: 1px solid var(--border);
}
.mobile-menu a:hover { color: var(--text-primary); background: var(--bg-glass); }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero {
    position: relative;
    min-height: 92vh;
    width: 100%;
    z-index: 10;
    overflow: hidden;
}
.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
    max-width: var(--container);
    margin: 0 auto;
    padding: calc(var(--nav-height) + 2.5rem) 2rem 1.5rem;
    width: 100%;
}
.hero::before {
    content: '';
    position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(ellipse at 40% 20%, rgba(179, 143, 56, 0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 80%, rgba(99, 102, 241, 0.05) 0%, transparent 60%);
    animation: heroGlow 8s ease-in-out infinite alternate;
    z-index: -1;
}
@keyframes heroGlow {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(20px, -20px) rotate(2deg); }
}
.hero-content {
    text-align: left;
    max-width: 100%;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--gold-dim);
    border: 1px solid var(--border-gold);
    color: var(--gold);
    padding: 0.45rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem; font-weight: 600;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease both;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 900; line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.1s both;
}
.hero-title .gold { color: var(--gold); }
.hero-title .gradient {
    background: linear-gradient(135deg, var(--gold), var(--text-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.15rem; color: var(--text-secondary);
    max-width: 580px; margin: 0 0 2.5rem 0;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-actions {
    display: flex; gap: 1rem; justify-content: flex-start; flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s both;
}

/* ── Hero floating card preview ── */
.hero-mockup-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    animation: slideUpMockup 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s both;
}
@keyframes slideUpMockup {
    from {
        opacity: 0;
        transform: translateY(80px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes cardFloat {
    0%, 100% { transform: rotateY(-8deg) rotateX(5deg) translateY(0); }
    50% { transform: rotateY(8deg) rotateX(-5deg) translateY(-15px); }
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-md);
    font-size: 1rem; font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer; border: none;
    transition: var(--transition);
    text-decoration: none;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: scale(0.97); }

.btn-gold {
    background: var(--gold-gradient);
    color: #fff;
    box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
    box-shadow: 0 12px 40px rgba(179, 143, 56, 0.35);
    color: #fff;
}
.btn-outline {
    background: transparent;
    border: 1.5px solid rgba(17, 19, 24, 0.12);
    color: var(--text-secondary);
}
.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--gold-dim);
}
.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.88rem; }

/* ================================================================
   SECTION STYLES
   ================================================================ */
.section {
    position: relative;
    padding: 6rem 2rem;
    z-index: 10;
}
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}
.section-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: var(--gold-dim);
    border: 1px solid var(--border-gold);
    color: var(--gold);
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem; font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
}
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900; line-height: 1.15;
    margin-bottom: 1rem;
}
.section-subtitle {
    font-size: 1.1rem; color: var(--text-muted);
    line-height: 1.7;
}

/* ================================================================
   GLASS CARDS
   ================================================================ */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
}
.glass-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* ================================================================
   FEATURES GRID
   ================================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: var(--container);
    margin: 0 auto;
}
.feature-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--gold-gradient);
    opacity: 0; transition: var(--transition);
}
.feature-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
    width: 64px; height: 64px;
    background: var(--gold-dim);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem;
    color: var(--gold);
    margin: 0 auto 1.5rem;
}
.feature-title {
    font-family: var(--font-heading);
    font-size: 1.25rem; font-weight: 700;
    margin-bottom: 0.75rem;
}
.feature-desc {
    color: var(--text-muted); font-size: 0.95rem;
    line-height: 1.6;
}

/* ================================================================
   HOW IT WORKS — Steps
   ================================================================ */
.steps-container {
    display: flex; align-items: flex-start; gap: 2rem;
    max-width: 1000px; margin: 0 auto;
    position: relative;
}
.steps-container::before {
    content: '';
    position: absolute; top: 45px; left: 45px; right: 45px;
    height: 2px;
    background: linear-gradient(to right, var(--gold), var(--border-gold), var(--gold));
    z-index: 0;
}
.step-item {
    flex: 1; text-align: center;
    position: relative; z-index: 1;
}
.step-number {
    width: 90px; height: 90px;
    background: var(--bg-glass);
    border: 2px solid var(--border-gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading);
    font-size: 2rem; font-weight: 900;
    color: var(--gold);
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}
.step-item:hover .step-number {
    background: var(--gold-gradient);
    color: #fff;
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
    transform: scale(1.1);
}
.step-title {
    font-family: var(--font-heading);
    font-size: 1.2rem; font-weight: 700;
    margin-bottom: 0.5rem;
}
.step-desc {
    color: var(--text-muted); font-size: 0.92rem;
    line-height: 1.5;
}

/* ================================================================
   PRICING CARDS
   ================================================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: stretch;
}
.plan-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    display: flex; flex-direction: column;
    transition: var(--transition);
    position: relative; overflow: hidden;
}
.plan-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--gold-gradient);
    opacity: 0; transition: var(--transition);
}
.plan-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-gold);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(179, 143, 56, 0.05);
}
.plan-card:hover::before { opacity: 1; }
.plan-card.popular {
    border: 2px solid rgba(179, 143, 56, 0.4);
    box-shadow: 0 15px 40px rgba(179, 143, 56, 0.1);
    transform: scale(1.03);
}
.plan-card.popular::before { opacity: 1; }
.plan-card.popular:hover { transform: scale(1.03) translateY(-8px); }
.popular-badge {
    position: absolute; top: 1.2rem; right: 1.2rem;
    background: var(--gold-gradient);
    color: #fff; font-size: 0.7rem; font-weight: 800;
    padding: 0.25rem 0.85rem; border-radius: var(--radius-full);
    text-transform: uppercase; letter-spacing: 1px;
    box-shadow: var(--shadow-gold);
}
.plan-name {
    font-family: var(--font-heading);
    font-size: 1.5rem; font-weight: 800;
    margin-bottom: 0.5rem;
}
.plan-price {
    display: flex; align-items: baseline; gap: 0.2rem;
    margin-bottom: 1rem;
}
.plan-price .currency {
    font-size: 1.2rem; font-weight: 800;
    color: var(--gold);
}
.plan-price .amount {
    font-family: var(--font-heading);
    font-size: 3rem; font-weight: 900;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}
.plan-price .period {
    color: var(--text-muted); font-size: 0.85rem;
}
.plan-desc {
    color: var(--text-muted); font-size: 0.92rem;
    margin-bottom: 1.5rem; line-height: 1.5;
}
.plan-features {
    flex: 1; margin-bottom: 2rem;
}
.plan-features li {
    display: flex; align-items: center; gap: 0.7rem;
    padding: 0.6rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(17, 19, 24, 0.05);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features .check {
    color: var(--success); font-weight: 700; flex-shrink: 0;
}
.btn-plan {
    width: 100%; padding: 0.95rem;
    background: var(--gold-dim);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    color: var(--gold); font-weight: 700; font-size: 0.95rem;
    cursor: pointer; transition: var(--transition);
    font-family: var(--font-body);
}
.btn-plan:hover, .plan-card.popular .btn-plan {
    background: var(--gold-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--shadow-gold);
}

/* ================================================================
   LAUNCH COUNTDOWN BANNER
   ================================================================ */
.launch-banner {
    background: linear-gradient(135deg, rgba(179, 143, 56, 0.08), rgba(179, 143, 56, 0.02));
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    position: relative;
    overflow: hidden;
}
.launch-banner::before {
    content: '';
    position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(179, 143, 56, 0.05) 0%, transparent 70%);
    animation: launchGlow 4s ease-in-out infinite alternate;
}
@keyframes launchGlow {
    0% { transform: translate(-10%, -10%); }
    100% { transform: translate(10%, 10%); }
}
.launch-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--gold-gradient);
    color: #fff; font-weight: 800; font-size: 0.75rem;
    padding: 0.3rem 1rem;
    border-radius: var(--radius-full);
    text-transform: uppercase; letter-spacing: 1.5px;
    margin-bottom: 1rem;
    position: relative; z-index: 1;
    animation: pulse 2s ease-in-out infinite;
}
.launch-title {
    font-family: var(--font-heading);
    font-size: 1.8rem; font-weight: 900;
    color: var(--gold);
    margin-bottom: 0.5rem;
    position: relative; z-index: 1;
}
.launch-subtitle {
    color: var(--text-secondary); font-size: 0.95rem;
    margin-bottom: 1.5rem;
    position: relative; z-index: 1;
}
.countdown {
    display: flex; gap: 0.65rem; justify-content: center; flex-wrap: nowrap;
    position: relative; z-index: 1; max-width: 480px; margin: 0 auto; width: 100%;
}
.countdown-item {
    background: var(--bg-glass);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 0.75rem 0.4rem;
    flex: 1; min-width: 0; text-align: center; box-sizing: border-box;
}
.countdown-value {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 5vw, 2.2rem); font-weight: 900;
    color: var(--gold); line-height: 1;
}
.countdown-label {
    font-size: clamp(0.58rem, 2.2vw, 0.7rem); color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-top: 0.3rem; font-weight: 600;
}

.launch-btn-cta {
    padding: 0.85rem 1.6rem !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    border-radius: var(--radius-full) !important;
    box-shadow: 0 0 25px rgba(255,215,0,0.45) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    max-width: 100% !important;
    white-space: nowrap !alignment;
}

.launch-check-list {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
    position: relative; z-index: 10;
    border-top: 1px solid rgba(255, 215, 0, 0.08);
    padding: 4rem 2rem 2rem;
    background: rgba(22, 18, 30, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
}
.footer-moving-line-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}
.footer-moving-line-container svg path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: drawPathFooter 18s linear infinite;
}
@keyframes drawPathFooter {
    0% { stroke-dashoffset: 2000; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -2000; }
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    max-width: var(--container);
    margin: 0 auto 3rem;
    position: relative;
    z-index: 2;
}
.footer-brand img { height: 45px; margin-bottom: 1rem; border-radius: 6px; }
.footer-brand p { color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; line-height: 1.6; max-width: 300px; }
.footer-col h4 {
    color: #ffd700; font-size: 0.95rem; font-weight: 900;
    text-transform: uppercase; letter-spacing: 1.5px;
    margin-bottom: 1rem;
}
.footer-col a {
    display: block; color: rgba(255, 255, 255, 0.65); font-size: 0.9rem;
    padding: 0.35rem 0; transition: var(--transition);
}
.footer-col a:hover { 
    color: #ffffff; 
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.65); 
    padding-left: 0.35rem; 
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.50);
    font-size: 0.8rem;
    max-width: var(--container);
    margin: 0 auto;
}
.footer-bottom a { color: var(--gold); }

/* ================================================================
   SCROLL ANIMATIONS
   ================================================================ */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}
.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ================================================================
   UTILITY ANIMATIONS
   ================================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ================================================================
   FORM INPUTS
   ================================================================ */
.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block; margin-bottom: 0.5rem;
    font-size: 0.85rem; color: var(--text-muted); font-weight: 500;
}
.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(17, 19, 24, 0.15);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    color: var(--text-primary); font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition);
}
.form-input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(179, 143, 56, 0.12);
}
.form-input::placeholder { color: rgba(17, 19, 24, 0.35); }

/* ================================================================
   LOADING / SPINNER
   ================================================================ */
.spinner {
    width: 40px; height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spinRing 0.8s linear infinite;
}
@keyframes spinRing {
    to { transform: rotate(360deg); }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    /* Scale cards cluster slightly for landscape tablets */
    .cards-cluster {
        transform: scale(0.85);
        transform-origin: center center;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .nav-favicon { display: none !important; }
    
    .hero {
        min-height: auto;
        padding-bottom: 2rem;
        overflow: hidden;
    }
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
        padding-top: calc(var(--nav-height) + 1.25rem);
        padding-bottom: 1rem;
        max-width: 100%;
        overflow: hidden;
    }
    .hero-content {
        text-align: center;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 560px;
    }
    .hero-badge {
        margin-bottom: 1.25rem;
        padding: 0.35rem 1rem;
        font-size: 0.78rem;
    }
    .hero-title {
        font-size: clamp(1.85rem, 6.2vw, 2.45rem);
        line-height: 1.16;
        margin-bottom: 0.95rem;
    }
    .hero-subtitle {
        font-size: 0.94rem;
        line-height: 1.55;
        margin: 0 auto 1.5rem;
        max-width: 92%;
    }
    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    .hero-actions .btn {
        width: 100%;
        padding: 0.82rem 1.25rem;
        font-size: 0.92rem;
        border-radius: 12px;
        justify-content: center;
    }
    .hero-mockup-container {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0.5rem 0;
        margin-top: 0.25rem;
    }
    
    .steps-container {
        flex-direction: column; gap: 1.5rem;
        align-items: center;
    }
    .steps-container::before { display: none; }
    .section { padding: 2.2rem 1.25rem; }
    .section-header { margin-bottom: 1.5rem; }
    
    /* Responsive Footer for Tablet: Brand centered on top, links columns in 3 columns */
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        text-align: left;
    }
    .footer-brand {
        grid-column: span 3;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    .footer-brand p {
        margin: 0.75rem auto 0;
        max-width: 450px;
    }

    /* Features section: cards sit side-by-side in 2 columns for tablet/large phone */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    .feature-card {
        padding: 1.75rem 1.25rem;
        border-radius: var(--radius-md);
    }
    .feature-icon {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    .feature-title {
        font-size: 1.05rem;
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }
    .feature-desc {
        font-size: 0.8rem;
        line-height: 1.45;
    }

    .countdown { gap: 0.35rem; flex-wrap: nowrap; width: 100%; }
    .countdown-item { min-width: 0; padding: 0.5rem 0.2rem; flex: 1; }
    .countdown-value { font-size: 1.35rem; }
    .countdown-label { font-size: 0.58rem; }
    
    /* Scale cards cluster cleanly without horizontal spill or side tilt */
    .cards-cluster {
        width: 320px;
        height: 380px;
        max-width: 100%;
        margin: 0 auto;
        perspective: 800px;
        transform: none;
    }
    .f-card {
        width: 195px;
        height: 305px;
        padding: 1.15rem;
        border-radius: 14px;
    }
    .f-card-1 {
        bottom: 10px;
        left: 60px;
        transform: rotateX(10deg) rotateZ(2deg) translateZ(50px) !important;
        animation: floatMobile1 9s infinite ease-in-out !important;
    }
    .f-card-2 {
        top: 35px;
        right: 15px;
        transform: rotateY(-12deg) rotateZ(6deg) translateZ(-25px) !important;
        animation: floatMobile2 10s infinite ease-in-out !important;
    }
    .f-card-3 {
        top: 15px;
        left: 10px;
        transform: rotateY(8deg) rotateZ(-4deg) translateZ(25px) !important;
        animation: floatMobile3 8s infinite ease-in-out !important;
    }
    /* Hide the oversized orbit line on mobile so it doesn't cause horizontal overflow */
    .card-orbit-wrap {
        display: none !important;
    }
}

@media (max-width: 480px) {
    :root { --nav-height: 65px; }
    .container { padding: 0 1rem; }
    .hero-title {
        font-size: clamp(1.65rem, 5.8vw, 2.05rem) !important;
        line-height: 1.15;
        margin-bottom: 0.85rem;
    }
    .hero-subtitle {
        font-size: 0.88rem;
        line-height: 1.5;
        margin-bottom: 1.25rem;
    }
    .hero-actions {
        max-width: 290px;
        gap: 0.65rem;
    }
    .hero-actions .btn {
        padding: 0.75rem 1rem;
        font-size: 0.88rem;
    }
    .section { padding: 1.8rem 1rem; }
    
    /* Features section: cards sit side-by-side in 2 columns for small mobile phones */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .feature-card {
        padding: 1.25rem 0.75rem;
        border-radius: var(--radius-md);
    }
    .feature-card::before {
        height: 2px;
    }
    .feature-icon {
        width: 42px;
        height: 42px;
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    .feature-title {
        font-size: 0.88rem;
        margin-bottom: 0.35rem;
        font-weight: 800;
        line-height: 1.2;
    }
    .feature-desc {
        font-size: 0.7rem;
        line-height: 1.35;
    }

    /* Responsive Footer for Small Mobile: Brand centered on top, links columns in 2 columns (3rd column centered at bottom) */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem 1rem;
        text-align: left;
    }
    .footer-brand {
        grid-column: span 2;
        text-align: center;
        margin-bottom: 1rem;
    }
    .footer-brand p {
        font-size: 0.85rem;
    }
    .footer-col h4 {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }
    .footer-col a {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    .footer-col:nth-child(4) {
        grid-column: span 2;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .pricing-grid { grid-template-columns: 1fr; }
    .plan-card.popular { transform: none; }
    .plan-card.popular:hover { transform: translateY(-8px); }
    
    /* Compact clean cluster on small phones */
    .cards-cluster {
        width: 280px;
        height: 335px;
        transform: none;
        margin: 0 auto;
    }
    .f-card {
        width: 175px;
        height: 275px;
        padding: 0.95rem;
    }
    .f-card-1 {
        bottom: 5px;
        left: 52px;
        transform: rotateX(8deg) rotateZ(2deg) translateZ(35px) !important;
    }
    .f-card-2 {
        top: 25px;
        right: 8px;
        transform: rotateY(-10deg) rotateZ(5deg) translateZ(-20px) !important;
    }
    .f-card-3 {
        top: 10px;
        left: 8px;
        transform: rotateY(6deg) rotateZ(-3deg) translateZ(20px) !important;
    }
    .card-orbit-wrap {
        display: none !important;
    }
}

@media (max-width: 380px) {
    :root { --nav-height: 58px; }
    .container { padding: 0 0.75rem; }
    .cards-cluster {
        width: 250px;
        height: 300px;
    }
    .hero-title { font-size: 1.55rem !important; }
    .countdown-item { min-width: 44px; padding: 0.4rem 0.2rem; }
    .countdown-value { font-size: 1.2rem; }
    .countdown-label { font-size: 0.6rem; }
}

/* ================================================================
   VISION FLIP CARD
   ================================================================ */
.vision-card-container {
    perspective: 1200px;
    width: 100%;
    max-width: 440px;
    height: 270px;
    margin: 0 auto;
}
.vision-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    cursor: pointer;
}
.vision-card-container:hover .vision-card-inner {
    transform: rotateY(180deg);
}
.vision-card-face {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.vision-card-front {
    background: linear-gradient(135deg, #1a1a3e, #0a0a2a);
    padding: 2.5rem;
}
.vision-card-back {
    background: linear-gradient(135deg, #0a0a2a, #11113b);
    transform: rotateY(180deg);
    padding: 2rem;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

/* ================================================================
   EMBEDDED CARD BUILDER
   ================================================================ */
.builder-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: start;
    margin-top: 2rem;
}
.controls-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

/* Uploader */
.logo-upload-zone {
    width: 85px; height: 85px; border-radius: 50%;
    background: var(--gold-dim); border: 2px dashed var(--border-gold);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: var(--transition); overflow: hidden; position: relative;
    flex-shrink: 0;
}
.logo-upload-zone:hover { border-color: var(--gold); background: rgba(255,215,0,0.15); transform: scale(1.05); }
.logo-upload-zone img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: none; }
.logo-upload-zone .upload-text { font-size: 0.65rem; color: var(--gold); text-align: center; font-weight: 700; line-height: 1.2; }
.logo-upload-zone.has-logo .upload-text { display: none; }
.logo-upload-zone.has-logo img { display: block; }

/* Swatches Grid */
.theme-section-title {
    font-size: 0.75rem; color: var(--text-muted); font-weight: 700;
    margin: 1.5rem 0 0.5rem; text-transform: uppercase; letter-spacing: 1px;
}
.swatches-grid { display: flex; gap: 0.65rem; flex-wrap: wrap; margin-bottom: 1rem; }
.swatch {
    width: 54px; height: 54px; border-radius: 12px;
    border: 2.5px solid transparent; cursor: pointer;
    transition: var(--transition); position: relative;
    overflow: hidden !important;
}
.swatch:hover { transform: scale(1.18); }

/* Swatch pattern container overrides to contain textures */
.swatch.pattern-sparks::after {
    inset: 0 !important;
    animation: none !important;
    opacity: 0.8 !important;
}
.swatch.pattern-radar::after {
    width: 48px !important;
    height: 48px !important;
    margin-top: -24px !important;
    margin-left: -24px !important;
    animation: none !important;
}
.swatch.pattern-radar::before {
    width: 100% !important;
    height: 100% !important;
    inset: 0 !important;
    transform: none !important;
}
.swatch.pattern-matrix::before {
    font-size: 5px !important;
    line-height: 1.1 !important;
    letter-spacing: 0px !important;
    animation: none !important;
    opacity: 0.65 !important;
}
.swatch.pattern-spheres {
    animation: none !important;
    background-size: 6px 10.39px, 6px 10.39px, 100% 100%, 100% 100%, 100% 100%, 100% 10.39px !important;
}
.swatch.active {
    border-color: var(--gold);
    box-shadow: 0 0 15px var(--gold-glow);
    transform: scale(1.1);
}
.swatch.active::after {
    content: '✓'; position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold); font-weight: 900; font-size: 1rem;
    text-shadow: 0 0 4px rgba(0,0,0,0.8);
}

/* Step Bar */
.step-indicator-bar { display: flex; border-bottom: 1px solid var(--border); padding-bottom: 0.75rem; }
.step-indicator-item { display: flex; align-items: center; gap: 0.5rem; flex: 1; opacity: 0.4; transition: var(--transition); }
.step-indicator-item.active { opacity: 1; }
.step-indicator-item .step-num {
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--border); display: flex; align-items: center;
    justify-content: center; font-size: 0.75rem; font-weight: 700;
}
.step-indicator-item.active .step-num { background: var(--gold); color: #000; }
.step-indicator-item .step-lbl { font-size: 0.8rem; font-weight: 700; }

/* 3D Preview Card */
.preview-panel { text-align: center; position: sticky; top: calc(var(--nav-height) + 2rem); }
.preview-label {
    font-size: 0.8rem; color: var(--gold); font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 1rem;
}
.card-container { perspective: 1200px; width: 100%; max-width: 420px; height: 260px; margin: 0 auto 1.5rem; }
.card-inner {
    position: relative; width: 100%; height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d; cursor: pointer;
}
.card-inner.flipped { transform: rotateY(180deg); }
.card-back { position: relative; }

/* Social icons overlay inside QR code area */
.previewQrSocials {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.4rem;
    font-size: 0.6rem;
    color: var(--text-primary);
    pointer-events: auto;
}

/* Prevent hover effects from affecting layout */
.previewQrSocials a {
    text-decoration: none;
    color: inherit;
}
.previewQrSocials a:hover {
    opacity: 0.85;
}

.card-face {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    -webkit-backface-visibility: hidden; backface-visibility: hidden;
    border-radius: 20px; border: 1.5px solid rgba(255,215,0,0.15);
    box-shadow: 0 15px 45px rgba(17, 19, 24, 0.25);
    padding: 1.15rem 1.25rem; display: flex; flex-direction: column;
    justify-content: space-between; overflow: hidden;
    text-shadow: 0 1.5px 3px rgba(0,0,0,0.85), 0 0 10px rgba(0,0,0,0.5);
}
.card-face::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 45%, rgba(0,0,0,0.45) 100%);
    z-index: 1; pointer-events: none;
}
.card-face > * {
    position: relative; z-index: 2;
}
.card-front { background: linear-gradient(135deg, #12122b, #050514); }
.card-back { background: linear-gradient(135deg, #0d0d21, #03030b); transform: rotateY(180deg); }

/* Back card grid layout */
.back-grid { display: grid; grid-template-columns: 1.8fr 1.2fr; gap: 0.75rem; height: 100%; align-items: center; }
.back-stamps { display: flex; flex-direction: column; justify-content: center; height: 100%; }
.back-qr { display: flex; flex-direction: column; align-items: center; justify-content: center; border-left: 1px solid var(--border); padding-left: 0.75rem; height: 100%; }

/* Stamps grid */
.mini-stamp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.45rem; }
.mini-stamp-grid.grid-10 { grid-template-columns: repeat(5, 1fr); gap: 0.3rem; }
.mini-stamp {
    aspect-ratio: 1; border-radius: 50%;
    background: rgba(255,255,255,0.04); border: 1px dashed rgba(255,215,0,0.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 600; color: var(--text-muted);
}
.mini-stamp.stamped {
    background: radial-gradient(circle, var(--gold) 0%, #b89700 100%);
    border-style: solid; border-color: var(--gold); color: #000;
    box-shadow: 0 0 8px rgba(255,215,0,0.3);
}
.mini-stamp.reward { border-color: var(--gold); color: var(--gold); }

/* Download Actions */
.download-actions { display: flex; gap: 0.75rem; margin-bottom: 1rem; flex-wrap: wrap; justify-content: center; }
.download-actions .btn { flex: 1; min-width: 150px; }
.cta-online {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    background: var(--gold-gradient); color: #000; font-weight: 700;
    padding: 0.85rem 2rem; border-radius: var(--radius-md);
    font-size: 0.95rem; transition: var(--transition); text-decoration: none;
    box-shadow: var(--shadow-gold);
}
.cta-online:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(255,215,0,0.5); color: #000; }
.flip-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; animation: pulse 2s ease-in-out infinite; }

/* ── PREMIUM TEXTURE PATTERNS ── */
.pattern-carbon { background: repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 4px), linear-gradient(135deg, #0a0a1e, #050510) !important; }
.pattern-grid { background: repeating-linear-gradient(0deg, rgba(255,215,0,0.03) 0px, transparent 1px, transparent 30px), repeating-linear-gradient(90deg, rgba(255,215,0,0.03) 0px, transparent 1px, transparent 30px), linear-gradient(135deg, #0a0a1e, #050510) !important; }
.pattern-stripes { background: repeating-linear-gradient(135deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 2px, transparent 2px, transparent 12px), linear-gradient(135deg, #0a0a1e, #050510) !important; }
.pattern-dots { background: radial-gradient(rgba(255,215,0,0.06) 1px, transparent 1px), linear-gradient(135deg, #0a0a1e, #050510) !important; background-size: 12px 12px, 100% 100% !important; }
.pattern-hex { background: radial-gradient(circle at 50% 50%, rgba(255,215,0,0.04) 0%, transparent 70%), linear-gradient(135deg, #0a0a1e, #050510) !important; background-size: 20px 20px, 100% 100% !important; }


/* Royal Diamonds */
.pattern-diamonds {
    background-color: #0b0b1a !important;
    background-image: linear-gradient(135deg, rgba(255,215,0,0.06) 25%, transparent 25%), 
                      linear-gradient(225deg, rgba(255,215,0,0.06) 25%, transparent 25%), 
                      linear-gradient(45deg, rgba(255,215,0,0.06) 25%, transparent 25%), 
                      linear-gradient(315deg, rgba(255,215,0,0.06) 25%, #0b0b1a 25%) !important;
    background-position: 20px 0, 20px 0, 0 0, 0 0 !important;
    background-size: 40px 40px !important;
}

/* Custom Conic Cubes */
.pattern-cubes {
    --s: 110px;
    --c1: #151515;
    --c2: #303030;
    --c3: #222222;
    background: repeating-conic-gradient(from 30deg, #0000 0 120deg, var(--c3) 0 180deg) calc(0.5 * var(--s)) calc(0.5 * var(--s) * 0.577),
                repeating-conic-gradient(from 30deg, var(--c1) 0 60deg, var(--c2) 0 120deg, var(--c3) 0 180deg) !important;
    background-size: var(--s) calc(var(--s) * 0.577) !important;
    opacity: 0.95;
}

/* Diagonal Cyber Stripes */
.pattern-diagonal-cyber {
    background: repeating-linear-gradient(135deg, #1e2022 0px, #1e2022 40px, #2c2f33 40px, #2c2f33 80px) !important;
}

/* Premium 3D Conic */
.pattern-conic-boxes {
    --s: 37px;
    --c: #0000, #222222 0.5deg 119.5deg, #0000 120deg;
    --g1: conic-gradient(from 60deg at 56.25% calc(425% / 6), var(--c));
    --g2: conic-gradient(from 180deg at 43.75% calc(425% / 6), var(--c));
    --g3: conic-gradient(from -60deg at 50% calc(175% / 12), var(--c));
    background: var(--g1), var(--g1) var(--s) calc(1.73 * var(--s)), var(--g2),
      var(--g2) var(--s) calc(1.73 * var(--s)), var(--g3) var(--s) 0,
      var(--g3) 0 calc(1.73 * var(--s)) #121212 !important;
    background-size: calc(2 * var(--s)) calc(3.46 * var(--s)) !important;
}

/* Radial Glowing Spheres Matrix */
.pattern-spheres {
    position: relative;
    --c: 7px;
    background-color: #050505 !important;
    background-image: radial-gradient(circle at 50% 50%, #0000 1.5px, #000 0 var(--c), #0000 var(--c)),
      radial-gradient(circle at 50% 50%, #0000 1.5px, #000 0 var(--c), #0000 var(--c)),
      radial-gradient(circle at 50% 50%, #ff5e00, #ff5e0000 60%),
      radial-gradient(circle at 50% 50%, #ffd700, #ffd70000 60%),
      radial-gradient(circle at 50% 50%, #00f2fe, #00f2fe00 60%),
      radial-gradient(ellipse at 50% 50%, #ff007f, #ff007f00 60%) !important;
    background-size: 12px 20.78px, 12px 20.78px, 200% 200%, 200% 200%, 200% 200%, 200% 20.78px !important;
    --p: 0px 0px, 6px 10.39px;
    background-position: var(--p), 0% 0%, 0% 0%, 0% 0px !important;
    animation: wee 45s linear infinite, filt 8s linear infinite;
    opacity: 0.9;
}

/* Concentric Radar Sweep */
.pattern-radar {
    background-color: #070709 !important;
    background-image: linear-gradient(rgba(139, 92, 246, 0.08) 0.1em, transparent 0.1em),
                      linear-gradient(90deg, rgba(139, 92, 246, 0.08) 0.1em, transparent 0.1em) !important;
    background-size: 2.5em 2.5em !important;
    position: relative;
}
.pattern-radar::before {
    content: ""; position: absolute; top: 50%; left: 50%; width: 150%; height: 150%;
    transform: translate(-50%, -50%);
    background: repeating-radial-gradient(circle, transparent 0, transparent 2.9em, rgba(139, 92, 246, 0.15) 3em);
    z-index: 1;
}
.pattern-radar::after {
    content: ""; position: absolute; top: 50%; left: 50%; width: 28em; height: 28em;
    margin-top: -14em; margin-left: -14em; border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 75%, rgba(139, 92, 246, 0.35) 100%);
    animation: radar-spin 4s linear infinite;
    z-index: 2;
}

/* Sparks Starfield */
.pattern-sparks {
    background: #030303 !important;
    position: relative;
}
.pattern-sparks::after {
    content: ""; position: absolute; inset: -145%; rotate: -45deg;
    background: #000000;
    background-image: radial-gradient(4px 100px at 0px 235px, rgb(255, 140, 17), #0000),
      radial-gradient(4px 100px at 300px 235px, rgb(255, 119, 0), #884e2800),
      radial-gradient(1.5px 1.5px at 150px 117.5px, rgb(255, 144, 9) 100%, #0000 150%),
      radial-gradient(4px 100px at 0px 252px, rgb(156, 14, 137), #0000),
      radial-gradient(4px 100px at 300px 252px, rgb(23, 41, 206), #0000),
      radial-gradient(1.5px 1.5px at 150px 126px, rgb(247, 102, 18) 100%, #0000 150%),
      radial-gradient(4px 100px at 0px 150px, rgb(249, 121, 16), #0000),
      radial-gradient(4px 100px at 300px 150px, rgb(255, 128, 18), #0000),
      radial-gradient(1.5px 1.5px at 150px 75px, rgb(255, 116, 10) 100%, #0000 150%),
      radial-gradient(4px 100px at 0px 253px, rgb(249, 137, 17), #0000),
      radial-gradient(4px 100px at 300px 253px, rgb(248, 107, 14), #0000),
      radial-gradient(1.5px 1.5px at 150px 126.5px, rgb(252, 129, 14) 100%, #0000 150%),
      radial-gradient(4px 100px at 0px 204px, rgb(234, 115, 18), #0000),
      radial-gradient(4px 100px at 300px 204px, rgb(255, 139, 6), #0000),
      radial-gradient(1.5px 1.5px at 150px 102px, rgb(255, 128, 9) 100%, #0000 150%),
      radial-gradient(4px 100px at 0px 134px, rgb(249, 133, 9), #0000),
      radial-gradient(4px 100px at 300px 134px, rgb(251, 125, 15), #0000),
      radial-gradient(1.5px 1.5px at 150px 67px, rgb(255, 146, 13) 100%, #0000 150%),
      radial-gradient(4px 100px at 0px 179px, rgb(249, 137, 17), #0000),
      radial-gradient(4px 100px at 300px 179px, rgb(253, 122, 6), #0000),
      radial-gradient(1.5px 1.5px at 150px 89.5px, rgb(234, 132, 7) 100%, #0000 150%),
      radial-gradient(4px 100px at 0px 299px, rgb(255, 115, 0), #0000),
      radial-gradient(4px 100px at 300px 299px, rgb(255, 136, 0), #0000),
      radial-gradient(1.5px 1.5px at 150px 149.5px, rgb(255, 123, 0) 100%, #0000 150%),
      radial-gradient(4px 100px at 0px 215px, rgb(255, 145, 0), #0000),
      radial-gradient(4px 100px at 300px 215px, rgb(255, 132, 0), #0000),
      radial-gradient(1.5px 1.5px at 150px 107.5px, rgb(255, 136, 0) 100%, #0000 150%),
      radial-gradient(4px 100px at 0px 281px, rgb(255, 170, 0), #0000),
      radial-gradient(4px 100px at 300px 281px, rgb(255, 115, 0), #0000),
      radial-gradient(1.5px 1.5px at 150px 140.5px, rgb(255, 119, 0) 100%, #0000 150%),
      radial-gradient(4px 100px at 0px 158px, rgb(255, 123, 0), #0000),
      radial-gradient(4px 100px at 300px 158px, rgb(255, 132, 0), #0000),
      radial-gradient(1.5px 1.5px at 150px 79px, rgb(255, 149, 0) 100%, #0000 150%),
      radial-gradient(4px 100px at 0px 210px, rgb(255, 123, 0), #0000),
      radial-gradient(4px 100px at 300px 210px, rgb(255, 162, 0), #0000),
      radial-gradient(1.5px 1.5px at 150px 105px, rgb(255, 136, 0) 100%, #0000 150%);
    background-size: 300px 235px, 300px 235px, 300px 235px, 300px 252px, 300px 252px, 300px 252px, 300px 150px, 300px 150px, 300px 150px, 300px 253px, 300px 253px, 300px 253px, 300px 204px, 300px 204px, 300px 204px, 300px 134px, 300px 134px, 300px 134px, 300px 179px, 300px 179px, 300px 179px, 300px 299px, 300px 299px, 300px 299px, 300px 215px, 300px 215px, 300px 215px, 300px 281px, 300px 281px, 300px 281px, 300px 158px, 300px 158px, 300px 158px, 300px 210px, 300px 210px, 300px 210px;
    animation: hi 150s linear infinite;
    opacity: 0.35;
    z-index: 1; pointer-events: none;
}

/* Falling Digital Matrix Rain */
.pattern-matrix {
    background-color: #020202 !important;
    position: relative;
}
.pattern-matrix::before {
    content: "アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヲンABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
    position: absolute; inset: 0;
    writing-mode: vertical-lr; letter-spacing: 2px;
    font-family: monospace; font-size: 9px; font-weight: bold;
    color: #39ff14; opacity: 0.14;
    animation: matrix-fall 25s linear infinite;
    word-break: break-all;
    overflow: hidden; pointer-events: none;
}
@keyframes matrix-fall {
    0% { transform: translateY(-30%); }
    100% { transform: translateY(0%); }
}

/* Animations for patterns */
@keyframes filt { 0% { filter: hue-rotate(0deg); } to { filter: hue-rotate(360deg); } }
@keyframes wee {
  0% { background-position: var(--p), 800% 400%, 1000% -400%, -1200% -600%, 400% 41.5px; }
  to { background-position: var(--p), 0% 0%, 0% 0%, 0% 0%, 0% 0%; }
}
@keyframes radar-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes hi {
  0% {
    background-position: 0px 220px, 3px 220px, 151.5px 337.5px, 25px 24px, 28px 24px, 176.5px 150px, 50px 16px, 53px 16px, 201.5px 91px, 75px 224px, 78px 224px, 226.5px 350.5px, 100px 19px, 103px 19px, 251.5px 121px, 125px 120px, 128px 120px, 276.5px 187px, 150px 31px, 153px 31px, 301.5px 120.5px, 175px 235px, 178px 235px, 326.5px 384.5px, 200px 121px, 203px 121px, 351.5px 228.5px, 225px 224px, 228px 224px, 376.5px 364.5px, 250px 26px, 253px 26px, 401.5px 105px, 275px 75px, 278px 75px, 426.5px 180px;
  }
  to {
    background-position: 0px 6800px, 3px 6800px, 151.5px 6917.5px, 25px 13632px, 28px 13632px, 176.5px 13758px, 50px 5416px, 53px 5416px, 201.5px 5491px, 75px 17175px, 78px 17175px, 226.5px 17301.5px, 100px 5119px, 103px 5119px, 251.5px 5221px, 125px 8428px, 128px 8428px, 276.5px 8495px, 150px 9876px, 153px 9876px, 301.5px 9965.5px, 175px 13391px, 178px 13391px, 326.5px 13540.5px, 200px 14741px, 203px 14741px, 351.5px 14848.5px, 225px 18770px, 228px 18770px, 376.5px 18910.5px, 250px 5082px, 253px 5082px, 401.5px 5161px, 275px 6375px, 278px 6375px, 426.5px 6480px;
  }
}

.btn-full { width: 100%; display: flex; align-items: center; justify-content: center; }

@media (max-width: 768px) {
    #showcase .reveal {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    #showcase .reveal div {
        order: initial !important;
    }
}

@media (max-width: 1100px) {
    .builder-layout { grid-template-columns: 1fr; }
    .preview-panel { position: static; order: -1; }
}

/* ================================================================
   DYNAMIC MILKY WAY BACKGROUND
   ================================================================ */
.milky-way-container {
    position: absolute; top: 0; left: 0; width: 100%; height: 100vh;
    z-index: -1; pointer-events: none; overflow: hidden;
}
.milky-way-path {
    fill: none;
    stroke: url(#goldGradient);
    stroke-width: 4;
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
    filter: drop-shadow(0 0 12px rgba(255,215,0,0.6));
    animation: drawMilkyWay 10s linear infinite;
}
@keyframes drawMilkyWay {
    0% { stroke-dashoffset: 1600; }
    100% { stroke-dashoffset: 0; }
}

