/* ==========================================================================
   WHITE BELT / AWREAi - Main Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design Tokens (CSS Custom Properties)
   -------------------------------------------------------------------------- */
:root {
    /* Colors */
    --primary: #2C3E2D;
    --primary-light: #354F37;
    --primary-dark: #1E2A1F;
    --secondary: #E8E4C9;
    --secondary-dark: #D4D0B8;
    --accent: #722F37;
    --accent-light: #8B3A44;
    --accent-dark: #5C2028;

    /* Neutrals */
    --text-dark: #1A1A1A;
    --text-light: #F5F4F0;
    --text-muted: #6B6B6B;
    --bg-dark: #1A1A1A;
    --bg-light: #F5F4F0;

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    /* Layout */
    --container-max: 1200px;
    --nav-height: 80px;
}

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

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

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

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

ul, ol {
    list-style: none;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 { font-size: var(--text-6xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
    margin-bottom: var(--space-4);
}

.highlight {
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   Layout Components
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

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

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

.section-title {
    margin-bottom: var(--space-4);
    color: var(--primary);
}

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

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(245, 244, 240, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition-base);
}

.nav.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
}

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

.logo-text {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.05em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition-fast);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--primary);
    color: var(--text-light) !important;
    padding: var(--space-2) var(--space-5);
    border-radius: var(--radius-md);
}

.nav-cta:hover {
    background: var(--primary-light);
}

.nav-cta::after {
    display: none;
}

.nav-toggle {
    display: none;
    width: 32px;
    height: 32px;
    position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    position: absolute;
    transition: var(--transition-fast);
}

.hamburger {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hamburger::before,
.hamburger::after {
    content: '';
    left: 0;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: var(--text-light);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background: var(--secondary);
    color: var(--text-dark);
}

.btn-full {
    width: 100%;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-height);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--accent-dark) 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

/* Fade out the bottom edge of hero background for seamless wave blend */
.hero-background::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 350px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(245, 244, 240, 0.05) 20%,
        rgba(245, 244, 240, 0.15) 40%,
        rgba(245, 244, 240, 0.35) 60%,
        rgba(245, 244, 240, 0.6) 80%,
        rgba(245, 244, 240, 0.85) 95%,
        var(--bg-light) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(114, 47, 55, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(53, 79, 55, 0.3) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--space-8) var(--space-6);
    max-width: 1800px;
    width: 95%;
    transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease;
}

.hero-title {
    font-size: var(--text-7xl);
    color: var(--text-light);
    margin-bottom: var(--space-6);
    line-height: 1.1;
}

.hero-title .highlight {
    color: var(--secondary);
}

.hero-subtitle {
    font-size: var(--text-2xl);
    color: var(--secondary);
    margin-bottom: var(--space-10);
    opacity: 0.9;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    margin-bottom: var(--space-8);
}

.hero-badge {
    margin-top: var(--space-4);
}

.badge {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.badge:hover {
    background: rgba(114, 47, 55, 0.3);
    border-color: var(--accent);
    color: var(--text-light);
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-4);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--secondary);
    opacity: 0.7;
}

.scroll-indicator span {
    display: block;
    font-size: var(--text-xs);
    margin-bottom: var(--space-2);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    margin: 0 auto;
    border-right: 2px solid var(--secondary);
    border-bottom: 2px solid var(--secondary);
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
}

/* --------------------------------------------------------------------------
   Hero Radial Overlay (Revealed on "See How It Works" click)
   -------------------------------------------------------------------------- */
.hero-radial-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 10;
}

.hero-radial-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Fade hero content when radial is active */
.hero.radial-active .hero-content {
    opacity: 0.1;
    transform: scale(0.95);
    pointer-events: none;
    filter: blur(4px);
    transition: all 0.5s ease;
}

.hero.radial-active .scroll-indicator {
    opacity: 0;
    pointer-events: none;
}

/* Close button */
.hero-radial-close {
    position: absolute;
    top: calc(var(--nav-height) + var(--space-4));
    right: var(--space-8);
    width: 50px;
    height: 50px;
    border: 2px solid rgba(232, 228, 201, 0.3);
    border-radius: 50%;
    background: rgba(44, 62, 45, 0.8);
    color: var(--secondary);
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 20;
    backdrop-filter: blur(10px);
}

.hero-radial-close:hover {
    background: var(--accent);
    border-color: var(--accent-light);
    transform: scale(1.1);
}

