/* ==========================================
   AIAIAI Landing Page Stylesheet
   Theme: Classy Hybrid Light-Dark Tech-Corporate
   ========================================== */

/* --- Custom Variables & Reset --- */
:root {
    --bg-dark: #0a0e1a;
    --bg-dark-section: #080c16;
    --bg-light: #ffffff;
    --bg-light-section: #f1f5f9;
    --bg-light-alt: #f8fafc;
    
    --border-color-dark: rgba(255, 255, 255, 0.08);
    --border-color-light: #cbd5e1;
    --border-gold: #b59049;
    
    --color-navy: #0f172a;
    --color-crimson: #b91c1c;
    --color-crimson-hover: #991b1b;
    --color-gold: #b59049;
    --color-gold-hover: #9a7828;
    
    --color-text-dark: #f8fafc;
    --color-text-dark-muted: #94a3b8;
    --color-text-light: #1e293b;
    --color-text-light-muted: #475569;
    
    --font-sans: 'Inter', -apple-system, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-cyber: 'Orbitron', monospace;
    
    --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-card: 0 12px 28px rgba(10, 14, 26, 0.04), 0 1px 3px rgba(10, 14, 26, 0.02);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    position: relative;
    line-height: 1.6;
    background-color: var(--bg-dark);
}

/* --- Dynamic Ledger Canvas Background --- */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* --- Scrollbar Customization --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #080c16;
}
::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold);
}

/* --- Typography & Visual Accents --- */
.serif-title {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--color-gold);
    font-weight: 700;
}

.serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--color-crimson);
}

.font-orbitron {
    font-family: var(--font-cyber);
}

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

/* --- Section Layouts --- */
.section-padding {
    padding: 100px 20px;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 60px auto;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.7rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-crimson);
    margin: 12px auto 0 auto;
}

.section-title.text-left::after {
    margin-left: 0;
}

.section-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Color theme rules for sections */
.dark-section {
    color: var(--color-text-dark);
}
.dark-section .section-title {
    color: #ffffff;
}
.dark-section .section-subtitle {
    color: var(--color-text-dark-muted);
}

.light-section {
    color: var(--color-text-light);
}
.light-section .section-title {
    color: var(--color-navy);
}
.light-section .section-subtitle {
    color: var(--color-text-light-muted);
}

/* --- Corporate Button --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--color-crimson);
    color: #ffffff;
    border: 1px solid var(--color-crimson);
}

.btn-primary:hover {
    background-color: var(--color-crimson-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.25);
}

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

.btn-outline:hover {
    background-color: rgba(181, 144, 73, 0.08);
    transform: translateY(-1px);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* --- Official Navigation Bar (Dark Glass Pinned to Top) --- */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: var(--transition-smooth);
}

.header-glass {
    background-color: rgba(10, 14, 26, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

#main-header.header-scrolled {
    background-color: #070a14;
    border-bottom: 1.5px solid var(--color-gold);
    box-shadow: var(--shadow-md);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    color: var(--color-text-dark-muted);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    padding: 6px 0;
}

.nav-link:hover {
    color: var(--color-gold);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-nav-toggle {
    display: none;
    background: transparent;
    color: #ffffff;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
}

/* --- Mobile Drawer Menu --- */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 26, 0.98);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    opacity: 0;
    pointer-events: none;
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    color: #ffffff;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    width: 80%;
}

.mobile-nav-link {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: #cbd5e1;
    transition: var(--transition-smooth);
}

.mobile-nav-link:hover {
    color: #ffffff;
}

/* ==========================================
   Hybrid Section Colors & Themes
   ========================================== */

/* 1. Hero Section (Dark Theme) */
.hero-section {
    background-color: var(--bg-dark);
    color: var(--color-text-dark);
    min-height: 95vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 140px 20px 80px 20px;
    z-index: 10;
    position: relative;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(181, 144, 73, 0.1);
    border: 1px solid rgba(181, 144, 73, 0.3);
    border-radius: 4px;
    padding: 6px 16px;
    margin-bottom: 25px;
}

.hero-badge .badge-icon {
    color: var(--color-gold);
    font-size: 0.85rem;
}

.hero-badge .badge-text {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-gold);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 3.6rem;
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.55);
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--color-text-dark-muted);
    max-width: 780px;
    margin-bottom: 35px;
}

