:root {
    --bg-deep: #050508;
    --text-main: #FFFFFF;
    --text-muted: #94a3b8;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Ultra Modern Ambient Background --- */
.ambient-background {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-deep);
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: drift 20s infinite alternate ease-in-out;
}

.orb-1 { width: 50vw; height: 50vw; background: var(--accent-blue); top: -20%; left: -10%; }
.orb-2 { width: 40vw; height: 40vw; background: var(--accent-purple); bottom: -10%; right: -10%; animation-delay: -5s; }
.orb-3 { width: 30vw; height: 30vw; background: var(--accent-cyan); top: 40%; left: 40%; opacity: 0.2; animation-delay: -10s; }

.glass-wash {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(40px);
    background: rgba(5, 5, 8, 0.4);
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 10%) scale(1.1); }
}

/* --- Navigation --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--text-main); }

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-outline:hover { background: var(--glass-bg); border-color: rgba(255,255,255,0.2); }

/* --- Hero Section --- */
.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 6rem auto;
    padding: 0 5%;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: clamp(3.5rem, 5vw, 5rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 550px;
    margin-bottom: 2.5rem;
}

.hero-actions { display: flex; gap: 1rem; }

.btn-primary {
    background: var(--text-main);
    color: var(--bg-deep);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
}

.btn-primary:hover { transform: translateY(-2px); }

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-secondary:hover { background: rgba(255,255,255,0.06); }

/* --- Glow Effect (Conic Gradient Border) --- */
.glow-effect {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.glow-effect::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent 0%, transparent 60%, rgba(6, 182, 212, 0.8) 80%, rgba(139, 92, 246, 0.8) 100%);
    animation: rotateGlow 3s linear infinite;
    z-index: -2;
    opacity: 1; /* Her zaman görünür */
}

/* Primary (Beyaz) buton için daha koyu dönen alev */
.btn-primary.glow-effect::before {
    background: conic-gradient(from 0deg, transparent 0%, transparent 60%, rgba(15, 15, 20, 0.5) 80%, rgba(59, 130, 246, 0.8) 100%);
}

.glow-effect::after {
    content: '';
    position: absolute;
    inset: 2px; /* Dönen alevin daha kalın görünmesi için */
    background: inherit;
    border-radius: 6px;
    z-index: -1;
    transition: background 0.3s ease;
}

/* Update backgrounds for inset inheritance */
.btn-primary.glow-effect::after { background: var(--text-main); }
.btn-secondary.glow-effect::after { background: var(--bg-deep); }

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Hero Mockup --- */
.hero-dashboard-mockup {
    background: rgba(15, 15, 20, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    overflow: hidden;
}

.mockup-header {
    background: rgba(255,255,255,0.02);
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mockup-dots {
    display: flex;
    gap: 0.5rem;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--accent-cyan);
    font-weight: 500;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(6, 182, 212, 0); }
    100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

.mockup-dot { width: 12px; height: 12px; border-radius: 50%; }
.mockup-dot.red { background: #ef4444; }
.mockup-dot.yellow { background: #eab308; }
.mockup-dot.green { background: #22c55e; }

.mockup-body { padding: 2rem; display: flex; flex-direction: column; gap: 1.5rem; }

/* Live Waveform */
.audio-wave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 40px;
    margin-bottom: 1rem;
}

.wave-bar {
    width: 6px;
    height: 10px;
    background: var(--accent-blue);
    border-radius: 3px;
    animation: waveAnim 1s ease-in-out infinite alternate;
}

.wave-bar:nth-child(even) { background: var(--accent-cyan); animation-delay: 0.2s; }
.wave-bar:nth-child(3n) { background: var(--accent-purple); animation-delay: 0.4s; }

@keyframes waveAnim {
    0% { height: 10px; opacity: 0.5; }
    100% { height: 35px; opacity: 1; }
}

.data-row { display: flex; align-items: center; gap: 1rem; }
.data-label { width: 120px; font-size: 0.9rem; color: var(--text-muted); }
.data-bar {
    flex: 1; height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden;
}
.data-bar .fill { height: 100%; border-radius: 4px; transition: width 0.5s ease-out; }
.confidence-fill { background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan)); }
.stress-fill { background: linear-gradient(90deg, var(--accent-purple), #ef4444); }
.data-value { font-weight: 600; width: 45px; text-align: right; font-variant-numeric: tabular-nums; }

/* --- Trusted By --- */
.trusted-by {
    padding: 3rem 5%;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.01));
}

.trusted-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.trusted-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    cursor: default;
}

