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

:root {
    /* Subtle Google Brand Colors */
    --google-blue: #1a73e8;
    --google-red: #ea4335;
    --google-yellow: #fbbc05;
    --google-green: #34a853;
    
    --google-blue-rgb: 26, 115, 232;
    --google-green-rgb: 52, 168, 83;
    
    /* Apple Glassmorphism Colors (Light Theme default) */
    --bg-gradient: radial-gradient(circle at 10% 20%, rgba(242, 245, 249, 1) 0%, rgba(228, 235, 243, 1) 90%);
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.4);
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-inverse: #ffffff;
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    --shadow-hover: 0 12px 40px 0 rgba(31, 38, 135, 0.08);
}

[data-theme="dark"] {
    /* Dark Mode Glassmorphism */
    --bg-gradient: radial-gradient(circle at 10% 20%, rgba(15, 22, 36, 1) 0%, rgba(9, 13, 22, 1) 90%);
    --glass-bg: rgba(20, 28, 43, 0.45);
    --glass-border: rgba(255, 255, 255, 0.06);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-inverse: #090d16;
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --shadow-hover: 0 12px 40px 0 rgba(0, 0, 0, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass);
    border-radius: 24px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-panel:hover {
    box-shadow: var(--shadow-hover);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.gemini-sparkle {
    width: 28px;
    height: 28px;
}

.brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
}

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

.theme-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-primary);
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.theme-btn:hover {
    background: rgba(var(--google-blue-rgb), 0.1);
}

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

.google-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    background: rgba(var(--google-blue-rgb), 0.08);
    border: 1px solid rgba(var(--google-blue-rgb), 0.15);
    color: var(--google-blue);
}

[data-theme="dark"] .google-pill {
    background: rgba(144, 202, 249, 0.08);
    border-color: rgba(144, 202, 249, 0.15);
    color: #90caf9;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

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

/* Main Cards Section */
.main-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    margin-bottom: 80px;
    align-items: stretch;
}

.benefits-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.benefits-title {
    font-size: 1.6rem;
}

.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.benefit-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(var(--google-green-rgb), 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--google-green);
    flex-shrink: 0;
}

.benefit-text h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.benefit-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Purchase / Checkout Card */
.checkout-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.checkout-header {
    margin-bottom: 24px;
}

.product-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--google-red);
    margin-bottom: 6px;
    display: block;
}

.product-price {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.4);
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .form-input {
    background: rgba(0, 0, 0, 0.2);
}

.form-input:focus {
    border-color: var(--google-blue);
    box-shadow: 0 0 0 3px rgba(var(--google-blue-rgb), 0.15);
}

.btn-buy {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    border: none;
    background: var(--google-blue);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(var(--google-blue-rgb), 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-buy:active {
    transform: scale(0.98);
}

.btn-buy:hover {
    background: #1557b5;
    box-shadow: 0 6px 20px rgba(var(--google-blue-rgb), 0.45);
}

.mp-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.mp-logo {
    height: 14px;
}

/* Modal Checkout */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    max-width: 480px;
    width: 100%;
    padding: 40px;
    position: relative;
    animation: scaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

/* Footer */
footer {
    margin-top: auto;
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Animations */
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 768px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2.25rem;
    }
}

/* Features Grid Detail Section */
.details-section {
    padding: 60px 0 80px;
}
.details-header {
    text-align: center;
    margin-bottom: 48px;
}
.details-header h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}
.details-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}
.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}
.detail-card {
    padding: 36px;
}
.detail-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}
.detail-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(var(--google-blue-rgb), 0.08);
    color: var(--google-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.detail-card-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}
.detail-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
}
.detail-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}
.tech-badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(var(--google-blue-rgb), 0.06);
    border: 1px solid rgba(var(--google-blue-rgb), 0.12);
    color: var(--google-blue);
}
.tech-badge.opus {
    background: rgba(234, 67, 53, 0.06);
    border-color: rgba(234, 67, 53, 0.12);
    color: var(--google-red);
}
.tech-badge.flash {
    background: rgba(52, 168, 83, 0.06);
    border-color: rgba(52, 168, 83, 0.12);
    color: var(--google-green);
}

/* Floating WhatsApp Button */
.wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}
.wa-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}
.wa-float svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
}

/* Interactive Demo Section */
.demo-section {
    padding: 60px 0 80px;
    background: rgba(var(--google-blue-rgb), 0.01);
}
.demo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}
.demo-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
}
.demo-header {
    margin-bottom: 24px;
}
.demo-visual {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.demo-image {
    width: 100%;
    height: auto;
    display: block;
}
.slider-container {
    margin: 24px 0;
}
.custom-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 5px;
    background: var(--glass-border);
    outline: none;
}
.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--google-blue);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(var(--google-blue-rgb), 0.3);
}
.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 8px;
}
.capacity-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}
.stat-box {
    text-align: center;
    background: rgba(255,255,255,0.3);
    border: 1px solid var(--glass-border);
    padding: 16px;
    border-radius: 16px;
}
[data-theme="dark"] .stat-box {
    background: rgba(0,0,0,0.2);
}
.stat-val {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--google-blue);
    display: block;
    margin-bottom: 4px;
}
.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* AI Playground Tabs */
.playground-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.tab-btn {
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.tab-btn.active {
    background: var(--google-blue);
    color: white;
    border-color: var(--google-blue);
}
.playground-content {
    display: none;
    animation: fadeIn 0.4s ease-out;
}
.playground-content.active {
    display: block;
}
.console-mockup {
    background: #1e1e1e;
    color: #f8f8f2;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    height: 240px;
    overflow-y: auto;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
    text-align: left;
}
.console-prompt {
    color: #50fa7b;
    margin-bottom: 12px;
}
.console-response {
    color: #f8f8f2;
    white-space: pre-wrap;
    line-height: 1.5;
}

@media (max-width: 992px) {
    .demo-grid {
        grid-template-columns: 1fr;
    }
}

/* Scanner Animation for AI rendering */
@keyframes scan {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

#scanner-line {
    background: linear-gradient(to right, transparent, var(--google-blue), transparent);
    box-shadow: 0 0 8px var(--google-blue);
}