/* CA Widget (Sleek Dark Theme) */
.contract-widget {
    background-color: #111827;
    border: 1.5px solid var(--color-gold);
    border-radius: 4px;
    padding: 18px 24px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 600px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    position: relative;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 8px;
}

.contract-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 1px;
}

.widget-status {
    font-size: 0.72rem;
    font-weight: 700;
    color: #4ade80;
    background-color: rgba(74, 222, 128, 0.08);
    padding: 2px 8px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.contract-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.contract-address {
    font-family: monospace;
    font-size: 1.05rem;
    color: #ffffff;
    word-break: break-all;
    user-select: all;
    font-weight: 600;
}

.copy-btn {
    background-color: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--color-text-dark-muted);
    width: 38px;
    height: 38px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 10;
}

.copy-btn:hover {
    color: #ffffff;
    background-color: rgba(181, 144, 73, 0.15);
    border-color: var(--color-gold);
}

.tooltip-text {
    visibility: hidden;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    color: var(--color-navy);
    text-align: center;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
    font-weight: 600;
}

.copy-btn:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.hero-ctas {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
}

/* Floating Logo Rings */
.hero-logo-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    margin-top: 15px;
}

.hero-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    border: 3px double var(--color-gold);
    background-color: #ffffff;
    position: relative;
    z-index: 5;
    box-shadow: var(--shadow-md);
}

.official-seal-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 1px dashed rgba(181, 144, 73, 0.45);
    animation: breathingPulse 4s ease-in-out infinite;
}

@keyframes breathingPulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.45; }
    50% { transform: translate(-50%, -50%) scale(1.06); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.45; }
}

/* 2. Tweet Section (Light Theme) */
.tweet-section {
    background-color: var(--bg-light-section);
    border-top: 1px solid var(--border-color-light);
    border-bottom: 1px solid var(--border-color-light);
}

.tweet-embed-wrapper {
    box-shadow: var(--shadow-card);
    border-radius: 12px;
    background: transparent;
    padding: 10px;
}

/* 3. About Section (White Theme) */
.about-section {
    background-color: var(--bg-light);
    color: var(--color-text-light);
}

.about-section .section-title {
    color: var(--color-navy);
}

.about-section .section-subtitle {
    color: var(--color-text-light-muted);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
}

.badge-small {
    display: inline-block;
    background-color: rgba(181, 144, 73, 0.1);
    color: var(--color-gold);
    border: 1px solid rgba(181, 144, 73, 0.3);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 3px;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.about-text {
    color: var(--color-text-light-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.about-text:first-of-type::first-letter {
    font-family: var(--font-serif);
    font-size: 3.2rem;
    font-weight: 700;
    float: left;
    line-height: 0.85;
    padding: 4px 10px 0 0;
    color: var(--color-gold);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 4px;
    background-color: #f1f5f9;
    border: 1px solid var(--border-color-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-navy);
    font-size: 1.05rem;
    flex-shrink: 0;
}

.feature-text {
    line-height: 1.5;
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.feature-text strong {
    color: var(--color-navy);
}

/* Project Manifesto Visual Sheet */
.charter-document {
    background-color: #ffffff;
    border: 1px solid var(--border-color-light);
    border-radius: 4px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.charter-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-navy);
    margin-bottom: 20px;
}

.charter-header i {
    font-size: 20px;
}

.charter-header h3 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.charter-article strong {
    display: block;
    font-size: 0.78rem;
    color: var(--color-gold);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.charter-article p {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--color-text-light-muted);
}

.charter-divider {
    height: 1px;
    background-color: #e2e8f0;
    margin: 15px 0;
}

.charter-stamp-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 25px;
    color: #94a3b8;
}

.charter-seal-icon {
    font-size: 12px;
}

.charter-seal-text {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* 4. Tokenomics Section (Dark Background, Classy White Cards) */
.tokenomics-section {
    background-color: var(--bg-dark-section);
    border-top: 1px solid var(--border-color-dark);
    border-bottom: 1px solid var(--border-color-dark);
}

.token-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.token-card {
    background-color: #ffffff; /* Classy White Card */
    border: 1.5px solid var(--border-color-light);
    border-radius: 4px;
    padding: 35px 24px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    color: var(--color-text-light);
    position: relative;
    overflow: hidden;
}

.token-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-gold), transparent);
}