/* Hero radial container - larger size */
.hero-radial-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
    padding-top: var(--space-8); /* Position radial lower */
}

/* Larger pie chart for hero - 10% smaller for better centering */
.pie-chart-hero {
    width: 675px;
    height: 675px;
    position: relative;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.pie-chart-hero .pie-svg {
    width: 100%;
    height: 100%;
}

.pie-chart-hero .pie-center {
    width: 162px;
    height: 162px;
}

.pie-chart-hero .center-orb {
    width: 108px;
    height: 108px;
}

.pie-chart-hero .orb-icon {
    font-size: 25px;
}

.pie-chart-hero .slice-text {
    font-size: 14px;
    letter-spacing: 0.16em;
}

.pie-chart-hero .sub-slice-text {
    font-size: 18px;
}

/* Hero description panel */
.pie-description-hero {
    text-align: center;
    min-height: 80px;
    width: 500px;
    max-width: 100%;
}

.pie-description-hero .desc-content h4 {
    font-size: var(--text-2xl);
    color: var(--secondary);
    margin-bottom: var(--space-2);
}

.pie-description-hero .desc-content p {
    font-size: var(--text-lg);
    color: rgba(232, 228, 201, 0.8);
}

/* --------------------------------------------------------------------------
   Patent Pending Overlay
   -------------------------------------------------------------------------- */
.hero-patent-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 10;
}

.hero-patent-overlay.active {
    opacity: 1;
    visibility: visible;
}

.hero.patent-active .hero-content {
    opacity: 0.1;
    transform: scale(0.95);
    pointer-events: none;
    filter: blur(4px);
}

.hero.patent-active .scroll-indicator {
    opacity: 0;
    pointer-events: none;
}

.hero-patent-close {
    position: absolute;
    top: calc(var(--nav-height) + var(--space-4));
    right: var(--space-8);
    width: 50px;
    height: 50px;
    border: 2px solid rgba(232, 228, 201, 0.3);
    border-radius: 50%;
    background: rgba(44, 62, 45, 0.8);
    color: var(--secondary);
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 20;
    backdrop-filter: blur(10px);
}

.hero-patent-close:hover {
    background: var(--accent);
    border-color: var(--accent-light);
    transform: scale(1.1);
}

.patent-content {
    background: rgba(44, 62, 45, 0.95);
    border: 1px solid rgba(232, 228, 201, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-12);
    max-width: 600px;
    text-align: center;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.patent-header {
    margin-bottom: var(--space-8);
}

.patent-label {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: rgba(114, 47, 55, 0.3);
    border: 1px solid var(--accent);
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-4);
}

.patent-header h3 {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    color: var(--text-light);
    margin: 0;
}

.patent-highlights {
    margin-bottom: var(--space-8);
    padding: var(--space-6) 0;
    border-top: 1px solid rgba(232, 228, 201, 0.1);
    border-bottom: 1px solid rgba(232, 228, 201, 0.1);
}

.highlight-item {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--secondary);
    padding: var(--space-2) 0;
    margin: 0;
    position: relative;
    padding-left: var(--space-6);
}

.highlight-item::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-light);
}

.patent-description {
    font-size: var(--text-base);
    color: rgba(232, 228, 201, 0.8);
    line-height: 1.7;
    margin-bottom: var(--space-8);
}

.patent-cta {
    min-width: 200px;
}

/* --------------------------------------------------------------------------
   Bio-Circuitry Wave Transition - Seamless Blend (ERPLE-inspired)
   -------------------------------------------------------------------------- */

/* Wave canvas at TOP of problem section - waves bleed downward from hero */
.wave-transition-overlay {
    position: absolute;
    top: -200px;      /* Extends UP into hero section for seamless blend */
    left: 0;
    right: 0;
    height: 650px;    /* Taller for full vertical coverage */
    pointer-events: none;
    z-index: 10;      /* Below content but visible */
    overflow: visible;
    --wave-progress: 0;
}

.wave-canvas {
    position: absolute;
    top: 0;           /* Canvas starts at top, waves cascade down */
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    mix-blend-mode: normal;
}

/* NO hard gradient mask - the canvas handles the seamless blend itself */
.wave-transition-overlay::before {
    display: none;  /* Removed - was causing harsh edge */
}

/* Problem section styling for seamless wave integration */
.problem {
    position: relative;
    z-index: 1;
    /* Add padding top to account for downward wave cascade */
    padding-top: calc(var(--space-24) + 150px);
    margin-top: -150px;  /* Pull up to overlap with cascading wave canvas */
    background: transparent;  /* Transparent top to blend with waves */
}

