:root {
    --bg-primary: #08070a;
    --bg-secondary: #110f14;
    --bg-tertiary: #1a161c;
    
    --wood-100: #f7ebd7;
    --wood-200: #e6c9a8;
    --wood-300: #d4a373;
    --wood-400: #c49a6c;
    --wood-500: #a97142;
    --wood-600: #8b5a2b;
    --wood-700: #6d421b;
    --wood-800: #4a2c0f;
    --wood-900: #2d1a08;
    
    --accent-copper: #e8a87c;
    --accent-bronze: #c38e70;
    --accent-gold: #f4c95d;
    --accent-amber: #ffb347;
    
    --glass-bg: rgba(255, 255, 255, 0.035);
    --glass-bg-hover: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.09);
    --glass-border-hover: rgba(212, 163, 115, 0.3);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    
    --text-primary: #f5f0e8;
    --text-secondary: #b8ad9e;
    --text-muted: #7d7366;
    --text-on-accent: #1a0e05;
    
    --grad-hero: radial-gradient(circle at 30% 10%, #1a120a 0%, #08070a 70%);
    --grad-wood: linear-gradient(135deg, var(--wood-600), var(--wood-400), var(--accent-gold));
    --grad-plank: linear-gradient(90deg, var(--wood-800) 0%, var(--wood-600) 25%, var(--wood-400) 50%, var(--wood-600) 75%, var(--wood-800) 100%);
    
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --container-width: 1200px;
    --header-height: 80px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

@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;
    }
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--grad-wood);
    width: 0%;
    z-index: 1000;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px var(--accent-gold);
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 900;
    border-bottom: 1px solid var(--glass-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
    transition: transform 0.3s ease;
    animation: float-logo 4s ease-in-out infinite;
}

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

.logo:hover { transform: scale(1.05) rotate(-2deg); }

.logo-icon {
    filter: drop-shadow(0 0 10px rgba(244, 201, 93, 0.4));
}

.logo-text {
    background: var(--grad-wood);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.02em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav a:not(.btn) {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.main-nav a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-wood);
    transition: width 0.3s ease;
}

.main-nav a:not(.btn):hover { color: var(--accent-gold); }
.main-nav a:not(.btn):hover::after { width: 100%; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    font-family: inherit;
}

.btn-primary {
    background: var(--grad-wood);
    color: var(--text-on-accent);
    box-shadow: 0 4px 14px rgba(169, 113, 66, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(244, 201, 93, 0.4);
}

.btn-glow { animation: pulse-glow 3s infinite; }

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(244, 201, 93, 0.3), 0 4px 14px rgba(169, 113, 66, 0.3); }
    50% { box-shadow: 0 0 25px rgba(244, 201, 93, 0.5), 0 8px 30px rgba(169, 113, 66, 0.5); }
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--glass-border-hover);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--glass-bg-hover);
    border-color: var(--accent-copper);
    transform: translateY(-2px);
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--grad-hero);
    overflow: hidden;
    padding-top: var(--header-height);
    perspective: 1000px;
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.morph-shape {
    position: absolute;
    top: 20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(232, 168, 124, 0.15) 0%, transparent 60%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 1;
    animation: morph 15s ease-in-out infinite;
}

@keyframes morph {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; transform: scale(1); }
    33% { border-radius: 60% 40% 30% 70% / 50% 60% 40% 60%; transform: scale(1.1); }
    66% { border-radius: 30% 60% 70% 40% / 50% 30% 70% 50%; transform: scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 760px;
    padding-right: 2rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(2.4rem, 5.2vw, 4.2rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--wood-200) 50%, var(--accent-copper) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-glow {
    position: absolute;
    bottom: -20%;
    left: 30%;
    transform: translateX(-50%);
    width: 80%;
    height: 400px;
    background: radial-gradient(ellipse, rgba(232, 168, 124, 0.18) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%) rotateX(55deg) rotateZ(-25deg);
    z-index: 2;
    pointer-events: none;
}

.plank-stack {
    position: relative;
    width: 400px;
    height: 300px;
    transform-style: preserve-3d;
    animation: float-planks 8s ease-in-out infinite;
}

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

.plank {
    position: absolute;
    left: 0;
    width: 350px;
    height: 60px;
    background: var(--grad-plank);
    border-radius: 4px;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.1),
        inset 0 -1px 0 rgba(0,0,0,0.3);
}

.plank::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        repeating-linear-gradient(90deg, transparent 0, transparent 20px, rgba(0,0,0,0.1) 20px, rgba(0,0,0,0.1) 21px),
        repeating-linear-gradient(0deg, transparent 0, transparent 5px, rgba(109, 66, 27, 0.2) 5px, rgba(109, 66, 27, 0.2) 6px);
    border-radius: 4px;
    opacity: 0.6;
}

.p1 { top: 0; animation: plank-slide 6s ease-in-out infinite; }
.p2 { top: 70px; left: 20px; animation: plank-slide 6s ease-in-out infinite 1s; }
.p3 { top: 140px; left: -10px; animation: plank-slide 6s ease-in-out infinite 2s; }
.p4 { top: 210px; left: 15px; animation: plank-slide 6s ease-in-out infinite 3s; }

@keyframes plank-slide {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

.content-wrapper {
    padding: 5rem 1.5rem;
    position: relative;
}

.content-section {
    margin-bottom: 4.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.content-section h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary), var(--wood-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.content-section h3 {
    font-size: 1.35rem;
    margin: 2rem 0 1rem;
    color: var(--accent-copper);
    font-weight: 700;
}

.content-section p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.text-link {
    color: var(--accent-gold);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    font-weight: 600;
}

.text-link:hover {
    border-bottom-color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(244, 201, 93, 0.5);
}

.card {
    padding: 1.75rem;
    border-radius: var(--radius-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(232, 168, 124, 0.08), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--glass-border-hover);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 30px rgba(232, 168, 124, 0.15);
}

.card:hover::before { opacity: 1; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0 3rem;
}

.stat-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--grad-wood);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    display: inline-block;
}

.stat-suffix {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-copper);
}

.stat-label {
    margin-top: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.faq-item {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-family: inherit;
    transition: color 0.3s ease;
}

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

.faq-question:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    color: var(--accent-copper);
    flex-shrink: 0;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.5rem;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.cta-section {
    text-align: center;
    padding: 4rem 2rem;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    margin-top: 4rem;
    background: linear-gradient(135deg, rgba(109, 66, 27, 0.2), rgba(169, 113, 66, 0.1));
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(244, 201, 93, 0.1), transparent 50%);
    animation: rotate-bg 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate-bg {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-section h2 {
    position: relative;
    z-index: 2;
    margin-bottom: 1rem;
}

.cta-section p {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

.cta-section .btn {
    position: relative;
    z-index: 2;
}

.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
    margin-top: 3rem;
}

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

.footer-grid h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.footer-grid p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-grid a {
    color: var(--accent-copper);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--grad-wood);
    color: var(--text-on-accent);
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 500;
    box-shadow: 0 4px 20px rgba(244, 201, 93, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(244, 201, 93, 0.5);
}

.back-to-top:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 4px;
}

/* Responsive */
@media (max-width: 960px) {
    .main-nav a:not(.btn):not(.nav-cta) { display: none; }
    .hero-visual { display: none; }
    .hero-content { padding-right: 0; }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .hero { min-height: 85vh; padding-top: 120px; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }
    .stat-number { font-size: 2.5rem; }
    .stat-suffix { font-size: 1.5rem; }
    .back-to-top { bottom: 1.2rem; right: 1.2rem; width: 42px; height: 42px; }
}