/**
 * Blockeez Website Main CSS
 * Polished, professional styling matching the BlockBuilder app
 */

@import url('./legal-modals.css');

:root {
    --bg: #0f1115;
    --bg-elevated: #131620;
    --panel: #1c1f27;
    --panel-alt: #14161c;
    --text: #e8ecf3;
    --text-secondary: #c5cee0;
    --muted: #8a98b4;
    --accent: #5da9e9;
    --accent-hover: #7bc0f7;
    --accent-glow: rgba(93, 169, 233, 0.15);
    --success: #5de1b7;
    --warning: #ffc439;
    --border: #2d3240;
    --border-subtle: #232836;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(93, 169, 233, 0.12);
    --radius: 16px;
    --radius-sm: 8px;
    --radius-lg: 24px;
    --max-width: 1200px;
    --nav-height: 72px;
    --footer-height: 56px;
    --transition-fast: 0.15s ease;
    --transition: 0.25s ease;
    --transition-slow: 0.4s ease;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Scrollbar styling (matching blockbuilder) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3b4354;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
    width: 100%;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(15, 17, 21, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 100;
    transition: background var(--transition), box-shadow var(--transition);
}

.nav:hover {
    background: rgba(15, 17, 21, 0.95);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.02em;
    transition: opacity var(--transition-fast);
}

.nav-logo:hover {
    opacity: 0.9;
}

.nav-logo img {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 10px 18px;
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
    position: relative;
}

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

.nav-link.active {
    color: var(--accent);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.nav-cta {
    padding: 11px 24px;
    background: linear-gradient(135deg, var(--accent) 0%, #4a9ae0 100%);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 12px rgba(93, 169, 233, 0.25);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    margin-left: 8px;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(93, 169, 233, 0.35);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.nav-toggle:hover {
    background: var(--accent-glow);
}

/* Main Content */
main {
    flex: 1;
    padding-top: var(--nav-height);
}

/* Hero Section */
.hero {
    padding: 100px 0 120px;
    text-align: center;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, var(--accent-glow) 0%, transparent 60%),
        linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    line-height: 1.3;
    background: linear-gradient(135deg, var(--text) 0%, var(--text-secondary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 20px;
    color: var(--muted);
    max-width: 620px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--accent) 0%, #4a9ae0 100%);
    color: #fff;
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    border-radius: var(--radius);
    box-shadow:
        0 4px 20px rgba(93, 169, 233, 0.3),
        0 0 0 1px rgba(255,255,255,0.1) inset;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow:
        0 8px 32px rgba(93, 169, 233, 0.4),
        0 0 0 1px rgba(255,255,255,0.15) inset;
}

.hero-cta:hover::before {
    left: 100%;
}

/* Sections */
.section {
    padding: 100px 0;
    position: relative;
}

.section-alt {
    background: var(--panel-alt);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 18px;
    color: var(--muted);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 56px;
    line-height: 1.7;
}

/* Feature Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.feature-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

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

.feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
    display: inline-block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.feature-card p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.7;
}

/* Footer */
.footer {
    background: var(--panel);
    border-top: 1px solid var(--border-subtle);
    padding: 24px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-trust-link {
    display: flex;
    align-items: center;
    transition: transform var(--transition-fast);
}

.footer-trust-link:hover {
    transform: scale(1.05);
}

.footer-trust-badge {
    height: 26px;
    width: auto;
    opacity: 0.85;
    transition: opacity var(--transition-fast);
}

.footer-trust-link:hover .footer-trust-badge {
    opacity: 1;
}

.footer-center {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-icon {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

.footer-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--transition);
}

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

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

.footer-right {
    font-size: 13px;
    color: var(--muted);
}

/* Page Header */
.page-header {
    padding: 80px 0 60px;
    text-align: center;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, var(--accent-glow) 0%, transparent 60%),
        linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
    position: relative;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    font-size: 18px;
    color: var(--muted);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Content Sections */
.content {
    padding: 60px 0 100px;
}

.content h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    margin-top: 48px;
    color: var(--text);
    letter-spacing: -0.01em;
    position: relative;
    padding-left: 16px;
}

.content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: linear-gradient(180deg, var(--accent), transparent);
    border-radius: 2px;
}

.content h2:first-child {
    margin-top: 0;
}

.content p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
}

.content ul, .content ol {
    margin-bottom: 24px;
    padding-left: 0;
    list-style: none;
}

.content li {
    margin-bottom: 14px;
    color: var(--text-secondary);
    padding-left: 28px;
    position: relative;
    line-height: 1.7;
}

.content li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.content li strong {
    color: var(--text);
    font-weight: 600;
}

/* Roadmap Timeline */
.roadmap {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.roadmap-item {
    display: flex;
    gap: 28px;
    margin-bottom: 24px;
    position: relative;
}

.roadmap-marker {
    width: 18px;
    height: 18px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 24px;
    position: relative;
    box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--border);
    z-index: 2;
}

.roadmap-marker::after {
    content: '';
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: calc(100% + 6px);
    background: linear-gradient(180deg, var(--border), var(--border-subtle));
}

.roadmap-item:last-child .roadmap-marker::after {
    display: none;
}

.roadmap-item.completed .roadmap-marker {
    background: var(--success);
    box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px rgba(93, 225, 183, 0.3);
}

.roadmap-item.in-progress .roadmap-marker {
    background: var(--warning);
    box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px rgba(255, 196, 57, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px rgba(255, 196, 57, 0.3); }
    50% { box-shadow: 0 0 0 4px var(--bg), 0 0 0 12px rgba(255, 196, 57, 0); }
}

.roadmap-content {
    flex: 1;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.roadmap-content:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
    border-color: var(--accent);
}

.roadmap-item.completed .roadmap-content:hover {
    border-color: var(--success);
}

.roadmap-item.in-progress .roadmap-content:hover {
    border-color: var(--warning);
}

.roadmap-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}

