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

/* Brand Variables */
:root {
    /* Color Palette */
    --accent-hex: 59, 96, 228; /* Royal Blue */
    --accent: rgb(var(--accent-hex));
    --accent-bg: rgba(var(--accent-hex), 0.15);
    --accent-hover: #5275EC;
    --accent-light: #00C4FF;
    
    /* Dark Theme Default */
    --bg-color: #090d16;
    --card-bg: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
    --input-bg: #0f172a;
    --input-focus-border: rgba(var(--accent-hex), 0.5);
    --badge-bg: #1e293b;
    
    /* Layout */
    --max-width: 1200px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Outfit', var(--font-sans);
    --font-mono: 'Roboto Mono', monospace;
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables */
body.light-theme {
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border-color: rgba(15, 23, 42, 0.08);
    --border-hover: rgba(15, 23, 42, 0.15);
    --shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(15, 23, 42, 0.05);
    --input-bg: #f1f5f9;
    --input-focus-border: rgba(var(--accent-hex), 0.4);
    --badge-bg: #e2e8f0;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
    -webkit-font-smoothing: antialiased;
}

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

button, input {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

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

.grid {
    display: grid;
    gap: 24px;
}

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

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

header.scrolled {
    height: 70px;
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
}

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

nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

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

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

/* Theme Toggle Button */
.theme-toggle-btn {
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle-btn:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--text-secondary);
    transition: transform 0.5s ease, fill 0.3s ease;
}

.theme-toggle-btn:hover svg {
    fill: var(--accent);
}

body.light-theme .theme-toggle-btn .sun-icon {
    display: none;
}
body:not(.light-theme) .theme-toggle-btn .moon-icon {
    display: none;
}

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

.btn-primary {
    background: var(--accent);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--accent-hex), 0.3);
}

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

.btn-secondary:hover {
    border-color: var(--border-hover);
    background: rgba(var(--accent-hex), 0.05);
    transform: translateY(-2px);
}

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

/* Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.hero::before, .hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: var(--radius-full);
    filter: blur(100px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

.hero::before {
    top: 10%;
    left: -10%;
    background: var(--accent);
}

.hero::after {
    bottom: 10%;
    right: -10%;
    background: #3b82f6;
}

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

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

.pill-badge {
    display: inline-block;
    width: fit-content;
    align-self: flex-start;
    background: var(--accent-bg);
    color: var(--accent);
    border: 1px solid rgba(var(--accent-hex), 0.2);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: var(--radius-full);
}

h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 540px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 10px;
}

/* Download Store Badge Container */
.store-badge-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
}

.store-badge {
    height: 44px;
    display: inline-flex;
    transition: var(--transition);
}

.disabled-badge {
    cursor: not-allowed;
    opacity: 0.55;
    filter: grayscale(1);
}

