/* Atmosver — Landing Page  
   Tema: Gece Mavisi + Amber Altın
   v2.1 — Dark/Light mode desteği
*/

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

/* ── CSS Değişkenleri (Dark — varsayılan) ─────────────────────────────────── */
:root {
    /* Marka Renkleri */
    --brand-primary:   #E8A020;   /* Amber Altın */
    --brand-secondary: #F5C842;   /* Parlak Altın */
    --brand-deep:      #C07A10;   /* Koyu Amber */

    /* Arkaplan */
    --bg-base:         #0D1B2A;   /* Gece Mavisi */
    --bg-surface:      #122236;
    --bg-card:         rgba(18, 34, 54, 0.75);
    --bg-nav:          rgba(13, 27, 42, 0.85);

    /* Metin */
    --text-primary:    #F0F4F8;
    --text-secondary:  #8FA8C0;
    --text-muted:      #4A6480;

    /* Kenarlık */
    --border:          rgba(232, 160, 32, 0.18);
    --border-strong:   rgba(232, 160, 32, 0.5);

    /* Gölge */
    --glow:            0 0 40px rgba(232, 160, 32, 0.15);
    --glow-strong:     0 0 60px rgba(232, 160, 32, 0.35);

    /* Arka plan orbs */
    --orb1: #E8A020;
    --orb2: #1E5FAF;
    --orb3: #F5C842;

    transition: background .3s, color .3s;
}

/* ── Light Mode ────────────────────────────────────────────────────────────── */
[data-theme="light"] {
    --bg-base:         #F0F4FA;
    --bg-surface:      #FFFFFF;
    --bg-card:         rgba(255, 255, 255, 0.85);
    --bg-nav:          rgba(240, 244, 250, 0.92);
    --text-primary:    #0D1B2A;
    --text-secondary:  #3A5470;
    --text-muted:      #8FA8C0;
    --border:          rgba(13, 27, 42, 0.12);
    --border-strong:   rgba(232, 160, 32, 0.6);
    --glow:            0 4px 24px rgba(232, 160, 32, 0.18);
    --glow-strong:     0 8px 48px rgba(232, 160, 32, 0.3);
    --orb1: #E8A020;
    --orb2: #3A8FEE;
    --orb3: #F5C842;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: background .4s, color .4s;
}

/* ── Animasyonlu Arkaplan ─────────────────────────────────────────────────── */
.animated-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: var(--bg-base);
    overflow: hidden;
}

#sphereCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: -1;
    background: transparent;
    pointer-events: none; /* Allows clicks to pass through if necessary, though mousemove needs to track. Window tracks mousemove, so pointer-events none on canvas is fine. */
}

.navbar, .hero, .features-grid, section, footer {
    position: relative;
    z-index: 1;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .25;
    animation: floatOrb 22s ease-in-out infinite;
}

.bg-circle-1 {
    width: 560px; height: 560px;
    background: radial-gradient(circle, var(--orb1), transparent 70%);
    top: -200px; right: -150px;
    animation-delay: 0s;
}

.bg-circle-2 {
    width: 640px; height: 640px;
    background: radial-gradient(circle, var(--orb2), transparent 70%);
    bottom: -280px; left: -200px;
    animation-delay: 7s;
}

.bg-circle-3 {
    width: 360px; height: 360px;
    background: radial-gradient(circle, var(--orb3), transparent 70%);
    top: 45%; left: 48%;
    animation-delay: 14s;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(40px, -60px) scale(1.12); }
    66%       { transform: translate(-30px, 30px) scale(0.88); }
}

/* ── Navbar ───────────────────────────────────────────────────────────────── */
.navbar {
    position: fixed; top: 0; width: 100%;
    padding: 1rem 5%;
    display: flex; align-items: center; justify-content: space-between;
    background: var(--bg-nav);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: background .4s;
}

/* Logo */
.logo {
    display: flex; align-items: center; gap: .8rem;
    font-size: 1.35rem; font-weight: 800;
    text-decoration: none;
    color: var(--text-primary);
    letter-spacing: -.5px;
}

.logo-img {
    width: 44px; height: 44px;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: 0 2px 12px rgba(232,160,32,.35);
    background: #0D1B2A;
    padding: 3px;
}