.roadmap-content p {
    font-size: 15px;
    color: var(--muted);
    margin: 0;
    line-height: 1.7;
}

.roadmap-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 999px;
    margin-bottom: 12px;
}

.roadmap-badge.completed {
    background: rgba(93, 225, 183, 0.12);
    color: var(--success);
    border: 1px solid rgba(93, 225, 183, 0.25);
}

.roadmap-badge.in-progress {
    background: rgba(255, 196, 57, 0.12);
    color: var(--warning);
    border: 1px solid rgba(255, 196, 57, 0.25);
}

.roadmap-badge.planned {
    background: var(--accent-glow);
    color: var(--accent);
    border: 1px solid rgba(93, 169, 233, 0.25);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--muted);
    opacity: 0.7;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

.form-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent) 0%, #4a9ae0 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: 0 4px 16px rgba(93, 169, 233, 0.25);
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(93, 169, 233, 0.35);
}

.form-submit:active {
    transform: translateY(0);
}

/* About Cards */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-bottom: 56px;
}

.about-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

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

.about-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text);
}

.about-card p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.7;
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--panel);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--border);
    border-color: var(--accent);
    transform: scale(1.05);
}

.theme-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 6px;
    box-shadow: var(--shadow-lg);
    z-index: 101;
    min-width: 48px;
}

