@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Colors */
    --bg-body: #09090b;
    --bg-gradient: radial-gradient(circle at 50% 0%, #1e1b4b 0%, #09090b 80%);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --bg-card: #18181b;

    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent: #3b82f6;

    --border: rgba(255, 255, 255, 0.1);

    /* Brands */
    --c-kovan: #f59e0b;
    --c-asistan: #f43f5e;
    --c-kasa: #10b981;
    --c-kim: #fbbf24;
    --c-kolay: #0ea5e9;
    --c-person: #8b5cf6;
    --c-rez: #6366f1;
    --c-takip: #ec4899;
    --c-aider: #3b82f6;
    --c-anket: #2dd4bf;

    /* Sizes */
    --nav-height: 70px;
    --container: 1200px;
}

/* --- Resets & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-body);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

ul {
    list-style: none;
}

/* --- Layout --- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* --- Navigation --- */
.global-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    text-decoration: none;
}

/* CRITICAL: Constrain Logo Size */
.logo img {
    height: 32px !important;
    width: auto !important;
    max-width: none;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: #fff;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero & Typography --- */
h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(to right, #fff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Components --- */
.btn {
    display: inline-flex;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn.primary {
    background: var(--accent);
    color: #fff;
}

.btn.primary:hover {
    background: #2563eb;
}

.btn.outline {
    border: 1px solid var(--border);
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.btn.outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* --- Footer --- */
footer {
    background: #000;
    border-top: 1px solid var(--border);
    padding: 60px 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: #fff;
    text-decoration: underline;
}

/* --- NEW COMPONENT STYLES (MEGA-INDEX) --- */

/* Feature Rows (Zig-Zag) */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 120px;
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-row.reverse .feature-content {
    order: 2;
}

.feature-row.reverse .feature-visual {
    order: 1;
}

.feature-content h3 {
    color: var(--accent);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.feature-content h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.feature-content p {
    font-size: 1.15rem;
    margin-bottom: 30px;
    opacity: 0.8;
}

.feature-content ul li {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--text-primary);
    font-size: 1.1rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 60px 40px;
    backdrop-filter: blur(10px);
}

.stat-item .number {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    display: block;
    background: linear-gradient(to bottom, #fff, #999);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Accordion */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid var(--border);
}

.accordion-header {
    width: 100%;
    padding: 25px 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header:hover {
    color: var(--accent);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.accordion-content p {
    padding-bottom: 25px;
}

/* SEO Block */
.seo-block {
    background: #000;
    padding: 80px 40px;
    border-radius: 30px;
    margin-top: 60px;
}

.seo-block h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #fff;
}

.seo-block p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #888;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: #000;
        padding: 20px;
        flex-direction: column;
        display: none;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .grid-2,
    .footer-grid,
    .feature-row,
    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-item.large {
        grid-column: auto;
    }

    .feature-row {
        text-align: center;
    }

    .feature-row.reverse {
        direction: ltr;
    }
}

/* --- MODERN NAVIGATION (Command Bar) --- */
.glass-command-bar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    z-index: 1000;
}

.command-inner {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cmd-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
}

.cmd-logo img {
    height: 28px;
    width: auto;
}

.cmd-links {
    display: flex;
    gap: 5px;
}

.cmd-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    border-radius: 50%;
    transition: 0.3s;
    font-size: 1.1rem;
}

.cmd-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-2px);
}

.cmd-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: pulseStatus 2s infinite;
}

@keyframes pulseStatus {
    0% {
        opacity: 0.5;
        box-shadow: 0 0 0 #10b981;
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 10px #10b981;
    }

    100% {
        opacity: 0.5;
        box-shadow: 0 0 0 #10b981;
    }
}

.status-text {
    font-size: 0.75rem;
    color: #10b981;
    font-weight: 600;
    text-transform: uppercase;
}

.mobile-cmd-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

/* --- HERO V4: ECOSYSTEM DASHBOARD (Bento Grid) --- */
.hero-dashboard {
    padding: 100px 20px 60px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #000;
    position: relative;
    /* Subtle Grid Background */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Header centered */
.dashboard-header {
    text-align: center;
    margin-bottom: 50px;
    width: 100%;
    max-width: 800px;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

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

.dashboard-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Bento Grid */
.bento-hero-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 140px;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
}

/* CARD STYLES */
.bento-card {
    background: #0f0f11;
    border: 1px solid #27272a;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.bento-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Core Card (Large) */
.core-card {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, #1e1b4b, #09090b);
    border-color: rgba(59, 130, 246, 0.3);
}

.core-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 10px #3b82f6;
    animation: pulseStatus 2s infinite;
}

.core-header h3 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
}

