/* =====================================================
   TAGERRO — 3 Parçalı Giriş Kapısı (Landing Gate)
   ===================================================== */

:root {
    --gate-bg: #080604;
    --gate-ink: #F6EFE2;
    --gate-gold: #C9A462;
    --gate-gold-soft: #E8D4A8;
    --gate-gold-dim: rgba(201, 164, 98, .45);
    --gate-ai: #6EC4E8;
    --gate-ai-dim: rgba(110, 196, 232, .35);
    --gate-font-display: 'Cinzel', 'Playfair Display', Georgia, serif;
    --gate-font-body: 'Jost', 'Manrope', sans-serif;
    --gate-font-accent: 'Cormorant Garamond', Georgia, serif;
    --gate-ease: cubic-bezier(.22, .61, .36, 1);
    --gate-panel-min: 280px;
}

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

html, body {
    height: 100%;
}

.gate-body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: var(--gate-font-body);
    color: var(--gate-ink);
    background: var(--gate-bg);
    overflow-x: hidden;
}

.gate-noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: .04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.gate-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    padding: clamp(14px, 2.5vh, 24px) var(--gate-gutter, 24px);
    text-align: center;
    pointer-events: none;
}

.gate-top__cities {
    margin: 0;
    font-family: var(--gate-font-display);
    font-size: clamp(9px, 1.2vw, 11px);
    letter-spacing: .42em;
    text-transform: uppercase;
    color: rgba(246, 239, 226, .42);
}

.gate {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
}

/* --- Panels --- */
.gate-panel {
    position: relative;
    flex: 1 1 33.333%;
    min-width: var(--gate-panel-min);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: flex .85s var(--gate-ease), filter .6s var(--gate-ease);
    isolation: isolate;
}

.gate-panel:not(.is-hovered):not(.is-active) {
    filter: brightness(.72) saturate(.85);
}

.gate-panel.is-hovered,
.gate-panel.is-active {
    flex: 1.55 1 33.333%;
    filter: brightness(1) saturate(1);
}

.gate-panel__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