.theme-menu.open {
    display: flex;
    animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.theme-option {
    background: transparent;
    border: none;
    color: var(--text);
    padding: 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.theme-option:hover {
    background: var(--accent-glow);
    transform: scale(1.1);
}

.theme-option.active {
    background: linear-gradient(135deg, var(--accent) 0%, #4a9ae0 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(93, 169, 233, 0.3);
}

/* ============================================
   LIGHT THEME
   ============================================ */
body.theme-light {
    --bg: #f8fafc;
    --bg-elevated: #ffffff;
    --panel: #ffffff;
    --panel-alt: #f1f5f9;
    --text: #0f172a;
    --text-secondary: #334155;
    --muted: #64748b;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-glow: rgba(59, 130, 246, 0.1);
    --success: #10b981;
    --warning: #f59e0b;
    --border: #e2e8f0;
    --border-subtle: #f1f5f9;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
}

body.theme-light .nav {
    background: rgba(248, 250, 252, 0.85);
    border-bottom-color: var(--border);
}

body.theme-light .nav-cta,
body.theme-light .hero-cta,
body.theme-light .form-submit {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
}

body.theme-light .nav-cta:hover,
body.theme-light .hero-cta:hover,
body.theme-light .form-submit:hover {
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.35);
}

body.theme-light .hero h1,
body.theme-light .page-header h1 {
    background: linear-gradient(135deg, var(--text) 0%, #475569 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.theme-light .theme-option.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

body.theme-light ::-webkit-scrollbar-track {
    background: var(--bg);
}

body.theme-light ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
}

body.theme-light ::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ============================================
   LEGO-LIKE THEME
   ============================================ */
body.theme-lego-like {
    --bg: #faf6e3;
    --bg-elevated: #fffbeb;
    --panel: #fffef5;
    --panel-alt: #fef9dc;
    --text: #1c1917;
    --text-secondary: #44403c;
    --muted: #78716c;
    --accent: #dc2626;
    --accent-hover: #b91c1c;
    --accent-glow: rgba(220, 38, 38, 0.1);
    --success: #16a34a;
    --warning: #eab308;
    --border: #fbbf24;
    --border-subtle: #fde68a;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
}

body.theme-lego-like .nav {
    background: rgba(250, 246, 227, 0.9);
    border-bottom-color: var(--border);
}

body.theme-lego-like .hero h1,
body.theme-lego-like .page-header h1 {
    background: linear-gradient(135deg, var(--text) 0%, #dc2626 50%, #eab308 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.theme-lego-like .nav-cta,
body.theme-lego-like .hero-cta,
body.theme-lego-like .form-submit {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.25);
}

body.theme-lego-like .nav-cta:hover,
body.theme-lego-like .hero-cta:hover,
body.theme-lego-like .form-submit:hover {
    box-shadow: 0 6px 24px rgba(220, 38, 38, 0.35);
}

body.theme-lego-like .theme-option.active {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

body.theme-lego-like .roadmap-item.completed .roadmap-marker {
    background: var(--success);
    box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px rgba(22, 163, 74, 0.3);
}

body.theme-lego-like .roadmap-badge.completed {
    background: rgba(22, 163, 74, 0.12);
    color: var(--success);
    border-color: rgba(22, 163, 74, 0.25);
}

body.theme-lego-like .feature-card:hover,
body.theme-lego-like .about-card:hover,
body.theme-lego-like .roadmap-content:hover {
    border-color: var(--accent);
}

body.theme-lego-like .nav-link.active::after,
body.theme-lego-like .content h2::before,
body.theme-lego-like .feature-card::before,
body.theme-lego-like .about-card::before {
    background: linear-gradient(90deg, var(--accent), var(--warning));
}

body.theme-lego-like ::-webkit-scrollbar-track {
    background: var(--bg);
}

body.theme-lego-like ::-webkit-scrollbar-thumb {
    background: #fbbf24;
    border-radius: 8px;
}

body.theme-lego-like ::-webkit-scrollbar-thumb:hover {
    background: #f59e0b;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .container {
        padding: 0 20px;
    }

    .nav-inner {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--panel);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 20px;
        gap: 8px;
        box-shadow: var(--shadow);
    }

    .nav-links.open {
        display: flex;
        animation: fadeInDown 0.2s ease;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-link {
        padding: 14px 16px;
        width: 100%;
        text-align: left;
    }

    .nav-link.active::after {
        display: none;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 8px;
        text-align: center;
    }

    .hero {
        padding: 60px 0 80px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 17px;
    }

    .hero-cta {
        padding: 14px 28px;
        font-size: 15px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 28px;
    }

    .page-header {
        padding: 60px 0 40px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .content {
        padding: 40px 0 60px;
    }

    .content h2 {
        font-size: 22px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-card {
        padding: 28px;
    }

    .roadmap-item {
        gap: 20px;
    }

    .roadmap-content {
        padding: 24px;
    }

    .contact-form {
        padding: 32px 24px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .footer-center {
        flex-wrap: wrap;
        justify-content: center;
    }

    .theme-menu {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero h1 {
        font-size: 44px;
    }

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

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

/* Footer button styles for legal links */
.footer-link-btn {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    transition: color var(--transition-fast);
    position: relative;
    font-family: inherit;
}

.footer-link-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--transition);
}

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

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