/* ==========================================================================
   CSS Reset & Base Styles
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: #1A1C1E;
    background-color: #F8F9FA;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 16px;
}

h1 {
    font-size: clamp(40px, 5vw, 64px);
}

h2 {
    font-size: clamp(32px, 4vw, 48px);
}

h3 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 500;
}

h4 {
    font-size: clamp(20px, 2.5vw, 24px);
    font-weight: 500;
}

p {
    margin-bottom: 16px;
    color: #495057;
}

code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    background-color: #F1F3F4;
    padding: 4px 8px;
    border-radius: 4px;
}

/* ==========================================================================
   Color Variables
   ========================================================================== */

:root {
    /* Primary Colors */
    --primary-500: #00A78E;
    --primary-600: #008C76;
    --primary-100: #E6F6F4;
    
    /* Secondary Colors */
    --secondary-500: #0D6EFD;
    
    /* Neutral Colors */
    --neutral-50: #F8F9FA;
    --neutral-0: #FFFFFF;
    --neutral-900: #1A1C1E;
    --neutral-700: #495057;
    --neutral-200: #E9ECEF;
    
    /* Semantic Colors */
    --success-500: #198754;
    --warning-500: #FFC107;
    --error-500: #DC3545;
    
    /* Spacing */
    --xs: 8px;
    --sm: 16px;
    --md: 24px;
    --lg: 32px;
    --xl: 48px;
    --xxl: 64px;
    --xxxl: 96px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    /* Shadows */
    --shadow-card: 0 4px 12px rgba(0, 167, 142, 0.08);
    --shadow-card-hover: 0 8px 24px rgba(0, 167, 142, 0.12);
}

/* ==========================================================================
   Button Components
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    min-height: 48px;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-600);
    color: var(--neutral-0);
    box-shadow: var(--shadow-card);
}

.btn-primary:hover {
    background-color: var(--primary-500);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.btn-secondary {
    background-color: var(--neutral-0);
    color: var(--neutral-900);
    border: 1px solid var(--neutral-200);
}

.btn-secondary:hover {
    background-color: var(--neutral-50);
    border-color: var(--primary-500);
    color: var(--primary-500);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-500);
    border: 2px solid var(--primary-500);
}

.btn-outline:hover {
    background-color: var(--primary-500);
    color: var(--neutral-0);
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--neutral-0);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--neutral-200);
    z-index: 1000;
    padding: 16px 0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--primary-500);
}

.brand-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: var(--neutral-900);
}

.token-symbol {
    background-color: var(--primary-100);
    color: var(--primary-600);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

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

.nav-link {
    text-decoration: none;
    color: var(--neutral-700);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-500);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

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

.price-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: var(--primary-100);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.price-label {
    font-weight: 600;
    color: var(--neutral-900);
}

.price-value {
    font-weight: 600;
    color: var(--primary-600);
}

.price-change {
    font-size: 12px;
    font-weight: 600;
}

.price-change.positive {
    color: var(--success-500);
}

.price-change.negative {
    color: var(--error-500);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
}

.menu-icon {
    width: 24px;
    height: 24px;
    color: var(--neutral-700);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    padding: 120px 0 var(--xxxl);
    background: linear-gradient(135deg, var(--neutral-50) 0%, var(--primary-100) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-100) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--xxl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    margin-bottom: var(--md);
    line-height: 1.2;
}

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

.hero-subtitle {
    font-size: 20px;
    color: var(--neutral-700);
    margin-bottom: var(--xl);
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: var(--lg);
    margin-bottom: var(--xl);
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 24px;
    color: var(--primary-500);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--neutral-700);
}

.hero-actions {
    display: flex;
    gap: var(--sm);
    margin-bottom: var(--xl);
}

.contract-info {
    display: flex;
    align-items: center;
    gap: var(--sm);
    padding: var(--sm);
    background-color: var(--neutral-0);
    border-radius: var(--radius-sm);
    border: 1px solid var(--neutral-200);
    max-width: fit-content;
}

.contract-label {
    font-size: 14px;
    color: var(--neutral-700);
    font-weight: 500;
}

.contract-address {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--neutral-900);
    background: none;
    padding: 0;
    border: none;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
    color: var(--neutral-700);
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background-color: var(--primary-100);
    color: var(--primary-500);
}

.copy-icon {
    width: 16px;
    height: 16px;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.token-card {
    background-color: var(--neutral-0);
    border-radius: var(--radius-lg);
    padding: var(--lg);
    box-shadow: var(--shadow-card-hover);
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--neutral-200);
}

.token-header {
    display: flex;
    align-items: center;
    gap: var(--sm);
    margin-bottom: var(--md);
    padding-bottom: var(--sm);
    border-bottom: 1px solid var(--neutral-200);
}

.token-logo {
    width: 48px;
    height: 48px;
    background-color: var(--primary-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.token-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-500);
}

.token-info h3 {
    margin: 0;
    font-size: 18px;
    color: var(--neutral-900);
}

.token-type {
    font-size: 14px;
    color: var(--neutral-700);
}

.token-details {
    display: flex;
    flex-direction: column;
    gap: var(--sm);
}

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

.detail-label {
    font-size: 14px;
    color: var(--neutral-700);
}

.detail-value {
    font-weight: 600;
    color: var(--neutral-900);
}

.price-highlight {
    color: var(--primary-500);
    font-size: 18px;
}

.network-tag {
    background-color: var(--primary-100);
    color: var(--primary-600);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */

