/* CSS Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* CSS Variables */
:root {
    --bg: #0F0B0A;
    --card: #1A1512;
    --text: #F5E6D3;
    --muted: #B8A082;
    --accent: #D4AF37;
    --accent-2: #F4D03F;
    --line: #2D2419;
    --warning: #FFD700;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Typography */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Swiper */
.swiper {
    width: 345.6px;
    height: 473.6px;
  }

  .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 22px;
    font-weight: bold;
    color: #fff;
  }
  .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }


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

@media (min-width: 640px) {
    .container {
        padding: 0 var(--space-lg);
    }
}

.stack-xs > * + * { margin-top: var(--space-xs); }
.stack-sm > * + * { margin-top: var(--space-sm); }
.stack-md > * + * { margin-top: var(--space-md); }
.stack-lg > * + * { margin-top: var(--space-lg); }
.stack-xl > * + * { margin-top: var(--space-xl); }

.grid-3 {
    display: grid;
    gap: var(--space-lg);
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.grid-4 {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: 1fr;
}

@media (min-width: 480px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-lg);
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

@media (min-width: 768px) {
    h1 { font-size: var(--text-6xl); }
    h2 { font-size: var(--text-4xl); }
    h3 { font-size: var(--text-3xl); }
}

p {
    color: var(--muted);
    font-size: var(--text-base);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-lg);
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px; /* Touch target */
}

.btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg);
}

.btn-primary:hover:not(:disabled) {
    background-color: #B8941F;
    transform: translateY(-1px);
}

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

.btn-outline:hover:not(:disabled) {
    background-color: var(--card);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.btn-sm {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--text-sm);
    min-height: 36px;
}

.btn-x {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: var(--bg);
    border: none;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.btn-x:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 100%);
}

.btn-x:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 2px;
}

/* Cards */
.card {
    background-color: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-2xl);
    padding: var(--space-lg);
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
}

.card h3 {
    margin-bottom: var(--space-sm);
    color: var(--text);
}

.card p {
    color: var(--muted);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    background-color: rgba(14, 17, 22, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s ease;
}

.logo a:hover {
    color: var(--accent);
    transform: scale(1.05);
}

.logo a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.logo-text {
    font-size: var(--text-xl);
    font-weight: 700;
}

.nav-list {
    display: none;
    list-style: none;
    gap: var(--space-lg);
    align-items: center;
}

@media (min-width: 768px) {
    .nav-list {
        display: flex;
    }
}

.nav-link {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.nav-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Mobile Menu */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

.hamburger {
    width: 24px;
    height: 2px;
    background-color: var(--text);
    transition: all 0.3s ease;
}

.menu-toggle[aria-expanded="true"] .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle[aria-expanded="true"] .hamburger:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation */
@media (max-width: 767px) {
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--card);
        border-top: 1px solid var(--line);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        display: flex;
        flex-direction: column;
        padding: var(--space-lg);
        gap: var(--space-md);
    }
    
    .nav-link {
        font-size: var(--text-lg);
    }
}

/* Hero Section */
.hero {
    padding: calc(80px + var(--space-3xl)) 0 var(--space-3xl);
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2xl);
}

@media (min-width: 768px) {
    .hero-content {
        flex-direction: row;
        text-align: left;
        gap: var(--space-3xl);
    }
}

.hero-text {
    flex: 1;
}

.hero-title {
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 50%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--text-lg);
    margin-bottom: var(--space-xl);
    color: var(--muted);
}

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

@media (min-width: 640px) {
    .hero-actions {
        flex-direction: row;
        gap: var(--space-md);
    }
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}

@media (min-width: 768px) {
    .trust-badges {
        justify-content: flex-start;
    }
}

.badge {
    padding: var(--space-xs) var(--space-sm);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    color: var(--muted);
    background-color: var(--card);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-coin {
    max-width: 200px;
    height: auto;
    animation: float 6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .hero-coin {
        animation: none;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

.section-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.section-content h2 {
    margin-bottom: var(--space-lg);
}

.section-content p {
    margin-bottom: var(--space-lg);
    font-size: var(--text-lg);
}

/* Value Props */
.value-props {
    background-color: var(--card);
}

/* How It Works */
.feature-list {
    list-style: none;
    text-align: left;
    max-width: 400px;
    margin: var(--space-lg) auto;
}

.feature-list li {
    position: relative;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-sm);
    color: var(--muted);
}

.feature-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Peg & Reserves */
.peg-reserves {
    text-align: center;
}

.peg-reserves-title {
    margin-bottom: var(--space-lg);
}

.stat-card {
    background-color: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--muted);
    margin-bottom: var(--space-xs);
    font-weight: 500;
}

.stat-value {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text);
}

/* Responsive adjustments for stat cards */
@media (min-width: 480px) {
    .stat-value {
        font-size: var(--text-2xl);
    }
}

@media (min-width: 768px) {
    .stat-card {
        padding: var(--space-xl);
    }
    
    .stat-label {
        font-size: var(--text-base);
    }
    
    .stat-value {
        font-size: var(--text-3xl);
    }
}

@media (max-width: 479px) {
    .stat-card {
        padding: var(--space-md);
    }
    
    .stat-label {
        font-size: var(--text-xs);
    }
    
    .stat-value {
        font-size: var(--text-lg);
    }
}

.data-note {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--muted);
    margin: var(--space-lg) 0;
    font-style: italic;
}

/* Get USD2 */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin: var(--space-lg) 0;
}

@media (min-width: 640px) {
    .action-buttons {
        flex-direction: row;
        justify-content: center;
        gap: var(--space-md);
    }
}

.contract-section {
    margin: var(--space-xl) 0;
    text-align: center;
}

.contract-section label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    color: var(--text);
}

.contract-input {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    max-width: 400px;
    margin: 0 auto;
}

.contract-input input {
    flex: 1;
    padding: var(--space-sm);
    background-color: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    color: var(--text);
    font-family: monospace;
    font-size: var(--text-sm);
}

.copy-btn {
    background-color: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.copy-btn:hover {
    background-color: #B8941F;
}

.copy-btn:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 2px;
}

.disclaimer {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--muted);
    margin-top: var(--space-lg);
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) 0;
    background: none;
    border: none;
    color: var(--text);
    font-size: var(--text-lg);
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-question:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--muted);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.open {
    max-height: 200px;
}

.faq-answer p {
    padding-bottom: var(--space-lg);
    margin: 0;
}

/* Footer */
.footer {
    background-color: var(--card);
    border-top: 1px solid var(--line);
    padding: var(--space-xl) 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-nav {
    display: flex;
    gap: var(--space-lg);
}

.footer-link {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

@media (min-width: 768px) {
    .footer-right {
        flex-direction: row;
        gap: var(--space-lg);
    }
}

.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    color: var(--muted);
    transition: color 0.2s ease;
}

.social-link:hover {
    color: var(--accent);
}

.footer-domain {
    font-size: var(--text-sm);
    color: var(--muted);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background-color: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-2xl);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--line);
}

.modal-header h3 {
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--text);
}

.modal-close:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.modal-body {
    padding: var(--space-lg);
}

/* Toast */
.toast {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    background-color: var(--accent);
    color: var(--bg);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-lg);
    font-weight: 600;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Focus management */
.modal[aria-hidden="true"] {
    display: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --line: #555;
        --muted: #ddd;
        --accent: #FFD700;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .modal,
    .toast {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
