:root {
    --navy-blue: #0F172A;
    --turquoise: #06B6D4;
    --light-bg: #F8FAFC;
    --white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--navy-blue);
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
body.page-loaded {
    opacity: 1;
}
body.page-unloading {
    opacity: 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo-text {
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy-blue);
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--navy-blue);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--turquoise);
}

.login-btn {
    display: inline-block;
    background: var(--white);
    color: var(--navy-blue) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05);
    border: 1px solid var(--navy-blue);
    text-align: center;
}

.login-btn:hover {
    background: var(--navy-blue) !important;
    color: var(--white) !important;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.2);
    transform: translateY(-2px);
}

.cta-btn {
    display: inline-block;
    background: var(--turquoise);
    color: var(--white) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
    border: 1px solid transparent;
    text-align: center;
}

.cta-btn:hover {
    background: #0891b2 !important;
    color: var(--white) !important;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-redesign {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 160px 5% 50px;
    background-color: #f8fafc;
    overflow: hidden;
}
.hero-redesign-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    z-index: 0;
}
.hero-redesign-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    mask-image: linear-gradient(to right, transparent 0%, black 30%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 30%);
}
.hero-redesign::before {
    content: '';
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: linear-gradient(90deg, rgba(248,250,252,1) 0%, rgba(248,250,252,1) 45%, rgba(248,250,252,0) 100%);
    z-index: 1;
}
.hero-redesign-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}
.hero-redesign-content {
    max-width: 750px;
}
.hero-redesign .hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--navy-blue);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}
.hero-redesign .hero-title span {
    color: var(--turquoise);
}
.hero-redesign .hero-subtitle {
    font-size: 1.15rem;
    color: #475569;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-weight: 500;
    max-width: 500px;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}
.hero-buttons .btn-primary {
    background: var(--turquoise);
    color: #fff;
    padding: 1rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    font-size: 1rem;
}
.hero-buttons .btn-primary:hover {
    background: #0891b2;
    transform: translateY(-2px);
}
.hero-buttons .btn-secondary {
    background: #fff;
    color: var(--navy-blue);
    padding: 1rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #cbd5e1;
    transition: all 0.3s;
    font-size: 1rem;
}
.hero-buttons .btn-secondary:hover {
    border-color: var(--turquoise);
    color: var(--turquoise);
}
.hero-features {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    background: #fff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    display: inline-flex;
    flex-wrap: wrap;
}
.hf-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-right: 1.5rem;
    border-right: 1px solid #f1f5f9;
}
.hf-item:last-child {
    border-right: none;
    padding-right: 0;
}
.hf-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.hf-item:nth-child(1) .hf-icon { color: var(--turquoise); } 
.hf-item:nth-child(2) .hf-icon { color: var(--turquoise); } 
.hf-item:nth-child(3) .hf-icon { color: var(--turquoise); } 
.hf-text {
    display: flex;
    flex-direction: column;
}
.hf-text strong {
    font-size: 0.85rem;
    color: var(--navy-blue);
    font-weight: 700;
}
.hf-text span {
    font-size: 0.75rem;
    color: #64748b;
}

/* Tracking Widget Redesign */
.hero-redesign .tracking-widget {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
    max-width: 600px;
}
.hero-redesign .tracking-widget h3 {
    margin-top: 0;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    color: var(--navy-blue);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.hero-redesign .tracking-form {
    display: flex;
    gap: 1rem;
}
.hero-redesign .tracking-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}
.hero-redesign .tracking-input:focus {
    border-color: var(--turquoise);
}
.hero-redesign .tracking-btn {
    background: var(--turquoise);
    color: #fff;
    border: none;
    padding: 0 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}
.hero-redesign .tracking-btn:hover {
    background: #0891b2;
}

@media (max-width: 768px) {
    .hero-redesign {
        padding-top: 120px;
    }
    .hero-redesign-bg {
        width: 100%;
        opacity: 0.6;
    }
    .hero-redesign-bg img {
        mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 80%, transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 80%, transparent 100%);
    }
    .hero-redesign::before {
        background: linear-gradient(180deg, rgba(248,250,252,0.7) 0%, rgba(248,250,252,0.9) 60%, rgba(248,250,252,1) 100%);
    }
    .hero-redesign .hero-title {
        font-size: 3.2rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .hero-features {
        flex-direction: column;
        width: 100%;
    }
    .hf-item {
        border-right: none;
        border-bottom: 1px solid #f1f5f9;
        padding-bottom: 1rem;
        padding-right: 0;
    }
    .hf-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    .hero-redesign .tracking-form {
        flex-direction: column;
    }
    .hero-redesign .tracking-btn {
        padding: 1rem;
    }
}

/* Features (Güven, Teknoloji, Çeviklik) */
.features {
    padding: 5rem 5%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
    transition: transform 0.3s;
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--turquoise);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--navy-blue);
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero-redesign-bg {
        width: 100%;
    }
    .hero-redesign-bg img {
        mask-image: none;
        -webkit-mask-image: none;
        opacity: 0.5;
        object-position: center;
    }
    .hero-redesign::before {
        background: rgba(248,250,252,0.85);
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .tracking-form {
        flex-direction: column;
    }
    .tracking-btn {
        padding: 1rem;
    }
    .features {
        grid-template-columns: 1fr;
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--navy-blue);
    cursor: pointer;
}
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    .nav-links {
        display: none;
    }
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}
.mobile-drawer.active {
    right: 0;
}
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}
.close-drawer {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--navy-blue);
}
.drawer-links {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
}
.drawer-links a {
    text-decoration: none;
    color: var(--navy-blue);
    font-weight: 500;
    font-size: 1.1rem;
}
.drawer-links .cta-btn,
.drawer-links .login-btn {
    text-align: center;
    width: 100%;
}
.drawer-links .cta-btn {
    margin-top: 1rem;
}
.drawer-links .login-btn {
    margin-top: 0.5rem;
}


