/* 
=======================================
   BASE STYLES & VARIABLES
=======================================
*/

:root {
    /* Color Palette - Logo Uyumlu */
    --primary-color: #1e3a4f;
    /* Koyu Lacivert (logo yazı rengi) */
    --primary-light: #2a4d66;
    /* Lacivert Açık ton */
    --secondary-color: #2a8b8b;
    /* Teal / Petrol Mavisi (sağ figür) */
    --secondary-hover: #1f7070;
    /* Teal Koyu */
    --accent-color: #7cb82f;
    /* Yeşil (sol figür) */
    --accent-hover: #6aa122;
    /* Yeşil Koyu */

    --success-color: #7cb82f;
    /* Logo Yeşili */
    --warning-color: #f59e0b;
    /* Amber 500 */
    --danger-color: #ef4444;
    /* Red 500 */

    --bg-light: #f4f8f8;
    /* Teal-tinted light */
    --bg-white: #ffffff;
    --text-main: #2c3e50;
    /* Koyu Lacivert Metin */
    --text-muted: #5a7a8a;
    /* Lacivert-Gri */
    --text-light: #8aa4b0;
    /* Açık Gri Mavi */

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    --gradient-dark: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(30, 58, 79, 0.07);

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;

    /* Transitions & Shadows */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

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

ul {
    list-style: none;
}

/* 
=======================================
   UTILITIES & LAYOUT
=======================================
*/
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 4rem;
}

/* 
=======================================
   BUTTONS
=======================================
*/
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-medium);
    border: none;
    outline: none;
    font-family: var(--font-sans);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: 10px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

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

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

/* 
=======================================
   NAVBAR
=======================================
*/
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-medium);
    padding: 1.5rem 0;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo-svg {
    width: 100%;
    height: 100%;
}

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

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.logo-text .highlight {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width var(--transition-medium);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* 
=======================================
   HERO SECTION
=======================================
*/
.hero {
    position: relative;
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg-light);
}

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

.blob {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.5;
    animation: float 20s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    right: -5%;
    width: 50vw;
    height: 50vw;
    background: rgba(42, 139, 139, 0.2);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: rgba(124, 184, 47, 0.15);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 30%;
    width: 30vw;
    height: 30vw;
    background: rgba(42, 139, 139, 0.1);
    animation-delay: -10s;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(14, 165, 233, 0.1);
    color: var(--secondary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Glass Mockup inside Hero */
.glass-mockup {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.glass-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(-10px);
}

.mockup-header {
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dots {
    display: flex;
    gap: 6px;
}

.dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e2e8f0;
}

.dots span:nth-child(1) {
    background: #ef4444;
}

.dots span:nth-child(2) {
    background: #f59e0b;
}

.dots span:nth-child(3) {
    background: #10b981;
}

.mockup-title {
    margin-left: 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
}

.mockup-body {
    padding: 2rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.8) 100%);
}

.mock-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.m-card {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.m-card.highlight {
    border: 1px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.15);
}

.m-card h5 {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.m-card h3 {
    font-size: 1.5rem;
    margin: 0;
}

.success-text {
    color: var(--success-color) !important;
}

.mock-table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.m-table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.m-table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
    transition: background var(--transition-fast);
}

.m-table-row:last-child {
    border-bottom: none;
}

.m-table-row.active {
    background: rgba(16, 185, 129, 0.05);
}

.bold {
    font-weight: 700;
    color: var(--primary-color);
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
}

.status-badge.green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.status-badge.gray {
    background: rgba(100, 116, 139, 0.1);
    color: var(--text-muted);
}

.mock-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 40px;
    padding-top: 10px;
}

.chart-line {
    flex: 1;
    background: var(--secondary-color);
    border-radius: 4px;
    opacity: 0.2;
    transition: height 1s ease;
}

.chart-line:last-child {
    opacity: 1;
}

/* 
=======================================
   SECTIONS & COMPONENTS
=======================================
*/

.bg-white {
    background: var(--bg-white);
}

.bg-light {
    background: var(--bg-light);
}

.bg-dark {
    background: var(--primary-color);
    color: white;
}

.bg-dark h2,
.bg-dark h3 {
    color: white;
}

.bg-dark .section-subtitle {
    color: var(--text-light);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-medium);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    z-index: -1;
    transition: opacity var(--transition-medium);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    opacity: 0.05;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--secondary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: all var(--transition-fast);
}

.feature-card:hover .feature-icon {
    background: var(--secondary-color);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Workflow Section */
.workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-top: 4rem;
    position: relative;
}

.workflow-steps::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: rgba(14, 165, 233, 0.2);
    transform: translateX(-50%);
    z-index: 0;
}

.w-step {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 1;
}

.w-step:nth-child(even) {
    flex-direction: row-reverse;
}

.w-content,
.w-image {
    width: 45%;
}

.w-image {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.w-icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 8px var(--bg-light);
}

.w-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.w-content p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* Mock Categories (for Platform Preview) */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cat-item {
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.cat-item:hover {
    background: var(--secondary-color);
    color: white;
}

/* CTA Section */
.cta-section {
    position: relative;
    padding: 8rem 0;
    text-align: center;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    z-index: -2;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

/* Footer */
.footer {
    background: #0b1120;
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

/* 
=======================================
   ANIMATIONS
=======================================
*/

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* 
=======================================
   RESPONSIVE DESIGN 
=======================================
*/

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

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-description {
        margin: 0 auto 2rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .nav-links,
    .nav-actions {
        display: none;
        /* Mobile menu will be handled via JS */
    }

    .menu-toggle {
        display: block;
    }

    .navbar.mobile-open {
        background: var(--bg-white);
    }

    .mobile-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        padding: 2rem;
        box-shadow: var(--shadow-md);
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .mobile-menu li {
        list-style: none;
        /* Remove bullet points */
    }

    .mobile-menu a:not(.btn) {
        font-size: 1.125rem;
        font-weight: 500;
        color: var(--primary-color);
        display: block;
    }

    .mobile-menu .btn {
        width: 100%;
        text-align: center;
        color: white;
        /* Fix invisible mobile menu button text */
    }

    .mobile-menu .btn-outline {
        color: var(--primary-color);
    }

    .w-step {
        flex-direction: column !important;
        text-align: center;
        gap: 2rem;
    }

    .w-content,
    .w-image {
        width: 100%;
    }

    .workflow-steps::before {
        display: none;
    }

    .w-icon-wrapper {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin: 0 auto 1.5rem;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 4rem 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .btn-large {
        width: 100%;
    }
}