@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #f1f5f9;
    --border: #e2e8f0;
    --border-hover: #cbd5e1;
    --text: #0f172a;
    --text-muted: #64748b;
    --accent: #4f46e5;
    --accent-hover: #4338ca;
    --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --card-gradient: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 35px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.08);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-full: 9999px;
    
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

:root.dark, body.dark {
    --bg: #080b11;
    --surface: #0f131c;
    --surface-soft: #151b27;
    --border: #1e293b;
    --border-hover: #334155;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #818cf8;
    --accent-hover: #a5b4fc;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --card-gradient: linear-gradient(180deg, #0f131c 0%, #080b11 100%);
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 35px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.15);
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    transition: background-color 0.3s ease;
}

html, body {
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    width: min(1200px, 100% - 48px);
    margin: 0 auto;
}

.page-main {
    flex: 1;
    padding-bottom: 80px;
    position: relative;
}

/* Background glowing mesh orb */
.page-main::before {
    content: '';
    position: absolute;
    top: -250px;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.05) 0%, rgba(79, 70, 229, 0) 70%);
    pointer-events: none;
    z-index: 0;
    transition: background 0.3s ease;
}

.dark .page-main::before {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, rgba(168, 85, 247, 0) 70%);
}

/* Navigation */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background-color 0.3s, border-color 0.3s;
}

