/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a28;
    --surface: #16161f;
    --border: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(230, 60, 60, 0.3);
    --text: #f0f0f5;
    --text-muted: #8888a0;
    --accent: #e63c3c;
    --accent-soft: #ff6b6b;
    --accent-glow: rgba(230, 60, 60, 0.15);
    --gradient: linear-gradient(135deg, #e63c3c 0%, #ff8a5c 100%);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --font: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', 'Space Grotesk', system-ui, sans-serif;
    --max-width: 1200px;
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

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

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

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.accent {
    color: var(--accent);
}

/* ===== TICKER ===== */
.ticker {
    background: var(--accent);
    color: white;
    font-family: var(--font);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    overflow: hidden;
    position: relative;
    z-index: 100;
    height: 36px;
    display: flex;
    align-items: center;
}

.ticker-track {
    display: flex;
    gap: 40px;
    animation: tickerScroll 25s linear infinite;
    white-space: nowrap;
}

.ticker-track span {
    flex-shrink: 0;
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 36px;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 16px 0;
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font);
    font-weight: 700;
    font-size: 22px;
}

.logo-icon {
    font-size: 26px;
}

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

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform var(--transition);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(230, 60, 60, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(230, 60, 60, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
}

.btn-nav {
    background: var(--gradient);
    color: white;
    font-size: 13px;
    padding: 8px 18px;
    box-shadow: 0 2px 12px rgba(230, 60, 60, 0.25);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: var(--radius);
}

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

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    z-index: 49;
    border-bottom: 1px solid var(--border);
}

.mobile-menu.active {
    display: flex;
}

.mobile-link {
    font-family: var(--font);
    font-weight: 500;
    font-size: 18px;
    color: var(--text-muted);
    padding: 8px 0;
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 160px 24px 80px;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -200px;
    right: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(230, 60, 60, 0.12) 0%, transparent 70%);
    pointer-events: none;
    animation: pulseGlow 6s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.15);
    }
}

.hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
    width: 100%;
}

.hero-text {
    flex: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-glow);
    border: 1px solid rgba(230, 60, 60, 0.3);
    color: var(--accent-soft);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease-out;
}

.hero-title {
    font-family: var(--font);
    font-size: clamp(52px, 8vw, 96px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.title-line {
    display: inline;
}

.title-line.accent {
    color: var(--accent);
    font-style: italic;
}

.hero-emoji {
    display: inline-block;
    animation: scarf 3s ease-in-out infinite;
}

@keyframes scarf {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(8deg);
    }

    75% {
        transform: rotate(-8deg);
    }
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-ca {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.ca-label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ca-address {
    font-size: 12px;
    color: var(--text);
    font-family: 'SF Mono', 'Fira Code', monospace;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ca-copy {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: var(--radius-xs);
    padding: 6px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition);
    font-family: var(--font);
    font-size: 12px;
}

.ca-copy:hover {
    background: var(--accent-glow);
    border-color: var(--accent);
    color: var(--accent-soft);
}

.ca-copy.copied {
    background: rgba(50, 200, 80, 0.15);
    border-color: rgba(50, 200, 80, 0.4);
    color: #50c878;
}

.hero-image {
    flex: 0 0 420px;
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-image-glow {
    position: absolute;
    inset: -30px;
    background: radial-gradient(circle, rgba(230, 60, 60, 0.2), transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: pulseGlow 4s ease-in-out infinite alternate;
}

.hero-img {
    position: relative;
    z-index: 1;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--border);
    transition: transform 0.5s ease;
}

.hero-img:hover {
    transform: scale(1.02) rotate(1deg);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* ===== BANNER ===== */
.banner-section {
    padding: 0;
    width: 100%;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.banner-img {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: 400px;
}

/* ===== SECTION STYLES ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-glow);
    border: 1px solid rgba(230, 60, 60, 0.2);
    color: var(--accent-soft);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 17px;
    margin-top: 12px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== ABOUT ===== */
.about {
    padding: 120px 0;
}

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

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: all var(--transition);
}

.about-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(230, 60, 60, 0.08);
}

.about-card-icon {
    font-size: 36px;
    margin-bottom: 20px;
}

.about-card h3 {
    font-family: var(--font);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.about-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* ===== HOW TO BUY ===== */
.how-to-buy {
    padding: 120px 0;
    background: var(--surface);
}

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

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    position: relative;
    transition: all var(--transition);
}

.step-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
}

.step-number {
    font-family: var(--font);
    font-size: 48px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
}

.step-card h3 {
    font-family: var(--font);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.step-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

.step-card p a {
    color: var(--accent-soft);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ca-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 32px;
    text-align: center;
}

.ca-box-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.ca-box-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ca-box-address {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 15px;
    color: var(--text);
    word-break: break-all;
}

/* ===== CHART ===== */
.chart-section {
    padding: 120px 0;
}

.chart-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

#dexscreener-embed {
    position: relative;
    width: 100%;
    padding-bottom: 60%;
}

#dexscreener-embed iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border: 0;
}

/* ===== PFP GENERATOR ===== */
.pfp-section {
    padding: 120px 0;
    background: var(--surface);
}

.pfp-generator {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.pfp-canvas-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 512px;
    background: var(--bg-card);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: crosshair;
}

.pfp-canvas-wrap.has-image {
    border-style: solid;
    border-color: var(--border);
}

#pfpCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.pfp-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    pointer-events: none;
    transition: opacity var(--transition);
}

.pfp-placeholder.hidden {
    opacity: 0;
}

.pfp-placeholder-icon {
    font-size: 48px;
    opacity: 0.6;
}

.pfp-placeholder p {
    font-family: var(--font);
    font-weight: 500;
    font-size: 16px;
    color: var(--text-muted);
}

.pfp-placeholder-hint {
    font-size: 13px;
    color: var(--text-muted);
    opacity: 0.5;
}

.pfp-controls {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pfp-control-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pfp-control-group label {
    font-family: var(--font);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pfp-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--bg-card);
    border-radius: 4px;
    outline: none;
    border: 1px solid var(--border);
}

.pfp-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(230, 60, 60, 0.4);
    transition: transform 0.15s ease;
}