.badge-status {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Hero Feature Checklist */
.hero-features {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.hero-feature-item svg {
    flex-shrink: 0;
}

/* Product Visualizer */
.hero-visualizer {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

.hero-product-shot {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.hero-product-shot:hover {
    border-color: var(--accent);
}

.hero-product-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.hero-product-shot:hover .hero-product-img {
    transform: scale(1.02);
}

/* Subscribe Section */
.subscribe-section {
    padding: 60px 0;
}

.subscribe-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(var(--accent-hex), 0.04) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 60px 48px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.subscribe-card::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(var(--accent-hex), 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.subscribe-content {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 2;
    position: relative;
}

.subscribe-content h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
}

.subscribe-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

.subscribe-form {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.input-wrapper {
    display: flex;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    gap: 12px;
}

.form-input {
    flex-grow: 1;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    color: var(--text-primary);
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--input-focus-border);
}

.subscribe-form button {
    flex-shrink: 0;
}

.form-feedback {
    font-size: 0.9rem;
    font-weight: 600;
    min-height: 20px;
    text-align: center;
}

.form-feedback.success {
    color: var(--accent-light);
}

.form-feedback.error {
    color: #ef4444;
}

.section-header {
    margin-bottom: 48px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
    line-height: 1.6;
}

/* Features Section (Renamed from Gallery) */
.features-section {
    padding: 80px 0;
}

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

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.feature-img-wrapper {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: var(--input-bg);
    position: relative;
}

.feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.feature-card:hover .feature-img {
    transform: scale(1.05);
}

.feature-details {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.feature-details h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.feature-details p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item[open] {
    border-color: rgba(var(--accent-hex), 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.faq-question {
    padding: 24px;
    font-weight: 700;
    font-size: 1.15rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    list-style: none;
    color: var(--text-primary);
    transition: var(--transition);
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-question .chevron-icon {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}

.faq-question:hover .chevron-icon {
    color: var(--accent);
}

.faq-item[open] .faq-question .chevron-icon {
    transform: rotate(180deg);
    color: var(--accent);
}

.faq-answer {
    padding: 0 24px 24px 24px;
    border-top: 1px solid var(--border-color);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.faq-answer p {
    margin: 0;
}

.faq-answer strong {
    color: var(--text-primary);
}

/* Specifications Section */
.specs-section {
    padding: 80px 0;
}

.specs-table-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.specs-table th, .specs-table td {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.specs-table th {
    background: rgba(var(--accent-hex), 0.02);
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.1rem;
}

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

.specs-table td.label-cell {
    font-weight: 600;
    color: var(--text-secondary);
    width: 250px;
}

.specs-table td.value-cell {
    font-weight: 500;
}

.specs-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--badge-bg);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-family: var(--font-mono);
    margin-right: 8px;
    margin-bottom: 4px;
}

/* Glassmorphic Modal Overlays (SSO Login & Privacy Policy) */
.login-modal-overlay, .privacy-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.login-modal-overlay.open, .privacy-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.login-modal-card, .privacy-modal-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 440px;
    padding: 40px 32px;
    box-shadow: var(--shadow);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.privacy-modal-card {
    max-width: 560px; /* Wider for document reading */
}

.login-modal-overlay.open .login-modal-card, .privacy-modal-overlay.open .privacy-modal-card {
    transform: translateY(0px);
}

.modal-close-btn {
    position: absolute;
    top: 14px;
    right: 20px;
    font-size: 2.2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    background: none;
    border: none;
    line-height: 1;
}

.modal-close-btn:hover {
    color: var(--text-primary);
}

.modal-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
}

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

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

.sso-btn {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.sso-apple {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.sso-apple:hover {
    background: #111111;
}

.sso-google {
    background: #ffffff;
    color: #1f2937;
    border-color: rgba(15,23,42,0.12);
}

.sso-google:hover {
    background: #f9fafb;
}

.modal-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.modal-divider::before, .modal-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.modal-divider:not(:empty)::before {
    margin-right: .8em;
}

.modal-divider:not(:empty)::after {
    margin-left: .8em;
}

.modal-login-form .form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.modal-login-form label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    background: var(--card-bg);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
}

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

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

/* Responsiveness */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.8rem;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-visualizer {
        max-width: 450px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    nav {
        display: none; /* simple collapse/hidden for landing layout */
    }
    
    /* Ensure header remains compact and well-spaced on mobile */
    header {
        height: 70px;
    }
    
    header.scrolled {
        height: 60px;
    }
    
    .logo-container {
        font-size: 1.35rem;
    }
    
    .hero {
        padding-top: 110px;
        padding-bottom: 40px;
    }
    
    .subscribe-section {
        padding: 40px 0;
    }
    
    .subscribe-card {
        padding: 40px 24px;
    }
    
    .subscribe-content h2 {
        font-size: 1.8rem;
    }
    
    .input-wrapper {
        flex-direction: column;
        width: 100%;
    }
    
    .input-wrapper .form-input,
    .input-wrapper button {
        width: 100%;
    }
    
    .features-section, .faq-section, .specs-section {
        padding: 50px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 24px;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 20px;
    }
}

@media (max-width: 576px) {
    .login-modal-overlay, .privacy-modal-overlay {
        padding: 16px;
    }
    
    .login-modal-card, .privacy-modal-card {
        padding: 30px 20px;
    }
    
    /* Specifications Table Mobile Stacking */
    .specs-table, 
    .specs-table tbody, 
    .specs-table tr, 
    .specs-table td {
        display: block;
        width: 100% !important;
    }
    
    .specs-table thead {
        display: none;
    }
    
    .specs-table tr {
        padding: 16px 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .specs-table tr:last-child {
        border-bottom: none;
    }
    
    .specs-table td {
        padding: 6px 16px;
        border-bottom: none;
    }
    
    .specs-table td.label-cell {
        width: 100%;
        color: var(--text-primary);
        font-weight: 700;
        padding-bottom: 2px;
        font-size: 0.95rem;
    }
    
    .specs-table td.value-cell {
        width: 100%;
        color: var(--text-secondary);
        font-size: 0.9rem;
        padding-top: 2px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.1rem;
        line-height: 1.25;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .hero-buttons {
        gap: 16px;
        justify-content: flex-start;
    }
    
    .feature-img-wrapper {
        height: 200px;
    }
    
    .feature-card {
        padding: 24px;
    }
    
    .subscribe-card {
        padding: 32px 16px;
    }
    
    .subscribe-card::after {
        display: none;
    }
}