.core-stats {
    display: flex;
    gap: 30px;
    position: relative;
    z-index: 2;
}

.stat .value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.stat .label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.core-visual {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    opacity: 0.3;
}

/* Module Cards */
.module-card {
    grid-column: span 1;
    grid-row: span 1;
}

.module-card:hover {
    border-color: var(--accent);
    /* Uses inline style var */
    background: #18181b;
}

.card-icon {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: auto;
}

.card-info h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-info .status {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.active-light {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    opacity: 0;
    transition: 0.3s;
    box-shadow: 0 0 5px #10b981;
}

.module-card:hover .active-light {
    opacity: 1;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .bento-hero-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .glass-command-bar {
        width: 95%;
        top: 10px;
    }

    .cmd-links {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #0f172a;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 20px;
        flex-wrap: wrap;
        padding: 20px;
        display: none;
        /* Toggle via JS */
        justify-content: center;
    }

    .cmd-links.active {
        display: flex;
    }

    .mobile-cmd-toggle {
        display: block;
    }

    .cmd-status {
        display: none;
        /* Hide on mobile to save space */
    }

    .bento-hero-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .core-card {
        grid-column: span 1;
        height: auto;
        min-height: 200px;
    }

    .module-card {
        height: 120px;
        flex-direction: row;
        align-items: center;
        gap: 20px;
        padding: 15px 20px;
    }

    .card-icon {
        margin-bottom: 0;
    }
}

/* --- MASTER APP TEMPLATE (Global Scale) --- */
.app-page-wrapper {
    background: #000;
    color: #fff;
    overflow-x: hidden;
}

/* Section 1: Cinematic App Hero */
.app-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px;
    background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.05), #000 70%);
    overflow: hidden;
}

.app-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.app-hero-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, var(--theme-color), transparent 70%);
    opacity: 0.15;
    filter: blur(80px);
    animation: glowPulse 10s infinite alternate;
}

@keyframes glowPulse {
    0% {
        opacity: 0.1;
        transform: translateX(-50%) scale(0.9);
    }

    100% {
        opacity: 0.2;
        transform: translateX(-50%) scale(1.1);
    }
}

.app-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
}

.app-logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-bottom: 30px;
    font-size: 2.5rem;
    color: var(--theme-color);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.app-hero h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to bottom, #fff, rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.app-hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* Section 2: Key Metrics (Stats) */
.app-stats {
    padding: 60px 20px;
    background: #09090b;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.app-stat-item .value {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.app-stat-item .label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section 3: Feature Highlights */
.app-features {
    padding: 100px 20px;
    background: #000;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: #0f0f11;
    border: 1px solid #27272a;
    border-radius: 20px;
    padding: 40px;
    transition: 0.3s;
}

.feature-card:hover {
    border-color: var(--theme-color);
    background: #18181b;
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2rem;
    color: var(--theme-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

/* Section 4: Integration Flow */
.app-flow {
    padding: 100px 20px;
    background: linear-gradient(to bottom, #000, #09090b);
    text-align: center;
}

/* RESPONSIVE QUERIES */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .app-hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .app-hero {
        padding: 100px 20px 60px;
        min-height: auto;
    }

    .app-hero h1 {
        font-size: 2.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .flow-container {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }

    .flow-connector {
        width: 2px;
        height: 100%;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
    }

    .flow-node {
        width: 100%;
        max-width: 300px;
        margin-bottom: 20px;
    }
}

.flow-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 50px 0;
}

.flow-connector {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--theme-color), transparent);
    z-index: 1;
    opacity: 0.5;
}

.flow-node {
    position: relative;
    z-index: 2;
    display: inline-block;
    padding: 20px 40px;
    background: #18181b;
    border: 1px solid var(--theme-color);
    border-radius: 50px;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* --- Responsive Fixes (Final) --- */

/* Home Hero Section (Moved from inline) */
.home-hero-section {
    padding-top: 140px;
    padding-bottom: 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .home-hero-section {
        padding-top: 100px;
        padding-bottom: 60px;
    }
}

/* Feature Row Responsiveness */
@media (max-width: 768px) {

    /* Force stack on mobile */
    .feature-row,
    .feature-row.reverse {
        flex-direction: column !important;
        text-align: center;
        gap: 40px;
    }

    .feature-content {
        padding: 0 !important;
        text-align: center;
    }

    .feature-content h2 {
        font-size: 2rem;
    }

    /* Ensure visual is spaced */
    .feature-visual {
        margin-bottom: 20px;
        width: 100%;
    }
}