.brand-logo svg {
    width: 28px;
    height: 28px;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.brand-logo:hover {
    color: rgba(255,255,255,0.9);
}

.brand-logo:hover svg {
    opacity: 1;
}

/* --- Glass Panels (Stats) --- */
.stats-section {
    max-width: 1400px;
    margin: 8rem auto;
    padding: 0 5%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s;
}

.glass-panel:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.2);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-blue);
    line-height: 1;
    margin-bottom: 1rem;
}

.stat-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; }
.stat-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 2rem; }

.stat-source {
    position: absolute;
    bottom: 1.5rem;
    left: 2.5rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Animations */
.fade-in { opacity: 0; animation: fadeIn 1s ease forwards; }
.delay-1 { animation-delay: 0.3s; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Ecosystem Section (Yeni Bento Grid) --- */
.ecosystem-section {
    max-width: 1400px;
    margin: 12rem auto;
    padding: 0 5%;
}

.ecosystem-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.ecosystem-header .section-title {
    margin: 1.5rem 0;
}

.bento-ecosystem {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 2rem;
}

.bento-item {
    display: flex;
    flex-direction: column;
    padding: 3rem;
}

.bento-large {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
    gap: 4rem;
}

.bento-medium {
    grid-column: span 1;
}

.bento-large .bento-content {
    flex: 1;
}

.bento-large .bento-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bento-item h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
}

.bento-item p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* Bento Mini Animations */
.bento-visual-mini {
    margin-top: 2rem;
    height: 60px;
    position: relative;
}

/* CV Skeleton Animation */
.cv-anim {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cv-line {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}
.cv-line.full { width: 100%; }
.cv-line.part { width: 70%; }
.cv-line.half { width: 40%; }
.cv-line.highlight {
    background: var(--accent-purple);
    width: 0%;
    animation: typeCV 2s infinite ease-out alternate;
}
@keyframes typeCV { to { width: 40%; } }

/* Radar Node Animation */
.radar-anim { position: relative; height: 100%; }
.r-dot {
    position: absolute;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--accent-cyan);
}
.r-dot.center { top: 50%; left: 50%; transform: translate(-50%, -50%); animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite; }
.r-dot.m1 { top: 20%; left: 80%; opacity: 0.5; }
.r-dot.m2 { top: 70%; left: 20%; opacity: 0.5; }
@keyframes ping {
    75%, 100% { transform: scale(3); opacity: 0; }
}

/* Chart Animation */
.chart-anim {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    height: 100%;
}
.bar {
    width: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px 4px 0 0;
    transition: height 0.3s ease;
}
.bar-1 { height: 40%; }
.bar-2 { height: 60%; }
.bar-3 { height: 90%; background: #eab308; }
.bento-item:hover .bar-1 { height: 50%; }
.bento-item:hover .bar-2 { height: 80%; }
.bento-item:hover .bar-3 { height: 100%; }

/* History Dots */
.history-anim {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%;
}
.h-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #ef4444;
    position: relative;
}
.h-dot::after {
    content: '';
    position: absolute;
    top: 50%; left: 100%;
    width: 15px; height: 2px;
    background: rgba(239, 68, 68, 0.3);
    transform: translateY(-50%);
}
.h-dot:last-child::after { display: none; }
.bento-item:hover .h-dot { animation: bounce 0.6s infinite alternate; }
.bento-item:hover .h-dot:nth-child(2) { animation-delay: 0.2s; }
.bento-item:hover .h-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    to { transform: translateY(-5px); }
}

/* AI Scanner Visual override for Bento */
.bento-visual .ai-scanner-box {
    padding: 0;
    height: auto;
    width: 100%;
    align-items: center;
}

