/**
 * ═════════════════════════════════════════════════════════════════════════════
 *  Ex Apeirou Studios™ — Shared Styles
 *  Common styling for all Ex Apeirou Studios web properties
 * ═════════════════════════════════════════════════════════════════════════════
 *
 *  Copyright © 2025, 2026 Ex Apeirou Studios™, LLC. All rights reserved.
 *
 * ═════════════════════════════════════════════════════════════════════════════
 */

:root {
    --bg-deep: #0a0b0f;
    --bg-surface: #12141a;
    --bg-elevated: #1a1d24;
    --text-primary: #e8e6e3;
    --text-secondary: #a09c94;
    --text-muted: #6b6860;
    --accent-primary: #00d4aa;
    --accent-secondary: #00a388;
    --glow-primary: rgba(0, 212, 170, 0.3);
    --border-subtle: rgba(255, 255, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
}

/* Particle Canvas */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: transparent;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(10, 11, 15, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 4rem;
    border-bottom: 1px solid var(--border-subtle);
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.logo span {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.3s ease;
    letter-spacing: 0.02em;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 5.5rem 2rem 2rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 2rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-badge span {
    color: var(--accent-primary);
}

.greek-text {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

h1 .highlight {
    color: var(--accent-primary);
    text-shadow: 0 0 40px var(--glow-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    clip-path: polygon(
        6px 0, calc(100% - 6px) 0,
        100% 6px, 100% calc(100% - 6px),
        calc(100% - 6px) 100%, 6px 100%,
        0 calc(100% - 6px), 0 6px
    );
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--bg-deep);
}

.btn-primary:hover {
    background: var(--accent-secondary);
    box-shadow: 0 0 30px var(--glow-primary);
}

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

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

/* Section Styling */
section {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Feature/Product Cards Section */
.features,
.products {
    padding: 4rem 4rem 12rem;
    position: relative;
    z-index: 10;
    overflow: visible;
}

.features-grid,
.products-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 650px;
    margin: 0 auto;
    overflow: visible;
}

.feature-card,
.product-card {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    z-index: 1;
}

.feature-card.visible,
.product-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.active,
.product-card.active {
    z-index: 100;
}

.feature-main,
.product-main {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    clip-path: polygon(
        8px 0, calc(100% - 8px) 0,
        100% 8px, 100% calc(100% - 8px),
        calc(100% - 8px) 100%, 8px 100%,
        0 calc(100% - 8px), 0 8px
    );
}

.feature-main::before,
.product-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-primary), #7b61ff);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card.active .feature-main,
.product-card.active .product-main {
    border-color: var(--accent-primary);
    background: var(--bg-elevated);
}

.feature-card.active .feature-main::before,
.product-card.active .product-main::before {
    opacity: 1;
}

.feature-icon,
.product-icon {
    width: 3.5rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    filter: drop-shadow(0 0 8px var(--glow-primary));
    flex-shrink: 0;
    position: relative;
    z-index: 101;
    transition: all 0.3s ease;
}

.feature-icon::after,
.product-icon::after {
    content: '';
    position: absolute;
    top: 0.5rem;
    right: 0;
    bottom: 0.5rem;
    width: 1px;
    background: var(--accent-primary);
    opacity: 0;
    transform: scaleY(0);
    transition: transform 0.2s ease 0.1s, opacity 0.2s ease 0.1s;
}

.feature-card.active .feature-icon::after,
.product-card.active .product-icon::after {
    opacity: 1;
    transform: scaleY(1);
}

.feature-card.active .feature-icon,
.product-card.active .product-icon {
    background: var(--bg-elevated);
    border-right: none;
}

.feature-text,
.product-text {
    flex: 1;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    height: 4rem;
}

.feature-main h3,
.product-main h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 600;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}

.feature-card.active .feature-main h3,
.product-card.active .product-main h3 {
    opacity: 0;
    transform: translateX(1.5rem);
}

.feature-reveal,
.product-reveal {
    position: absolute;
    top: 0;
    left: 3.5rem;
    right: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--accent-primary);
    border-left: none;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 20px var(--glow-primary);
    z-index: 50;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
    pointer-events: none;
    clip-path: polygon(
        0 0, calc(100% - 10px) 0,
        100% 10px, 100% calc(100% - 10px),
        calc(100% - 10px) 100%, 10px 100%,
        0 calc(100% - 10px)
    );
}

.feature-reveal::before,
.product-reveal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-primary), #7b61ff);
}

.feature-card.active .feature-reveal,
.product-card.active .product-reveal {
    opacity: 1;
    max-height: 400px;
    pointer-events: auto;
}

.feature-reveal-header,
.product-reveal-header {
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
    height: 4rem;
    box-sizing: border-box;
}

.feature-reveal-header h4,
.product-reveal-header h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 600;
    transform: translateX(-1.5rem);
    opacity: 0;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) 0.15s, opacity 0.25s ease 0.15s;
}

.feature-card.active .feature-reveal-header h4,
.product-card.active .product-reveal-header h4 {
    transform: translateX(0);
    opacity: 1;
}

.feature-reveal-content,
.product-reveal-content {
    padding: 1.5rem;
}

.feature-reveal p,
.product-reveal p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.feature-tags,
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.tag {
    font-size: 0.7rem;
    padding: 0.4rem 0.75rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
    clip-path: polygon(
        4px 0, calc(100% - 4px) 0,
        100% 4px, 100% calc(100% - 4px),
        calc(100% - 4px) 100%, 4px 100%,
        0 calc(100% - 4px), 0 4px
    );
}

.tag.status-dev {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.tag.status-planned {
    border-color: #d4a017;
    color: #d4a017;
}

.product-link,
.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.product-link:hover,
.feature-link:hover {
    gap: 0.75rem;
    text-shadow: 0 0 10px var(--glow-primary);
}

.product-link::after,
.feature-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.product-link:hover::after,
.feature-link:hover::after {
    animation: bounce-arrow 0.6s ease-in-out infinite;
}

@keyframes bounce-arrow {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(6px);
    }
}

/* Benchmarks Section */
.benchmarks {
    padding: 6rem 4rem;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
    z-index: 1;
}

.benchmarks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.benchmark-item {
    opacity: 0;
    transform: translateY(20px);
}

.benchmark-item.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.benchmark-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--accent-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 30px var(--glow-primary);
}

.benchmark-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Philosophy Section */
.philosophy {
    padding: 6rem 4rem;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
    z-index: 1;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.philosophy-item {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
}

.philosophy-item.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.philosophy-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--glow-primary));
}

.philosophy-item h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

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

/* CTA Section */
.cta {
    padding: 8rem 4rem;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
}

.cta-content.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.cta h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cta p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    padding: 3rem 4rem;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-logo span {
    color: var(--accent-primary);
}

.footer-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
    }

    nav.scrolled {
        padding: 0.75rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 6rem 1.5rem 3rem;
    }

    .features,
    .products,
    .benchmarks,
    .philosophy,
    .cta {
        padding: 4rem 1.5rem;
    }

    footer {
        padding: 2rem 1.5rem;
    }
}
