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

:root {
    --color-bg: #fafafa;
    --color-surface: #ffffff;
    --color-text: #111111;
    --color-text-secondary: #555555;
    --color-text-muted: #888888;
    --color-primary: #111111;
    --color-primary-hover: #333333;
    --color-accent: #2563eb;
    --color-accent-hover: #1d4ed8;
    --color-border: #e5e5e5;
    --color-border-light: #f0f0f0;
    --color-success: #16a34a;
    --color-error: #dc2626;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.1);
}

html {
    font-family: var(--font);
    font-size: 16px;
    color: var(--color-text);
    background: var(--color-bg);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 250, 250, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border-light);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo-icon {
    display: inline-grid;
    grid-template-columns: repeat(2, 10px);
    gap: 3px;
    transform: rotate(45deg);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    vertical-align: middle;
    margin-right: 4px;
}

.logo-icon span {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: var(--color-accent);
    transition: border-radius 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover .logo-icon {
    transform: rotate(0deg);
}

/* Logo idle animations handled by JS */

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 0.9rem;
    font-weight: 450;
    color: var(--color-text-secondary);
}

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

.nav-links > a.active {
    color: var(--color-text);
    font-weight: 600;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Fade Up Animation ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-card-wide,
.price-card,
.coming-soon-card,
.media-item,
.tool-card,
.support-form,
.support-success,
.license-box,
.status-icon {
    animation: fadeUp 0.5s ease both;
}

.price-card:nth-child(2) { animation-delay: 0.08s; }
.price-card:nth-child(3) { animation-delay: 0.16s; }

.shop-hero,
.hero,
.tools-hero {
    animation: fadeUp 0.4s ease both;
}

/* ===== Language Split Button ===== */
.lang-split {
    display: flex;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.lang-split-btn {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 5px 14px;
    color: var(--color-text-muted);
    transition: all 0.15s;
    border-right: 1px solid var(--color-border);
}

.lang-split-btn:last-child {
    border-right: none;
}

.lang-split-btn.active {
    background: var(--color-primary);
    color: #fff;
}

.lang-split-btn:hover:not(.active) {
    background: var(--color-border-light);
    color: var(--color-text);
}

.lang-split-btn.active:hover {
    color: #fff;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
}

.btn-accent {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.btn-accent:hover {
    background: var(--color-accent-hover);
}

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

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

.btn-ghost {
    background: transparent;
    color: var(--color-text-secondary);
}

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

.btn-lg {
    padding: 12px 28px;
    font-size: 0.95rem;
    border-radius: var(--radius-lg);
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* ===== Badge ===== */
.badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-accent);
    background: rgba(37, 99, 235, 0.08);
    padding: 5px 14px;
    border-radius: 999px;
    letter-spacing: 0.01em;
}

/* ===== Loading Spinner ===== */
.logo-spinner {
    display: inline-grid;
    grid-template-columns: repeat(2, 10px);
    gap: 3px;
    animation: logo-spin 0.8s steps(4) infinite;
}

.logo-spinner span {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: var(--color-accent);
}

@keyframes logo-spin {
    0%   { transform: rotate(0deg); }
    25%  { transform: rotate(90deg); }
    50%  { transform: rotate(180deg); }
    75%  { transform: rotate(270deg); }
    100% { transform: rotate(360deg); }
}

/* ===== Landing Hero ===== */
.hero {
    padding: 140px 0 60px;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    max-width: 520px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-visual { max-width: 900px; margin: 0 auto; }
.mock-dashboard { display: flex; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); overflow: hidden; height: 420px; }
.mock-sidebar { width: 200px; background: #f7f7f8; border-right: 1px solid var(--color-border-light); padding: 24px 16px; display: flex; flex-direction: column; gap: 8px; }
.mock-sidebar-item { height: 36px; border-radius: var(--radius); background: var(--color-border-light); }
.mock-sidebar-item.active { background: var(--color-primary); }
.mock-main { flex: 1; padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.mock-header { height: 28px; width: 180px; background: var(--color-border); border-radius: var(--radius); }
.mock-cards { display: flex; gap: 16px; }
.mock-card { flex: 1; height: 100px; background: linear-gradient(135deg, #f3f4f6, #e5e7eb); border-radius: var(--radius-lg); border: 1px solid var(--color-border-light); }
.mock-table { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.mock-row { height: 36px; background: #f9f9fa; border-radius: var(--radius); border: 1px solid var(--color-border-light); }

/* ===== CTA Section ===== */
.cta-section { padding: 100px 0; text-align: center; }
.cta-content h2 { font-size: 2.2rem; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 12px; }
.cta-content p { font-size: 1.05rem; color: var(--color-text-secondary); margin-bottom: 28px; }

/* ===== Shop Hero ===== */
.shop-hero {
    padding: 120px 0 60px;
    text-align: center;
}

.shop-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.shop-hero p {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== Product List ===== */
.products-section {
    padding: 40px 0 100px;
}

/* Wide product card */
.product-card-wide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 40px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    background: var(--color-surface);
    margin-bottom: 24px;
    transition: box-shadow 0.2s, border-color 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.product-card-wide:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--color-text-muted);
}

.product-card-wide-content {
    flex: 1;
}

.product-card-wide-content .badge {
    margin-bottom: 12px;
}

.product-card-wide-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.product-card-wide-content p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: 560px;
}

.product-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
}

.product-card-features li {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    padding-left: 18px;
    position: relative;
}

.product-card-features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 600;
}

.product-card-wide-action {
    text-align: center;
    flex-shrink: 0;
}

.product-card-wide-price {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--color-text);
}

.product-card-wide-price span {
    font-weight: 400;
    color: var(--color-text-muted);
}

/* Legacy grid card (kept for future use) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    background: var(--color-surface);
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--color-text-muted);
    transform: translateY(-2px);
}

.product-card-image {
    height: 200px;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--color-border-light);
}

.product-card-image img {
    max-height: 160px;
    object-fit: contain;
}

.product-card-image .product-icon {
    width: 80px;
    height: 80px;
    display: inline-grid;
    grid-template-columns: repeat(2, 24px);
    gap: 6px;
}

.product-icon span {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: var(--color-accent);
    opacity: 0.7;
}

.product-icon span:first-child {
    opacity: 1;
}

.product-card-body {
    padding: 24px;
}

.product-card-body .badge {
    margin-bottom: 12px;
}

.product-card-body h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-card-body p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.product-price .price-period {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--color-text-muted);
}

/* ===== Product Detail Page ===== */
.product-detail {
    padding: 120px 0 80px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.product-detail-image {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-image .product-icon-lg {
    display: inline-grid;
    grid-template-columns: repeat(2, 40px);
    gap: 10px;
}

.product-icon-lg span {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: var(--color-accent);
    opacity: 0.7;
}

.product-icon-lg span:first-child {
    opacity: 1;
}

.product-detail-info h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 12px;
}

.product-detail-info .badge {
    margin-bottom: 16px;
}

.product-detail-info .product-description {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.product-detail-price {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}

.product-detail-price .price-period {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-muted);
}

.product-detail-info .price-note {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.product-features {
    margin-bottom: 32px;
}

.product-features h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.product-features ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-features li {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    padding-left: 24px;
    position: relative;
}

.product-features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 600;
}

.buy-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.buy-form input[type="email"] {
    font-family: var(--font);
    font-size: 0.95rem;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.2s;
}

.buy-form input[type="email"]:focus {
    border-color: var(--color-accent);
}

/* ===== Success / Cancel Pages ===== */
.status-page {
    padding: 160px 0 100px;
    text-align: center;
}

.status-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
}

.status-icon.success {
    background: rgba(22, 163, 74, 0.1);
    color: var(--color-success);
}

.status-icon.error {
    background: rgba(220, 38, 38, 0.1);
    color: var(--color-error);
}

.status-page h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 12px;
}

.status-page p {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    max-width: 480px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.license-box {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 500px;
    margin: 0 auto 32px;
    text-align: left;
}

.license-box label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: 8px;
}

.license-box code {
    display: block;
    font-size: 1rem;
    font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
    background: var(--color-bg);
    padding: 12px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--color-border-light);
    word-break: break-all;
    user-select: all;
}

/* ===== Requirements ===== */
.product-requires {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin-top: 12px;
}

.product-requires a {
    color: var(--color-accent);
    text-decoration: underline;
    text-decoration-color: rgba(37, 99, 235, 0.3);
    text-underline-offset: 2px;
}

.product-requires a:hover {
    text-decoration-color: var(--color-accent);
}

/* ===== Media Gallery ===== */
.media-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 0 auto 60px;
}