/* Feature Grid Legacy Fix for Kurumlar */
.feature-section {
    max-width: 1400px;
    margin: 12rem auto;
    padding: 0 5%;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.feature-section.reverse .feature-grid {
    grid-template-columns: 1fr 1fr;
}
.feature-section.reverse .feature-text {
    order: 2;
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.tech-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tech-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tech-details h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tech-details p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* AI Scanner Visual */
.ai-scanner-box {
    padding: 2rem;
    height: 450px;
    display: flex;
    flex-direction: column;
}

.scanner-header {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 2rem;
    text-align: center;
}

.scanner-body {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.target-box {
    width: 200px;
    height: 200px;
    position: relative;
    margin-bottom: 2rem;
}

.target-box .corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-purple);
}

.corner.top-left { top: 0; left: 0; border-right: none; border-bottom: none; }
.corner.top-right { top: 0; right: 0; border-left: none; border-bottom: none; }
.corner.bottom-left { bottom: 0; left: 0; border-right: none; border-top: none; }
.corner.bottom-right { bottom: 0; right: 0; border-left: none; border-top: none; }

.scanning-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue);
    animation: scan 2s infinite ease-in-out alternate;
}

@keyframes scan {
    0% { transform: translateY(-80px); }
    100% { transform: translateY(80px); }
}

.live-metrics {
    display: flex;
    gap: 1rem;
}

.metric {
    background: rgba(255,255,255,0.05);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
}

.metric strong { color: var(--text-main); }

/* Rank Cards Visual */
.rank-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    perspective: 1000px;
}

.rank-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    transition: transform 0.4s ease;
}

.rank-card:hover {
    transform: translateX(-10px) scale(1.02);
}

.rank-card.c2 { margin-left: 2rem; opacity: 0.8; }
.rank-card.c3 { margin-left: 4rem; opacity: 0.6; }

.r-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--glass-border), rgba(255,255,255,0.1));
}

.r-info {
    flex: 1;
    font-weight: 600;
}

.r-info span {
    display: block;
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.r-score {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Block Reveal Animation JS Trigger */
.block-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.block-reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    max-width: 1400px;
    margin: 8rem auto 2rem;
    padding: 0 5%;
}

.footer-container {
    text-align: center;
    padding: 4rem 2rem;
}

.footer-brand {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 0.5rem;
}

.footer-container > p {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-bottom a {
    text-decoration: none;
    font-weight: 600;
}

/* --- Mobile Navigation & Menu Toggle --- */
.nav-right { display: flex; align-items: center; gap: 1rem; }
.mobile-only-btn { display: none; }
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 100;
}
.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.menu-toggle.active .bar:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .bar:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
    /* Layout & Spacing Defaults */
    .hero { grid-template-columns: 1fr; text-align: center; padding-top: 6rem; }
    h1 { font-size: 3.5rem; }
    .hero-subtitle { margin: 2rem auto; }
    .hero-actions { justify-content: center; }
    
    .stats-grid { grid-template-columns: 1fr; }
    .feature-grid, .feature-section.reverse .feature-grid { grid-template-columns: 1fr; gap: 4rem; text-align: center; }
    
    .tech-item { flex-direction: column; align-items: center; text-align: center; }
    .rank-card { margin-left: 0 !important; width: 100%; }

    /* Bento Box Mobile Fix */
    .bento-ecosystem { grid-template-columns: 1fr; }
    .bento-large { grid-column: span 1; flex-direction: column; }
    .bento-large .bento-content { padding-right: 0; margin-bottom: 2rem; }

    /* Trusted By & Other */
    .trusted-logos { gap: 1.5rem; }
    .brand-logo { font-size: 1.1rem; }
}

@media (max-width: 768px) {
    /* Navbar / Mobile Menu */
    .desktop-btn { display: none; }
    .menu-toggle { display: flex; }
    .mobile-only-btn { display: block; margin-top: 2rem; width: 100%; text-align: center; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 8, 0.95);
        backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        gap: 3rem;
        z-index: 99;
    }
    
    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 500;
        color: var(--text-main);
    }

    /* Typograpy & Adjustments */
    h1 { font-size: 2.8rem; }
    .hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
    .hero-actions a { display: block; text-align: center; }

    .section-title { font-size: 2rem; }
    .bento-item { padding: 2rem; }
    .bento-visual { min-height: 200px; }

    /* Footer Mobile */
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}