.gate-panel__veil {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.gate-panel__veil--atelier {
    background:
        linear-gradient(180deg, rgba(8, 6, 4, .55) 0%, rgba(8, 6, 4, .08) 18%, transparent 36%, transparent 58%, rgba(8, 6, 4, .72) 100%),
        radial-gradient(ellipse 70% 55% at 48% 58%, rgba(201, 164, 98, .06) 0%, transparent 70%);
}

.gate-panel--atelier .gate-panel__canvas {
    filter: saturate(1.08) contrast(1.04);
}

.gate-panel--atelier.is-hovered .gate-panel__canvas,
.gate-panel--atelier.is-active .gate-panel__canvas {
    filter: saturate(1.12) contrast(1.06) brightness(1.03);
}

.gate-panel--atelier .gate-panel__inner {
    align-self: flex-start;
    margin-top: clamp(48px, 8vh, 88px);
    padding-top: 0;
}

.gate-panel__veil--club {
    background:
        radial-gradient(ellipse 80% 60% at 50% 38%, rgba(201, 164, 98, .08) 0%, transparent 65%),
        linear-gradient(180deg, rgba(8, 6, 4, .35) 0%, transparent 40%, rgba(8, 6, 4, .75) 100%);
}

.gate-panel__veil--ai {
    background:
        linear-gradient(180deg, rgba(8, 6, 4, .6) 0%, transparent 38%, rgba(8, 6, 4, .9) 100%),
        linear-gradient(270deg, rgba(8, 6, 4, .25) 0%, transparent 45%);
}

.gate-panel__inner {
    position: relative;
    z-index: 3;
    padding: clamp(72px, 12vh, 120px) clamp(20px, 3vw, 36px) clamp(48px, 8vh, 80px);
    text-align: center;
    max-width: 380px;
    opacity: .88;
    transform: translateY(8px);
    transition: opacity .55s var(--gate-ease), transform .55s var(--gate-ease);
}

.gate-panel.is-hovered .gate-panel__inner,
.gate-panel.is-active .gate-panel__inner {
    opacity: 1;
    transform: translateY(0);
}

.gate-panel__inner--club {
    max-width: min(420px, 92vw);
}

.gate-panel__index {
    margin: 0 0 12px;
    font-family: var(--gate-font-display);
    font-size: 10px;
    letter-spacing: .5em;
    color: var(--gate-gold-dim);
}

.gate-panel__title {
    margin: 0 0 14px;
    font-family: var(--gate-font-display);
    font-size: clamp(1.05rem, 2.2vw, 1.45rem);
    font-weight: 500;
    letter-spacing: .28em;
    line-height: 1.35;
    text-transform: uppercase;
    color: var(--gate-ink);
}

.gate-panel__title span {
    display: block;
    font-size: clamp(.72rem, 1.4vw, .92rem);
    letter-spacing: .38em;
    color: var(--gate-gold-soft);
    margin-top: 6px;
}

.gate-panel__title--club {
    font-size: clamp(.85rem, 1.6vw, 1.1rem);
    letter-spacing: .22em;
}

.gate-panel__title--club span {
    font-size: clamp(.65rem, 1.2vw, .82rem);
    letter-spacing: .32em;
}

.gate-panel__desc {
    margin: 0 0 28px;
    font-family: var(--gate-font-accent);
    font-size: clamp(.95rem, 1.5vw, 1.08rem);
    font-weight: 400;
    line-height: 1.55;
    color: rgba(246, 239, 226, .62);
}

.gate-panel__desc--club {
    max-width: 28ch;
    margin-left: auto;
    margin-right: auto;
}

.gate-panel__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    font-family: var(--gate-font-display);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .32em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--gate-ink);
    border: 1px solid rgba(246, 239, 226, .28);
    background: rgba(16, 12, 8, .45);
    backdrop-filter: blur(8px);
    transition: border-color .35s, background .35s, color .35s, transform .35s var(--gate-ease);
}

.gate-panel__cta svg {
    width: 14px;
    height: 14px;
    transition: transform .35s var(--gate-ease);
}

.gate-panel__cta:hover,
.gate-panel__cta:focus-visible {
    border-color: var(--gate-gold);
    color: var(--gate-gold-soft);
    transform: translateY(-2px);
}

.gate-panel__cta:hover svg,
.gate-panel__cta:focus-visible svg {
    transform: translateX(4px);
}

.gate-panel__cta--gold {
    border-color: rgba(201, 164, 98, .55);
    color: var(--gate-gold-soft);
}

.gate-panel__cta--gold:hover,
.gate-panel__cta--gold:focus-visible {
    background: rgba(201, 164, 98, .12);
    border-color: var(--gate-gold-soft);
}

.gate-panel__cta--ai {
    border-color: rgba(110, 196, 232, .4);
    color: rgba(180, 228, 248, .95);
}

.gate-panel__cta--ai:hover,
.gate-panel__cta--ai:focus-visible {
    border-color: var(--gate-ai);
    background: rgba(110, 196, 232, .08);
}

/* Logo (center) */
.gate-logo {
    margin: 0 auto 20px;
    width: min(72%, 280px);
    max-width: 280px;
    aspect-ratio: auto;
    display: grid;
    place-items: center;
}

.gate-logo img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
    display: block;
    background: transparent;
    filter: drop-shadow(0 12px 40px rgba(201, 164, 98, .28));
    animation: gateLogoFloat 10s ease-in-out infinite;
}

@keyframes gateLogoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Panel borders */
.gate-panel__border {
    position: absolute;
    top: 8%;
    bottom: 8%;
    right: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(201, 164, 98, .22) 30%, rgba(201, 164, 98, .22) 70%, transparent);
    z-index: 4;
    pointer-events: none;
}

.gate-panel--ai .gate-panel__border {
    display: none;
}