/* Gradient background applied to problem content area - blends with cascading waves */
/* Starts at 150px to avoid overlapping into hero section (accounting for -150px margin) */
.problem::before {
    content: '';
    position: absolute;
    top: 150px;
    left: 0;
    right: 0;
    height: 350px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(245, 244, 240, 0.05) 10%,
        rgba(245, 244, 240, 0.15) 25%,
        rgba(245, 244, 240, 0.35) 45%,
        rgba(245, 244, 240, 0.65) 65%,
        rgba(245, 244, 240, 0.9) 85%,
        var(--bg-light) 100%
    );
    pointer-events: none;
    z-index: 0;
}

/* Problem section solid background starts after gradient */
/* Starts at 400px to avoid overlapping into hero section */
.problem::after {
    content: '';
    position: absolute;
    top: 400px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-light);
    z-index: -1;
}

/* Wave bleed overlay - very subtle, works with canvas */
.wave-bleed-overlay {
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 200px;
    pointer-events: none;
    z-index: 3;
    /* Subtle additional blend layer */
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 30%,
        rgba(245, 244, 240, 0.15) 60%,
        rgba(245, 244, 240, 0.35) 80%,
        rgba(245, 244, 240, 0.5) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Scroll indicator cursor enhancement */
.scroll-indicator {
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.scroll-indicator:hover {
    opacity: 1 !important;
    transform: translateX(-50%) scale(1.1);
}

.scroll-indicator:hover .scroll-arrow {
    animation-duration: 1s;
}

/* --------------------------------------------------------------------------
   Problem Section - Content Styles
   -------------------------------------------------------------------------- */
/* Note: .problem positioning/background defined above in Wave Transition section */

.problem .section-header {
    position: relative;
    z-index: 10;  /* Above wave overlay */
}

.problem .container {
    position: relative;
    z-index: 10;  /* All content above waves */
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-8);
    align-items: stretch;
    position: relative;
    z-index: 10;  /* Ensures content appears above wave overlay */
}

.comparison-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
}

.comparison-old {
    border: 2px solid var(--text-muted);
}

.comparison-new {
    border: 2px solid var(--primary);
    background: linear-gradient(to bottom, white, rgba(44, 62, 45, 0.05));
}

.comparison-header {
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--secondary-dark);
}

.comparison-label {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 600;
}

.comparison-old .comparison-label {
    color: var(--text-muted);
}

.comparison-new .comparison-label {
    color: var(--primary);
}

.comparison-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    font-size: var(--text-base);
}

.icon-x,
.icon-check {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.icon-x {
    background: rgba(107, 107, 107, 0.1);
}

.icon-x::before {
    content: '✕';
    font-size: 10px;
    color: var(--text-muted);
}

.icon-check {
    background: rgba(44, 62, 45, 0.1);
}

.icon-check::before {
    content: '✓';
    font-size: 12px;
    color: var(--primary);
    font-weight: bold;
}

.comparison-divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparison-divider span {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    color: var(--text-muted);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Technology Section
   -------------------------------------------------------------------------- */
.technology {
    background: var(--primary);
    color: var(--text-light);
}

.technology .section-title {
    color: var(--text-light);
}

.technology .section-subtitle {
    color: var(--secondary);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.tech-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    transition: var(--transition-base);
}

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

.tech-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-5);
    color: var(--secondary);
}

.tech-icon svg {
    width: 100%;
    height: 100%;
}

.tech-title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-3);
    color: var(--text-light);
}

