/* ==========================================================================
   Boundfire - Dark Glassmorphism Theme
   ========================================================================== */

/* --------------------------------------------------------------------------
   Custom Fonts
   -------------------------------------------------------------------------- */
@font-face {
    font-family: 'PuppyGirl';
    src: url('puppygirl-small.otf') format('opentype'),
         url('puppygirl-small.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* --------------------------------------------------------------------------
   CSS Variables
   -------------------------------------------------------------------------- */
:root {
    /* Dark theme base */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a24;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.06);
    --bg-glass-border: rgba(255, 255, 255, 0.08);
    --bg-glass-border-hover: rgba(255, 255, 255, 0.15);

    /* Fire accents */
    --accent-primary: #ff6b35;
    --accent-secondary: #f7931e;
    --accent-deep: #cc4125;
    --accent-glow: rgba(255, 107, 53, 0.3);
    --accent-glow-strong: rgba(255, 107, 53, 0.5);

    /* Click mode colors (PuppyClicker) */
    --click-blue: #3b82f6;
    --click-red: #ef4444;
    --click-yellow: #eab308;
    --click-orange: #f97316;
    --click-green: #22c55e;

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --text-dim: rgba(255, 255, 255, 0.3);

    /* Spacing */
    --container-max: 1200px;
    --section-padding: 6rem;
    --card-padding: 2rem;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-lg: 24px;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--accent-glow);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-secondary);
}

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

ul, ol {
    list-style: none;
}

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

/* --------------------------------------------------------------------------
   Glass Card Component
   -------------------------------------------------------------------------- */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--border-radius);
    transition: all var(--transition-base);
}

.glass:hover {
    background: var(--bg-glass-hover);
    border-color: var(--bg-glass-border-hover);
}

.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--border-radius);
    padding: var(--card-padding);
    transition: all var(--transition-base);
}

