/* ===== CSS Variables ===== */
:root {
    --background: 0 0% 3%;
    --foreground: 0 0% 98%;
    --card: 0 0% 6%;
    --card-foreground: 0 0% 98%;
    --primary: 0 0% 100%;
    --primary-foreground: 0 0% 0%;
    --secondary: 0 0% 12%;
    --secondary-foreground: 0 0% 98%;
    --muted: 0 0% 15%;
    --muted-foreground: 0 0% 65%;
    --accent: 0 0% 20%;
    --border: 0 0% 18%;
    --ring: 0 0% 100%;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Utilities ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px hsla(var(--primary), 0.4);
}

.btn-secondary {
    background: transparent;
    color: hsl(var(--foreground));
    border: 1px solid hsl(var(--border));
}

.btn-secondary:hover {
    background: hsl(var(--secondary));
}

.btn-full {
    width: 100%;
}

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

.badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    background: hsl(var(--secondary));
    border: 1px solid hsl(var(--border));
    border-radius: 9999px;
    color: hsl(var(--foreground));
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: hsl(var(--muted-foreground));
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top, hsl(var(--secondary)) 0%, transparent 60%);
}

.hero-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, hsla(var(--primary), 0.08) 0%, transparent 70%);
    filter: blur(60px);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, hsl(var(--foreground)) 0%, hsl(var(--muted-foreground)) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: hsl(var(--secondary));
    border-radius: 0.75rem;
    color: hsl(var(--foreground));
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.85rem;
    color: hsl(var(--muted-foreground));
}

/* ===== Pre-Sale Section ===== */
.presale-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, transparent 0%, hsl(var(--card)) 50%, transparent 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.presale-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1.5rem;
    padding: 2.5rem;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.presale-header {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid hsl(var(--border));
}

.price-info, .progress-info, .time-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.price-label, .progress-label, .time-label {
    font-size: 0.85rem;
    color: hsl(var(--muted-foreground));
}

.price-value, .time-value {
    font-size: 1.75rem;
    font-weight: 700;
}

.progress-bar {
    height: 8px;
    background: hsl(var(--secondary));
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: hsl(var(--primary));
    border-radius: 9999px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.9rem;
    font-weight: 600;
}

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

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: hsl(var(--secondary));
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.benefit-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.benefit-text strong {
    font-size: 0.95rem;
}

.benefit-text span {
    font-size: 0.8rem;
    color: hsl(var(--muted-foreground));
}

.bonus-tiers {
    text-align: center;
}

.bonus-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.tier-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
}

.tier-card.featured {
    border-color: hsl(var(--primary));
    background: hsla(var(--primary), 0.05);
}

.tier-amount {
    font-size: 1.25rem;
    font-weight: 700;
}

.tier-bonus {
    font-size: 0.9rem;
    color: hsl(var(--muted-foreground));
}

/* ===== Vision Section ===== */
.vision-section {
    padding: 6rem 0;
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.vision-card {
    padding: 2rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.vision-card:hover {
    transform: translateY(-5px);
    border-color: hsl(var(--primary));
}

.vision-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: hsl(var(--secondary));
    border-radius: 1rem;
    margin-bottom: 1.5rem;
}

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

.vision-card p {
    font-size: 0.95rem;
    color: hsl(var(--muted-foreground));
}

/* ===== Tokenomics Section ===== */
.tokenomics-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, transparent 0%, hsl(var(--card)) 50%, transparent 100%);
}

.tokenomics-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto 2rem;
}

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

.chart-container {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.allocation-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.allocation-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
}

.allocation-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

.allocation-name {
    flex: 1;
    font-size: 0.95rem;
}

.allocation-value {
    font-size: 1rem;
    font-weight: 700;
}

.total-supply {
    text-align: center;
    padding: 1.5rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.total-supply span {
    font-size: 1.1rem;
    color: hsl(var(--muted-foreground));
}

.total-supply strong {
    color: hsl(var(--foreground));
}

/* ===== Roadmap Section ===== */
.roadmap-section {
    padding: 6rem 0;
}

.roadmap-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 2rem;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: hsl(var(--border));
}

.roadmap-item {
    position: relative;
    padding-bottom: 2.5rem;
}

.roadmap-marker {
    position: absolute;
    left: -2rem;
    top: 0;
    width: 16px;
    height: 16px;
    background: hsl(var(--secondary));
    border: 2px solid hsl(var(--border));
    border-radius: 50%;
    transform: translateX(-50%);
}