.tech-description {
    font-size: var(--text-sm);
    color: var(--secondary);
    opacity: 0.8;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Architecture Section
   -------------------------------------------------------------------------- */
.architecture {
    background: var(--bg-light);
    padding: var(--space-16) 0;
}

/* SVG Architecture Diagram */
.arch-diagram-svg {
    max-width: 700px;
    margin: var(--space-8) auto 0;
}

.arch-svg {
    width: 100%;
    height: auto;
    display: block;
}

.arch-node-group rect {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.arch-node-group:hover rect {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.arch-svg path {
    transition: stroke-width 0.3s ease;
}

.arch-svg:hover path {
    stroke-width: 4;
}

/* --------------------------------------------------------------------------
   Elvara SVG Pie Chart - Clean Geometry Interface
   -------------------------------------------------------------------------- */
.elvara-core {
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.elvara-core .section-header {
    margin-bottom: var(--space-6);
}

.elvara-core .section-title {
    color: var(--text-light);
}

.elvara-core .section-subtitle {
    color: var(--secondary);
}

/* Pie Container */
.pie-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-8);
}

/* The Pie Chart */
.pie-chart {
    position: relative;
    width: 550px;
    height: 550px;
}

/* SVG fills the container */
.pie-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Slice Group - Contains path and text */
.slice-group {
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-box: view-box;
    transform-origin: 50% 50%;
}

/* Slice Path Styling */
.slice-path {
    fill: url(#sliceGrad);
    stroke: rgba(232, 228, 201, 0.2);
    stroke-width: 1;
    transition: all 0.3s ease;
}

/* Slice Text Labels */
.slice-text {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    fill: var(--secondary);
    opacity: 0.8;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Hover - Slice expands outward radially */
.slice-group:hover {
    transform: scale(1.05);
}

.slice-group:hover .slice-path {
    fill: url(#sliceHover);
    stroke: rgba(232, 228, 201, 0.5);
    filter: url(#glow);
}

.slice-group:hover .slice-text {
    fill: var(--text-light);
    opacity: 1;
}

/* Active State */
.slice-group.active .slice-path {
    fill: url(#sliceActive);
    stroke: var(--accent);
    stroke-width: 2;
}

.slice-group.active .slice-text {
    fill: var(--text-light);
    opacity: 1;
}

/* Expanded State - Shows sub-slices */
.slice-group.expanded {
    transform: scale(1.08);
}

.slice-group.expanded .slice-path {
    opacity: 0.3;
}

/* Hide main slice label when expanded to prevent overlap with sub-slices */
.slice-group.expanded .slice-text {
    opacity: 0;
    pointer-events: none;
}

/* Sub-slice group (wrapper for path + text) */
.sub-slice-group {
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Sub-slice paths (generated via JS) */
.sub-slice-path {
    fill: rgba(232, 228, 201, 0.12);
    stroke: rgba(232, 228, 201, 0.25);
    stroke-width: 1;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-box: view-box;
    transform-origin: 50% 50%;
}

/* Hovered state - larger, more prominent */
.sub-slice-path.hovered {
    fill: rgba(114, 47, 55, 0.35);
    stroke: var(--accent);
    stroke-width: 2;
    filter: url(#glow);
    transform: scale(1.08);
}

/* Dimmed state - smaller, less prominent (when sibling is hovered/selected) */
.sub-slice-path.dimmed {
    fill: rgba(232, 228, 201, 0.06);
    stroke: rgba(232, 228, 201, 0.12);
    stroke-width: 0.5;
    opacity: 0.5;
    transform: scale(0.92);
}

/* Selected state - locked expanded, highlighted, slid outward */
.sub-slice-path.selected {
    fill: rgba(114, 47, 55, 0.5);
    stroke: var(--accent-light);
    stroke-width: 2.5;
    filter: drop-shadow(0 0 12px rgba(114, 47, 55, 0.7));
    transform: scale(1.1);
}

/* Playing animation on top of selected */
.sub-slice-path.playing {
    fill: rgba(114, 47, 55, 0.6);
    stroke: var(--accent-light);
    stroke-width: 2.5;
    animation: subSliceGlow 1s ease-in-out infinite;
}

/* Sub-slice labels */
.sub-slice-text {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    fill: var(--secondary);
    pointer-events: none;
    opacity: 0.8;
    transition: all 0.25s ease;
}

/* Text states based on parent group state */
.sub-slice-group.hovered .sub-slice-text {
    fill: var(--text-light);
    opacity: 1;
    font-size: 14px;
}

.sub-slice-group.dimmed .sub-slice-text {
    opacity: 0.4;
    font-size: 10px;
}

.sub-slice-group.selected .sub-slice-text {
    fill: var(--text-light);
    opacity: 1;
    font-size: 15px;
    font-weight: 700;
}

/* Center Orb Overlay */
.pie-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130px;
    height: 130px;
    z-index: 10;
}

.center-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(114, 47, 55, 0.3) 0%, transparent 70%);
    animation: centerPulse 2.5s ease-in-out infinite;
}

.center-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85px;
    height: 85px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    box-shadow:
        0 0 30px rgba(114, 47, 55, 0.5),
        0 0 60px rgba(114, 47, 55, 0.25),
        inset 0 -6px 15px rgba(0, 0, 0, 0.4),
        inset 0 6px 15px rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Silicone Sheen */
.center-orb::before {
    content: '';
    position: absolute;
    width: 65%;
    height: 30%;
    top: 12%;
    left: 17.5%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, transparent 100%);
    border-radius: 50%;
    pointer-events: none;
}

.orb-icon {
    color: var(--text-light);
    font-size: 22px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.center-orb:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow:
        0 0 50px rgba(114, 47, 55, 0.7),
        0 0 90px rgba(114, 47, 55, 0.4);
}

/* Playing State */
.pie-chart.playing .center-orb {
    animation: orbPulse 1s ease-in-out infinite;
}

.pie-chart.playing .center-pulse {
    animation: centerPulseActive 0.8s ease-out infinite;
}

/* Description Panel */
.pie-description {
    text-align: center;
    min-height: 80px;
    position: relative;
    width: 450px;
    max-width: 100%;
}

.desc-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    pointer-events: none;
}

.desc-content.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.desc-content h4 {
    font-size: var(--text-xl);
    color: var(--text-light);
    margin-bottom: var(--space-2);
}

.desc-content p {
    font-size: var(--text-base);
    color: var(--secondary);
}

/* Pie Chart Animations */
@keyframes centerPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

@keyframes centerPulseActive {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

@keyframes orbPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow:
            0 0 40px rgba(114, 47, 55, 0.6),
            0 0 80px rgba(114, 47, 55, 0.3);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        box-shadow:
            0 0 60px rgba(114, 47, 55, 0.8),
            0 0 100px rgba(114, 47, 55, 0.4);
    }
}

@keyframes subSliceGlow {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(114, 47, 55, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(114, 47, 55, 0.8));
    }
}

/* --------------------------------------------------------------------------
   Use Cases Section
   -------------------------------------------------------------------------- */
.use-cases {
    background: white;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.use-case-card {
    text-align: center;
    padding: var(--space-8);
}

.use-case-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-5);
    color: var(--accent);
}

.use-case-icon svg {
    width: 100%;
    height: 100%;
}

.use-case-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
    color: var(--primary);
}

