:root {
    /* Light Mode (Default) */
    --primary: #D84315; /* Burnt Orange / Terra Cotta - Warmth, Craft */
    --primary-light: #FF7043;
    --primary-dark: #BF360C;
    
    --secondary: #283593; /* Deep Indigo/Space Blue - Professional, Engineering */
    --secondary-light: #5C6BC0;
    --secondary-dark: #1A237E;
    
    --accent: #FFB74D; /* Warm Amber */
    
    --bg-body: #FAFAFA; /* Very light warm gray */
    --bg-card: #FFFFFF;
    --bg-alt: #F5F5F5;
    --bg-header: rgba(255, 255, 255, 0.95);
    
    --text-main: #263238; /* Dark Blue Grey */
    --text-muted: #546E7A;
    --text-inverse: #FFFFFF;
    
    --border-color: #E0E0E0;
    --border-focus: #D84315;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --container-width: 1200px;
    --header-height: 70px;
}

[data-theme="dark"] {
    --bg-body: #121212;
    --bg-card: #1E1E1E;
    --bg-alt: #252525;
    --bg-header: rgba(18, 18, 18, 0.95);
    
    --text-main: #ECEFF1;
    --text-muted: #B0BEC5;
    
    --border-color: #333333;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-main);
}

h1 { font-size: 3rem; margin-bottom: 1.5rem; }
h2 { font-size: 2.25rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

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

.section {
    padding: 5rem 0;
}

.grid {
    display: grid;
    gap: 2rem;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg-header);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-main);
}

.logo img {
    height: 32px;
    width: auto;
}

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

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: #fffefa;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}
[data-theme="dark"] .btn-primary {
    color: #ffffff;
}

.nav-links .btn-primary {
    color: #fffefa;
}

[data-theme="dark"] .nav-links .btn-primary {
    color: #ffffff;
}
[data-theme="dark"] .btn-primary {
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background-color: rgba(216, 67, 21, 0.05);
}

.btn-outline {
    border: 1px solid var(--border-color);
    color: var(--text-main);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--text-muted);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Theme Toggle & Lang Switcher */
.controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.lang-switcher {
    position: relative;
}

.lang-toggle {
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
}

.lang-toggle .lang-label {
    font-size: 0.85rem;
    font-weight: 600;
}

.lang-toggle .chevron {
    transition: transform 0.2s ease;
}

.lang-switcher.open .lang-toggle .chevron {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 150px;
    padding: 0.25rem;
    display: none;
    z-index: 10;
}

.lang-switcher.open .lang-menu {
    display: block;
}

.lang-menu button {
    width: 100%;
    text-align: left;
    padding: 0.5rem 0.75rem;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.lang-menu button:hover,
.lang-menu button:focus,
.lang-menu button.active {
    background: var(--bg-alt);
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-full);
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background-color: var(--bg-alt);
    color: var(--text-main);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.75rem; }
    
    .nav-links {
        display: none;
    }
    
    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg-header);
        padding: 2rem;
        border-bottom: 1px solid var(--border-color);
        backdrop-filter: blur(10px);
        box-shadow: var(--shadow-lg);
    }
    
    .mobile-menu-btn {
        display: block;
    }
}

/* Global layout helpers */
main {
    margin-top: var(--header-height);
}

.bg-alt {
    background-color: var(--bg-alt);
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.lead {
    font-size: 1.125rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.max-w-600 {
    max-width: 600px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.full-width {
    width: 100%;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.section-heading {
    margin-bottom: 3rem;
}

.section-heading h2 {
    margin-bottom: 0.75rem;
}

.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 2.5rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.card {
    background: var(--bg-card);
    border: 1px solid rgba(38, 50, 56, 0.08);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.icon-lg {
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
}

/* Hero */
.hero {
    padding: calc(var(--header-height) + 1rem) 0 4.5rem;
    background: radial-gradient(circle at 5% 10%, rgba(216, 67, 21, 0.08), transparent 45%), radial-gradient(circle at 95% 20%, rgba(40, 53, 147, 0.08), transparent 40%), var(--bg-body);
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
    align-items: flex-start;
}

.hero-intro {
    position: relative;
}

.maker-highlight {
    margin: 1rem 0 1.5rem;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(216, 67, 21, 0.3);
    background: rgba(216, 67, 21, 0.08);
    box-shadow: var(--shadow-sm);
}

.maker-highlight h3 {
    margin-bottom: 0.75rem;
}

.maker-highlight ul {
    padding-left: 1.25rem;
    color: var(--text-main);
}

.maker-highlight ul li {
    list-style: disc;
    margin-bottom: 0.4rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.hero-stats li {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: 1px dashed rgba(40, 53, 147, 0.4);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    color: var(--secondary);
    background: rgba(40, 53, 147, 0.05);
}

.audience-stack {
    display: grid;
    gap: 1.5rem;
}

.audience-card {
    border-radius: var(--radius-lg);
    padding: 2rem;
    color: var(--text-main);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 100%;
}

.audience-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0.2;
    pointer-events: none;
}

.maker-panel {
    background: linear-gradient(135deg, rgba(216, 67, 21, 0.15), rgba(255, 183, 77, 0.2));
}

.maker-panel::after {
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.6), transparent 60%);
}

.customer-panel {
    background: linear-gradient(135deg, rgba(40, 53, 147, 0.15), rgba(92, 107, 192, 0.2));
}

.customer-panel::after {
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.5), transparent 60%);
}

.card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.4);
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.audience-list {
    margin: 1rem 0 1.5rem;
    color: var(--text-main);
}