.roadmap-item.completed .roadmap-marker {
    background: hsl(var(--primary));
    border-color: hsl(var(--primary));
}

.roadmap-item.active .roadmap-marker {
    background: hsl(var(--primary));
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 4px hsla(var(--primary), 0.3);
}

.roadmap-content {
    padding: 1.5rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    margin-left: 1rem;
}

.roadmap-phase {
    font-size: 0.8rem;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.roadmap-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0.5rem 0;
}

.roadmap-content p {
    font-size: 0.95rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.75rem;
}

.roadmap-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: hsl(var(--secondary));
    border-radius: 9999px;
}

.roadmap-item.completed .roadmap-status {
    background: hsla(120, 60%, 50%, 0.2);
    color: hsl(120, 60%, 60%);
}

.roadmap-item.active .roadmap-status {
    background: hsla(45, 90%, 50%, 0.2);
    color: hsl(45, 90%, 60%);
}

/* ===== Security Section ===== */
.security-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, transparent 0%, hsl(var(--card)) 50%, transparent 100%);
}

.security-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: hsl(var(--secondary));
    border-radius: 1.5rem;
    margin: 0 auto 1.5rem;
}

.auditors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.auditor-card {
    padding: 2rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.auditor-card:hover {
    border-color: hsl(var(--primary));
}

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

.auditor-card p {
    font-size: 0.85rem;
    color: hsl(var(--muted-foreground));
}

.security-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.security-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 9999px;
}

.security-feature svg {
    color: hsl(120, 60%, 50%);
}

.contract-address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.verified-badge {
    font-size: 0.85rem;
    font-weight: 600;
    color: hsl(120, 60%, 50%);
}

.contract-address code {
    font-family: monospace;
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 8rem 0;
    text-align: center;
    background: radial-gradient(ellipse at center, hsl(var(--secondary)) 0%, transparent 70%);
}

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

.cta-subtitle {
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

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

.cta-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.cta-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cta-stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.cta-stat-label {
    font-size: 0.9rem;
    color: hsl(var(--muted-foreground));
}

/* ===== Footer ===== */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid hsl(var(--border));
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

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

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-brand p {
    font-size: 0.9rem;
    color: hsl(var(--muted-foreground));
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: hsl(var(--foreground));
}

.footer-newsletter h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: hsl(var(--secondary));
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    color: hsl(var(--foreground));
    font-size: 0.9rem;
}

.newsletter-form input::placeholder {
    color: hsl(var(--muted-foreground));
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--border));
}

.footer-bottom p {
    font-size: 0.85rem;
    color: hsl(var(--muted-foreground));
}

@media (max-width: 576px) {
    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    position: relative;
    width: 100%;
    max-width: 500px;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1.5rem;
    padding: 2rem;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: hsl(var(--secondary));
    border: none;
    border-radius: 50%;
    color: hsl(var(--foreground));
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: hsl(var(--accent));
}

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

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

.modal-header p {
    font-size: 0.95rem;
    color: hsl(var(--muted-foreground));
}

.modal-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.modal-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem;
    background: hsl(var(--secondary));
    border-radius: 0.75rem;
}

.modal-info-item span {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.modal-info-item strong {
    font-size: 0.95rem;
}

.bonus-text {
    color: hsl(120, 60%, 50%);
}

.amount-section {
    margin-bottom: 1.5rem;
}

.amount-section label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.quick-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.amount-btn {
    padding: 0.75rem;
    background: hsl(var(--secondary));
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    color: hsl(var(--foreground));
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amount-btn:hover {
    border-color: hsl(var(--primary));
}

.amount-btn.active {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
}

.amount-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: hsl(var(--secondary));
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    color: hsl(var(--foreground));
    font-size: 1rem;
}

.purchase-summary {
    background: hsl(var(--secondary));
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.summary-row.bonus {
    color: hsl(120, 60%, 50%);
}

.summary-row.total {
    border-top: 1px solid hsl(var(--border));
    margin-top: 0.5rem;
    padding-top: 1rem;
    font-weight: 700;
    font-size: 1rem;
}

.modal-note {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    text-align: center;
    margin-top: 1rem;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeIn 0.8s ease-out;
}

.stat-card,
.vision-card,
.auditor-card,
.tier-card {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover,
.tier-card:hover {
    transform: translateY(-3px);
}