.pfp-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.pfp-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(230, 60, 60, 0.4);
}

.pfp-flip-btns {
    display: flex;
    gap: 12px;
}

.pfp-btn {
    font-size: 13px !important;
    padding: 10px 16px !important;
}

.pfp-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pfp-download {
    flex: 1;
}

.pfp-hint {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.pfp-status {
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-soft);
    min-height: 20px;
    transition: all var(--transition);
}

@media (max-width: 768px) {
    .pfp-generator {
        grid-template-columns: 1fr;
    }

    .pfp-canvas-wrap {
        max-width: 100%;
    }

    .pfp-flip-btns {
        flex-direction: column;
    }

    .pfp-actions {
        flex-direction: column;
    }
}

/* ===== COMMUNITY ===== */
.community {
    padding: 120px 0;
    background: var(--surface);
}

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

.social-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.social-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(230, 60, 60, 0.1);
    background: var(--bg-card-hover);
}

.social-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--accent-glow);
    color: var(--accent-soft);
    transition: var(--transition);
}

.social-card:hover .social-icon {
    background: var(--gradient);
    color: white;
    transform: scale(1.05);
}

.social-name {
    font-family: var(--font);
    font-weight: 600;
    font-size: 15px;
}

.social-handle {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== FOOTER ===== */
.footer {
    padding: 60px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font);
    font-weight: 700;
    font-size: 24px;
}

.footer-disclaimer {
    color: var(--text-muted);
    font-size: 13px;
    max-width: 600px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--accent-soft);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 12px;
    opacity: 0.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

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

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

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

    .hero-image {
        flex: 0 0 auto;
        max-width: 350px;
        order: -1;
    }

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

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

    .social-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    .nav-links,
    .btn-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 120px 20px 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: clamp(40px, 12vw, 64px);
    }

    .hero-image {
        max-width: 280px;
    }

    .hero-ca {
        flex-direction: column;
        gap: 6px;
    }

    .ca-address {
        max-width: 200px;
        font-size: 11px;
    }

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

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

    .about,
    .how-to-buy,
    .chart-section,
    .community {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    #dexscreener-embed {
        padding-bottom: 80%;
    }
}

@media (max-width: 480px) {
    .social-grid {
        grid-template-columns: 1fr;
    }

    .hero-image {
        max-width: 240px;
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(230, 60, 60, 0.3);
    color: white;
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Copy toast notification */
.copy-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(50, 200, 80, 0.9);
    color: white;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-weight: 600;
    font-size: 14px;
    z-index: 999;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.copy-toast.show {
    transform: translateX(-50%) translateY(0);
}