:root {
    --primary-background: #FFFFFF;
    --secondary-background: #F3F4F6;
    --accent-background: #1E3A8A;
    --dark-background: #0F172A;
    --text-on-white: #1F2937;
    --text-on-dark: #F9FAF8;
    --muted-text: #6B7280;
    --accent-color: #3B82F6;
    --border-radius: 0.75rem;
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-background);
    color: var(--text-on-white);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

button {
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

button:active {
    transform: scale(0.98);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rounded-xl {
    border-radius: var(--border-radius);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.875rem, 8vw, 2.5rem);
    }

    h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    h3 {
        font-size: clamp(1.25rem, 5vw, 1.75rem);
    }

    p,
    li,
    a {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

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

/* ===== header ===== */
#header {
    background-color: var(--primary-background);
}

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

#mobile-menu {
    transition: opacity 0.3s ease-in-out;
}

.js-mobile-menu-toggle i {
    color: var(--text-on-white);
}

.js-mobile-menu-close i {
    color: var(--text-on-white);
}

/* ===== hero ===== */
#hero {
    position: relative;
    overflow: hidden;
}

.js-hero-bg-pattern {
    background-image: radial-gradient(circle at 2px 2px, rgba(59, 130, 246, 0.15) 1px, transparent 0);
    background-size: 40px 40px;
}

#hero::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    z-index: 1;
}

/* ===== about_section ===== */
#about {
    overflow: hidden;
}

#about img {
    height: 500px;
    object-fit: cover;
}

@media (max-width: 767px) {
    #about img {
        height: 300px;
    }

    #about h2 {
        font-size: 16px;
        line-height: 1.2;
    }

    #about p {
        font-size: 14px;
        line-height: 1.3;
        hyphens: auto;
    }
}

/* ===== blockchain_info ===== */
#blockchain {
    hyphens: auto;
}

.prose h3 {
    margin-top: 2rem;
}

.prose p {
    margin-bottom: 1.5rem;
}

/* ===== nft_guide ===== */
.hyphens-auto {
    hyphens: auto
}

img {
    object-fit: cover;
    display: block
}

#nft-basics {
    background-color: var(--primary-background)
}

/* ===== web3_info ===== */
#web3 .hyphens-auto {
    hyphens: auto
}

#web3 .container {
    width: 100%
}

#web3 .bi {
    color: inherit
}

/* ===== minting_process ===== */
#minting {
    hyphens: auto;
}

#minting .bi {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== storage_info ===== */
#storage {
    hyphens: auto;
}

#storage .container {
    width: 100%;
}

/* ===== security_section ===== */
#security {
    background-color: var(--dark-background);
    hyphens: auto;
}

#security h2,
#security h3 {
    color: var(--text-on-dark);
}

#security p {
    color: var(--text-on-dark);
}

.js-security-card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* ===== tips_section ===== */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

#tips {
    hyphens: auto;
}

.bi {
    line-height: 1;
}

/* ===== faq_section ===== */
.js-faq-content {
    transition: max-height 0.3s ease-out;
}

.js-faq-item.active .js-faq-content {
    max-height: 1000px;
}

.js-faq-item.active i {
    transform: rotate(180deg);
}

button:hover {
    opacity: 0.9;
}

/* ===== reviews ===== */
#reviews {
    background-color: var(--secondary-background);
}

p {
    hyphens: auto;
    line-height: 1.3;
}

/* ===== footer ===== */
#footer {
    hyphens: auto;
}

#footer a {
    text-decoration: none;
}

#footer h3 {
    line-height: 1.2;
}

#footer .bi {
    font-size: 1.2rem;
}