/* ========================================
   H&Y Solutions - Warm, Premium DTC Design
   ======================================== */

:root {
    /* Warm, welcoming palette */
    --primary: #1e3a5f;
    --primary-dark: #152a45;
    --primary-light: #e8f0f8;
    --accent: #2d7d9a;
    --accent-light: #e0f4f8;
    --accent-warm: #c17f59;
    --cream: #faf8f5;
    --cream-dark: #f5f0ea;
    --dark: #1a1f2e;
    --gray-900: #1f2937;
    --gray-800: #374151;
    --gray-700: #4b5563;
    --gray-600: #6b7280;
    --gray-500: #9ca3af;
    --gray-400: #d1d5db;
    --gray-300: #e5e7eb;
    --gray-200: #f3f4f6;
    --gray-100: #f9fafb;
    --white: #fff;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --gradient-warm: linear-gradient(135deg, #faf8f5 0%, #f5f0ea 100%);
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;

    /* Animation timing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: var(--gray-700);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a { color: var(--gray-900); text-decoration: none; transition: all 0.3s; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
    color: var(--gray-900);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

h1 { font-size: clamp(2.5rem, 6vw, 3.5rem); }
h2 { font-size: clamp(2rem, 5vw, 2.75rem); margin-bottom: 24px; }
h3 { font-size: 1.35rem; font-weight: 700; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ========================================
   Modern 2025 Animations
   ======================================== */

/* Base reveal state */
.reveal {
    opacity: 1;
    transform: none;
}

/* Scroll-triggered animations */
body.animate-reveals .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.8s var(--ease-out-expo),
        transform 0.8s var(--ease-out-expo);
}

body.animate-reveals .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for child elements */
body.animate-reveals .reveal-delay-1 { transition-delay: 0.1s; }
body.animate-reveals .reveal-delay-2 { transition-delay: 0.2s; }
body.animate-reveals .reveal-delay-3 { transition-delay: 0.3s; }
body.animate-reveals .reveal-delay-4 { transition-delay: 0.4s; }

/* Smooth fade-up for cards */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s var(--ease-out-expo);
}

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

/* Magnetic hover effect for buttons */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s var(--ease-out-expo), height 0.6s var(--ease-out-expo);
}

.btn:hover::before {
    width: 300%;
    height: 300%;
}

/* Smooth underline animation for links */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.4s var(--ease-out-expo);
}

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

/* Card lift effect */
.card-hover {
    transition:
        transform 0.4s var(--ease-out-expo),
        box-shadow 0.4s var(--ease-out-expo);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Subtle scale on interaction */
.scale-hover {
    transition: transform 0.3s var(--ease-out-expo);
}

.scale-hover:hover {
    transform: scale(1.02);
}

/* Text reveal animation */
@keyframes textReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.text-reveal {
    animation: textReveal 0.8s var(--ease-out-expo) forwards;
}

/* Gradient text shimmer */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.shimmer-text {
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 50%, var(--primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.float {
    animation: float 4s ease-in-out infinite;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal, body.animate-reveals .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(45, 125, 154, 0.25);
}

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

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

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

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.25);
}

.btn-lg { padding: 20px 40px; font-size: 1.1rem; }
.btn-block { width: 100%; justify-content: center; }

/* Header - Premium DTC Style */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(250, 248, 245, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s var(--ease-out-expo);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: rgba(250, 248, 245, 0.98);
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
}

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

.logo img {
    height: 38px;
    transition: transform 0.3s var(--ease-out-expo);
}

.logo:hover img {
    transform: scale(1.02);
}

.nav-menu {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--gray-700);
    letter-spacing: 0.01em;
    position: relative;
    padding: 8px 0;
}

/* Removed duplicate - using animation section styles */
.nav-link:hover { color: var(--primary); }

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gray-900);
    transition: all 0.3s;
}

/* Hero */
.hero {
    padding: 180px 0 140px;
    position: relative;
    overflow: hidden;
    background: var(--cream);
}

.hero h1 {
    margin-bottom: 20px;
    color: var(--primary);
}

.hero-headline {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 16px;
}

.highlight {
    color: var(--accent);
    position: relative;
}
.highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--accent-light);
    z-index: -1;
    border-radius: 4px;
}

.hero > .container > p {
    font-size: 1.15rem;
    color: var(--gray-600);
    max-width: 600px;
}

