:root {
    --primary: #12C2A0;
    --primary-glow: rgba(18, 194, 160, 0.5);
    --bg: rgba(15, 23, 42, 0.3); /* Transparent for WebGL */
    --bg-darker: rgba(11, 17, 32, 0.6); /* Transparent for WebGL */
    --surface: rgba(30, 41, 59, 0.4);
    --surface-glass: rgba(30, 41, 59, 0.6);
    --border: rgba(255, 255, 255, 0.1);
    --text: #F4F6F9;
    --text-muted: #94A3B8;
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #050810; /* Dark fallback behind WebGL */
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* WebGL Canvas */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Flex Utilities */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, #12C2A0 0%, #3B82F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    padding: 12px 24px;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary);
    color: #0F172A;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
    background-color: #14D4AF;
}

.btn-outline {
    background-color: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(15, 23, 42, 0.95);
}

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

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 1px;
}

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

.logo-subtitle {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--text-muted);
    padding-left: 35px;
    margin-top: -2px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a:not(.btn) {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:not(.btn):hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    color: var(--text);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    filter: blur(100px);
    z-index: -1;
    opacity: 0.6;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 56px;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-mockup-wrapper {
    position: relative;
    perspective: 1200px;
}

/* Yüzen (Floating) Animasyon */
@keyframes floatPhone {
    0% { transform: translateY(0px) rotateY(-15deg) rotateX(5deg); }
    50% { transform: translateY(-20px) rotateY(-12deg) rotateX(8deg); }
    100% { transform: translateY(0px) rotateY(-15deg) rotateX(5deg); }
}

.mockup-frame {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 9/19.5;
    margin: 0 auto;
    background: #000;
    border-radius: 40px;
    border: 12px solid #1E293B; /* Telefon kasası */
    box-shadow: 
        inset 0 0 0 2px rgba(255, 255, 255, 0.1), /* İç kasa parlaması */
        0 30px 60px -12px rgba(0, 0, 0, 0.8), /* Derin gölge */
        0 0 50px rgba(18, 194, 160, 0.3), /* Dış aura (Glow) */
        20px 20px 40px rgba(0, 0, 0, 0.5); /* 3D derinlik gölgesi */
    overflow: hidden;
    position: relative;
    /* Sabit transform yerine animasyon ekliyoruz */
    animation: floatPhone 6s ease-in-out infinite;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Telefon Çentiği (Notch) / Kamera Deliği (Dynamic Island style) */
.mockup-frame::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 35%;
    height: 25px;
    background-color: #0F172A;
    border-radius: 20px;
    z-index: 10;
    box-shadow: inset 0 -1px 2px rgba(255,255,255,0.1);
}

/* Ekran Parlaması (Glass Glare) */
.mockup-frame::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.08) 50%, 
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-25deg);
    z-index: 5;
    animation: glareSwipe 8s infinite;
    pointer-events: none;
}

@keyframes glareSwipe {
    0%, 50% { left: -100%; }
    70%, 100% { left: 200%; }
}

.mockup-frame:hover {
    animation-play-state: paused;
    transform: rotateY(0deg) rotateX(0deg) scale(1.05);
}

.mockup-content {
    width: 100%;
    height: 100%;
    background-color: var(--bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
}

/* Features */
.features {
    padding: 100px 0;
    background-color: var(--bg-darker);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-muted);
}

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

.feature-card {
    background: var(--surface-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    padding: 40px 30px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px var(--primary-glow);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(18, 194, 160, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

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

/* Screenshots */
.screenshots {
    padding: 100px 0;
}

.screenshots-container {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 10px;
    snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.screenshots-container::-webkit-scrollbar {
    display: none;
}

.screenshot-item {
    flex: 0 0 auto;
    width: 280px;
    height: 600px;
    border-radius: 30px;
    overflow: hidden;
    border: 6px solid #2A3B52;
    scroll-snap-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: var(--transition);
    position: relative;
    background: var(--surface);
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.screenshot-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px var(--primary-glow);
    border-color: var(--primary);
}

.screenshot-item:hover img {
    transform: scale(1.05);
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    text-align: center;
    position: relative;
    background-color: var(--bg-darker);
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    filter: blur(80px);
    z-index: 1;
}

.cta-container {
    position: relative;
    z-index: 2;
    background: var(--surface-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    padding: 60px 40px;
    border-radius: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.cta-container h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.cta-container p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.store-btn {
    text-align: left;
    padding: 12px 24px;
}

.store-btn i {
    font-size: 32px;
}

.store-btn div {
    display: flex;
    flex-direction: column;
}

.store-btn span {
    font-size: 12px;
    font-weight: 400;
}

.store-btn strong {
    font-size: 18px;
}

/* Footer */
.footer {
    padding: 80px 0 30px;
    background: rgba(8, 12, 23, 0.8);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.footer-desc {
    color: var(--text-muted);
    margin-top: 12px;
    max-width: 300px;
    font-size: 14px;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--primary);
}

.footer-legal .separator {
    color: rgba(255, 255, 255, 0.1);
    font-size: 12px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
}

/* Legal Pages Content Container */
.legal-page-header {
    padding: 140px 0 60px;
    text-align: center;
    background-color: var(--bg-darker);
    border-bottom: 1px solid var(--border);
}

.legal-content {
    padding: 60px 0;
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1, .legal-content h2, .legal-content h3 {
    color: var(--primary);
    margin: 30px 0 15px;
}

.legal-content p, .legal-content ul {
    color: var(--text-muted);
    margin-bottom: 20px;
    text-align: justify;
}

.legal-content ul {
    padding-left: 20px;
}

/* Contact Card in Legal Pages */
.contact-card {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--surface-glass);
    border: 1px solid var(--border);
    padding: 15px 25px;
    border-radius: 12px;
    margin-top: 5px;
    margin-bottom: 30px;
    text-decoration: none;
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(18, 194, 160, 0.15);
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: rgba(18, 194, 160, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 2px;
}

.contact-email {
    font-size: 16px;
    color: var(--text);
    font-weight: 500;
}

/* Animations (Managed by GSAP) */
.fade-in-up, .fade-in-right, .fade-in-left {
    /* GSAP will handle initial states and animations */
}

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

    .hero-subtitle {
        margin: 0 auto 40px;
    }

    .hero-buttons {
        justify-content: center;
    }
    
    .mockup-frame {
        transform: none;
        margin-top: 40px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-brand .logo {
        align-items: center;
    }
    
    .footer-desc {
        margin: 12px auto 0;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 40px;
    }

    .footer-legal {
        flex-direction: column;
        gap: 12px;
    }
    
    .footer-legal .separator {
        display: none;
    }
}
