/* Controller-specific styles for Product views. */
/* Hero Section */
.hero-ai {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 120px 5% 60px;
    text-align: center;
    overflow: hidden;
}

.hero-ai h1 {
    font-family: 'Fraunces', serif;
    font-size: 4rem;
    margin: 0;
    background: linear-gradient(to bottom, #fff, #888);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-ai p {
    max-width: 600px;
    color: #aaa;
    font-size: 1.1rem;
    margin-top: 20px;
}

/* Neural Processor Component */
.processor-container {
    position: relative;
    margin: 60px 0;
    width: 100%;
    max-width: 900px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.05) 0%, transparent 70%);
}

.neural-svg {
    width: 100%;
    height: 100%;
}

/* Animations */
@keyframes pulseCore {
    0%, 100% { filter: drop-shadow(0 0 10px var(--electric-purple)); transform: scale(1); }
    50% { filter: drop-shadow(0 0 25px var(--electric-purple)); transform: scale(1.05); }
}

@keyframes dataFlow {
    0% { stroke-dashoffset: 100; opacity: 0; }
    50% { opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 0; }
} 

.core-circle {
    animation: pulseCore 3s infinite ease-in-out;
    fill: var(--bg-dark);
    stroke: var(--electric-purple);
    stroke-width: 2;
}

.data-path {
    stroke: var(--electric-purple);
    stroke-width: 1;
    fill: none;
    stroke-dasharray: 10;
    animation: dataFlow 2s infinite linear;
    opacity: 0.3;
}

/* Processing Cards */
.processing-layers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 80px 10%;
}

.layer-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.layer-card:hover {
    border-color: var(--neon-lime);
    transform: translateY(-5px);
}

.layer-num {
    color: var(--neon-lime);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    margin-bottom: 10px;
    display: block;
}

.btn-neural {
    background: transparent;
    border: 1px solid var(--neon-lime);
    color: var(--neon-lime);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.3s;
    margin-top: 40px;
}

.btn-neural:hover {
    background: var(--neon-lime);
    color: black;
    box-shadow: 0 0 30px rgba(204, 255, 0, 0.4);
}

/* Sub-Nav */
.sub-nav {
    position: sticky;
    top: 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 15px;
    z-index: 100;
}

.sub-nav a {
    color: #888;
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.sub-nav a:hover, .sub-nav a.active { color: var(--neon-lime); }

/* Hero Console */
.product-hero {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    padding: 60px 5%;
    min-height: 80vh;
    gap: 30px;
}

.data-stream {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--electric-purple);
    opacity: 0.4;
    height: 400px;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, transparent, black, transparent);
}

.hero-center { text-align: center; position: relative; }

.hero-center h1 {
    font-family: 'Fraunces', serif;
    font-size: 3.5rem;
    margin-bottom: 10px;
}

/* The Animated Radar */
.radar-box {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

.radar-svg { transform: rotate(-90deg); width: 100%; height: 100%; }

.ring { fill: none; stroke: var(--electric-purple); stroke-width: 0.5; opacity: 0.3; }

.progress-arc {
    fill: none;
    stroke: var(--neon-lime);
    stroke-width: 5;
    stroke-dasharray: 565; /* Circumference of r=90 */
    stroke-dashoffset: 565;
    animation: growArc 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    filter: drop-shadow(0 0 10px var(--neon-lime));
}

@keyframes growArc { to { stroke-dashoffset: 120; } } 

.rave-display {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

.rave-display .num { font-size: 6rem; font-weight: 900; display: block; }
.rave-display .tag { letter-spacing: 4px; color: #888; font-size: 0.7rem; }

/* Feature Grid */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 100px 10%;
}

.spec-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 24px;
    transition: 0.3s;
}

.spec-card:hover { border-color: var(--electric-purple); transform: translateY(-10px); }

.spec-card i { font-size: 2rem; color: var(--neon-lime); margin-bottom: 20px; }

.btn-lime {
    background: var(--neon-lime);
    color: black;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 20px;
}

/* Override global layout shift for this page only. */
.sentiment-radar-wrap {
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.architect-hero {
    padding: 100px 5% 40px;
    text-align: center;
}

.architect-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-family: 'Fraunces', serif;
    margin-bottom: 20px;
}

/* The Blueprint Canvas */
.blueprint-canvas {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: 500px;
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
}

.canvas-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(138, 43, 226, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(138, 43, 226, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* SVG Journey Line */
.journey-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(138, 43, 226, 0.3));
}

.path-line {
    fill: none;
    stroke: var(--electric-purple);
    stroke-width: 2;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawPath 3s ease-out forwards;
}

.node {
    fill: var(--bg-dark);
    stroke: var(--neon-lime);
    stroke-width: 2;
    opacity: 0;
    animation: fadeInNode 0.5s ease-out forwards;
}

@keyframes drawPath { to { stroke-dashoffset: 0; } }
@keyframes fadeInNode { to { opacity: 1; } }

/* Feature Pillars */
.feature-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 60px 10%;
}