.glass-card:hover {
    background: var(--bg-glass-hover);
    border-color: var(--bg-glass-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.glass-card.fire-glow:hover {
    box-shadow: var(--shadow-glow), var(--shadow-lg);
}

/* --------------------------------------------------------------------------
   Fire Particles Animation
   -------------------------------------------------------------------------- */
.fire-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.ember {
    position: absolute;
    bottom: -20px;
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0;
    filter: blur(1px);
    animation: ember-rise 6s ease-out infinite;
}

/* Varied ember positions and timings */
.ember:nth-child(1) { left: 5%; animation-delay: 0s; animation-duration: 5s; }
.ember:nth-child(2) { left: 10%; animation-delay: 0.5s; animation-duration: 6s; background: var(--accent-secondary); }
.ember:nth-child(3) { left: 15%; animation-delay: 1s; animation-duration: 5.5s; }
.ember:nth-child(4) { left: 20%; animation-delay: 1.5s; animation-duration: 7s; background: var(--accent-deep); }
.ember:nth-child(5) { left: 25%; animation-delay: 2s; animation-duration: 6.5s; }
.ember:nth-child(6) { left: 30%; animation-delay: 0.3s; animation-duration: 5s; background: #ffaa00; }
.ember:nth-child(7) { left: 35%; animation-delay: 1.2s; animation-duration: 6s; }
.ember:nth-child(8) { left: 40%; animation-delay: 2.5s; animation-duration: 5.5s; background: var(--accent-secondary); }
.ember:nth-child(9) { left: 45%; animation-delay: 0.8s; animation-duration: 7s; }
.ember:nth-child(10) { left: 50%; animation-delay: 1.8s; animation-duration: 6s; background: var(--accent-primary); }
.ember:nth-child(11) { left: 55%; animation-delay: 0.2s; animation-duration: 5.5s; }
.ember:nth-child(12) { left: 60%; animation-delay: 2.2s; animation-duration: 6.5s; background: var(--accent-deep); }
.ember:nth-child(13) { left: 65%; animation-delay: 1.5s; animation-duration: 5s; }
.ember:nth-child(14) { left: 70%; animation-delay: 0.7s; animation-duration: 7s; background: #ffaa00; }
.ember:nth-child(15) { left: 75%; animation-delay: 2.8s; animation-duration: 6s; }
.ember:nth-child(16) { left: 80%; animation-delay: 1.3s; animation-duration: 5.5s; background: var(--accent-secondary); }
.ember:nth-child(17) { left: 85%; animation-delay: 0.4s; animation-duration: 6.5s; }
.ember:nth-child(18) { left: 90%; animation-delay: 2s; animation-duration: 5s; background: var(--accent-primary); }
.ember:nth-child(19) { left: 95%; animation-delay: 1.1s; animation-duration: 7s; }
.ember:nth-child(20) { left: 3%; animation-delay: 2.6s; animation-duration: 6s; background: var(--accent-deep); }

/* Varied sizes */
.ember:nth-child(odd) { width: 6px; height: 6px; }
.ember:nth-child(3n) { width: 10px; height: 10px; filter: blur(2px); }
.ember:nth-child(5n) { width: 4px; height: 4px; filter: blur(0.5px); }

@keyframes ember-rise {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    50% {
        transform: translateY(-50vh) translateX(20px) scale(0.8);
        opacity: 0.6;
    }
    80% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) translateX(-10px) scale(0.4);
        opacity: 0;
    }
}

/* Secondary drift animation for more organic movement */
.ember:nth-child(even) {
    animation-name: ember-rise-alt;
}

@keyframes ember-rise-alt {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    50% {
        transform: translateY(-50vh) translateX(-25px) scale(0.7);
        opacity: 0.5;
    }
    80% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(-100vh) translateX(15px) scale(0.3);
        opacity: 0;
    }
}

/* --------------------------------------------------------------------------
   Hero Logo
   -------------------------------------------------------------------------- */
.hero-logo {
    max-width: 400px;
    width: 80%;
    height: auto;
    margin: 0 auto 2rem;
    display: block;
    filter: brightness(0) invert(1) drop-shadow(0 0 30px var(--accent-glow)) drop-shadow(0 0 60px var(--accent-glow));
    animation: logo-glow 3s ease-in-out infinite alternate;
}

@keyframes logo-glow {
    0% {
        filter: brightness(0) invert(1) drop-shadow(0 0 20px var(--accent-glow)) drop-shadow(0 0 40px rgba(255, 107, 53, 0.2));
    }
    100% {
        filter: brightness(0) invert(1) drop-shadow(0 0 40px var(--accent-glow-strong)) drop-shadow(0 0 80px var(--accent-glow));
    }
}

/* --------------------------------------------------------------------------
   Gradient Text
   -------------------------------------------------------------------------- */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 50%, var(--accent-deep) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rainbow-text {
    background: linear-gradient(90deg,
        #ff6b6b 0%,
        #ffa94d 16%,
        #ffd43b 33%,
        #69db7c 50%,
        #4dabf7 66%,
        #9775fa 83%,
        #f783ac 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-deep) 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
    color: white;
}

.btn-secondary {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--bg-glass-border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-glass-hover);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: var(--bg-glass);
}

.btn-discord {
    background: #5865F2;
    color: white;
}

.btn-discord:hover {
    background: #4752c4;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(88, 101, 242, 0.4);
}

.btn-patreon {
    background: #FF424D;
    color: white;
}

.btn-patreon:hover {
    background: #e63946;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 66, 77, 0.4);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Button with badge */
.btn-with-badge {
    position: relative;
}

.btn-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-secondary);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--bg-glass-border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 2rem;
    width: auto;
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-glass);
}

.nav-link.active {
    color: var(--accent-primary);
}