.media-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--color-surface);
}

.media-item:only-child,
.media-item.media-demo {
    grid-column: 1 / -1;
}

.media-image img {
    width: 100%;
    height: auto;
    display: block;
}

.media-video-wrapper,
.media-demo-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.media-demo-wrapper {
    padding-bottom: 65%;
}

.media-video-wrapper iframe,
.media-demo-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.media-caption {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    padding: 12px 16px;
    text-align: center;
    border-top: 1px solid var(--color-border-light);
}

/* ===== Pricing Section ===== */
.pricing-section {
    margin-bottom: 80px;
}

.pricing-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    text-align: center;
    margin-bottom: 8px;
}

.pricing-subtitle {
    font-size: 1rem;
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: 40px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.price-card {
    position: relative;
    padding: 32px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    background: var(--color-bg);
}

.price-card.featured {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
    background: var(--color-surface);
}

.popular-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 14px;
    border-radius: 999px;
}

.price-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}

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

.price-desc {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.price-desc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.price-desc-list li {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    padding-left: 24px;
    position: relative;
}

.price-desc-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 600;
}

.plan-email-input {
    font-family: var(--font);
    font-size: 0.95rem;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
    margin-bottom: 10px;
}

.plan-email-input:focus {
    border-color: var(--color-accent);
}

