@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=DM+Sans:wght@300;400;500&display=swap');

:root {
    --ink:      #0d1f1a;
    --forest:   #0e2d25;
    --emerald:  #1a5c44;
    --jade:     #2a8c68;
    --gold:     #c9a84c;
    --gold-lt:  #e8c97a;
    --cream:    #f5f0e8;
    --paper:    #faf7f2;
    --warm-mid: #e8e0d0;
    --text:     #1a2820;
    --muted:    #5a6e63;
    --white:    #ffffff;

    --ff-serif: 'Cormorant Garamond', Georgia, serif;
    --ff-sans:  'DM Sans', system-ui, sans-serif;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
}

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

html { scroll-behavior: smooth; }

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

/* ── ARKAPLAN GEOMETRİ ── */
.bg-pattern {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 40px,
            rgba(201,168,76,0.04) 40px,
            rgba(201,168,76,0.04) 41px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 40px,
            rgba(201,168,76,0.04) 40px,
            rgba(201,168,76,0.04) 41px
        );
}

/* ── NAV ── */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0 5%;
    transition: background 0.4s var(--ease-out), box-shadow 0.4s;
}
#navbar.scrolled {
    background: rgba(13, 31, 26, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(201,168,76,0.2);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.nav-logo {
    font-family: var(--ff-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gold);
    text-decoration: none;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo-star {
    color: var(--gold);
    font-size: 0.9em;
    animation: spin-star 20s linear infinite;
}
@keyframes spin-star {
    to { transform: rotate(360deg); }
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-links a {
    color: rgba(245,240,232,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.lang-toggle {
    background: rgba(201,168,76,0.15);
    border: 1px solid rgba(201,168,76,0.4);
    color: var(--gold);
    padding: 6px 14px;
    border-radius: 20px;
    font-family: var(--ff-sans);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 0.08em;
    transition: all 0.2s;
}
.lang-toggle:hover {
    background: rgba(201,168,76,0.25);
}

/* ── HERO ── */
.hero {
    min-height: 100vh;
    background: linear-gradient(160deg, var(--ink) 0%, var(--forest) 50%, #0a2218 100%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    padding: 140px 8% 100px;
    position: relative;
    overflow: hidden;
}
.hero-geo {
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    color: var(--gold);
    opacity: 0.6;
    pointer-events: none;
}
.hero-badge {
    display: inline-block;
    background: rgba(201,168,76,0.15);
    border: 1px solid rgba(201,168,76,0.4);
    color: var(--gold-lt);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 28px;
}
.hero-title {
    font-family: var(--ff-serif);
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 600;
    color: var(--cream);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}
.hero-title em {
    font-style: italic;
    color: var(--gold);
}
.hero-desc {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(245,240,232,0.65);
    max-width: 480px;
    line-height: 1.7;
    margin-bottom: 40px;
}
.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gold);
    color: var(--ink);
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: all 0.3s var(--ease-out);
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background: var(--gold-lt);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201,168,76,0.35);
}
.btn-primary.btn-large {
    padding: 18px 40px;
    font-size: 1.05rem;
}
.btn-ghost {
    color: rgba(245,240,232,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    border-bottom: 1px solid rgba(245,240,232,0.3);
    padding-bottom: 2px;
    transition: all 0.2s;
}
.btn-ghost:hover {
    color: var(--gold-lt);
    border-color: var(--gold-lt);
}

/* ── TELEFON MOCKUP ── */
.hero-phone {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}
.phone-frame {
    width: 260px;
    height: 520px;
    background: #111;
    border-radius: 44px;
    border: 6px solid #2a2a2a;
    position: relative;
    box-shadow:
        0 0 0 1px #3a3a3a,
        0 40px 80px rgba(0,0,0,0.6),
        0 0 60px rgba(201,168,76,0.1);
    overflow: hidden;
    animation: phone-float 4s ease-in-out infinite;
}
@keyframes phone-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}
.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 18px;
    background: #111;
    border-radius: 10px;
    z-index: 10;
}
.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #0d1f1a 0%, #0e2d25 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.app-mockup {
    padding: 50px 20px 20px;
    width: 100%;
}
.app-time {
    font-size: 0.75rem;
    color: rgba(201,168,76,0.7);
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}
.app-clock {
    font-family: var(--ff-serif);
    font-size: 2.8rem;
    color: var(--cream);
    font-weight: 600;
    line-height: 1;
    margin-bottom: 6px;
}
.app-next {
    font-size: 0.7rem;
    color: rgba(245,240,232,0.5);
    margin-bottom: 16px;
}
.app-divider {
    height: 1px;
    background: rgba(201,168,76,0.2);
    margin-bottom: 12px;
}
.app-prayer-list { display: flex; flex-direction: column; gap: 6px; }
.app-prayer {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: rgba(245,240,232,0.4);
    padding: 4px 0;
}
.app-prayer.done { color: rgba(245,240,232,0.55); }
.app-prayer.active {
    color: var(--gold);
    font-weight: 500;
    background: rgba(201,168,76,0.08);
    border-radius: 6px;
    padding: 6px 8px;
    margin: 0 -8px;
}

/* ── STATS ── */
.stats {
    background: var(--forest);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 60px 8%;
    position: relative;
    z-index: 2;
}
.stat {
    flex: 1;
    text-align: center;
    padding: 20px;
}
.stat-num {
    font-family: var(--ff-serif);
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--gold);
    line-height: 1;
}
.stat-unit {
    font-family: var(--ff-serif);
    font-size: 2rem;
    color: var(--gold-lt);
}
.stat p {
    font-size: 0.8rem;
    color: rgba(245,240,232,0.55);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 6px;
}
.stat-divider {
    width: 1px;
    height: 60px;
    background: rgba(201,168,76,0.2);
}

