:root {
    /* Colors */
    --color-bg: #0A0A0B;
    --color-surface: rgba(255, 255, 255, 0.03);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-primary: #F6A623;
    --color-primary-rgb: 246, 166, 35;
    --color-coral: #FF5C5C;
    --color-text: #FFFFFF;
    --color-text-muted: #8E8E93;
    
    /* Typography */
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Spacing */
    --container-padding: clamp(1rem, 5vw, 2rem);
    --section-padding: clamp(4rem, 12vw, 8rem);
    
    /* Effects */
    --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
    --glass: blur(12px) saturate(180%);
}

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

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

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s var(--ease-premium);
}

ul { list-style: none; }

/* --- Background System --- */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: var(--color-bg);
    overflow: hidden;
}

.glow-blob {
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    mix-blend-mode: screen;
    pointer-events: none;
    animation: floatingBlob 25s infinite alternate ease-in-out;
}

.glow-1 { top: -10%; left: -10%; background: var(--color-primary); }
.glow-2 { bottom: -10%; right: -10%; background: var(--color-coral); animation-delay: -5s; }

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
    opacity: 0.04;
    z-index: -1;
    pointer-events: none;
}

@keyframes floatingBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 15%) scale(1.1); }
}

/* --- Utilities --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-primary) 0%, #FFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
}

h1 { font-size: clamp(2.5rem, 12vw, 5.5rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(2rem, 8vw, 3.5rem); margin-bottom: 3rem; text-align: center; }

/* --- Header & Nav --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: var(--glass);
    border-bottom: 1px solid var(--color-border);
}

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

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

.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    object-fit: cover;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 0.1em;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

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

/* --- Hero --- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 0;
}

.grid-main {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    background: rgba(246, 166, 35, 0.1);
    border: 1px solid rgba(246, 166, 35, 0.2);
    border-radius: 100px;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 0.75rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-tag span { margin-right: 0.5rem; }

.subtitle {
    color: var(--color-text-muted);
    font-size: clamp(1rem, 3vw, 1.25rem);
    margin: 1.5rem 0 2.5rem;
    max-width: 500px;
}

.hero-img-wrap {
    width: 100%;
    position: relative;
}

.img-container {
    aspect-ratio: 1/1;
    border-radius: clamp(24px, 5vw, 48px);
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.5);
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease-premium);
}

.hero-img-wrap:hover img { transform: scale(1.08); }

.logo-hero {
    position: relative;
    border-radius: 50%;
    border: 4px solid var(--color-primary);
    padding: 10px;
    background: rgba(246, 166, 35, 0.05);
    animation: heroPulse 4s infinite ease-in-out;
}

.logo-hero img {
    border-radius: 50%;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    opacity: 0.2;
    z-index: -1;
    filter: blur(20px);
}

@keyframes heroPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(246, 166, 35, 0.2); }
    50% { transform: scale(1.03); box-shadow: 0 0 50px rgba(246, 166, 35, 0.4); }
}

/* --- Floating Sticker --- */
.floating-sticker {
    position: fixed;
    right: 2rem;
    top: 6rem;
    width: 80px;
    height: 80px;
    z-index: 50;
    transform: rotate(15deg);
    animation: floatingSticker 6s infinite ease-in-out;
    pointer-events: none;
}

.floating-sticker img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 5px solid #FFF;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

@keyframes floatingSticker {
    0%, 100% { transform: translate(0, 0) rotate(15deg); }
    50% { transform: translate(-10px, 20px) rotate(-5deg); }
}

/* --- CA Copier --- */
.ca-box {
    display: flex;
    align-items: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 0.6rem;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    backdrop-filter: var(--glass);
    transition: 0.3s;
}

.ca-box:hover { border-color: rgba(246, 166, 35, 0.4); }

.ca-addr {
    flex: 1;
    padding: 0 1.2rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-btn {
    background: var(--color-primary);
    color: #000;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.85rem;
}

.copy-btn:hover { background: #FFF; transform: translateY(-2px); }
.copy-btn:active { transform: translateY(0); }

/* --- Socials --- */
.social-list {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
}

.social-link {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    transition: 0.3s;
}

.social-link:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
    background: rgba(246, 166, 35, 0.05);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: #FFF;
}

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

#true-form .grid-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 2.5rem;
    border-radius: 32px;
    transition: 0.4s var(--ease-premium);
    backdrop-filter: var(--glass);
}

.feature-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-10px);
}

.card-img-wrap {
    aspect-ratio: 1/1;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid var(--color-border);
}

.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

#chart-section .chart-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--color-surface);
    border-radius: 32px;
    border: 1px solid var(--color-border);
    overflow: hidden;
}

#chart-section iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Toast --- */
#toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--color-primary);
    color: #000;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-weight: 800;
    font-family: var(--font-heading);
    z-index: 1000;
    transition: transform 0.6s var(--ease-premium);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

#toast.active { transform: translateX(-50%) translateY(0); }

/* --- Mobile Queries (Perfect) --- */
@media (max-width: 968px) {
    .grid-main {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-text-block {
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-img-wrap {
        order: 1;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .subtitle { margin: 1.5rem auto 2.5rem; }
    
    .social-list { justify-content: center; }
    
    #true-form .grid-half { grid-template-columns: 1fr; }

    /* Header Mobile */
    header { padding: 1rem 0; }
    .nav-links { gap: 1rem; }
    .nav-links a { font-size: 0.8rem; }
    .logo-text { display: none; } /* Hide text on mobile to save space */
    .nav-logo { width: 32px; height: 32px; }

    .floating-sticker { display: none; } /* Hide sticker on mobile */
}

@media (max-width: 480px) {
    h1 { font-size: 3.2rem; }
    
    .ca-box {
        flex-direction: column;
        padding: 1.25rem;
        gap: 1.25rem;
    }
    
    .ca-addr {
        width: 100%;
        text-align: center;
        white-space: normal;
        word-break: break-all;
        padding: 0;
        mask-image: none;
    }
    
    .copy-btn { width: 100%; }

    #chart-section .chart-wrap {
        aspect-ratio: 4/5;
    }
}