/* Steps */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.step-box {
    background: var(--light-bg);
    padding: 2.5rem;
    border-radius: 20px;
    position: relative;
    border: 1px solid rgba(15, 23, 42, 0.05);
    transition: all 0.3s ease;
}
.step-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.05);
}
.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(6, 182, 212, 0.2);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}
.step-box h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--navy-blue);
    position: relative;
    z-index: 1;
}
.step-box p {
    color: #64748b;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* API Button Hover */
.api-btn:hover {
    background: var(--turquoise) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(6, 182, 212, 0.2);
}

/* Footer */
footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 4rem 5% 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 3rem;
}
.footer-col h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 0.8rem;
}
.footer-col ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-col ul li a:hover {
    color: var(--turquoise);
}
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* Social Links */
.social-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.social-icon:hover {
    background: var(--turquoise);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.35);
}
.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.4);
    border-color: transparent;
}

/* Mobile Hero Background Fix */
@media (max-width: 768px) {
    .hero-redesign-bg {
        width: 100%;
    }
    .hero-redesign-bg img {
        mask-image: none;
        -webkit-mask-image: none;
        object-position: center;
    }
    .hero-redesign::before {
        background: rgba(248,250,252,0.75); /* Haritayı daha belirgin yapmak için gradient yerine saydam beyaz katman */
    }
}

/* FAQ Section */
.faq-section {
    padding: 6rem 5%;
    background: var(--light-bg);
}
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.faq-header h2 {
    font-size: 2.5rem;
    color: var(--navy-blue);
    font-weight: 800;
    margin-bottom: 1rem;
}
.faq-header p {
    color: #64748b;
    font-size: 1.1rem;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.faq-item {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-item:hover {
    border-color: var(--turquoise);
    box-shadow: 0 10px 15px -3px rgba(6, 182, 212, 0.05);
}
.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--navy-blue);
    user-select: none;
}
.faq-question span {
    font-size: 1.1rem;
    line-height: 1.4;
}
.faq-icon-wrapper {
    width: 32px;
    height: 32px;
    background: #f8fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-blue);
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.faq-item:hover .faq-icon-wrapper {
    background: rgba(6, 182, 212, 0.1);
    color: var(--turquoise);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    padding: 0 1.5rem;
}
.faq-answer-content {
    padding-bottom: 1.5rem;
    color: #475569;
    line-height: 1.6;
    font-size: 1rem;
}
.faq-answer-content p {
    margin-bottom: 0.75rem;
}
.faq-answer-content p:last-child {
    margin-bottom: 0;
}
.faq-item.active .faq-answer {
    max-height: 1000px;
    transition: max-height 0.4s cubic-bezier(1, 0, 1, 0);
}
.faq-item.active .faq-icon-wrapper {
    transform: rotate(180deg);
    background: var(--turquoise);
    color: var(--white);
}

/* --- NAV LINK UNDERLINE HOVER ANIMATION --- */
.nav-links a:not(.cta-btn):not(.login-btn) {
    position: relative;
}
.nav-links a:not(.cta-btn):not(.login-btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--turquoise);
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.nav-links a:not(.cta-btn):not(.login-btn):hover::after {
    width: 100%;
}

/* --- HERO FLOATING ANIMATION --- */
@keyframes floatAnimation {
    0% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0); }
}
.hero-redesign-bg img {
    animation: floatAnimation 8s ease-in-out infinite;
}

/* --- SCROLL REVEAL ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delay options */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Pulse animation for CTA button */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(6, 182, 212, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0);
    }
}
.btn-primary, .api-btn {
    animation: pulseGlow 2.5s infinite;
}

/* Accessibility: Support users with prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    body {
        opacity: 1 !important;
        transition: none !important;
    }
    .reveal, .reveal-left, .reveal-right, .reveal-scale {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* --- BRAND LOGOS MARQUEE SCROLL --- */
.marquee {
    display: flex;
    width: max-content;
    animation: scroll 25s linear infinite;
}

.marquee-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    min-width: 100vw;
    flex-shrink: 0;
}

.marquee-logo {
    max-height: 80px;
    max-width: 200px;
    margin: 0 2.5rem;
    object-fit: contain;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.marquee-logo:hover {
    transform: scale(1.05);
}

.marquee-text {
    color: #cbd5e1;
    font-size: 2.2rem;
    margin: 0 2.5rem;
    font-weight: 700;
    flex-shrink: 0;
    white-space: nowrap;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Mobile Responsive Brand Logos */
@media (max-width: 768px) {
    .marquee {
        animation-duration: 18s; /* Slightly faster scroll speed on mobile for better UX */
    }
    .marquee-logo {
        max-height: 45px;
        max-width: 120px;
        margin: 0 1.25rem;
    }
    .marquee-text {
        font-size: 1.6rem;
        margin: 0 1.25rem;
    }
}