/* CSS Variables & Tokens */
:root {
    --bg-primary: hsl(222, 47%, 11%);
    --bg-secondary: hsl(217, 33%, 17%);
    --bg-tertiary: hsl(215, 25%, 27%);
    --text-primary: hsl(210, 40%, 98%);
    --text-secondary: hsl(215, 20%, 65%);
    --text-muted: hsl(215, 15%, 50%);
    --accent-emerald: hsl(150, 84%, 37%);
    --accent-emerald-hover: hsl(150, 84%, 30%);
    --accent-blue: hsl(217, 91%, 60%);
    --accent-blue-hover: hsl(217, 91%, 50%);
    --danger: hsl(350, 84%, 60%);
    --warning: hsl(45, 93%, 47%);
    --border: hsl(217, 30%, 20%);
    --border-focus: hsl(217, 50%, 40%);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --max-width: 1200px;
    --shadow: 0 10px 30px -10px rgba(2, 6, 23, 0.5);
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
}

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 8px;
    border: none;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-md {
    padding: 12px 24px;
    font-size: 0.95rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: var(--text-primary);
}

.btn-primary:hover {
    background-color: var(--accent-blue-hover);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: var(--bg-tertiary);
    transform: translateY(-2px);
}

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

.btn-outline-primary:hover {
    background-color: var(--accent-blue);
    color: var(--text-primary);
}

.btn-emerald {
    background-color: var(--accent-emerald);
    color: var(--text-primary);
    width: 100%;
}

.btn-emerald:hover {
    background-color: var(--accent-emerald-hover);
    transform: translateY(-2px);
}

.btn-white {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

.btn-white:hover {
    background-color: var(--text-secondary);
    transform: translateY(-2px);
}

/* Header Section */
.header {
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    color: var(--accent-emerald);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
}

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

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

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

/* Hero Section */
.hero {
    padding: 80px 0;
    border-bottom: 1px solid var(--border);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.badge-airgap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-title span {
    color: var(--accent-blue);
}

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

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

/* Mockup Window representing the Local UI */
.mockup-window {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.mockup-header {
    height: 40px;
    background-color: rgba(2, 6, 23, 0.3);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
}

.mockup-header span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot-red { background-color: var(--danger); }
.dot-yellow { background-color: var(--warning); }
.dot-green { background-color: var(--accent-emerald); }

.mockup-content {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    background-color: rgba(15, 23, 42, 0.4);
    min-height: 280px;
}

.mockup-panel-left, .mockup-panel-right {
    background-color: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    display: flex;
    flex-direction: column;
}

.mockup-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mockup-textarea {
    font-size: 0.85rem;
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: 4px;
    flex-grow: 1;
    font-style: italic;
    background-color: rgba(2, 6, 23, 0.3);
    margin-bottom: 12px;
}

.mockup-button {
    background-color: var(--accent-blue);
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    padding: 8px;
    border-radius: 4px;
}

.mockup-badge-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 4px;
    align-self: flex-start;
}

.mockup-badge-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    margin-top: 8px;
    margin-bottom: 4px;
    align-self: flex-start;
}

.mockup-text-muted {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    padding-left: 4px;
}

.mockup-reformulation {
    border-top: 1px solid var(--border);
    margin-top: auto;
    padding-top: 10px;
    font-size: 0.85rem;
    color: var(--accent-emerald);
    font-weight: 500;
}

/* Features & Steps Section Headers */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 56px auto;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

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

.feature-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: all 0.2s ease;
}

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

.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-secondary);
    margin-bottom: 24px;
}

.text-emerald { color: var(--accent-emerald); }
.text-blue { color: var(--accent-blue); }
.text-red { color: var(--danger); }

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

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

/* Onboarding Steps Section */
.onboarding {
    padding: 100px 0;
    border-bottom: 1px solid var(--border);
}

.onboarding-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

.step-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    position: relative;
    z-index: 1;
}

.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--accent-blue);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -18px;
    left: 32px;
}

.step-card h3 {
    margin-top: 10px;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

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

/* Pricing & Licenses Section */
.pricing {
    padding: 100px 0;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 800px;
    margin: 0 auto 64px auto;
}

.pricing-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 36px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card.featured {
    border: 2px solid var(--accent-blue);
    box-shadow: var(--shadow);
}

.card-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
    border: 1px solid rgba(59, 130, 246, 0.2);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.price {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    margin-bottom: 16px;
}

.price span {
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.price-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 32px;
    min-height: 48px;
}

.price-features {
    list-style: none;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-features li {
    font-size: 0.95rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-features li::before {
    content: "✓";
    color: var(--accent-emerald);
    font-weight: 800;
}

/* Request License Form Card */
.request-form-card {
    max-width: 720px;
    margin: 0 auto;
    background-color: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow);
}

.form-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 8px;
    text-align: center;
}

.form-subtitle {
    color: var(--text-secondary);
    text-align: center;
    font-size: 0.95rem;
    margin-bottom: 32px;
}

.payment-info-box {
    background-color: rgba(16, 185, 129, 0.05);
    border: 1px dashed rgba(16, 185, 129, 0.3);
    color: var(--text-primary);
    padding: 20px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    margin-bottom: 32px;
    line-height: 1.8;
}

.payment-info-box .highlight {
    font-weight: 700;
    color: var(--accent-emerald);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input, .form-group select {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Download Section */
.download {
    padding: 100px 0;
    text-align: center;
}

.download h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.download p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.download-note {
    font-size: 0.85rem;
    color: var(--text-muted) !important;
}

/* Footer Section */
.footer {
    background-color: rgba(2, 6, 23, 0.4);
    border-top: 1px solid var(--border);
    padding: 40px 0;
    text-align: center;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

/* Responsiveness */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .features-grid, .onboarding-steps {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    .download-buttons .btn {
        width: 100%;
        max-width: 320px;
    }
}