/* ===== Billing Toggle ===== */
.billing-toggle {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
    background: var(--color-border-light);
    border-radius: 999px;
    padding: 4px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.billing-btn {
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 24px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.billing-btn.active {
    background: var(--color-surface);
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
}

.billing-btn:hover:not(.active) {
    color: var(--color-text);
}

.price-billed-yearly {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.save-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #16a34a;
    background: rgba(22, 163, 74, 0.1);
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}

/* ===== Coming Soon ===== */
.coming-soon-card {
    text-align: center;
    padding: 48px 32px;
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-xl);
    background: var(--color-bg);
}

.coming-soon-card .badge {
    margin-bottom: 16px;
}

.coming-soon-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.coming-soon-card p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    max-width: 440px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== Purchase Modal ===== */
.purchase-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeUp 0.3s ease;
}

.purchase-modal {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.purchase-modal-header {
    padding: 24px 28px 16px;
    border-bottom: 1px solid var(--color-border-light);
    position: relative;
}

.purchase-modal-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.purchase-plan-name {
    font-size: 0.9rem;
    color: var(--color-accent);
    font-weight: 500;
}

.purchase-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius);
}

.purchase-close:hover {
    background: var(--color-border-light);
    color: var(--color-text);
}

.purchase-modal form {
    padding: 20px 28px 28px;
}

.purchase-field {
    margin-bottom: 16px;
}

.purchase-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--color-text);
}

.purchase-field input,
.purchase-field select {
    font-family: var(--font);
    font-size: 0.9rem;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    width: 100%;
    outline: none;
    transition: border-color 0.2s;
    background: var(--color-surface);
}

.purchase-field input:focus,
.purchase-field select:focus {
    border-color: var(--color-accent);
}

.purchase-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.purchase-type-toggle {
    display: flex;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.type-btn {
    flex: 1;
    padding: 8px;
    border: none;
    background: var(--color-bg);
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.15s;
}

.type-btn.active {
    background: var(--color-primary);
    color: #fff;
}

.purchase-consents {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.purchase-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    cursor: pointer;
}

.purchase-checkbox input {
    margin-top: 2px;
    accent-color: var(--color-accent);
}

.purchase-checkbox a {
    color: var(--color-accent);
    text-decoration: underline;
}

.purchase-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .purchase-row {
        grid-template-columns: 1fr;
    }
    .purchase-modal {
        max-height: 95vh;
    }
}

/* ===== Support Form ===== */
.support-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.support-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.support-field label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
}

.support-field input,
.support-field select,
.support-field textarea {
    font-family: var(--font);
    font-size: 0.95rem;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.2s;
    background: var(--color-surface);
    color: var(--color-text);
    width: 100%;
}

.support-field input:focus,
.support-field select:focus,
.support-field textarea:focus {
    border-color: var(--color-accent);
}

.support-field textarea {
    resize: vertical;
    min-height: 120px;
}

.support-success {
    text-align: center;
    padding: 40px 0;
}

.support-success h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.support-success p {
    color: var(--color-text-secondary);
    font-size: 1rem;
}

.support-error {
    background: rgba(220, 38, 38, 0.08);
    color: var(--color-error);
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

/* ===== Footer ===== */
.footer {
    border-top: 1px solid var(--color-border-light);
    padding: 40px 0;
}

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

.footer-brand {
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links {
    display: flex;
    gap: 24px;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

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

.footer-copy {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .mock-sidebar { display: none; }
    .mock-dashboard { height: 280px; }
    .shop-hero h1 {
        font-size: 2.2rem;
    }

    .shop-hero p {
        font-size: 1rem;
    }

    .media-gallery {
        grid-template-columns: 1fr;
    }

    .product-card-wide {
        flex-direction: column;
        text-align: center;
        gap: 24px;
        padding: 28px;
    }

    .product-card-wide-content p {
        max-width: none;
    }

    .product-card-features {
        justify-content: center;
    }

    .products-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

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

    .product-detail-image {
        height: 260px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(250, 250, 250, 0.95);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px;
        border-bottom: 1px solid var(--color-border-light);
        gap: 16px;
    }

    .nav-links.open {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

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

@media (max-width: 1024px) and (min-width: 769px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