.dark .site-nav {
    background: rgba(8, 11, 17, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    text-decoration: none;
    color: var(--text);
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    transition: color 0.3s;
}

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

.nav-links a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s ease;
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-currency {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    padding: 8px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: background-color 0.2s ease;
}

.nav-toggle:hover {
    background-color: var(--surface-soft);
}

.nav-toggle svg line {
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.nav-toggle.active .line-mid {
    opacity: 0;
}

.nav-toggle.active .line-top {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.active .line-bot {
    transform: translateY(-6px) rotate(-45deg);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    cursor: pointer;
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.sun-icon { display: none; }
.moon-icon { display: block; }
.dark .sun-icon { display: block; }
.dark .moon-icon { display: none; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    margin: 0;
    color: var(--text);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
}

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

.btn-outline:hover {
    border-color: var(--accent);
    background-color: var(--surface-soft);
    transform: translateY(-2px);
}

.badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    background: rgba(99, 102, 241, 0.1);
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

/* Hero Section (50/50 split) */
.hero {
    padding: 80px 0;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    z-index: 1;
}

.hero-content {
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content h1 {
    font-size: clamp(38px, 4.5vw, 56px);
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--text);
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-image-container {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.3s ease;
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-image-container:hover {
    transform: translateY(-2px);
}
/* VS Code Style IDE Mockup */
.ide-mockup {
    background: #0d1117;
    border: 1.5px solid #21262d;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 420px;
    font-family: 'Consolas', 'Courier New', Courier, monospace !important;
    font-size: 13px;
    position: relative;
    transition: all 0.3s ease;
}

.ide-header {
    background: #161b22;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1.5px solid #21262d;
}

.ide-dots {
    display: flex;
    gap: 6px;
    margin-right: 24px;
}

.ide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.ide-dot.close { background: #ff5f56; }
.ide-dot.minimize { background: #ffbd2e; }
.ide-dot.expand { background: #27c93f; }

.ide-tabs {
    display: flex;
    gap: 4px;
}

.ide-tab {
    background: #161b22 !important;
    color: #8b949e !important;
    padding: 6px 14px !important;
    border-radius: 6px 6px 0 0 !important;
    border: 1px solid #30363d !important;
    border-bottom: none !important;
    font-size: 12px !important;
    cursor: pointer !important;
    font-family: var(--font-sans) !important;
}

.ide-tab.active {
    background: #0d1117 !important;
    color: #f0f6fc !important;
    border-color: #30363d !important;
    font-weight: 600 !important;
}

.ide-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.ide-sidebar {
    width: 120px;
    background: #161b22;
    border-right: 1.5px solid #21262d;
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #8b949e;
    user-select: none;
}

.sidebar-item {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    font-family: var(--font-sans);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #c9d1d9;
}

.sidebar-item.active {
    background: rgba(56, 139, 253, 0.15);
    color: #58a6ff;
    font-weight: 500;
}

.ide-editor {
    flex: 1;
    padding: 20px 20px 0; /* padding bottom handled on pre tag instead */
    background: #0d1117;
    position: relative;
    overflow-y: auto;
    color: #c9d1d9;
    text-align: left;
}

.ide-editor pre, .ide-editor code, .ide-editor span {
    font-family: 'Consolas', 'Courier New', Courier, monospace !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

.ide-editor pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.6;
    padding-bottom: 80px !important; /* Ensure content clears run button completely */
}

/* Syntax Highlighting */
.ide-editor .keyword { color: #ff7b72 !important; }
.ide-editor .string { color: #a5d6ff !important; }
.ide-editor .comment { color: #8b949e !important; font-style: italic !important; }
.ide-editor .entity { color: #d2a8ff !important; }
.ide-editor .number { color: #79c0ff !important; }

.ide-run-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-sans);
}

.ide-run-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.ide-output-panel {
    background: #0d1117;
    border-top: 1.5px solid var(--border);
    max-height: 140px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.ide-output-header {
    background: #161b22;
    padding: 6px 16px;
    font-size: 11px;
    color: var(--text-muted);
    border-bottom: 1.5px solid var(--border);
    font-family: var(--font-sans);
    font-weight: 600;
}

.ide-output-content {
    flex: 1;
    padding: 12px 16px;
    overflow-y: auto;
    color: #10b981;
    font-family: 'Consolas', 'Courier New', Courier, monospace;
    font-size: 12px;
    line-height: 1.6;
}

/* Section Headers & Store Gate Grid */
.store-intro-section {
    padding: 64px 0 40px;
    z-index: 1;
}

.store-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
    animation: fadeIn 0.8s ease;
}

/* Terminal Window Mockup */
.terminal-mockup {
    background: #080b11;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md), var(--shadow-glow);
    width: 100%;
    height: 320px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.terminal-header {
    background: var(--surface-soft);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1.5px solid var(--border);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.close { background: #ef4444; }
.terminal-dot.minimize { background: #eab308; }
.terminal-dot.expand { background: #22c55e; }

.terminal-title {
    color: var(--text-muted);
    font-size: 11px;
    font-family: var(--font-sans);
    font-weight: 600;
    margin-left: 8px;
    letter-spacing: 0.5px;
}

.terminal-body {
    flex: 1;
    position: relative;
    background: #080b11;
}

#terminal-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.region-selector-container {
    animation: fadeIn 1s ease;
}

.region-cards {
    display: flex;
    gap: 20px;
    width: 100%;
}

.region-card {
    flex: 1;
    background: var(--surface);
    background-image: var(--card-gradient);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.region-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.region-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--accent);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.region-card:hover::before {
    opacity: 0.02;
}

.region-flag {
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    color: var(--accent);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.region-card:hover .region-flag {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.region-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 1;
}

.region-name {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
}

.region-currency {
    font-size: 13px;
    color: var(--text-muted);
}

.region-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--accent);
    margin-top: 4px;
    z-index: 1;
    transition: all 0.3s ease;
}

.region-card:hover .region-badge {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

/* Switch Region Button */
.switch-currency-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px !important;
    font-size: 13px !important;
    font-weight: 600;
    border-radius: var(--radius-full) !important;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.switch-currency-btn svg {
    transition: transform 0.25s ease;
}

.switch-currency-btn:hover svg {
    transform: translateX(-3px);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

.product-card {
    background: var(--surface);
    background-image: var(--card-gradient);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow-md), var(--shadow-glow);
    transform: translateY(-6px);
    border-color: var(--accent);
}

.product-image-wrap {
    background-color: var(--surface-soft);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.product-image-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image-wrap::after {
    transform: scaleX(1);
}

.product-icon {
    font-size: 64px;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-icon svg {
    width: 48px;
    height: 48px;
    stroke-width: 1.5;
    color: var(--text);
    transition: color 0.3s ease;
}

.product-card:hover .product-icon {
    transform: scale(1.15) rotate(5deg);
}

.product-card:hover .product-icon svg {
    color: var(--accent);
}

.product-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.product-info h3 {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.product-info p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 16px;
    flex: 1;
}

.product-rating {
    color: #fbbf24;
    font-size: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-rating span {
    color: var(--text-muted);
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    gap: 12px;
}

.price {
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
}

.view-link {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    background: var(--accent);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--accent);
}

.view-link:hover {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

/* Forms (Contact Page) */
input[type="text"],
input[type="email"],
textarea {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    outline: none;
    transition: all 0.3s ease;
    padding: 14px;
    border-radius: 8px;
    font-family: var(--font-sans);
    width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Prose/About Pages */
.content-panel {
    max-width: 800px;
    margin: 64px auto;
}

.content-panel h1 {
    font-size: 48px;
    margin-bottom: 32px;
}

.prose-section {
    margin-bottom: 40px;
    scroll-margin-top: 100px;
}

.prose-section h2 {
    font-size: 28px;
    margin-bottom: 16px;
}

.prose-section p, .content-panel p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Note Card */
.note-card {
    background-color: var(--surface-soft);
    border-radius: var(--radius-md);
    padding: 24px;
    margin: 32px 0;
    font-style: italic;
    color: var(--text);
    border-left: 4px solid var(--accent);
}

/* Footer */
.footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
    margin-top: auto;
    transition: background-color 0.3s, border-color 0.3s;
}

/* Chatbot UI */
.chatbot-trigger {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--accent);
    color: #ffffff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
    border: none;
}

.chatbot-trigger:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 28px rgba(99, 102, 241, 0.4);
}

.chatbot-container {
    position: fixed;
    bottom: 88px;
    right: 24px;
    width: 380px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md), 0 0 0 1px var(--border);
    z-index: 101;
    display: none;
    flex-direction: column;
    overflow: hidden;
    font-family: var(--font-sans);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chatbot-container.active {
    display: flex;
    animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.chatbot-header {
    background: var(--surface-soft);
    border-bottom: 1px solid var(--border);
    color: var(--text);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header-info h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.chatbot-header-info p {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--text-muted);
}

.chatbot-close {
    background: var(--surface-soft);
    border: 1px solid var(--border);
    color: var(--text);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.chatbot-close:hover {
    background: var(--border);
}

.chatbot-body {
    padding: 24px;
    max-height: 380px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--surface);
}

.chatbot-msg {
    max-width: 80%;
    padding: 12px 18px;
    font-size: 14px;
    line-height: 1.6;
}

.chatbot-msg-bot {
    background: var(--surface-soft);
    color: var(--text);
    border-radius: 16px 16px 16px 4px;
    border: 1px solid var(--border);
    align-self: flex-start;
}

.chatbot-msg-user {
    background: var(--accent);
    color: #ffffff;
    border-radius: 16px 16px 4px 16px;
    align-self: flex-end;
}

.chatbot-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.chatbot-option-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px 18px;
    border-radius: var(--radius-md);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.chatbot-option-btn:hover {
    border-color: var(--accent);
    background: var(--surface-soft);
    color: var(--text);
    transform: translateX(4px);
}

.chatbot-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    background: var(--surface-soft);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chatbot-footer-btn {
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    transition: all 0.2s;
}

.chatbot-footer-btn:hover {
    background: var(--border);
}

.chatbot-footer-btn.primary {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.chatbot-footer-btn.primary:hover {
    background: var(--accent-hover);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */

/* ---- Tablet (≤900px) ---- */
@media (max-width: 900px) {
    .store-intro-section {
        padding: 64px 0 24px;
    }

    .store-intro-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }

    .region-selector-container {
        text-align: center !important;
    }

    .region-selector-container p {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .store-intro-text {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .store-intro-text p {
        margin: 0 auto 24px;
    }

    .store-security-badges {
        justify-content: center;
    }

    /* Terminal shrinks on tablet */
    .terminal-mockup {
        height: 220px;
        order: 2;
    }

    .region-selector-container {
        order: 1;
    }

    /* Hero section stacks */
    .hero {
        grid-template-columns: 1fr;
        padding: 40px 0;
        text-align: center;
        gap: 32px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-content p {
        margin: 0 auto 24px;
    }

    /* IDE mockup adapts */
    .ide-mockup {
        height: 360px;
    }

    .ide-sidebar {
        width: 100px;
    }
}

/* ---- Mobile (≤768px) ---- */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .nav-inner {
        flex-wrap: wrap;
        min-height: auto;
        padding: 12px 0;
    }

    .nav-toggle {
        display: flex;
        order: 3;
    }

    .nav-right {
        order: 2;
        margin-left: auto;
    }

    .brand {
        order: 1;
        font-size: 20px;
    }

    .nav-links {
        order: 4;
        max-height: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 16px;
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease, border-color 0.3s ease;
        padding: 0;
        border-top: 1px solid transparent;
        align-items: center;
    }

    .nav-links.active {
        max-height: 320px;
        padding: 16px 0 8px 0;
        border-color: var(--border);
    }

    .section-header {
        margin-top: 32px;
        margin-bottom: 24px;
    }

    .content-panel {
        margin: 32px auto;
    }

    .prose-section {
        margin-bottom: 24px;
    }

    /* Terminal compact on mobile */
    .terminal-mockup {
        height: 180px;
    }

    #terminal-canvas {
        font-size: 10px;
    }

    /* IDE mockup: hide sidebar, shrink height */
    .ide-mockup {
        height: 300px;
    }

    .ide-sidebar {
        display: none;
    }

    .ide-editor {
        font-size: 11px !important;
    }

    .ide-editor pre, .ide-editor code, .ide-editor span {
        font-size: 11px !important;
    }

    .ide-tab {
        padding: 4px 10px !important;
        font-size: 11px !important;
    }

    .ide-run-btn {
        padding: 6px 12px;
        font-size: 11px;
        bottom: 10px;
        right: 10px;
    }

    /* Region cards stack vertically */
    .region-cards {
        flex-direction: column;
        gap: 12px;
    }

    .region-card {
        flex-direction: row;
        padding: 16px 20px;
        gap: 16px;
        text-align: left;
    }

    .region-flag {
        font-size: 28px;
    }

    .region-name {
        font-size: 16px;
    }

    .region-badge {
        margin-top: 0;
        margin-left: auto;
        align-self: center;
    }

    /* Hero text scales */
    .hero-content h1 {
        font-size: clamp(28px, 7vw, 38px);
    }

    .hero-content p {
        font-size: 14px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    /* Product grid single column */
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Chatbot responsive */
    .chatbot-container {
        width: calc(100% - 32px);
        right: 16px;
        bottom: 76px;
    }
}

/* ---- Small mobile (≤480px) ---- */
@media (max-width: 480px) {
    .store-intro-section {
        padding: 48px 0 24px;
    }

    .store-intro-grid {
        gap: 16px;
    }

    .terminal-mockup {
        height: 160px;
        border-radius: 12px;
    }

    .ide-mockup {
        height: 260px;
        border-radius: 12px;
    }

    .ide-dots {
        margin-right: 12px;
    }

    .ide-dot {
        width: 8px;
        height: 8px;
    }

    .terminal-dot {
        width: 8px;
        height: 8px;
    }

    .hero {
        padding: 24px 0;
        gap: 24px;
    }

    .hero-content h1 {
        font-size: 26px;
        letter-spacing: -0.5px;
    }

    .badge {
        font-size: 10px;
        padding: 4px 10px;
    }

    .region-card {
        padding: 14px 16px;
    }

    .chatbot-container {
        width: calc(100% - 24px);
        right: 12px;
        bottom: 70px;
    }

    .chatbot-trigger {
        right: 16px;
        bottom: 16px;
        width: 46px;
        height: 46px;
    }

    .contrib-grid {
        grid-template-columns: repeat(16, 1fr);
        gap: 2px;
    }
}

/* GitHub style contribution grid mockup */
.contrib-grid {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    gap: 4px;
    width: 100%;
}