.hero-cta {
    margin-top: 40px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse at 70% 50%, var(--cream-dark) 0%, transparent 70%);
    opacity: 0.8;
}

/* Reality */
.reality {
    padding: 120px 0;
    background: var(--primary);
    color: var(--white);
}

.reality h2 { color: var(--white); margin-bottom: 40px; }

.reality-content p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
    max-width: 800px;
}

.reality-content strong { color: var(--white); }

/* Quiz */
.quiz-section {
    padding: 120px 0;
    background: var(--cream-dark);
}

.quiz-section h2 { text-align: center; }
.section-sub { text-align: center; color: var(--gray-500); margin-bottom: 48px; }

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

.quiz-question {
    display: none;
    background: var(--white);
    padding: 48px;
    border-radius: 20px;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.08);
}

.quiz-question.active {
    display: block;
    animation: slideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.q-num {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gray-400);
    margin-bottom: 16px;
    letter-spacing: 0.1em;
}

.quiz-question h3 { margin-bottom: 32px; }

.quiz-options { display: flex; flex-direction: column; gap: 12px; }

.quiz-option {
    padding: 20px 24px;
    background: var(--gray-100);
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s;
}

.quiz-option:hover {
    border-color: var(--primary);
    background: var(--white);
    transform: translateX(4px);
}

.quiz-option.selected {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.quiz-results {
    display: none;
    text-align: center;
    background: var(--white);
    padding: 64px 48px;
    border-radius: 20px;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.08);
}

.quiz-results.active {
    display: block;
    animation: slideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.score-num {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 24px;
}

.result-score.good .score-num { color: var(--success); }
.result-score.warning .score-num { color: var(--warning); }
.result-score.critical .score-num { color: var(--danger); }

.quiz-results h3 { margin-bottom: 12px; }
.quiz-results p { color: var(--gray-500); margin-bottom: 32px; }

/* Resources */
.resources {
    padding: 120px 0;
    background: var(--cream);
}

.resources h2 { text-align: center; }

.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.resource-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.4s var(--ease-out-expo);
}

.resource-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(30, 58, 95, 0.12);
    border-color: transparent;
}

.resource-icon {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.resource-card h3 { margin-bottom: 12px; }
.resource-card p { color: var(--gray-500); font-size: 0.95rem; margin-bottom: 20px; }

.resource-link {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.resource-expanded {
    display: none;
    background: var(--white);
    padding: 48px;
    border-radius: 20px;
    margin-top: 40px;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.1);
    position: relative;
}

.resource-expanded.active {
    display: block;
    animation: slideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.close-resource {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray-400);
    transition: color 0.2s;
}

.close-resource:hover { color: var(--gray-900); }

.resource-expanded h3 { margin-bottom: 24px; }

.checklist {
    display: grid;
    gap: 12px;
}

.checklist label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--cream);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s var(--ease-out-expo);
}

.checklist label:hover { background: var(--accent-light); }

.checklist input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

.checklist-note {
    margin-top: 24px;
    font-weight: 500;
    color: var(--gray-500);
    font-size: 0.9rem;
}

.tips-list { display: grid; gap: 24px; }

.tip h4 { color: var(--primary); margin-bottom: 8px; }
.tip p { color: var(--gray-600); }

/* Stakes */
.stakes {
    padding: 120px 0;
    background: var(--white);
}

.stakes h2 { text-align: center; margin-bottom: 64px; }

.stakes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.stake-card {
    text-align: center;
    padding: 48px 32px;
    background: var(--cream);
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.4s var(--ease-out-expo);
}

.stake-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(30, 58, 95, 0.1);
}

.stake-stat {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    display: inline;
}

.stake-unit {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    display: inline;
}

.stake-card p { color: var(--gray-500); margin-top: 16px; }

/* Services */
.services {
    padding: 120px 0;
    background: var(--cream-dark);
}

.services h2 { text-align: center; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.service-card {
    background: var(--white);
    padding: 48px;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
    transition: height 0.4s var(--ease-out-expo);
}

.service-card:hover::before { height: 100%; }

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(30, 58, 95, 0.12);
}

.service-num {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.service-card h3 { margin-bottom: 12px; }
.service-card p { color: var(--gray-600); }

/* Your Advantage */
.advantage {
    padding: 120px 0;
    background: var(--white);
}

.advantage h2 {
    margin-bottom: 48px;
}

.advantage-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: center;
}

