/* Index Ultra Design System v5.3 */
:root {
    --bg-dark: #020c1b;
    --bg-card: rgba(17, 34, 64, 0.7);
    --bg-card-hover: rgba(23, 42, 69, 0.9);
    --accent-primary: #64ffda;
    --accent-secondary: #00b4d8;
    --accent-alert: #ff6b6b;
    --text-main: #ccd6f6;
    --text-muted: #8892b0;
    --border-light: rgba(100, 255, 218, 0.1);
    --glass-shine: rgba(255, 255, 255, 0.05);
    --font-heading: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
    --transition-smooth: cubic-bezier(0.645, 0.045, 0.355, 1);
    --shadow-glow: 0 0 20px rgba(100, 255, 218, 0.15);
}

body.index-ultra-page {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-heading);
    overflow-x: hidden;
}

/* Typography */
.ultra-h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.0;
    margin-bottom: 1.5rem;
    /* Pre-allocate height for 2 lines to prevent layout shift during typing */
    min-height: 2.4em; 
    background: linear-gradient(135deg, #e6f1ff 0%, #8892b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.1));
}

.hero-line-platinum {
    color: #ccd6f6;
    display: block; /* Force new line behavior */
    line-height: 1.0;
    width: fit-content;
}

.hero-line-blue {
    display: block; /* Force new line behavior */
    background: linear-gradient(to right, #48bfe3 0%, #0077b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(72, 191, 227, 0.3));
    padding-bottom: 0.1em; /* Prevent clip cutoff */
    margin-top: -0.1em; /* Pull closer to top line */
    line-height: 1.0;
    width: fit-content;
}

.ultra-h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    /* Replaced flat green with ultra-polished metallic gradient */
    background: linear-gradient(to right, #ffffff 20%, #8892b0 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    filter: drop-shadow(0 0 15px rgba(100, 255, 218, 0.1));
}

.blink-caret::after {
    content: '';
    display: inline-block;
    width: 3px;
    height: 0.9em; /* Slightly less than line-height 1.0 to prevent shift */
    background-color: var(--accent-primary);
    margin-left: 4px;
    vertical-align: -0.1em; /* Fine tune position */
    animation: caret-pulse 1s step-end infinite;
}

@keyframes caret-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.ultra-lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 800px;
}

.mono-label {
    font-family: var(--font-mono);
    color: var(--accent-primary);
    background: rgba(100, 255, 218, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    width: fit-content;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
    text-transform: uppercase;
}

/* Buttons */
.ultra-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.25s var(--transition-smooth);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
}

.ultra-btn-glow {
    background: var(--accent-primary);
    color: var(--bg-dark);
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.5);
}

.ultra-btn-glow:hover {
    box-shadow: 0 0 30px rgba(100, 255, 218, 0.8);
    transform: translateY(-2px);
}

.ultra-btn-outline {
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
}

.ultra-btn-outline:hover {
    background: rgba(100, 255, 218, 0.1);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 0; /* Added top padding for navbar buffer */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, rgba(23, 42, 69, 0.8) 0%, var(--bg-dark) 70%);
}

/* 3D Grid Floor */
.hero-grid-floor {
    position: absolute;
    width: 200%;
    height: 100%;
    bottom: -20%;
    left: -50%;
    background-image: 
        linear-gradient(rgba(100, 255, 218, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 255, 218, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(500px) rotateX(60deg);
    animation: gridMoveFloor 15s linear infinite;
    z-index: -1;
    mask-image: linear-gradient(to top, black 0%, transparent 80%);
}

@keyframes gridMoveFloor {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(60px); }
}

/* Hero Visual: The Shield/Network */
.hero-visual-container {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cyber-shield {
    width: 300px;
    height: 360px;
    background: rgba(100, 255, 218, 0.05);
    border: 2px solid var(--accent-primary);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 50px rgba(100, 255, 218, 0.2);
    animation: shieldPulse 4s infinite ease-in-out;
}

@keyframes shieldPulse {
    0%, 100% { box-shadow: 0 0 50px rgba(100, 255, 218, 0.2); border-color: var(--accent-primary); }
    50% { box-shadow: 0 0 80px rgba(100, 255, 218, 0.4); border-color: #fff; }
}

.cyber-shield i {
    font-size: 8rem;
    color: var(--accent-primary);
    filter: drop-shadow(0 0 20px var(--accent-primary));
}

.orbit-ring {
    position: absolute;
    border: 1px solid rgba(100, 255, 218, 0.3);
    border-radius: 50%;
    transform-style: preserve-3d;
}

.orbit-1 { width: 400px; height: 400px; animation: spin3d 10s linear infinite; }
.orbit-2 { width: 500px; height: 500px; animation: spin3dReverse 15s linear infinite; border-color: rgba(0, 180, 216, 0.3); }

@keyframes spin3d {
    0% { transform: rotateX(60deg) rotateZ(0deg); }
    100% { transform: rotateX(60deg) rotateZ(360deg); }
}
@keyframes spin3dReverse {
    0% { transform: rotateX(70deg) rotateZ(360deg); }
    100% { transform: rotateX(70deg) rotateZ(0deg); }
}

/* Service Cards (Tilt) */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.ultra-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2.5rem;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    height: 100%;
}

.ultra-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom right, var(--glass-shine), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.ultra-card:hover {
    transform: translateY(-10px);
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.ultra-card:hover::before { opacity: 1; }

.card-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.card-desc {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-link {
    color: var(--accent-primary);
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-link:hover { gap: 0.8rem; }

/* Social Proof Strip */
.social-proof-strip {
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    background: rgba(2, 12, 27, 0.8);
    padding: 2rem 0;
}

.logo-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    opacity: 0.6;
}

.logo-item {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-muted);
    filter: grayscale(100%);
    transition: all 0.3s;
}

.logo-item:hover {
    filter: grayscale(0%);
    color: var(--accent-primary);
    opacity: 1;
}

/* Why Borealis (Asymmetrical) */
.why-section {
    padding: 8rem 0;
    position: relative;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.why-visual {
    position: relative;
    position: sticky;
    top: 100px;
}

/* === RADAR VISUAL === */
.radar-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Concentric Circles */
.radar-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(100, 255, 218, 0.1);
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.05);
}

.ring-1 { width: 100%; height: 100%; border-color: rgba(100, 255, 218, 0.2); }
.ring-2 { width: 75%; height: 75%; }
.ring-3 { width: 50%; height: 50%; }
.ring-4 { width: 25%; height: 25%; background: rgba(100, 255, 218, 0.05); border: none; }

/* The Crosshairs */
.radar-crosshair {
    position: absolute;
    background: rgba(100, 255, 218, 0.1);
    z-index: 0;
}
.cross-v { width: 1px; height: 100%; }
.cross-h { width: 100%; height: 1px; }

/* The Sweep Animation */
.radar-sweep {
    position: absolute;
    width: 50%;
    height: 50%;
    background: conic-gradient(from 0deg, transparent 0%, rgba(100, 255, 218, 0.3) 90%, var(--accent-primary) 100%);
    top: 0;
    left: 0;
    transform-origin: 100% 100%;
    animation: radarSpin 4s linear infinite;
    border-radius: 100% 0 0 0;
    z-index: 1;
    filter: blur(5px);
}

@keyframes radarSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* === NEW METRICS GRID (Gap Filler) === */
.metrics-grid {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    width: 100%;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

.metric-card {
    flex: 1;
    background: rgba(17, 34, 64, 0.8);
    border: 1px solid var(--border-light);
    padding: 0.8rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: transform 0.3s;
}

.metric-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-primary);
}

.metric-icon {
    font-size: 1.2rem;
}

.metric-value {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

.metric-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.text-success { color: var(--accent-primary); }
.text-info { color: var(--accent-secondary); }

/* Blips (Dots on Radar) */
.radar-blip {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-alert);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-alert);
    opacity: 0;
    animation: blipPulse 4s infinite;
}

