/* ============================================
   HorseCoin - Freedom & Art Design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&family=Nunito:wght@400;600;700;800&family=Noto+Sans+SC:wght@400;500;600;700&display=swap');

:root {
    --cream: #fdf8f3;
    --cream-dark: #f5ede3;
    --gold: #d4a84b;
    --gold-dark: #b8923f;
    --brown: #8b6914;
    --brown-dark: #5c4a12;
    --text: #3d3d3d;
    --text-light: #666666;
    --white: #ffffff;
    
    --font-main: 'Noto Sans SC', 'Nunito', sans-serif;
    --font-fun: 'Comic Neue', 'Noto Sans SC', cursive;
    --font-cn: 'Noto Sans SC', sans-serif;
    
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius: 20px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--cream);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ===== Typography ===== */
h1, h2, h3 {
    font-family: var(--font-fun);
    font-weight: 700;
    color: var(--brown-dark);
}

h1 { font-size: clamp(3rem, 10vw, 6rem); letter-spacing: 2px; }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }

p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    font-family: var(--font-cn);
}

/* Chinese text styling */
p:lang(zh), .cn-text {
    font-family: var(--font-cn);
    font-weight: 400;
}

a {
    color: var(--gold-dark);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--brown);
}

/* ===== Layout ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(253, 248, 243, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-fun);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brown-dark);
    text-decoration: none;
}

.logo img {
    width: 48px;
    height: 48px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--brown-dark);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 6rem 2rem;
    background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: url('../images/hero-bg.png') center bottom / cover no-repeat;
    opacity: 0.6;
    mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-mascot {
    width: 220px;
    height: 220px;
    margin-bottom: 2rem;
    animation: bounce 3s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(180,130,50,0.3));
    border-radius: 50%;
}

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

.hero h1 {
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--brown-dark) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-family: var(--font-fun);
    font-size: 1.5rem;
    color: var(--gold-dark);
    margin-bottom: 1.5rem;
    letter-spacing: 3px;
}

.hero p {
    margin: 0 auto 2rem;
    font-size: 1.2rem;
}

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gold);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--gold-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 168, 75, 0.4);
    color: var(--white);
}

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

.btn-outline:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-3px);
}

/* ===== What is Section ===== */
.what-is {
    background: var(--white);
    position: relative;
}

.what-is .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.what-is-content h2 {
    margin-bottom: 1.5rem;
}

.what-is-content p {
    margin-bottom: 1.5rem;
}

.what-is-image {
    display: flex;
    justify-content: center;
    position: relative;
}

.what-is-image img {
    max-width: 350px;
    width: 100%;
    animation: float 4s ease-in-out infinite;
    border-radius: 50%;
    filter: drop-shadow(0 20px 40px rgba(180,130,50,0.25));
}

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

.speech-bubble {
    position: absolute;
    top: 20%;
    right: 0;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-family: var(--font-fun);
    font-weight: 700;
    color: var(--brown-dark);
    animation: popIn 0.5s ease-out;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30px;
    border: 10px solid transparent;
    border-top-color: var(--white);
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ===== Getting Started ===== */
.getting-started {
    background: var(--cream);
}

.getting-started h2 {
    text-align: center;
    margin-bottom: 4rem;
}

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

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--gold);
    color: var(--white);
    border-radius: 50%;
    font-family: var(--font-fun);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.step h3 {
    margin-bottom: 1rem;
}

.step p {
    margin: 0 auto;
}

.step-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--gold-dark);
    font-weight: 600;
    border-bottom: 2px solid var(--gold);
}

/* ===== Features / Values ===== */
.features {
    background: var(--white);
}

.features h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.features > .container > p {
    text-align: center;
    margin: 0 auto 4rem;
}

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

.feature-card {
    background: var(--cream);
    padding: 2.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 70px;
    height: 70px;
    min-width: 70px;
    min-height: 70px;
    max-width: 70px;
    max-height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.feature-icon img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 16px;
}

.inline-icon {
    width: 32px;
    height: 32px;
    vertical-align: middle;
    margin-right: 8px;
    border-radius: 6px;
}

.feature-card h3 {
    margin-bottom: 1rem;
}

/* ===== Foundation & NFT ===== */
.foundation {
    background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.foundation h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.foundation > .container > p {
    text-align: center;
    margin: 0 auto 3rem;
}

.foundation-info {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius);
    margin-bottom: 4rem;
    box-shadow: var(--shadow);
}

.foundation-info h3 {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.requirements {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--cream);
    border-radius: 50px;
    font-weight: 600;
}

.requirement i {
    color: var(--gold);
    font-size: 1.2rem;
}

/* NFT Section */
.nft-section h3 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.nft-subtitle {
    text-align: center;
    color: var(--gold-dark);
    font-family: var(--font-fun);
    margin-bottom: 2rem;
}