.use-case-description {
    font-size: var(--text-base);
    color: var(--text-muted);
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   About Section
   -------------------------------------------------------------------------- */
.about {
    background: var(--secondary);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    text-align: center;
}

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

.about-description {
    font-size: var(--text-lg);
    color: var(--text-dark);
    margin-bottom: var(--space-6);
}

.about-philosophy {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    margin: var(--space-10) 0;
    text-align: left;
}

.about-philosophy h3 {
    font-size: var(--text-xl);
    color: var(--primary);
    margin-bottom: var(--space-4);
}

.about-philosophy p {
    color: var(--text-muted);
    margin-bottom: 0;
}

.about-patent {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
}

.patent-badge {
    background: var(--primary);
    color: var(--text-light);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
}

.patent-text {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

/* --------------------------------------------------------------------------
   Contact Section
   -------------------------------------------------------------------------- */
.contact {
    background: var(--primary);
    color: var(--text-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: start;
}

.contact .section-title {
    color: var(--text-light);
    text-align: left;
    margin-bottom: var(--space-6);
}

.contact-description {
    color: var(--secondary);
    font-size: var(--text-lg);
    margin-bottom: var(--space-8);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.contact-label {
    font-size: var(--text-sm);
    color: var(--secondary);
    opacity: 0.7;
}

.contact-value {
    font-size: var(--text-base);
    color: var(--text-light);
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
}

.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    color: var(--secondary);
    margin-bottom: var(--space-2);
}

.form-input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: var(--text-base);
    transition: var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.15);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

select.form-input {
    cursor: pointer;
}

select.form-input option {
    background: var(--primary);
    color: var(--text-light);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    background: #000000;
    color: var(--text-light);
    padding: var(--space-8) 0;
}

.footer-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.footer-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.footer-links {
    display: flex;
    gap: var(--space-6);
}

.footer-links a {
    font-size: var(--text-sm);
    color: var(--text-muted);
    transition: var(--transition-fast);
}

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

.footer-legal {
    color: var(--text-muted);
    font-size: var(--text-xs);
    text-align: right;
}

.footer-legal span {
    display: block;
}

/* Footer responsive */
@media (max-width: 900px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-brand {
        flex-direction: column;
        gap: var(--space-2);
    }
    .footer-legal {
        text-align: center;
    }
}

.footer-legal p:last-child {
    margin-bottom: 0;
}