.token-card:hover {
    border-color: var(--color-gold);
    box-shadow: 0 10px 30px rgba(181, 144, 73, 0.12);
    transform: translateY(-4px);
}

.token-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 10px;
    font-family: var(--font-serif);
}

.token-card-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.token-card-caption {
    font-size: 0.88rem;
    color: var(--color-text-light-muted);
    line-height: 1.5;
}

/* 5. How To Buy Section (Soft Light Grey Theme) */
.how-to-buy-section {
    background-color: var(--bg-light-alt);
    color: var(--color-text-light);
    border-bottom: 1px solid var(--border-color-light);
}

.how-to-buy-section .section-title {
    color: var(--color-navy);
}

.how-to-buy-section .section-subtitle {
    color: var(--color-text-light-muted);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.step-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color-light);
    border-radius: 4px;
    padding: 35px 25px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.step-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-gold), transparent);
}

.step-card:hover {
    border-color: var(--color-gold);
    box-shadow: 0 10px 30px rgba(181, 144, 73, 0.1);
    transform: translateY(-4px);
}

.step-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--color-gold);
    border: 1px solid rgba(181, 144, 73, 0.4);
    padding: 2px 8px;
    border-radius: 2px;
    margin-bottom: 15px;
}

.step-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 12px;
}

.step-desc {
    color: var(--color-text-light-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.step-link {
    color: var(--color-crimson);
    text-decoration: underline;
    font-weight: 600;
}

.step-link:hover {
    color: var(--color-crimson-hover);
}

/* 6. Call to Action Banner (Dark Theme) */
.cta-banner {
    background-color: var(--bg-dark);
}

.cta-card {
    background-color: var(--bg-dark-section);
    border-top: 4px solid var(--color-gold);
    border-bottom: 1px solid var(--border-color-dark);
    border-radius: 4px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    color: #ffffff;
}

.cta-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-desc {
    color: var(--color-text-dark-muted);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto 35px auto;
    line-height: 1.6;
}

.cta-social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-telegram {
    background-color: #0088cc;
    color: white;
}
.btn-telegram:hover {
    background-color: #0077b5;
    transform: translateY(-1px);
}

.btn-twitter {
    background-color: #1e293b;
    color: white;
    border: 1px solid #475569;
}
.btn-twitter:hover {
    background-color: #0f172a;
    transform: translateY(-1px);
}

.btn-chart {
    background-color: transparent;
    color: var(--color-gold);
    border: 1.5px solid var(--color-gold);
}
.btn-chart:hover {
    background-color: rgba(181, 144, 73, 0.1);
    transform: translateY(-1px);
}

/* 7. Footer (Dark Theme) */
#main-footer {
    background-color: #06080f;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 65px 20px 40px 20px;
    color: var(--color-text-dark-muted);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 45px;
}

.footer-brand {
    max-width: 400px;
}

.footer-brand .logo-text {
    color: #ffffff;
}

.footer-brand-desc {
    color: var(--color-text-dark-muted);
    font-size: 0.9rem;
    margin-top: 15px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-title {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.footer-link {
    color: var(--color-text-dark-muted);
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--color-gold);
}

.footer-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.05);
    margin-bottom: 30px;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.footer-disclaimer {
    color: rgba(148, 163, 184, 0.35);
    font-size: 0.75rem;
    line-height: 1.6;
    text-align: justify;
}

/* --- Responsive Media Queries --- */

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .section-padding {
        padding: 80px 20px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .section-title {
        font-size: 2.1rem;
    }
    .nav-menu {
        display: none;
    }
    .mobile-nav-toggle {
        display: block;
    }
    .about-visual {
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
    .hero-ctas {
        flex-direction: column;
        gap: 12px;
        align-items: center;
        width: 100%;
    }
    .hero-ctas .btn {
        width: 100%;
        max-width: 320px;
    }
    .header-container {
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    .contract-widget {
        padding: 14px 16px;
    }
    .contract-address {
        font-size: 0.88rem;
    }
    .cta-card {
        padding: 40px 15px;
    }
    .cta-title {
        font-size: 1.7rem;
    }
}