.advantage-content {
    max-width: 540px;
}

.advantage-lead {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
}

.advantage-content p {
    font-size: 1.05rem;
    color: var(--gray-600);
    margin-bottom: 20px;
    line-height: 1.8;
}

.advantage-content strong {
    color: var(--gray-900);
}

.highlight-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 48px 40px;
    border-radius: 24px;
    text-align: center;
    color: var(--white);
}

.highlight-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 20px;
}

.highlight-card h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.highlight-card p {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    margin-bottom: 28px;
    line-height: 1.7;
}

.highlight-card .btn-primary {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.highlight-card .btn-primary:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-3px);
}

/* Why Us */
.why-us {
    padding: 120px 0;
    background: var(--primary);
    color: var(--white);
    text-align: center;
}

.why-us h2 { color: var(--white); }

.why-content {
    max-width: 700px;
    margin: 0 auto;
}

.why-content p {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: rgba(255,255,255,0.85);
    margin-bottom: 20px;
}

/* FAQ */
.faq {
    padding: 120px 0;
    background: var(--cream);
}

.faq h2 { text-align: center; margin-bottom: 64px; }

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.faq-item {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.4s var(--ease-out-expo);
}

.faq-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(30, 58, 95, 0.08);
}

.faq-item h3 { margin-bottom: 16px; font-size: 1.15rem; }
.faq-item p { color: var(--gray-600); font-size: 0.95rem; }

/* CTA */
.cta {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    text-align: center;
}

.cta h2 { color: var(--white); margin-bottom: 16px; }
.cta p { color: rgba(255,255,255,0.85); font-size: 1.25rem; margin-bottom: 40px; }

.cta .btn-white {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--white);
}
.cta .btn-white:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Contact */
.contact {
    padding: 120px 0;
    background: var(--cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info h2 { margin-bottom: 16px; }
.contact-info > p { color: var(--gray-500); margin-bottom: 40px; }

.contact-steps { margin-bottom: 40px; }

.step {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
}

.step span {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50%;
}

.contact-email a { font-size: 1.25rem; font-weight: 600; }

.contact-form {
    background: var(--white);
    padding: 48px;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 10px 40px rgba(30, 58, 95, 0.08);
}

.form-group { margin-bottom: 24px; }

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray-800);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid var(--gray-300);
    border-radius: 10px;
    transition: all 0.3s var(--ease-out-expo);
    background: var(--cream);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px var(--accent-light);
}

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

/* Checklist Enhanced */
.checklist-cta {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--cream) 100%);
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.checklist-cta p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--gray-700);
}

.checklist-cta a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

.checklist-progress {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-200);
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--success);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0;
}

.progress-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-500);
    white-space: nowrap;
}

.checklist label {
    flex-wrap: wrap;
}

.check-text {
    flex: 1;
    min-width: 200px;
}

.check-tip {
    width: 100%;
    font-size: 0.85rem;
    color: var(--gray-400);
    margin-left: 32px;
    margin-top: 4px;
}

/* SEO Tips Enhanced */
.tip-example {
    background: var(--gray-100);
    padding: 16px;
    border-radius: 8px;
    margin-top: 12px;
}