.pillar {
    padding: 30px;
    border-left: 2px solid var(--electric-purple);
    background: linear-gradient(90deg, rgba(138, 43, 226, 0.05), transparent);
}

.pillar h3 { color: var(--neon-lime); text-transform: uppercase; font-size: 0.9rem; letter-spacing: 2px; }

/* Hero Layout */
.jarchitect-hero {
    padding: 120px 5% 60px;
    text-align: center;
    background: radial-gradient(circle at top, rgba(138, 43, 226, 0.1) 0%, transparent 70%);
}

.jarchitect-hero h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    margin: 0 auto 20px;
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* The Journey Canvas */
.jcanvas-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 500px;
    margin: 60px auto;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.01);
    overflow: hidden;
}

.grid-bg {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(138, 43, 226, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(138, 43, 226, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

.journey-svg {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

/* Animation Keyframes */
@keyframes drawPath {
    to { stroke-dashoffset: 0; }
}

@keyframes nodePop {
    0% { transform: scale(0); opacity: 0; }
    80% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.path-happy {
    fill: none;
    stroke: var(--neon-lime);
    stroke-width: 3;
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: drawPath 3s ease-in-out forwards;
    filter: drop-shadow(0 0 8px var(--neon-lime));
}

.path-churn {
    fill: none;
    stroke: var(--danger-red);
    stroke-width: 2;
    stroke-dasharray: 8;
    stroke-dashoffset: 400;
    animation: drawPath 4s linear infinite;
    opacity: 0.6;
}

.node {
    fill: var(--bg-dark);
    stroke: white;
    stroke-width: 2;
    opacity: 0;
    animation: nodePop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Architecture Details */
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 80px 10%;
}

.pillar {
    border-top: 1px solid var(--electric-purple);
    padding-top: 25px;
}

.pillar span {
    font-family: 'JetBrains Mono', monospace;
    color: var(--neon-lime);
    font-size: 0.8rem;
}

.pillar h3 { margin: 15px 0; font-size: 1.5rem; }
.pillar p { color: #888; line-height: 1.8; }

.engine-hero {
    padding: 120px 5% 80px;
    text-align: center;
    position: relative;
}

.engine-hero h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.9;
    margin-bottom: 20px;
}

/* Central Reactor SVG Styles */
.reactor-container {
    position: relative;
    width: 500px;
    height: 500px;
    margin: 40px auto;
}

.reactor-svg {
    width: 100%;
    height: 100%;
}

.core-ring {
    fill: none;
    stroke: var(--neon-lime);
    stroke-width: 2;
    stroke-dasharray: 10, 5;
    animation: rotate 10s linear infinite;
}

.core-glow {
    fill: var(--neon-lime);
    filter: blur(20px);
    opacity: 0.3;
    animation: pulse 2s infinite ease-in-out;
}

.spark {
    fill: var(--cyber-gold);
    animation: shootOut 3s infinite ease-out;
}

@keyframes rotate { from { transform: rotate(0deg); transform-origin: center; } to { transform: rotate(360deg); transform-origin: center; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 0.2; } 50% { transform: scale(1.2); opacity: 0.5; } }
@keyframes shootOut {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}

/* Feature Grid */
.engine-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 10% 100px;
}

.feature-card {
    background: var(--glass);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 40px;
    border-radius: 24px;
    text-align: left;
    transition: 0.3s;
}

.feature-card:hover { border-color: var(--neon-lime); background: rgba(204, 255, 0, 0.02); }
.feature-card h3 { font-family: 'JetBrains Mono'; color: var(--neon-lime); font-size: 1rem; }

.cta-button {
    background: var(--neon-lime);
    color: black;
    padding: 20px 50px;
    border-radius: 100px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(204, 255, 0, 0.3);
}

.persona-hero {
    padding: 100px 5% 50px;
    text-align: center;
}

.persona-hero h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    margin-bottom: 20px;
}

/* The Architect Display */
.architect-display {
    position: relative;
    max-width: 800px;
    margin: 50px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* SVG Silhouette */
.persona-svg {
    width: 300px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.2));
}

.data-point {
    fill: var(--electric-blue);
    animation: twinkle 3s infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* Floating ID Badge */
.id-badge {
    position: absolute;
    right: 0;
    top: 20%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    padding: 20px;
    border-radius: 15px;
    text-align: left;
    width: 220px;
    animation: float 4s infinite ease-in-out;
}

.trait-bar {
    height: 4px;
    background: rgba(255,255,255,0.1);
    margin-top: 8px;
    border-radius: 2px;
    overflow: hidden;
}

.trait-fill {
    height: 100%;
    background: var(--neon-lime);
    width: 85%; /* Dynamic */
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Section Layout */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 60px 10%;
}

.feature-item {
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
}

.feature-item h3 { font-family: 'JetBrains Mono'; color: var(--electric-blue); }

.portal-hero {
    padding: 100px 5% 40px;
    text-align: center;
}

.portal-hero h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin: 0;
}

/* The Central Hub Visualization */
.hub-visualization {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 500px;
    margin: 50px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hub-svg { width: 100%; height: 100%; }

/* Animation for the connections */
@keyframes pulseLine {
    0% { stroke-dashoffset: 100; opacity: 0.2; }
    50% { opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 0.2; }
}

.connection-line {
    fill: none;
    stroke: var(--electric-purple);
    stroke-width: 1;
    stroke-dasharray: 10;
    animation: pulseLine 4s infinite linear;
}

.hub-core {
    fill: var(--bg-dark);
    stroke: var(--neon-lime);
    stroke-width: 2;
    filter: drop-shadow(0 0 15px var(--neon-lime));
}

/* Product Switcher UI */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.portal-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    text-align: left;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.portal-card:hover {
    transform: scale(1.02);
    border-color: var(--electric-purple);
    background: rgba(138, 43, 226, 0.05);
}

.portal-card h3 { font-family: 'JetBrains Mono'; color: var(--neon-lime); margin-top: 0; }
.portal-card p { font-size: 0.85rem; color: #888; margin-bottom: 0; }

.status-dot {
    width: 6px; height: 6px;
    background: var(--neon-lime);
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    box-shadow: 0 0 5px var(--neon-lime);
}

/* Hero Header */
.index-hero {
    padding: 120px 5% 40px;
    text-align: center;
}

.index-hero h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    margin: 0;
    line-height: 1;
}

/* The Grid System */
.product-suite-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    padding: 60px 10%;
    max-width: 1400px;
    margin: 0 auto;
}

.product-terminal {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 40px;
    position: relative;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 350px;
    overflow: hidden;
}

/* Hover States */
.product-terminal:hover {
    border-color: var(--neon-lime);
    background: rgba(204, 255, 0, 0.02);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Product Icons (Simplified SVGs) */
.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.product-status {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--electric-purple);
    border: 1px solid var(--electric-purple);
    padding: 4px 10px;
    border-radius: 4px;
}

.terminal-content h2 {
    font-family: 'Fraunces', serif;
    font-size: 2.2rem;
    margin: 20px 0 10px;
}

.terminal-content p {
    color: #888;
    max-width: 300px;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Decorative SVG background for each card */
.card-bg-svg {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    opacity: 0.1;
    transition: opacity 0.3s;
}

.product-terminal:hover .card-bg-svg {
    opacity: 0.3;
}

.footer-cta {
    text-align: center;
    padding: 100px 5%;
}

.btn-portal {
    background: var(--neon-lime);
    color: black;
    padding: 20px 40px;
    border-radius: 50px;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 20px rgba(204, 255, 0, 0.2);
}

@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }