:root {
    --primary: #0d47a1;
    --primary-dark: #002171;
    --primary-light: #1976d2;
    --accent: #ff6f00;
    --accent-dark: #c43e00;
    --dark: #1a1a2e;
    --darker: #0f0f1e;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #6c757d;
    --gray-800: #343a40;
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--dark);
}

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
    background: var(--darker);
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
}

.top-bar a { color: rgba(255,255,255,0.8); text-decoration: none; }
.top-bar a:hover { color: white; }

.portal-link {
    background: var(--accent);
    color: white !important;
    padding: 0.35rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.2s;
}
.portal-link:hover { background: var(--accent-dark); color: white !important; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--dark) !important;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.brand-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.3);
}

.brand-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.footer .brand-text {
    background: none;
    -webkit-text-fill-color: white;
}

.nav-link {
    font-weight: 500;
    color: var(--gray-800) !important;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link.active,
.nav-link:hover { color: var(--primary) !important; }

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--accent);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.25);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(13, 71, 161, 0.35);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    border: none;
}
.btn-accent:hover { background: var(--accent-dark); color: white; transform: translateY(-1px); }

.btn-outline-light:hover { background: white; color: var(--primary); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 50%, var(--primary-dark) 100%);
    color: white;
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
}

/* ============================================================
   HERO VIDEO ARKA PLAN
   ============================================================ */
.hero-video {
    position: relative;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            135deg,
            rgba(15, 15, 30, 0.85) 0%,
            rgba(26, 26, 46, 0.75) 50%,
            rgba(0, 33, 113, 0.80) 100%
        );
    z-index: 1;
    pointer-events: none;
}

.hero-video .hero-pattern {
    z-index: 2;
}

.hero-video > .container {
    z-index: 3;
}

@media (prefers-reduced-motion: reduce) {
    .hero-video-bg {
        display: none;
    }
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,111,0,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(25,118,210,0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    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;
    pointer-events: none;
}

.hero h1 {
    color: white;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero h1 .accent { color: var(--accent); }

.hero .lead {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    margin-right: 0.5rem;
    box-shadow: 0 0 0 0 rgba(255,111,0, 0.7);
    animation: pulse 2s infinite;
}

@@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,111,0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255,111,0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255,111,0, 0); }
}

.hero-illustration {
    position: relative;
    text-align: center;
}

.hero-illustration .main-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.metric-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1rem;
    color: white;
}

.metric-card .metric-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.metric-card .metric-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-top: 0.5rem;
}

/* ============================================================
   SECTION
   ============================================================ */
.section {
    padding: 5rem 0;
}

.section-light { background: var(--gray-100); }

.section-title {
    margin-bottom: 3rem;
}

.section-eyebrow {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    display: block;
}

.section-heading {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}

.section-description {
    color: var(--gray-600);
    font-size: 1.1rem;
    max-width: 700px;
}

/* ============================================================
   FEATURE CARD
   ============================================================ */
.feature-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    transition: height 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(13,71,161,0.1);
    border-color: var(--primary-light);
}

.feature-card:hover::before { height: 100%; }

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(13,71,161,0.1), rgba(25,118,210,0.05));
    color: var(--primary);
}

.feature-icon.accent {
    background: linear-gradient(135deg, rgba(255,111,0,0.12), rgba(255,111,0,0.04));
    color: var(--accent);
}

.feature-card h4 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--gray-600);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ============================================================
   STAGE TIMELINE
   ============================================================ */
.stage-timeline {
    position: relative;
}

.stage-card {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s;
    position: relative;
}

.stage-card .stage-number {
    position: absolute;
    top: -16px;
    left: 24px;
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.stage-card:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 32px rgba(13,71,161,0.12);
}

.stage-card h4 {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
}

.stage-arrow {
    text-align: center;
    color: var(--gray-300);
    font-size: 2rem;
    line-height: 1;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 3.5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-banner::after {
    content: '';
    position: absolute;
    right: -100px;
    top: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,111,0,0.2), transparent 70%);
    pointer-events: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--darker);
    color: white;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.social-icons a {
    display: inline-flex;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: white;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    transition: all 0.2s;
    text-decoration: none;
}

.social-icons a:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

/* ============================================================
   PAGE HEADER (alt sayfalar)
   ============================================================ */
.page-header {
    background: linear-gradient(135deg, var(--darker), var(--primary-dark));
    color: white;
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    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;
    pointer-events: none;
}

.page-header h1 { color: white; font-size: 2.5rem; }

.page-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    color: rgba(255,255,255,0.7);
}

.page-header .breadcrumb-item.active { color: var(--accent); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ============================================================
   MODULE CARD (Features sayfası)
   ============================================================ */
.module-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s;
    height: 100%;
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.module-card .module-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
}

.module-card .module-header h4 { color: white; margin: 0; }

.module-card .module-body {
    padding: 1.5rem;
}

.module-card .module-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.module-card .module-body ul li {
    padding: 0.4rem 0 0.4rem 1.5rem;
    position: relative;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-100);
}

.module-card .module-body ul li:last-child { border-bottom: none; }

.module-card .module-body ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.85rem;
    top: 0.55rem;
}

/* ============================================================
   STATS
   ============================================================ */
.stat-item {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray-600);
    font-weight: 500;
}

/* ============================================================
   INTEGRATION DIAGRAM
   ============================================================ */
.integration-flow {
    position: relative;
    padding: 3rem 0;
}

.flow-node {
    background: white;
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(13,71,161,0.1);
    position: relative;
    z-index: 2;
}

.flow-node.center {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-color: var(--primary-dark);
    box-shadow: 0 12px 32px rgba(13,71,161,0.3);
}

.flow-node.center h5 { color: white; }

.flow-node h5 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.flow-node .flow-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.flow-node.center .flow-icon { color: white; }

.flow-node small { display: block; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.form-label { font-weight: 600; color: var(--gray-800); }

.form-control, .form-select {
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    padding: 0.65rem 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.2rem rgba(13,71,161,0.1);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.contact-info-item:last-child { border-bottom: none; }

.contact-info-item .icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(13,71,161,0.1), rgba(25,118,210,0.05));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@@media (max-width: 992px) {
    .hero { padding: 3rem 0; }
    .section { padding: 3rem 0; }
    .stage-arrow { transform: rotate(90deg); margin: 1rem 0; }
}