.example-bad, .example-good {
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.example-bad:last-child, .example-good:last-child { margin-bottom: 0; }

.example-bad {
    background: #fef2f2;
    border-left: 3px solid var(--danger);
}

.example-good {
    background: #f0fdf4;
    border-left: 3px solid var(--success);
}

.example-bad span, .example-good span {
    font-weight: 600;
    margin-right: 8px;
}

.example-list {
    font-size: 0.9rem;
}

.example-list span {
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.example-list ul {
    margin: 0;
    padding-left: 20px;
}

.example-list li {
    margin-bottom: 4px;
    color: var(--gray-600);
}

.tip-checklist {
    background: var(--accent-light);
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 12px;
    font-size: 0.9rem;
}

.tip-checklist span {
    font-weight: 600;
}

.tip-code {
    background: var(--gray-900);
    border-radius: 8px;
    margin-top: 12px;
    overflow: hidden;
}

.tip-code pre {
    padding: 16px;
    overflow-x: auto;
}

.tip-code code {
    color: #e5e5e5;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.8rem;
    line-height: 1.5;
}

.copy-btn {
    width: 100%;
    padding: 12px;
    background: var(--gray-800);
    border: none;
    color: var(--gray-300);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: var(--gray-700);
    color: var(--white);
}

.tip-template {
    background: var(--gray-100);
    padding: 16px;
    border-radius: 8px;
    margin-top: 12px;
}

.tip-template span {
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 8px;
}

.template-text {
    font-style: italic;
    color: var(--gray-600);
    font-size: 0.9rem;
    margin: 0;
}

/* Speed Test Tool */
.speed-guide {
    font-size: 0.95rem;
}

.speed-intro {
    font-size: 1rem;
    margin-bottom: 32px;
}

.speed-step {
    margin-bottom: 32px;
}

.speed-step h4 {
    margin-bottom: 16px;
    color: var(--gray-900);
}

.speed-input {
    display: flex;
    gap: 12px;
}

.speed-input input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.speed-input input:focus {
    outline: none;
    border-color: var(--gray-900);
}

.speed-input .btn {
    white-space: nowrap;
}

.score-guide {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.score-item {
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.score-item.score-good { background: #f0fdf4; }
.score-item.score-warning { background: #fffbeb; }
.score-item.score-bad { background: #fef2f2; }

.score-range {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.score-good .score-range { color: var(--success); }
.score-warning .score-range { color: var(--warning); }
.score-bad .score-range { color: var(--danger); }

.score-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.score-item p {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin: 0;
}

.fix-list {
    display: grid;
    gap: 12px;
}

.fix-item {
    padding: 16px;
    background: var(--gray-100);
    border-radius: 8px;
}

.fix-item strong {
    display: block;
    margin-bottom: 4px;
}

.fix-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-500);
}

.fix-item a {
    color: var(--accent);
    text-decoration: underline;
}

.fix-item.fix-warning {
    background: #fef3cd;
    border-left: 4px solid var(--warning);
}

.fix-item.fix-warning strong {
    color: var(--warning);
}

/* Footer - Premium DTC Style */
.footer {
    background: var(--primary);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 32px;
}

.footer-logo {
    height: 36px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
    margin-bottom: 24px;
}

.footer-contact a {
    color: var(--white);
    font-weight: 500;
    font-size: 1.1rem;
    transition: opacity 0.2s;
}

.footer-contact a:hover {
    opacity: 0.8;
}

.footer-col h4 {
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

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

.footer-col li {
    margin-bottom: 14px;
}

.footer-col a {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    transition: all 0.2s var(--ease-out-expo);
}

.footer-col a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.footer-bottom p { margin: 0; color: rgba(255,255,255,0.5); }
.footer-location { color: rgba(255,255,255,0.4); }

.footer-credit {
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-credit:hover {
    color: var(--white);
}

/* Legal Pages */
.legal-page { padding: 140px 0 80px; }
.legal-page h1 { margin-bottom: 16px; }
.legal-page .updated { color: var(--gray-500); margin-bottom: 48px; }
.legal-page h2 { font-size: 1.5rem; margin-top: 48px; margin-bottom: 16px; }
.legal-page p, .legal-page li { color: var(--gray-600); }
.legal-page ul { margin-left: 24px; margin-bottom: 16px; }
.legal-page li { margin-bottom: 8px; }
.back-link { display: inline-block; margin-bottom: 32px; font-weight: 500; }

/* Responsive */
@media (max-width: 1024px) {
    .resources-grid,
    .stakes-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .services-grid,
    .faq-grid,
    .contact-grid,
    .advantage-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid { gap: 48px; }
    .advantage-grid { gap: 48px; }

    .advantage-content {
        max-width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .score-guide {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body { font-size: 16px; }

    .nav-menu, .nav > .btn { display: none; }
    .mobile-toggle { display: flex; }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 24px;
        gap: 20px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    }

    .mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .mobile-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .hero { padding: 140px 0 100px; }

    .reality, .advantage, .quiz-section, .resources, .stakes, .services, .why-us, .faq, .cta, .contact {
        padding: 80px 0;
    }

    .quiz-question,
    .quiz-results,
    .resource-expanded,
    .contact-form {
        padding: 32px 24px;
    }

    .service-card, .faq-item { padding: 32px 24px; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .speed-input {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .btn-lg { padding: 16px 28px; font-size: 1rem; }
    .stake-stat { font-size: 3rem; }
    .stake-unit { font-size: 1.5rem; }
    .score-num { font-size: 4rem; }
}