.section-header {
    text-align: center;
    margin-bottom: var(--xxl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    margin-bottom: var(--sm);
    color: var(--neutral-900);
}

.section-subtitle {
    font-size: 18px;
    color: var(--neutral-700);
    line-height: 1.6;
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about {
    padding: var(--xxxl) 0;
    background-color: var(--neutral-0);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--lg);
}

.about-card {
    background-color: var(--neutral-0);
    padding: var(--lg);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid var(--neutral-200);
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.card-icon {
    width: 64px;
    height: 64px;
    background-color: var(--primary-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--md);
}

.card-icon .icon {
    width: 32px;
    height: 32px;
    color: var(--primary-500);
}

.card-title {
    margin-bottom: var(--sm);
    color: var(--neutral-900);
}

.card-description {
    color: var(--neutral-700);
    line-height: 1.6;
}

/* ==========================================================================
   Features Section
   ========================================================================== */

.features {
    padding: var(--xxxl) 0;
    background-color: var(--neutral-50);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--lg);
}

.feature-card {
    background-color: var(--neutral-0);
    padding: var(--lg);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid var(--neutral-200);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background-color: var(--primary-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--md);
}

.feature-icon .icon {
    width: 32px;
    height: 32px;
    color: var(--primary-500);
}

.feature-title {
    margin-bottom: var(--sm);
    color: var(--neutral-900);
}

.feature-description {
    color: var(--neutral-700);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   Roadmap Section
   ========================================================================== */

.roadmap {
    padding: var(--xxxl) 0;
    background-color: var(--neutral-0);
}

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

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

.timeline-item {
    position: relative;
    margin-bottom: var(--xxl);
    padding-left: 80px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 22px;
    top: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--neutral-200);
    border: 3px solid var(--neutral-0);
}

.timeline-item.completed .timeline-marker {
    background-color: var(--success-500);
}

.timeline-item.in-progress .timeline-marker {
    background-color: var(--warning-500);
}

.timeline-content {
    background-color: var(--neutral-0);
    padding: var(--md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--neutral-200);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--sm);
}

.timeline-date {
    font-weight: 600;
    color: var(--primary-500);
    font-size: 14px;
}

.timeline-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.timeline-status.completed {
    background-color: var(--success-500);
    color: var(--neutral-0);
}

.timeline-status.in-progress {
    background-color: var(--warning-500);
    color: var(--neutral-900);
}