.audience-list li {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.audience-list li::before {
    content: "•";
    color: var(--primary);
}

.hero-img {
    width: 100%;
    max-width: 320px;
    margin: 1rem auto;
}

/* Capability pills */
.pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.pill {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(84, 110, 122, 0.3);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Storefront section */
.feature-grid {
    align-items: center;
}

.feature-copy h2 {
    margin-bottom: 1rem;
}

.feature-list li {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    color: var(--text-main);
}

.feature-list li::before {
    content: "✓";
    color: var(--primary);
    font-weight: 700;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    color: var(--secondary);
    margin-top: 1.5rem;
}

.link-arrow::after {
    content: "→";
    transition: transform 0.2s ease;
}

.link-arrow:hover::after {
    transform: translateX(4px);
}

.floating-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(38, 50, 56, 0.1);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
}

.subdomain-pill {
    display: inline-flex;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    background: rgba(216, 67, 21, 0.1);
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Steps */
.steps-grid {
    align-items: start;
}

.steps-list {
    counter-reset: steps;
    list-style: none;
}

.steps-list li {
    counter-increment: steps;
    margin-bottom: 1rem;
    padding-left: 3rem;
    position: relative;
}

.steps-list li::before {
    content: counter(steps);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-full);
    background: rgba(40, 53, 147, 0.1);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Quick upload */
.quick-upload {
    background: linear-gradient(125deg, rgba(216, 67, 21, 0.08), rgba(40, 53, 147, 0.08));
}

.quick-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: center;
    padding: 3rem;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
}

.timer-graphic {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--secondary);
    text-align: center;
}

/* Feature grid */
.feature-card-grid .card {
    min-height: 260px;
}

/* Pricing */
.pricing-grid {
    align-items: stretch;
}

.pricing-card {
    padding: 2.5rem 2rem;
    position: relative;
    text-align: left;
}

.pricing-card .price {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--secondary);
}

.pricing-card .price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pricing-card ul li {
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    background: linear-gradient(180deg, rgba(216, 67, 21, 0.05), rgba(255, 255, 255, 0));
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
}

.pricing-card .tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
}

/* Trust */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin: 0 auto 2rem;
}

.trust-badges span {
    background: var(--bg-card);
    border-radius: var(--radius-full);
    padding: 0.4rem 1rem;
    border: 1px solid rgba(38, 50, 56, 0.1);
}

.trust-card {
    max-width: 700px;
    margin: 0 auto;
}

/* CTA */
.cta-section {
    padding-bottom: 6rem;
}

.cta-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: center;
    padding: 3rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(120deg, rgba(40, 53, 147, 0.15), rgba(216, 67, 21, 0.2));
    color: white;
    box-shadow: var(--shadow-lg);
}

.cta-card p,
.cta-card h2 {
    color: white;
}

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

/* Footer */
footer {
    background: #10121a;
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
}

footer a:hover {
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 0.75rem;
}

.footer-col ul li {
    margin-bottom: 0.4rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: calc(var(--header-height) + 1rem);
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .audience-card {
        padding: 1.75rem;
    }
    
    .quick-card {
        padding: 2rem;
    }
    
    .cta-card {
        padding: 2.5rem;
    }
    
    footer {
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

/* Dark theme refinements */
[data-theme="dark"] header {
    background: rgba(6, 8, 13, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] header .logo img {
    filter: brightness(0) invert(1);
}

[data-theme="dark"] .nav-links a {
    color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .nav-links a:hover {
    color: var(--accent);
}

[data-theme="dark"] .lang-menu {
    background: #1c1f2a;
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .lang-menu button:hover,
[data-theme="dark"] .lang-menu button:focus,
[data-theme="dark"] .lang-menu button.active {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .hero {
    background: radial-gradient(circle at 0% 0%, rgba(216, 67, 21, 0.25), transparent 45%), radial-gradient(circle at 40% 20%, rgba(40, 53, 147, 0.25), transparent 40%), #0c101a;
}

[data-theme="dark"] .maker-highlight {
    background: rgba(216, 67, 21, 0.2);
    border-color: rgba(255, 183, 77, 0.5);
}