.blip-1 { top: 30%; left: 60%; animation-delay: 1.5s; }
.blip-2 { top: 70%; left: 30%; animation-delay: 2.5s; }
.blip-3 { top: 20%; left: 40%; animation-delay: 0.5s; background: var(--accent-primary); box-shadow: 0 0 10px var(--accent-primary); }

@keyframes blipPulse {
    0% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0; transform: scale(0.5); }
}

/* === SENTINEL LOG === */
.sentinel-log-container {
    width: 100%;
    max-width: 350px;
    margin: 1rem auto 0; /* Reduced top margin to sit tight under metrics */
    background: rgba(2, 12, 27, 0.9);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.log-header {
    background: rgba(255,255,255,0.05);
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-alert);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--accent-alert);
    animation: blink 2s infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.log-scroller {
    height: 150px;
    padding: 0.5rem;
    overflow: hidden;
    position: relative;
}

.log-item {
    padding: 0.3rem 0.5rem;
    border-left: 2px solid transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-muted);
    animation: scrollLog 10s linear infinite;
}

.log-item span:first-child { opacity: 0.5; margin-right: 0.5rem; }

.text-success { color: var(--accent-primary); }
.text-info { color: var(--accent-secondary); }
.text-warning { color: #ffd166; }

@keyframes scrollLog {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100%); }
}

/* === Value Pillars === */
.why-features-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.value-pillar {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--accent-primary);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    transition: all 0.3s ease;
    cursor: default;
}

.value-pillar:hover {
    background: rgba(100, 255, 218, 0.05);
    border-color: rgba(100, 255, 218, 0.3);
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.pillar-icon {
    background: rgba(100, 255, 218, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.pillar-content h4 {
    color: var(--text-main);
    margin: 0 0 0.3rem 0;
    font-size: 1.1rem;
}

.pillar-content p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* === Industries Section === */
.industries-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(17, 34, 64, 0.3) 100%);
    padding: 8rem 0;
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.industry-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.industry-card:hover {
    background: rgba(100, 255, 218, 0.05);
    border-color: var(--accent-primary);
    transform: translateY(-5px);
}

.industry-card i {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.industry-card:hover i {
    color: var(--accent-primary);
}

.industry-card h3 {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.industry-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* === Tech Stack (NEW) === */
.tech-stack-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-light);
    background: rgba(2, 12, 27, 0.5);
}

.tech-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    opacity: 0.7;
}

.tech-item {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.tech-item:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
    transform: translateY(-2px);
}

/* === Testimonial / Trust (RE-POLISHED) === */
.trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

.testimonial-memo {
    background: linear-gradient(145deg, rgba(17, 34, 64, 0.8), rgba(10, 25, 47, 0.9));
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--accent-primary);
    padding: 2rem;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.testimonial-memo:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.memo-header {
    border-bottom: 1px dashed rgba(255,255,255,0.1);
    padding-bottom: 1rem;
    margin-bottom: 1.2rem;
    font-size: 0.8rem;
    color: var(--accent-primary);
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
}

.memo-body {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 400;
    color: #e6f1ff; /* Higher contrast */
    line-height: 1.7;
    font-style: normal; /* Removed italic for better readability */
}

.memo-footer {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 992px) {
    .why-grid { grid-template-columns: 1fr; }
    .hero-section { padding: 6rem 0; text-align: center; }
    .hero-visual-container { display: none; }
    .trust-grid { grid-template-columns: 1fr; }
    .radar-container { transform: scale(0.8); }
    .metrics-grid { flex-direction: column; gap: 0.5rem; }
}