/* ===== CSS Variables ===== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #0ea5e9;
    --accent: #f59e0b;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    --bg-dark: #0a0a14;
    --bg-card: #12121e;
    --bg-card-hover: #1a1a2e;
    --bg-elevated: #1e1e32;

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --border-color: #2d2d44;
    --border-light: #3d3d5c;

    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-text: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-sm), 0 0 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), 0 0 30px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
}

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

.btn-outline:hover {
    background: var(--bg-elevated);
    border-color: var(--primary);
}

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

.btn-ghost:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(10, 10, 20, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--primary);
}

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

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

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 140px 0 80px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.hero h1 {
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-light);
}

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

.hero-visual {
    position: relative;
    z-index: 2;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 70% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 30% 70%, rgba(14, 165, 233, 0.1) 0%, transparent 50%);
    z-index: 1;
}

/* App Preview */
.app-preview {
    perspective: 1000px;
}

.app-window {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    overflow: hidden;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: var(--transition);
}

.app-window:hover {
    transform: rotateY(0) rotateX(0);
}

.window-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-color);
}

.window-controls {
    display: flex;
    gap: 8px;
}

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

.control.close { background: #ff5f57; }
.control.minimize { background: #febc2e; }
.control.maximize { background: #28c840; }

.window-title {
    margin-left: 16px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.window-content {
    display: grid;
    grid-template-columns: 50px 1fr 150px;
    min-height: 300px;
}

.preview-sidebar {
    background: var(--bg-elevated);
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-right: 1px solid var(--border-color);
}

.preview-tool {
    width: 32px;
    height: 32px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.preview-tool.active {
    background: var(--primary);
    border-color: var(--primary);
}

.preview-canvas {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
}

.preview-room {
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.preview-room.room-1 { grid-column: span 2; }

.room-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.room-temp {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--success);
}

.preview-json {
    background: var(--bg-elevated);
    padding: 16px;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-left: 1px solid var(--border-color);
}

/* ===== Trusted By ===== */
.trusted-by {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.trusted-by .container {
    text-align: center;
}

.trusted-by p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.trusted-logos {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.trusted-logos span {
    color: var(--text-secondary);
    font-weight: 500;
    opacity: 0.7;
}

/* ===== Section Header ===== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-top: 16px;
}

/* ===== Features Section ===== */
.features {
    padding: 120px 0;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.feature-card h3 {
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ===== How It Works ===== */
.how-it-works {
    padding: 120px 0;
    background: var(--bg-card);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 700px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.step-content h3 {
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-secondary);
}

/* ===== Downloads Section ===== */
.downloads {
    padding: 120px 0 60px;
}

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

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
}

.download-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.download-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
}

.download-icon svg {
    width: 48px;
    height: 48px;
    fill: var(--text-primary);
}

.download-card h3 {
    margin-bottom: 8px;
}

.download-version {
    color: var(--primary-light);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.download-info {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.download-card .btn {
    margin-bottom: 12px;
}

.download-alt {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: var(--transition);
}

.download-alt:hover {
    color: var(--primary-light);
}

.downloads-note {
    text-align: center;
    margin-top: 40px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.downloads-note p {
    color: var(--text-secondary);
    margin: 0;
}

.downloads-note a {
    color: var(--primary-light);
    text-decoration: underline;
}

.downloads-note a:hover {
    color: var(--primary);
}

.downloads-web {
    text-align: center;
    margin-top: 24px;
}

.downloads-web-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.downloads-web p {
    color: var(--text-secondary);
    margin: 0;
}

.downloads-web a {
    color: var(--primary-light);
    text-decoration: underline;
    transition: var(--transition);
}

.downloads-web a:hover {
    color: var(--primary);
}

/* Download Card Disabled State */
.download-card-disabled {
    opacity: 0.6;
    position: relative;
}

.download-card-disabled:hover {
    border-color: var(--border-color);
    transform: none;
    box-shadow: none;
}

.btn-disabled {
    background: var(--bg-elevated);
    color: var(--text-muted);
    cursor: not-allowed;
    border: 1px solid var(--border-color);
}

.btn-disabled:hover {
    background: var(--bg-elevated);
    transform: none;
}

.download-coming-soon {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 12px;
    font-style: italic;
}

/* JavaScript Viewer Downloads */
.downloads-js {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.downloads-js-no-border {
    margin-top: 32px;
    padding-top: 0;
    border-top: none;
}

.downloads-js .section-header {
    margin-bottom: 32px;
}

.downloads-js .section-header h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.downloads-js .section-header p {
    font-size: 1rem;
}

.downloads-js-grid {
    display: flex;
    justify-content: center;
}

.download-card-small {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 32px;
    text-align: left;
    max-width: 500px;
}

.download-card-small:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.download-card-small .download-icon {
    width: 56px;
    height: 56px;
    margin: 0;
    flex-shrink: 0;
}

.download-card-small .download-icon svg {
    width: 32px;
    height: 32px;
}

.download-card-content {
    flex: 1;
}

.download-card-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.download-card-content .download-version {
    margin-bottom: 2px;
}

.download-card-content .download-info {
    margin-bottom: 0;
}

.download-card-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.download-card-actions .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.downloads-js-note {
    text-align: center;
    margin-top: 24px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.downloads-js-note a {
    color: var(--primary-light);
    text-decoration: underline;
}

.downloads-js-note a:hover {
    color: var(--primary);
}

.downloads-changelog-link {
    text-align: center;
    margin-top: 32px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.downloads-changelog-link a {
    color: var(--primary-light);
    text-decoration: underline;
}

.downloads-changelog-link a:hover {
    color: var(--primary);
}

/* ===== Use Cases ===== */
.use-cases {
    padding: 120px 0;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.use-case {
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.use-case:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.use-case-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.use-case h3 {
    margin-bottom: 8px;
}

.use-case p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== Pricing Section ===== */
.pricing {
    padding: 120px 0;
    background: var(--bg-card);
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.toggle-label {
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.toggle-label.active {
    color: var(--text-primary);
}

.save-badge {
    background: var(--success);
    color: white;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    margin-left: 4px;
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 3px;
    background: var(--text-primary);
    border-radius: 50%;
    transition: var(--transition);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

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

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

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: var(--radius-full);
}

.pricing-header h3 {
    margin-bottom: 4px;
}

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

.pricing-price {
    margin: 24px 0;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.currency {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.amount {
    font-size: 3.5rem;
    font-weight: 700;
}

.period {
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features .check {
    color: var(--success);
    font-weight: bold;
}

.pricing-features .x {
    color: var(--text-muted);
}

.pricing-features li.disabled {
    color: var(--text-muted);
}

.pricing-single {
    max-width: 450px;
    margin: 0 auto;
    grid-template-columns: 1fr;
}

.pricing-note {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

/* Beta Pricing State */
.pricing-beta-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(14, 165, 233, 0.15) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.beta-badge {
    background: var(--success);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.pricing-beta-banner p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.pricing-beta-banner strong {
    color: var(--success);
}

.pricing-card-beta .pricing-price {
    flex-wrap: wrap;
    gap: 8px;
}

.price-struck {
    text-decoration: line-through;
    opacity: 0.5;
    display: flex;
    align-items: baseline;
}

.price-struck .currency {
    font-size: 1rem;
}

.price-struck .amount {
    font-size: 2rem;
}

.price-free {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--success) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== FAQ Section ===== */
.faq {
    padding: 120px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding-bottom: 24px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== CTA Section ===== */
.cta {
    padding: 120px 0;
    background: var(--bg-card);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta h2 {
    margin-bottom: 16px;
}

.cta p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 16px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

.footer-links h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 20px;
}

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

.footer-links li {
    margin-bottom: 12px;
}

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

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

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-bottom a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--primary-light);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .hero-visual {
        display: none;
    }

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

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

    .downloads-grid .download-card:last-child {
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;
    }

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

    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .pricing-card.featured {
        transform: none;
    }

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

@media (max-width: 768px) {
    .nav-links, .nav-cta {
        display: none;
    }

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

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

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

    .downloads-grid {
        grid-template-columns: 1fr;
    }

    .downloads-grid .download-card:last-child {
        grid-column: auto;
        max-width: none;
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        margin-left: auto;
        margin-right: auto;
    }

    .social-links {
        justify-content: center;
    }
}

/* ===== Changelog Section ===== */
.changelog {
    padding: 140px 0 80px;
    min-height: 100vh;
}

.changelog .section-header {
    margin-bottom: 48px;
}

.changelog .section-header h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.changelog-content {
    max-width: 800px;
    margin: 0 auto;
}

.changelog-version {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 32px;
}

.changelog-version:hover {
    border-color: var(--border-light);
}

.version-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.version-header h2 {
    font-size: 1.75rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.version-header time {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.version-section:last-child {
    margin-bottom: 0;
}

.version-section h3 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 3px solid var(--primary);
}

.changelog-list {
    list-style: none;
    padding: 0;
}

.changelog-list li {
    position: relative;
    padding: 12px 0 12px 24px;
    color: var(--text-secondary);
    line-height: 1.7;
    border-bottom: 1px solid var(--border-color);
}

.changelog-list li:last-child {
    border-bottom: none;
}

.changelog-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

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

.changelog-list li code {
    background: var(--bg-elevated);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 0.85em;
    color: var(--primary-light);
}

.changelog-sublist {
    list-style: none;
    padding: 0;
    margin-top: 12px;
}

.changelog-sublist li {
    position: relative;
    padding: 8px 0 8px 20px;
    color: var(--text-secondary);
    line-height: 1.6;
    border-bottom: none;
}

.changelog-sublist li::before {
    content: '–';
    position: absolute;
    left: 0;
    top: 8px;
    color: var(--text-muted);
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
}

.changelog-sublist li code {
    background: var(--bg-elevated);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 0.85em;
    color: var(--primary-light);
}

@media (max-width: 768px) {
    .changelog {
        padding: 120px 0 60px;
    }

    .version-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .changelog-version {
        padding: 24px;
    }
}