/* ── FEATURES ── */
.features {
    padding: 120px 8%;
    position: relative;
    z-index: 2;
}
.section-header {
    text-align: center;
    margin-bottom: 80px;
}
.section-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--jade);
    font-weight: 500;
    margin-bottom: 12px;
}
.section-header h2 {
    font-family: var(--ff-serif);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.feature-card--large {
    grid-column: span 1;
}
.feature-card {
    background: var(--white);
    border: 1px solid var(--warm-mid);
    border-radius: 20px;
    padding: 36px 32px;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--jade));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out);
}
.feature-card:hover {
    border-color: rgba(201,168,76,0.4);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(13,31,26,0.1);
}
.feature-card:hover::before {
    transform: scaleX(1);
}
.feat-icon {
    width: 52px;
    height: 52px;
    background: rgba(201,168,76,0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    margin-bottom: 20px;
    transition: background 0.3s;
}
.feature-card:hover .feat-icon {
    background: rgba(201,168,76,0.2);
}
.feature-card h3 {
    font-family: var(--ff-serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.feature-card p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.7;
}
.feat-notif-preview {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.notif-item {
    background: var(--paper);
    border: 1px solid var(--warm-mid);
    border-left: 3px solid var(--gold);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.8rem;
    color: var(--text);
}
.notif-sub {
    border-left-color: var(--emerald);
    color: var(--muted);
}

/* ── LANGUAGES ── */
.languages {
    background: var(--cream);
    padding: 60px 8%;
    border-top: 1px solid var(--warm-mid);
    border-bottom: 1px solid var(--warm-mid);
    position: relative;
    z-index: 2;
}
.lang-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.lang-label {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 20px;
}
.lang-flags {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.lang-flags span {
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 400;
    padding: 5px 14px;
    border: 1px solid var(--warm-mid);
    border-radius: 20px;
    background: var(--white);
    transition: all 0.2s;
    cursor: default;
    letter-spacing: 0.02em;
}
.lang-flags span:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

/* ── CTA ── */
.cta {
    background: linear-gradient(160deg, var(--forest), var(--ink));
    padding: 120px 8%;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 2;
}
.cta-geo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0.5;
    animation: spin-star 40s linear infinite;
}
.cta-inner {
    position: relative;
    z-index: 2;
}
.cta h2 {
    font-family: var(--ff-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    color: var(--cream);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.cta p {
    font-size: 1.1rem;
    color: rgba(245,240,232,0.6);
    margin-bottom: 44px;
}

/* ── FOOTER ── */
footer {
    background: var(--ink);
    padding: 48px 8%;
    border-top: 1px solid rgba(201,168,76,0.15);
    position: relative;
    z-index: 2;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-brand {
    font-family: var(--ff-serif);
    font-size: 1.3rem;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-links {
    display: flex;
    gap: 28px;
}
.footer-links a {
    color: rgba(245,240,232,0.5);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-copy {
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(245,240,232,0.3);
    margin-top: 20px;
}

/* ── REVEAL ANİMASYONLAR ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
    transition-delay: var(--delay, 0s);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
    transition-delay: 0.3s;
}
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 120px 6% 80px;
    }
    .hero-geo { display: none; }
    .hero-phone { order: -1; }
    .hero-actions { justify-content: center; }
    .hero-desc { margin: 0 auto 40px; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .stats { flex-wrap: wrap; }
    .stat-divider { display: none; }
    .hero-phone { display: none; }
}
@media (max-width: 600px) {
    .features-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; align-items: center; text-align: center; }
    .hero-title { font-size: 2.8rem; }
    .nav-links a { display: none; }
}
