/* LamellaStudio Landing Page — Photon-inspired Theme */

/* ===== CSS Variables ===== */
:root {
    /* Gradient accent colors (Photon style) */
    --gradient-green: #9dc66b;
    --gradient-teal: #4fa49a;
    --gradient-blue: #4361c2;

    /* Teal accent (primary interactive color) */
    --accent: #6bd4c8;
    --accent-hover: #5cc4b8;
    --accent-glow: rgba(107, 212, 200, 0.2);
    --accent-subtle: rgba(107, 212, 200, 0.08);

    /* Dark backgrounds throughout */
    --bg-primary: #1a1a26;
    --bg-secondary: #1f1f2e;
    --bg-tertiary: #252536;
    --bg-elevated: #2a2a3c;
    --bg-dark-accent: #2b3d4a;

    /* Text (all light, on dark bg) */
    --text-primary: #e8e8ec;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.45);

    /* Borders */
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);

    /* Typography */
    --font-display: 'Source Sans Pro', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Source Sans Pro', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing — compact */
    --space-xs: 0.375rem;
    --space-sm: 0.75rem;
    --space-md: 1.25rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Container */
    --container-max: 1200px;
    --container-padding: 1.5rem;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Photon gradient */
    --photon-gradient: linear-gradient(45deg, #9dc66b 0%, #6bd4c8 33%, #4fa49a 66%, #4361c2 100%);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.65;
    color: var(--text-secondary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

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

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--text-primary);
    line-height: 1.3;
    font-weight: 300;
    letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3rem); font-weight: 200; }
h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 300; }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 400; }
h4 { font-size: 1.125rem; font-weight: 400; }

p {
    max-width: 65ch;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    white-space: nowrap;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.25);
}

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

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

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 0.95rem;
}

.btn-block {
    width: 100%;
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0.75rem 0;
    background: rgba(26, 26, 38, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition-base);
}

.nav.scrolled {
    background: rgba(26, 26, 38, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-primary);
}

.logo-lamella {
    font-weight: 300;
}

.logo-studio {
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 400;
}

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

.nav-cta {
    margin-left: auto;
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem;
}

.nav .btn-ghost {
    color: var(--text-secondary);
    border-color: var(--border-light);
}

.nav .btn-ghost:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.3);
}

.nav .btn-primary {
    background: var(--accent);
    border-color: var(--accent);
}

.nav-toggle {
    display: none;
    padding: 0.5rem;
    color: var(--text-secondary);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--container-padding);
    overflow: hidden;
    background: var(--bg-primary);
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-canvas canvas {
    display: block;
}

.hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, var(--bg-primary), transparent);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
}