/* Products dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 200px;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--border-radius-sm);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-lg);
}

.nav-dropdown:hover .nav-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.nav-dropdown-item:hover {
    color: var(--text-primary);
    background: var(--bg-glass);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 4rem;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--bg-glass-border);
        flex-direction: column;
        padding: 1rem;
        gap: 0.25rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
    }
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(4rem + var(--section-padding)) 0 var(--section-padding);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(204, 65, 37, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(247, 147, 30, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 1rem;
    line-height: 1.6;
}

.hero-tagline {
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* --------------------------------------------------------------------------
   Section Styles
   -------------------------------------------------------------------------- */
section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Products Section
   -------------------------------------------------------------------------- */
.products-section {
    background: var(--bg-secondary);
    position: relative;
}

.products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--bg-glass-border), transparent);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: 2rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card .product-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-deep));
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.product-card .product-icon svg {
    width: 2rem;
    height: 2rem;
    color: white;
}

.product-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.product-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.product-feature {
    font-size: 0.8125rem;
    padding: 0.375rem 0.75rem;
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    border-radius: 100px;
    color: var(--text-secondary);
}

.product-cta {
    margin-top: auto;
}

/* --------------------------------------------------------------------------
   Features Grid
   -------------------------------------------------------------------------- */
.features {
    padding: var(--section-padding) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    padding: 1.5rem;
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-deep));
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Click mode colors for PuppyClicker */
.feature-card[data-mode="click"] .feature-icon {
    background: linear-gradient(135deg, var(--click-blue), #2563eb);
}

.feature-card[data-mode="zap"] .feature-icon {
    background: linear-gradient(135deg, var(--click-red), #dc2626);
}

.feature-card[data-mode="vibrate"] .feature-icon {
    background: linear-gradient(135deg, var(--click-yellow), #ca8a04);
}

.feature-card[data-mode="sound"] .feature-icon {
    background: linear-gradient(135deg, var(--click-orange), #ea580c);
}

.feature-card[data-mode="api"] .feature-icon {
    background: linear-gradient(135deg, var(--click-green), #16a34a);
}

/* --------------------------------------------------------------------------
   Community Section
   -------------------------------------------------------------------------- */
.community-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.community-card {
    text-align: center;
    padding: 2.5rem;
}

.community-card .community-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.community-card .community-icon svg {
    width: 2rem;
    height: 2rem;
    color: white;
}

.community-card.discord .community-icon {
    background: #5865F2;
}

.community-card.patreon .community-icon {
    background: #FF424D;
}

.community-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.community-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 50%);
    opacity: 0.3;
    pointer-events: none;
}

.cta-section .container {
    position: relative;
}

.cta-section h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    background: var(--bg-secondary);
    padding-top: 4rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--bg-glass-border), transparent);
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 2rem;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
}

.social-links svg {
    width: 1.25rem;
    height: 1.25rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    border-top: 1px solid var(--bg-glass-border);
    border-bottom: 1px solid var(--bg-glass-border);
}

.footer-column h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-column a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--accent-primary);
}

.footer-badge {
    font-size: 0.625rem;
    background: var(--accent-secondary);
    color: white;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    margin-left: 0.375rem;
    text-transform: uppercase;
    font-weight: 700;
}

.footer-bottom {
    padding: 2rem 0;
    text-align: center;
}

.footer-acknowledgment {
    margin-bottom: 1rem;
}

.pride-message {
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
}