.gate-panel__border--gold {
    background: linear-gradient(180deg, transparent, rgba(201, 164, 98, .45) 25%, rgba(201, 164, 98, .45) 75%, transparent);
}

.gate-panel__border--ai {
    background: linear-gradient(180deg, transparent, rgba(110, 196, 232, .25) 30%, rgba(110, 196, 232, .25) 70%, transparent);
}

/* Background tints per panel */
.gate-panel--atelier {
    background: #0E0A06;
}

.gate-panel--club {
    background: #080604;
}

.gate-panel--ai {
    background: #060810;
}

.gate-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    padding: 12px 24px 16px;
    text-align: center;
    pointer-events: none;
}

.gate-footer p {
    margin: 0;
    font-size: 9px;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: rgba(246, 239, 226, .28);
}

/* Mobile: vertical stack */
@media (max-width: 900px) {
    .gate {
        flex-direction: column;
        min-height: auto;
    }

    .gate-panel {
        flex: none;
        min-height: 72vh;
        min-height: 72dvh;
        filter: brightness(1) !important;
    }

    .gate-panel.is-hovered,
    .gate-panel.is-active {
        flex: none;
    }

    .gate-panel__border {
        top: auto;
        bottom: 0;
        left: 10%;
        right: 10%;
        width: auto;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(201, 164, 98, .25) 30%, rgba(201, 164, 98, .25) 70%, transparent);
    }

    .gate-panel--ai .gate-panel__border {
        display: block;
    }

    .gate-logo {
        width: min(55%, 220px);
    }
    .gate-logo {
        width: min(55%, 220px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .gate-panel,
    .gate-panel__inner,
    .gate-panel__cta,
    .gate-logo img {
        animation: none !important;
        transition: none !important;
    }
}

/* --- AI page (ai.php) --- */
.ai-page {
    background: var(--dark, #100C08);
    color: var(--gate-ink, #F6EFE2);
    min-height: 60vh;
}

.ai-hero {
    padding: clamp(80px, 14vh, 140px) var(--gutter, 24px) clamp(60px, 10vh, 100px);
}

.ai-hero-grid {
    max-width: var(--shell, 1280px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr minmax(280px, .9fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.ai-hero-copy .eyebrow {
    font-family: var(--gate-font-display, 'Cinzel', serif);
    font-size: 10px;
    letter-spacing: .4em;
    text-transform: uppercase;
    color: var(--gate-ai, #6EC4E8);
    margin: 0 0 16px;
}

.ai-hero-copy h1 {
    font-family: var(--font-display, 'Bodoni Moda', serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 500;
    line-height: 1.15;
    margin: 0 0 20px;
    color: #F6EFE2;
}

.ai-hero-copy .lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(246, 239, 226, .65);
    margin: 0 0 32px;
    max-width: 48ch;
}

.ai-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ai-hero-visual {
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(110, 196, 232, .15);
    background: #060810;
}

.ai-hero-visual canvas {
    display: block;
    width: 100%;
    height: auto;
}

.ai-features {
    padding-bottom: clamp(60px, 10vh, 100px);
}

.ai-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ai-feature-card {
    padding: 28px 24px;
    border: 1px solid rgba(201, 164, 98, .15);
    background: rgba(16, 12, 8, .6);
}

.ai-feature-card h3 {
    font-family: var(--font-display, serif);
    font-size: 1.1rem;
    margin: 0 0 10px;
    color: var(--gate-gold-soft, #E8D4A8);
}

.ai-feature-card p {
    margin: 0;
    font-size: .92rem;
    color: rgba(246, 239, 226, .58);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .ai-hero-grid {
        grid-template-columns: 1fr;
    }

    .ai-feature-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   TAGERRO AI Fit Lab — tam uygulama
   ===================================================== */

.ai-fit-lab {
    background: #080604;
    color: #F6EFE2;
}

.ai-fit-hero {
    padding: clamp(72px, 12vh, 120px) var(--gutter, 24px) clamp(40px, 6vh, 64px);
    border-bottom: 1px solid rgba(201, 164, 98, .12);
}

.ai-fit-hero-grid {
    max-width: var(--shell, 1280px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
}

.ai-fit-hero-copy .eyebrow {
    font-family: var(--gate-font-display, 'Cinzel', serif);
    font-size: 10px;
    letter-spacing: .42em;
    text-transform: uppercase;
    color: var(--gate-ai, #6EC4E8);
    margin: 0 0 16px;
}

.ai-fit-hero-copy h1 {
    font-family: var(--font-display, Georgia, serif);
    font-size: clamp(1.75rem, 3.5vw, 2.6rem);
    font-weight: 500;
    line-height: 1.12;
    margin: 0 0 18px;
}

.ai-fit-hero-copy .lead {
    font-size: 1.02rem;
    line-height: 1.65;
    color: rgba(246, 239, 226, .62);
    margin: 0 0 24px;
    max-width: 52ch;
}

.ai-fit-pills {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ai-fit-pills li {
    font-size: 9px;
    letter-spacing: .18em;
    text-transform: uppercase;
    padding: 8px 12px;
    border: 1px solid rgba(110, 196, 232, .25);
    color: rgba(180, 228, 248, .85);
}

.ai-fit-hero-visual {
    border: 1px solid rgba(110, 196, 232, .15);
    background: #060810;
    border-radius: 2px;
    overflow: hidden;
}

.ai-fit-hero-visual canvas {
    display: block;
    width: 100%;
    height: auto;
}

.ai-fit-app {
    padding: clamp(40px, 8vh, 72px) var(--gutter, 24px) clamp(64px, 10vh, 100px);
}

.ai-fit-app .shell {
    max-width: var(--shell, 1280px);
    margin: 0 auto;
}

.ai-fit-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 32px;
}

.ai-fit-steps button {
    font-family: var(--gate-font-display, 'Cinzel', serif);
    font-size: 9px;
    letter-spacing: .16em;
    text-transform: uppercase;
    padding: 10px 14px;
    border: 1px solid rgba(201, 164, 98, .2);
    background: transparent;
    color: rgba(246, 239, 226, .5);
    cursor: pointer;
    transition: border-color .3s, color .3s, background .3s;
}

.ai-fit-steps button.is-active,
.ai-fit-steps button:hover {
    border-color: var(--gate-gold, #C9A462);
    color: var(--gate-gold-soft, #E8D4A8);
    background: rgba(201, 164, 98, .06);
}

.ai-fit-form {
    border: 1px solid rgba(201, 164, 98, .15);
    background: rgba(16, 12, 8, .55);
    padding: clamp(24px, 4vw, 40px);
}

.ai-fit-pane-head h2 {
    font-family: var(--font-display, Georgia, serif);
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    margin: 0 0 8px;
}

.ai-fit-pane-head p {
    margin: 0 0 28px;
    color: rgba(246, 239, 226, .55);
    font-size: .95rem;
}

.ai-fit-measure-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.ai-fit-field {
    display: grid;
    gap: 6px;
}

.ai-fit-field-label {
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gate-gold-soft, #E8D4A8);
}

.ai-fit-field-label em {
    font-style: normal;
    opacity: .6;
}

.ai-fit-field input,
.ai-fit-field select,
.ai-fit-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(201, 164, 98, .22);
    background: rgba(8, 6, 4, .8);
    color: #F6EFE2;
    font-family: inherit;
    font-size: 15px;
}

.ai-fit-hint {
    font-size: 11px;
    color: rgba(246, 239, 226, .4);
    line-height: 1.4;
}

.ai-fit-select-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.ai-fit-flags {
    border: 0;
    margin: 0;
    padding: 0;
}

.ai-fit-flags legend {
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gate-gold-soft);
    margin-bottom: 16px;
}

.ai-fit-flag-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.ai-fit-flag {
    display: block;
    cursor: pointer;
}

.ai-fit-flag input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ai-fit-flag-box {
    display: block;
    padding: 14px 16px;
    border: 1px solid rgba(201, 164, 98, .18);
    background: rgba(8, 6, 4, .5);
    transition: border-color .25s, background .25s;
}

.ai-fit-flag input:checked + .ai-fit-flag-box,
.ai-fit-flag:hover .ai-fit-flag-box {
    border-color: rgba(110, 196, 232, .45);
    background: rgba(110, 196, 232, .06);
}

.ai-fit-flag-box strong {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
}

.ai-fit-flag-box small {
    font-size: 11px;
    color: rgba(246, 239, 226, .48);
    line-height: 1.4;
}

.ai-fit-knowledge {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid rgba(201, 164, 98, .12);
}

.ai-fit-knowledge h3 {
    font-size: 12px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gate-gold-soft);
    margin: 0 0 16px;
}

.ai-fit-knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.ai-fit-knowledge-grid article {
    padding: 16px;
    border: 1px solid rgba(201, 164, 98, .1);
}

.ai-fit-knowledge-grid h4 {
    margin: 0 0 8px;
    font-size: 14px;
    color: #E8D4A8;
}

.ai-fit-knowledge-grid p {
    margin: 0;
    font-size: 12px;
    color: rgba(246, 239, 226, .52);
    line-height: 1.55;
}

.ai-fit-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(201, 164, 98, .12);
}

.ai-fit-result {
    text-align: center;
}

.ai-fit-score-ring {
    width: 140px;
    height: 140px;
    margin: 0 auto 32px;
    border-radius: 50%;
    border: 2px solid rgba(110, 196, 232, .45);
    display: grid;
    place-content: center;
    gap: 4px;
    background: radial-gradient(circle, rgba(110, 196, 232, .08) 0%, transparent 70%);
}

.ai-fit-score-value {
    font-family: var(--gate-font-display, 'Cinzel', serif);
    font-size: 2rem;
    color: var(--gate-ai, #6EC4E8);
}

.ai-fit-score-label {
    font-size: 9px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(246, 239, 226, .45);
}

.ai-fit-result-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    text-align: left;
    margin-bottom: 24px;
}

.ai-fit-result-block {
    padding: 20px;
    border: 1px solid rgba(201, 164, 98, .15);
    background: rgba(8, 6, 4, .4);
}

.ai-fit-result-block h3 {
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gate-gold-soft);
    margin: 0 0 12px;
}

.ai-fit-result-block ul {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(246, 239, 226, .72);
}

.ai-fit-result-block dl {
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 16px;
    font-size: 12px;
}

.ai-fit-result-block dt {
    color: rgba(246, 239, 226, .45);
    text-transform: capitalize;
}

.ai-fit-result-block dd {
    margin: 0;
    color: rgba(246, 239, 226, .78);
}

.ai-fit-warnings {
    text-align: left;
    padding: 16px;
    border: 1px solid rgba(220, 120, 80, .35);
    background: rgba(80, 30, 10, .2);
    margin-bottom: 20px;
}

.ai-fit-warnings h3 {
    margin: 0 0 8px;
    font-size: 12px;
    color: #E8A080;
}

.ai-fit-ref {
    font-size: 11px;
    letter-spacing: .12em;
    color: rgba(246, 239, 226, .4);
    margin: 0 0 20px;
}

.ai-fit-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.ai-fit-loading {
    padding: 48px 24px;
    text-align: center;
    color: rgba(246, 239, 226, .55);
}

.ai-fit-spinner {
    display: inline-block;
    width: 36px;
    height: 36px;
    border: 2px solid rgba(110, 196, 232, .2);
    border-top-color: var(--gate-ai);
    border-radius: 50%;
    animation: aiSpin .8s linear infinite;
    margin-bottom: 16px;
}

@keyframes aiSpin {
    to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
    .ai-fit-hero-grid {
        grid-template-columns: 1fr;
    }

    .ai-fit-measure-grid,
    .ai-fit-select-row,
    .ai-fit-flag-grid,
    .ai-fit-result-cols {
        grid-template-columns: 1fr;
    }
}