.hero-content h1 {
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    font-weight: 200;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

/* ===== Section Base ===== */
.section {
    position: relative;
    padding: var(--space-3xl) 0;
    z-index: 1;
}

/* All sections dark */
.section-light {
    background: var(--bg-primary);
}

.section-light-alt {
    background: var(--bg-secondary);
}

/* Accent-tinted dark sections */
.section-dark {
    background: var(--bg-tertiary);
    background-image: linear-gradient(45deg, rgba(157, 198, 107, 0.04), rgba(107, 212, 200, 0.04), rgba(67, 97, 194, 0.04));
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-title {
    margin-bottom: var(--space-xs);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
}

/* ===== Features Grid ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.feature-card {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
    padding: var(--space-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.feature-card:hover {
    border-color: var(--border-light);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--accent-subtle);
    border-radius: var(--radius-sm);
}

/* Photon-style gradient icon colors */
.feature-card:nth-child(1) .feature-icon { color: #c3e895; background: rgba(195, 232, 149, 0.1); }
.feature-card:nth-child(2) .feature-icon { color: #6bd4c8; background: rgba(107, 212, 200, 0.1); }
.feature-card:nth-child(3) .feature-icon { color: #57aed3; background: rgba(87, 174, 211, 0.1); }
.feature-card:nth-child(4) .feature-icon { color: #6b88e6; background: rgba(107, 136, 230, 0.1); }

.feature-text {
    flex: 1;
    min-width: 0;
}

.feature-title {
    margin-bottom: 0.2rem;
    font-weight: 400;
    font-size: 1.05rem;
}

.feature-description {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ===== Showcase (image + text alternating) ===== */
.showcase {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.showcase-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.showcase-item:nth-child(even) {
    direction: rtl;
}

.showcase-item:nth-child(even) > * {
    direction: ltr;
}

.showcase-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.showcase-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.showcase-image:hover img {
    transform: scale(1.03);
}

.showcase-text h3 {
    font-size: 1.35rem;
    margin-bottom: var(--space-xs);
    font-weight: 300;
}

.showcase-text p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ===== How It Works ===== */
.steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    max-width: 700px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: white;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.step-content {
    padding-top: 0.35rem;
}

.step-title {
    margin-bottom: 0.25rem;
    font-weight: 400;
}

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

/* ===== Feature List ===== */
.feature-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.feature-category {
    padding: var(--space-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.feature-category:hover {
    border-color: var(--border-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.category-title {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-sm);
}

.category-features li {
    padding: 0.25rem 0;
    padding-left: var(--space-md);
    position: relative;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.category-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

/* ===== Pricing ===== */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

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

.toggle-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background: rgba(107, 212, 200, 0.2);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-left: 0.25rem;
}

.toggle {
    position: relative;
    width: 48px;
    height: 26px;
    cursor: pointer;
}

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

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--text-primary);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.toggle input:checked + .toggle-slider {
    background: var(--accent);
    border-color: var(--accent);
}

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

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    align-items: start;
}

.pricing-card {
    position: relative;
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.pricing-card:hover {
    border-color: var(--border-light);
}

.pricing-featured {
    border-color: var(--accent);
    transform: scale(1.03);
    background: rgba(107, 212, 200, 0.05);
}

.pricing-featured:hover {
    border-color: var(--accent);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 1rem;
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.pricing-header {
    text-align: center;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border);
}

.pricing-name {
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.price-amount {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 200;
    color: var(--text-primary);
}

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

.pricing-features {
    margin-bottom: var(--space-md);
}

.pricing-features li {
    padding: 0.25rem 0;
    padding-left: var(--space-lg);
    position: relative;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pricing-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236bd4c8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.pricing-features li.feature-disabled {
    text-decoration: line-through;
    color: var(--text-muted);
    opacity: 0.45;
}

.pricing-features li.feature-disabled::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.3)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
}

.pricing-card .btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.pricing-card .btn-secondary {
    background: transparent;
    border-color: var(--border-light);
    color: var(--text-primary);
}

.pricing-card .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.25);
}

/* ===== FAQ ===== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

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

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    text-align: left;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 400;
    transition: color var(--transition-fast);
}

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

.faq-question span {
    flex: 1;
}

.faq-icon {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform var(--transition-base);
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base), padding var(--transition-base);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: var(--space-sm);
}

.faq-answer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ===== CTA Section ===== */
.cta {
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    margin-bottom: var(--space-xs);
}

.cta-subtitle {
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

/* ===== Footer ===== */
.footer {
    padding: var(--space-xl) 0 var(--space-sm);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.footer-brand .nav-logo {
    font-size: 1.125rem;
    color: var(--text-primary);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-nav a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

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

.footer-contact a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    text-align: center;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: none;
}

/* ===== Gradient Divider ===== */
.gradient-divider {
    height: 4px;
    background: var(--photon-gradient);
    border: none;
}

/* ===== Scroll Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .pricing-featured {
        transform: none;
    }

    .showcase-item {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .showcase-item:nth-child(even) {
        direction: ltr;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        padding: var(--space-md);
        background: rgba(26, 26, 38, 0.98);
        border-bottom: 1px solid var(--border);
        gap: var(--space-xs);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        padding-top: calc(var(--space-3xl) + 60px);
        min-height: auto;
    }

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

    .hero-actions .btn {
        width: 100%;
    }

    .step {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .section {
        padding: var(--space-2xl) 0;
    }

    .features-grid,
    .pricing-grid,
    .feature-categories {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .hero-subtitle {
        font-size: 1rem;
    }

    .feature-card,
    .pricing-card,
    .feature-category {
        padding: var(--space-lg);
    }

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

/* ===== Print ===== */
@media print {
    .nav,
    .hero-canvas,
    .hero-gradient {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .section {
        padding: 2rem 0;
    }
}