.nft-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.nft-card {
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.nft-card:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: var(--shadow-hover);
}

.nft-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nft-card .nft-number {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
    font-family: var(--font-fun);
    font-weight: 700;
    text-align: center;
}

.nft-benefits {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.nft-benefit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.nft-benefit i {
    color: var(--gold);
}

/* ===== Roadmap ===== */
.roadmap {
    background: var(--white);
}

.roadmap h2 {
    text-align: center;
    margin-bottom: 4rem;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-radius: 2px;
}

.timeline-item {
    text-align: center;
    position: relative;
}

.timeline-dot {
    width: 24px;
    height: 24px;
    background: var(--gold);
    border: 4px solid var(--white);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 4px var(--gold);
}

.timeline-item h3 {
    margin-bottom: 1rem;
    color: var(--gold-dark);
}

.timeline-item p {
    font-size: 0.95rem;
    margin: 0 auto;
}

/* ===== Community ===== */
.community {
    background: var(--cream);
    text-align: center;
}

.community h2 {
    margin-bottom: 1rem;
}

.community > .container > p {
    margin: 0 auto 3rem;
}

.community-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.community-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 3rem;
    background: var(--white);
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow);
    min-width: 180px;
}

.community-link:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.community-link i {
    font-size: 3rem;
    color: var(--gold);
}

.community-link span {
    font-weight: 700;
    color: var(--text);
}

/* ===== Footer ===== */
.footer {
    background: var(--brown-dark);
    color: var(--cream);
    padding: 4rem 0 2rem;
}

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

.footer-links-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-fun);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 1rem;
}

.footer-brand img {
    width: 40px;
    height: 40px;
}

.footer-desc {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.footer-links h4 {
    color: var(--gold);
    font-family: var(--font-fun);
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    display: block;
    padding: 0.3rem 0;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .what-is .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .what-is-image {
        order: -1;
    }
    
    .what-is-content p {
        margin: 0 auto 1.5rem;
        padding: 0 1rem;
        max-width: 90%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .steps {
        grid-template-columns: 1fr;
        gap: 0;
        padding-left: 2.5rem;
        position: relative;
        max-width: none;
    }
    
    .steps::before {
        content: '';
        position: absolute;
        top: 25px;
        bottom: 25px;
        left: 24px;
        width: 3px;
        background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dark) 100%);
        border-radius: 2px;
    }
    
    .step {
        text-align: left;
        padding: 0 0 1.5rem 1.5rem;
        position: relative;
    }
    
    .step:last-child {
        padding-bottom: 0;
    }
    
    .step-number {
        position: absolute;
        left: -2.5rem;
        top: 0;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin-bottom: 0;
    }
    
    .step h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .step p {
        font-size: 0.9rem;
        margin: 0;
    }
    
    .step-link {
        font-size: 0.85rem;
        margin-top: 0.5rem;
    }
    
    .timeline {
        grid-template-columns: 1fr;
        gap: 0;
        padding-left: 2rem;
        position: relative;
    }
    
    .timeline::before {
        content: '';
        position: absolute;
        top: 12px;
        bottom: 12px;
        left: 11px;
        width: 4px;
        height: auto;
        background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dark) 100%);
        border-radius: 2px;
    }
    
    .timeline-item {
        text-align: left;
        padding: 0 0 2rem 1.5rem;
        position: relative;
    }
    
    .timeline-item:last-child {
        padding-bottom: 0;
    }
    
    .timeline-dot {
        position: absolute;
        left: -2rem;
        top: 0;
        margin: 0;
        width: 20px;
        height: 20px;
        box-shadow: 0 0 0 3px var(--gold);
    }
    
    .timeline-item h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .timeline-item p {
        font-size: 0.9rem;
        margin: 0;
    }
    
    .nft-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--cream);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        box-shadow: var(--shadow);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero-mascot {
        width: 150px;
        height: 150px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .nft-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .community-links {
        flex-direction: row;
        justify-content: center;
        gap: 0.75rem;
    }
    
    .community-link {
        flex: 1;
        min-width: auto;
        padding: 1rem 0.5rem;
        gap: 0.5rem;
    }
    
    .community-link i {
        font-size: 1.8rem;
    }
    
    .community-link span {
        font-size: 0.75rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-main {
        text-align: center;
    }
    
    .footer-brand {
        justify-content: center;
    }
    
    .footer-links-wrapper {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links h4 {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .footer-links a {
        font-size: 0.8rem;
        padding: 0.15rem 0;
    }
    
    .footer-desc {
        font-size: 0.85rem;
    }
    
    .footer-bottom {
        font-size: 0.75rem;
        padding-top: 1.5rem;
    }
    
    .footer {
        padding: 2.5rem 0 1.5rem;
    }
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