.land-acknowledgment {
    font-size: 0.8125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.footer-copyright {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Legal Pages
   -------------------------------------------------------------------------- */
.legal-page {
    padding-top: 6rem;
    min-height: 100vh;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 0;
}

.legal-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.legal-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.legal-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.5rem;
    list-style: disc;
}

.legal-content ol li {
    list-style: decimal;
}

.legal-content a {
    color: var(--accent-primary);
}

.legal-content a:hover {
    text-decoration: underline;
}

.last-updated {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 2rem;
    font-size: 0.9375rem;
}

.highlight-box {
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    border-left: 4px solid var(--accent-primary);
    border-radius: var(--border-radius-sm);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.highlight-box p {
    margin-bottom: 0.75rem;
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Safety Page
   -------------------------------------------------------------------------- */
.emergency-box {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.1));
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.emergency-box h2 {
    color: #ef4444;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.emergency-box p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.intro {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.resource-section {
    margin-bottom: 2.5rem;
}

.resource-section h3 {
    color: var(--accent-primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-primary);
    display: inline-block;
}

.resource-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.resource-card h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.resource-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.resource-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.resource-links .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.back-link {
    margin-top: 3rem;
    text-align: center;
}

/* --------------------------------------------------------------------------
   Help Page
   -------------------------------------------------------------------------- */
.help-section {
    padding-top: 6rem;
}

.help-header {
    text-align: center;
    padding: 3rem 0;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.help-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.help-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.faq-section {
    padding: 4rem 0;
}

.faq-item {
    border-bottom: 1px solid var(--bg-glass-border);
    padding: 1.5rem 0;
}

.faq-item:first-child {
    border-top: 1px solid var(--bg-glass-border);
}

.faq-question {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.faq-answer {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Safety Page
   -------------------------------------------------------------------------- */
.safety-section {
    padding-top: 6rem;
}

.safety-header {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.emergency-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-left: 4px solid #ef4444;
    border-radius: var(--border-radius-sm);
    padding: 1.5rem;
    margin: 2rem 0;
}

.emergency-box h3 {
    color: #ef4444;
    margin-bottom: 0.5rem;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.resource-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.resource-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

/* --------------------------------------------------------------------------
   404 Page
   -------------------------------------------------------------------------- */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.error-content h1 {
    font-size: clamp(6rem, 20vw, 12rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-content h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

.error-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   Delete Account Page
   -------------------------------------------------------------------------- */
.delete-section {
    padding-top: 6rem;
    min-height: 100vh;
}

.delete-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 0;
    text-align: center;
}

.delete-icon {
    width: 5rem;
    height: 5rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.delete-icon svg {
    width: 2.5rem;
    height: 2.5rem;
    color: #ef4444;
}

.delete-steps {
    text-align: left;
    margin: 2rem 0;
}

.delete-steps ol {
    list-style: decimal;
    margin-left: 1.5rem;
}

.delete-steps li {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--border-radius-lg);
    max-width: 480px;
    width: 100%;
    padding: 2rem;
    position: relative;
    transform: scale(0.95);
    transition: transform var(--transition-base);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-deep));
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.modal-icon svg {
    width: 2rem;
    height: 2rem;
    color: white;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: var(--text-secondary);
}

.modal-content {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.modal-email {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    color: var(--accent-primary);
    transition: all var(--transition-fast);
    position: relative;
}

.modal-email:hover {
    border-color: var(--accent-primary);
}

.copy-feedback {
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}

.copy-feedback.show {
    opacity: 1;
    visibility: visible;
}

.modal-content ul {
    text-align: left;
    margin: 1rem auto;
    max-width: 300px;
}

.modal-content li {
    color: var(--text-secondary);
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-btn {
    width: 100%;
}

.modal-btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-deep));
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
}

.modal-btn-secondary {
    background: var(--bg-glass);
    color: var(--text-secondary);
    border: 1px solid var(--bg-glass-border);
    padding: 0.875rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.modal-btn-secondary:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.py-sm { padding-top: 2rem; padding-bottom: 2rem; }
.py-md { padding-top: 4rem; padding-bottom: 4rem; }
.py-lg { padding-top: 6rem; padding-bottom: 6rem; }

.hidden { display: none !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Coming soon badge */
.coming-soon {
    position: relative;
}

.coming-soon::after {
    content: 'Coming Soon';
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-secondary);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   PuppyClicker Page Styles
   -------------------------------------------------------------------------- */

/* Click Modes Section */
.click-modes-section {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.click-modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.click-mode-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.click-mode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    transition: all var(--transition-base);
}

.click-mode-card:hover {
    transform: translateY(-4px);
    border-color: var(--bg-glass-hover);
}

.click-mode-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-base);
}

.click-mode-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.click-mode-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.click-mode-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

/* Click Mode Colors */
.click-mode-click::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.click-mode-click .click-mode-icon { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.click-mode-click:hover { box-shadow: 0 8px 32px rgba(59, 130, 246, 0.2); }
.click-mode-click:hover .click-mode-icon { background: rgba(59, 130, 246, 0.25); }

.click-mode-zap::before { background: linear-gradient(90deg, #ef4444, #f87171); }
.click-mode-zap .click-mode-icon { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.click-mode-zap:hover { box-shadow: 0 8px 32px rgba(239, 68, 68, 0.2); }
.click-mode-zap:hover .click-mode-icon { background: rgba(239, 68, 68, 0.25); }

.click-mode-vibrate::before { background: linear-gradient(90deg, #eab308, #facc15); }
.click-mode-vibrate .click-mode-icon { background: rgba(234, 179, 8, 0.15); color: #facc15; }
.click-mode-vibrate:hover { box-shadow: 0 8px 32px rgba(234, 179, 8, 0.2); }
.click-mode-vibrate:hover .click-mode-icon { background: rgba(234, 179, 8, 0.25); }

.click-mode-sound::before { background: linear-gradient(90deg, #f97316, #fb923c); }
.click-mode-sound .click-mode-icon { background: rgba(249, 115, 22, 0.15); color: #fb923c; }
.click-mode-sound:hover { box-shadow: 0 8px 32px rgba(249, 115, 22, 0.2); }
.click-mode-sound:hover .click-mode-icon { background: rgba(249, 115, 22, 0.25); }

.click-mode-api::before { background: linear-gradient(90deg, #22c55e, #4ade80); }
.click-mode-api .click-mode-icon { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.click-mode-api:hover { box-shadow: 0 8px 32px rgba(34, 197, 94, 0.2); }
.click-mode-api:hover .click-mode-icon { background: rgba(34, 197, 94, 0.25); }

/* Safety Section */
.safety-section {
    background: var(--bg-secondary);
}

.safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.safety-card {
    padding: 2rem;
    text-align: center;
}

.safety-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.safety-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.safety-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Coming Soon Badges in Hero */
.coming-soon-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-coming-soon {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* PuppyClicker Hero */
.puppyclicker-hero .hero-title {
    font-family: 'PuppyGirl', var(--font-sans);
    font-size: clamp(3rem, 12vw, 7rem);
    font-weight: normal;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    text-shadow:
        0 0 20px var(--accent-glow),
        0 0 40px rgba(255, 107, 53, 0.3),
        0 0 60px rgba(255, 107, 53, 0.1);
    margin-bottom: 1.5rem;
    animation: puppyclicker-glow 3s ease-in-out infinite alternate;
}

@keyframes puppyclicker-glow {
    0% {
        text-shadow:
            0 0 20px var(--accent-glow),
            0 0 40px rgba(255, 107, 53, 0.3),
            0 0 60px rgba(255, 107, 53, 0.1);
    }
    100% {
        text-shadow:
            0 0 30px var(--accent-glow-strong),
            0 0 60px var(--accent-glow),
            0 0 90px rgba(255, 107, 53, 0.2);
    }
}

/* Features Grid Enhancement */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-card {
    padding: var(--card-padding);
    text-align: center;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 12px;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Large Buttons */
.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    :root {
        --section-padding: 4rem;
        --card-padding: 1.5rem;
    }

    .hero {
        min-height: auto;
        padding: calc(4rem + 3rem) 0 3rem;
    }

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

    .hero-cta .btn {
        width: 100%;
    }

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

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

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

    .click-modes-grid {
        grid-template-columns: 1fr;
    }

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

    .coming-soon-badges {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-buttons .btn {
        width: 100%;
    }

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

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .legal-content h1 {
        font-size: 2rem;
    }

    .legal-content h2 {
        font-size: 1.25rem;
    }
}