.timeline-status.planned {
    background-color: var(--neutral-200);
    color: var(--neutral-700);
}

.timeline-title {
    margin-bottom: var(--sm);
    font-size: 20px;
    color: var(--neutral-900);
}

.timeline-description {
    color: var(--neutral-700);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   Security Section
   ========================================================================== */

.security {
    padding: var(--xxxl) 0;
    background-color: var(--neutral-50);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--lg);
    margin-bottom: var(--xxl);
}

.security-item {
    background-color: var(--neutral-0);
    padding: var(--lg);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid var(--neutral-200);
}

.security-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.security-icon {
    width: 64px;
    height: 64px;
    background-color: var(--primary-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--md);
}

.security-icon .icon {
    width: 32px;
    height: 32px;
    color: var(--primary-500);
}

.security-title {
    margin-bottom: var(--sm);
    color: var(--neutral-900);
}

.security-description {
    color: var(--neutral-700);
    line-height: 1.6;
    margin: 0;
}

.audit-info {
    display: flex;
    justify-content: center;
}

.audit-card {
    background-color: var(--neutral-0);
    padding: var(--xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-card-hover);
    border: 1px solid var(--neutral-200);
    max-width: 500px;
}

.audit-card h3 {
    color: var(--neutral-900);
    margin-bottom: var(--sm);
}

.audit-card p {
    color: var(--neutral-700);
    margin-bottom: var(--md);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact {
    padding: var(--xxxl) 0;
    background-color: var(--neutral-0);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--xxl);
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--lg);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--sm);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background-color: var(--primary-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon .icon {
    width: 24px;
    height: 24px;
    color: var(--primary-500);
}

.contact-details h3 {
    margin-bottom: 4px;
    color: var(--neutral-900);
    font-size: 18px;
}

.contact-details p {
    color: var(--neutral-700);
    margin: 0;
}

.contact-form {
    background-color: var(--neutral-50);
    padding: var(--lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--neutral-200);
}

.form-group {
    margin-bottom: var(--md);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    background-color: var(--neutral-0);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(0, 167, 142, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background-color: var(--neutral-900);
    color: var(--neutral-0);
    padding: var(--xxxl) 0 var(--lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: var(--xxl);
    margin-bottom: var(--xxl);
}

.footer-brand .logo {
    margin-bottom: var(--md);
}

.footer-brand .logo-icon {
    color: var(--primary-500);
}

.footer-brand .brand-text {
    color: var(--neutral-0);
}

.footer-description {
    color: #9CA3AF;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--lg);
}

.footer-column h4 {
    color: var(--neutral-0);
    margin-bottom: var(--md);
    font-size: 16px;
}

.footer-column a {
    display: block;
    color: #9CA3AF;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--lg);
    border-top: 1px solid #374151;
    color: #9CA3AF;
    font-size: 14px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--xl);
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--xl);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--xl);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--sm);
        text-align: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--sm);
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .price-display {
        display: none;
    }
    
    .hero {
        padding: 100px 0 var(--xxl);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--sm);
    }
    
    .hero-actions {
        flex-direction: column;
        gap: var(--sm);
    }
    
    .contract-info {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--xs);
    }
    
    .about-grid,
    .features-grid,
    .security-grid {
        grid-template-columns: 1fr;
        gap: var(--md);
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .roadmap-timeline::before {
        left: 20px;
    }
    
    .timeline-marker {
        left: 12px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }
    
    .hero {
        padding: 80px 0 var(--xl);
    }
    
    .section-header {
        margin-bottom: var(--xl);
    }
    
    .about,
    .features,
    .security,
    .contact {
        padding: var(--xl) 0;
    }
    
    .footer {
        padding: var(--xl) 0 var(--md);
    }
}

/* ==========================================================================
   Animations & Interactions
   ========================================================================== */

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

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Price update animation */
.price-update {
    animation: pulse 0.3s ease-in-out;
}

/* Smooth scrolling offset for fixed header */
section {
    scroll-margin-top: 80px;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-500);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}