.logo-text {
    background: linear-gradient(130deg, var(--brand-primary), var(--brand-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Tema Toggle */
.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: .45rem 1rem;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: .85rem;
    display: flex; align-items: center; gap: .5rem;
    transition: all .25s;
    backdrop-filter: blur(10px);
}
.theme-toggle:hover { border-color: var(--brand-primary); color: var(--brand-primary); }

.nav-buttons { display: flex; gap: .8rem; align-items: center; }

/* ── Butonlar ─────────────────────────────────────────────────────────────── */
.btn {
    padding: .85rem 2.2rem;
    border-radius: 50px;
    font-size: 1rem; font-weight: 600;
    cursor: pointer; border: none;
    transition: all .3s ease;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: .5rem;
}

.btn-primary {
    background: linear-gradient(130deg, var(--brand-primary), var(--brand-secondary));
    color: #0D1B2A;
    box-shadow: 0 6px 28px rgba(232, 160, 32, 0.38);
}
.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(232, 160, 32, 0.55);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1.5px solid var(--border-strong);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    background: rgba(232, 160, 32, 0.12);
    border-color: var(--brand-primary);
    transform: translateY(-4px);
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 7rem 5% 3rem;
}

.hero-content {
    max-width: 1200px; width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    animation: fadeUp 1s ease both;
}

.hero-text {
    max-width: 640px;
}

.hero-image {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    animation: floating 6s ease-in-out infinite;
}

.hero-image img {
    width: 100%; max-width: 550px;
    filter: drop-shadow(0 20px 40px rgba(13, 27, 42, 0.4));
    border-radius: 24px;
}

@keyframes floating {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.hero-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(232, 160, 32, 0.1);
    border: 1px solid rgba(232, 160, 32, 0.3);
    border-radius: 50px;
    padding: .4rem 1.2rem;
    font-size: .85rem; font-weight: 500;
    color: var(--brand-primary);
    margin-bottom: 1.8rem;
    letter-spacing: .5px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -1.5px;
}

.hero-title span {
    background: linear-gradient(130deg, var(--brand-primary) 30%, var(--brand-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.8rem;
    line-height: 1.7;
    max-width: 640px;
    margin-left: auto; margin-right: auto;
}

.cta-buttons {
    display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
    margin-bottom: 3rem;
}

/* Stats ribbon */
.stats-ribbon {
    display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-top: 1rem;
}

.stat-item { text-align: center; }
.stat-num {
    font-size: 1.8rem; font-weight: 800;
    background: linear-gradient(130deg, var(--brand-primary), var(--brand-secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    display: block;
}
.stat-label { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .8px; }

/* ── Features ─────────────────────────────────────────────────────────────── */
.features {
    padding: 6rem 5%;
}

.section-label {
    text-align: center;
    font-size: .78rem; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--brand-primary);
    margin-bottom: .8rem;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 3.5rem;
    letter-spacing: -.8px;
}

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

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 2.2rem;
    cursor: default;
    transition: all .35s ease;
    position: relative; overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(232,160,32,.06), transparent);
    opacity: 0; transition: opacity .35s;
}

.feature-card:hover { 
    transform: translateY(-8px);
    border-color: var(--border-strong);
    box-shadow: var(--glow);
}
.feature-card:hover::after { opacity: 1; }

.feature-icon {
    font-size: 2.4rem; margin-bottom: 1.2rem;
    display: block;
}

.feature-title {
    font-size: 1.15rem; font-weight: 700;
    margin-bottom: .8rem;
    color: var(--text-primary);
}

.feature-desc {
    color: var(--text-secondary);
    font-size: .95rem; line-height: 1.65;
}

/* ── Login Cards ────────────────────────────────────────────────────────────── */
.login-options { padding: 5rem 5%; text-align: center; }

.login-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 860px; margin: 3rem auto 0;
}

.login-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1.5px solid var(--border);
    border-radius: 20px; padding: 2.5rem;
    transition: all .35s ease;
    cursor: pointer;
}

.login-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: var(--brand-primary);
    box-shadow: var(--glow-strong);
}

.login-icon { font-size: 3.5rem; margin-bottom: 1.2rem; }
.login-title { font-size: 1.7rem; font-weight: 700; margin-bottom: .8rem; }
.login-desc { color: var(--text-secondary); margin-bottom: 1.8rem; line-height: 1.6; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
footer {
    text-align: center;
    padding: 3rem 5%;
    border-top: 1px solid var(--border);
    margin-top: 4rem;
    color: var(--text-muted);
    font-size: .9rem;
}
footer strong { color: var(--brand-primary); }

/* ── Animasyonlar ─────────────────────────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-text {
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons {
        justify-content: center;
    }

    .hero-image img {
        max-width: 400px;
    }

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

@media (max-width: 640px) {
    .navbar { padding: .9rem 4%; }
    .logo-img { width: 36px; height: 36px; }
    .cta-buttons { flex-direction: column; align-items: stretch; width: 100%; gap: 1rem; }
    .btn { justify-content: center; }
    .stats-ribbon { flex-direction: column; gap: 1.5rem; }
    .login-cards { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .hero-image img { max-width: 100%; padding: 0 1rem; }
}