/* ===== VARIABLES ===== */
:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-secondary: #0f172a;
    --color-accent: #f97316;
    --color-success: #22c55e;
    --color-warning: #eab308;
    --color-danger: #ef4444;

    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-border: #e2e8f0;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width: 1200px;
    --border-radius: 12px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

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

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

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

.btn-large {
    padding: 18px 36px;
    font-size: 18px;
}

/* ===== NAVIGATION ===== */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.logo-img {
    height: 40px;
    width: auto;
}

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

.nav-cta {
    padding: 10px 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    color: white;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-cta:hover {
    background: white;
    color: var(--color-secondary);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--color-secondary) 0%, #1e3a5f 100%);
    color: white;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    background: var(--color-accent);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    max-width: 800px;
}

.hero-subtitle {
    font-size: clamp(18px, 2.5vw, 22px);
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-subtitle strong {
    color: var(--color-accent);
}

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

.hero .btn-secondary {
    border-color: rgba(255,255,255,0.3);
    color: white;
}

.hero .btn-secondary:hover {
    border-color: white;
    background: rgba(255,255,255,0.1);
}

/* ===== HERO WITH PRODUCT IMAGE ===== */
.hero-split {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    position: relative;
    z-index: 1;
    gap: 60px;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

.hero-split .hero-text {
    flex: 1;
    text-align: left;
}

.hero-split .hero-text h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-split .hero-text .hero-subtitle {
    margin-bottom: 40px;
}

.hero-split .hero-image {
    flex: 0 0 auto;
    max-width: 340px;
}

.hero-split .hero-image img {
    max-height: 520px;
    width: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}

/* ===== PRODUCT SHOWCASE IMAGE ===== */
.product-image-showcase {
    text-align: center;
    margin: 40px auto 0;
    max-width: 800px;
}

.product-image-showcase img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.product-image-showcase .image-caption {
    margin-top: 12px;
    font-size: 14px;
    color: var(--color-text-muted);
    font-style: italic;
}

/* ===== SECTIONS ===== */
section {
    padding: 100px 0;
}

section h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 60px;
}

/* ===== FEATURES GRID ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: white;
    padding: 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: all 0.2s;
}

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

.feature-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

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

.feature-card p {
    color: var(--color-text-muted);
}

/* ===== SPECS TABLE ===== */
.specs-section {
    background: var(--color-bg-alt);
}

.specs-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-collapse: collapse;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.specs-table th {
    text-align: left;
    padding: 14px 24px;
    background: var(--color-primary);
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.specs-table td {
    padding: 14px 24px;
    border-bottom: 1px solid var(--color-border);
    font-size: 15px;
}

.specs-table tr:last-child td {
    border-bottom: none;
}

.specs-table tr:nth-child(even) td {
    background: var(--color-bg-alt);
}

.specs-table td:first-child {
    font-weight: 600;
    color: var(--color-text);
    width: 40%;
}

.specs-table td:last-child {
    color: var(--color-text-muted);
}

/* ===== USE CASES ===== */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.use-case-card {
    background: white;
    padding: 28px;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

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

.use-case-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.use-case-card p {
    color: var(--color-text-muted);
    font-size: 14px;
}

/* ===== CAPABILITIES (DARK) ===== */
.capabilities-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
}

.capabilities-section h2 {
    color: white;
}

.capabilities-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

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

.capability-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 28px;
    text-align: center;
    transition: all 0.3s ease;
}

.capability-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.capability-card.highlight {
    background: rgba(249, 115, 22, 0.15);
    border-color: var(--color-accent);
}

.capability-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.capability-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

.capability-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* ===== BENEFITS LIST ===== */
.benefits-list {
    max-width: 700px;
    margin: 0 auto;
    list-style: none;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 16px;
}

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

.benefit-check {
    color: var(--color-success);
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.benefits-list strong {
    color: var(--color-text);
}

.benefits-list span {
    color: var(--color-text-muted);
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #1e3a5f 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    color: white;
}

.cta-section p {
    color: rgba(255,255,255,0.8);
    font-size: 18px;
    margin-bottom: 40px;
}

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

.cta-section .btn-secondary {
    border-color: rgba(255,255,255,0.3);
    color: white;
}

.cta-note {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--color-secondary);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 8px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
}

/* ===== AUTH GATE ===== */
.auth-gate {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-secondary) 0%, #1e3a5f 100%);
}

.auth-box {
    background: white;
    padding: 48px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.auth-box .logo-img {
    height: 48px;
    margin-bottom: 24px;
}

.auth-box h2 {
    font-size: 22px;
    margin-bottom: 8px;
    text-align: center;
}

.auth-box p {
    color: var(--color-text-muted);
    margin-bottom: 24px;
    font-size: 14px;
}

.auth-box input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--font-family);
    margin-bottom: 12px;
    outline: none;
    transition: border-color 0.2s;
}

.auth-box input:focus {
    border-color: var(--color-primary);
}

.auth-box .btn {
    width: 100%;
    margin-top: 8px;
}

.auth-error {
    color: var(--color-danger);
    font-size: 14px;
    margin-top: 12px;
    display: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav {
        padding: 16px 20px;
    }

    .nav-links {
        display: none;
    }

    section {
        padding: 60px 0;
    }

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

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

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

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

    .btn-large {
        width: 100%;
        max-width: 300px;
    }

    .specs-table td,
    .specs-table th {
        padding: 12px 16px;
    }

    .hero-split {
        flex-direction: column;
        text-align: center;
        padding: 120px 24px 60px;
        gap: 40px;
    }

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

    .hero-split .hero-image {
        max-width: 240px;
    }

    .hero-split .hero-image img {
        max-height: 360px;
    }
}
