/* Hero Teknoloji ve Yazılım — kurumsal site stilleri */

:root {
    --bg: #ffffff;
    --bg-subtle: #f6f7f9;
    --surface: #ffffff;
    --border: #e4e7ec;
    --border-strong: #d0d5dd;
    --text: #101828;
    --text-2: #475467;
    --muted: #667085;
    --brand: #2a1850;
    --brand-hover: #3b2470;
    --on-brand: #ffffff;
    --brand-soft: #f2eefa;
    --focus: #6d4bc4;
    --shadow: 0 1px 2px rgba(16, 24, 40, .05);
    --shadow-header: 0 1px 0 var(--border), 0 4px 12px rgba(16, 24, 40, .04);

    --radius: 12px;
    --radius-sm: 8px;
    --container: 1200px;
    --gutter: 24px;
    --header-h: 68px;

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f1115;
        --bg-subtle: #14171d;
        --surface: #181b22;
        --border: #262a33;
        --border-strong: #353a45;
        --text: #eef0f4;
        --text-2: #b6bcc8;
        --muted: #8d94a3;
        --brand: #e7e0fa;
        --brand-hover: #ffffff;
        --on-brand: #1b1033;
        --brand-soft: #231d33;
        --focus: #b9a4f0;
        --shadow: none;
        --shadow-header: 0 1px 0 var(--border);
        color-scheme: dark;
    }
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.015em; color: var(--text); }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -0.025em; max-width: 18ch; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 600; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--brand);
    color: var(--on-brand);
    border-radius: var(--radius-sm);
    text-decoration: none;
}
.skip-link:focus { top: 12px; }

.small { font-size: .9rem; }
.muted { color: var(--muted); }

/* ---------- Butonlar ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font: inherit;
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
    white-space: nowrap;
}
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--text-2); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .9rem; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 1rem; }

.btn[disabled],
.btn[aria-disabled="true"] {
    cursor: not-allowed;
    background: var(--bg-subtle);
    color: var(--muted);
    border-color: var(--border);
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--text-2);
    font-size: .75rem;
    font-weight: 600;
}

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

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg);
    transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-header); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    color: var(--text);
}
.brand img { border-radius: 8px; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav ul a {
    display: block;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-2);
    font-size: .95rem;
    font-weight: 500;
    text-decoration: none;
}
.main-nav ul a:hover { color: var(--text); background: var(--bg-subtle); }
.main-nav ul a[aria-current="true"] { color: var(--text); }

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    cursor: pointer;
    position: relative;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
    position: absolute;
    left: 50%;
    width: 18px;
    height: 2px;
    margin-left: -9px;
    background: var(--text);
    border-radius: 2px;
    content: "";
    transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle span { top: 50%; margin-top: -1px; }
.menu-toggle span::before { top: -6px; left: 0; margin-left: 0; }
.menu-toggle span::after { top: 6px; left: 0; margin-left: 0; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(64px, 11vw, 128px) 0 clamp(56px, 8vw, 96px); border-bottom: 1px solid var(--border); }
.eyebrow { color: var(--muted); font-size: .9rem; font-weight: 600; letter-spacing: .02em; margin-bottom: 20px; }
.lead { margin-top: 20px; max-width: 60ch; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-2); }
.hero .actions { margin-top: 32px; }

.hero-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: clamp(48px, 7vw, 80px) 0 0;
    padding: 28px 0 0;
    list-style: none;
    border-top: 1px solid var(--border);
}
.hero-facts li { display: flex; flex-direction: column; gap: 4px; }
.hero-facts strong { font-weight: 600; }
.hero-facts span { color: var(--text-2); font-size: .95rem; }

/* ---------- Bölümler ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-subtle { background: var(--bg-subtle); }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { margin-top: 12px; color: var(--text-2); font-size: 1.1rem; }

.section-logo { width: 48px; height: 48px; margin-bottom: 20px; border-radius: 12px; }
.section-logo-wide { width: auto; height: 44px; border-radius: 0; }

/* Projeler */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .project-grid { grid-template-columns: 1fr; } }

.project-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: clamp(28px, 4vw, 40px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.project-card h3 { font-size: 1.6rem; font-weight: 700; margin-top: 8px; }
.project-card > p { color: var(--text-2); }
.card-foot { margin-top: auto; padding-top: 16px; display: grid; gap: 10px; }

.project-logo { height: 64px; }
.project-logo-otex { width: 64px; border-radius: 14px; }
.project-logo-yemex { width: auto; }

.project-sub { font-weight: 600; color: var(--text) !important; font-size: 1.05rem; }

.link-note { font-size: .85rem; color: var(--muted); }

/* İki sütunlu bölüm */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.split-intro p { margin-top: 16px; color: var(--text-2); }
.split-intro .small { margin-top: 12px; }
.split-intro .actions { margin-top: 28px; }

.feature-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.feature-list li { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.feature-list p { color: var(--text-2); }

/* Yemex Club akışı */
.flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.flow li {
    position: relative;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.flow li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 38px;
    right: -13px;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--border-strong);
    border-right: 2px solid var(--border-strong);
    transform: rotate(45deg);
    z-index: 1;
}
.flow h3 { margin: 16px 0 6px; }
.flow p { color: var(--text-2); font-size: .95rem; }
.flow-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--text);
    font-weight: 600;
    font-size: .9rem;
}

/* Hero Partner */
.matik {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(32px, 6vw, 72px);
    align-items: center;
    padding: clamp(28px, 5vw, 56px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}
.matik-text .project-sub { margin-top: 10px; }
.matik-text > p:not(.project-sub) { margin-top: 12px; color: var(--text-2); }

.check-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 28px; color: var(--text-2); }
.check-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .45em;
    width: 12px;
    height: 7px;
    border-left: 2px solid var(--text);
    border-bottom: 2px solid var(--text);
    transform: rotate(-45deg);
}

.download-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 28px;
    border-radius: var(--radius);
    background: var(--bg-subtle);
    border: 1px solid var(--border);
}
.download-btn { width: 100%; }
.download-btn .win-icon { flex: none; }
.download-btn > span { white-space: nowrap; }
.download-btn { flex-wrap: wrap; row-gap: 6px; }
.download-meta { font-weight: 600; color: var(--text-2); font-size: .95rem; }

/* Hakkımızda */
.prose p { color: var(--text-2); font-size: 1.05rem; }
.prose p + p { margin-top: 16px; }

.product-list { margin: 32px 0 0; border-top: 1px solid var(--border); }
.product-list > div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.product-list dt { font-weight: 600; }
.product-list dd { margin: 0; color: var(--text-2); }

/* İletişim */
.contact {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) auto;
    gap: 32px;
    align-items: center;
}
.contact p { margin-top: 12px; color: var(--text-2); }
.contact-list { margin: 0; display: grid; gap: 16px; }
.contact-list dt { font-size: .85rem; color: var(--muted); font-weight: 600; }
.contact-list dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-actions { display: flex; flex-direction: column; gap: 10px; }
.contact-actions .btn { width: 100%; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-brand p { margin-top: 12px; color: var(--text-2); max-width: 36ch; font-size: .95rem; }
.site-footer h2 { font-size: .85rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a { color: var(--text-2); text-decoration: none; font-size: .95rem; }
.site-footer ul a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom { margin-top: 48px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--border); }
.footer-bottom p { color: var(--muted); font-size: .9rem; }

/* ---------- Hukuki sayfalar ---------- */
.legal { padding: clamp(48px, 8vw, 88px) 0; }
.legal .container { max-width: calc(760px + var(--gutter) * 2); }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); max-width: none; }
.legal .updated { margin-top: 12px; color: var(--muted); font-size: .95rem; }
.legal section { margin-top: 40px; }
.legal h2 { font-size: 1.3rem; margin-bottom: 12px; }
.legal p, .legal li { color: var(--text-2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; margin: 12px 0 0; display: grid; gap: 6px; }
.legal a { color: var(--text); }

.legal-header .header-inner { justify-content: space-between; }

/* ---------- Hafif görünme efekti (yalnız JS açıkken) ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    * { transition: none !important; }
}

/* ---------- Duyarlı düzen ---------- */
@media (max-width: 1024px) {
    .contact { grid-template-columns: 1fr 1fr; }
    .contact-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
    .contact-actions .btn { width: auto; }
    .flow { grid-template-columns: repeat(2, 1fr); }
    .flow li:nth-child(2)::after { display: none; }
}

@media (max-width: 960px) {
    .menu-toggle { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px var(--gutter) 20px;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 8px 16px rgba(16, 24, 40, .06);
    }
    .main-nav.is-open { display: flex; }
    .main-nav ul { flex-direction: column; }
    .main-nav ul a { padding: 12px; }
    .nav-cta { width: 100%; }

    .split, .matik { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    :root { --gutter: 16px; --header-h: 60px; }
    body { font-size: 16px; }
    .hero-facts { grid-template-columns: 1fr; gap: 16px; }
    .project-grid { grid-template-columns: 1fr; }
    .feature-list li { grid-template-columns: 1fr; gap: 4px; }
    .product-list > div { grid-template-columns: 1fr; gap: 4px; }
    .flow { grid-template-columns: 1fr; }
    .flow li::after { display: none; }
    .contact { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .actions .btn { flex: 1 1 auto; }
    .download-box { padding: 20px; }
    .matik { padding: 24px 20px; }
    .download-btn { padding: 10px 16px; }
    .btn { white-space: normal; text-align: center; }
}

.legal + .site-footer { padding-top: 0; }
.legal + .site-footer .footer-bottom { margin-top: 0; border-top: 0; }
.footer-bottom a { color: inherit; }

/* ---------- Neon mor imleç (yalnız fare/iz kullanan cihazlarda, JS etkinleştirir) ---------- */
.has-neon-cursor,
.has-neon-cursor a,
.has-neon-cursor button,
.has-neon-cursor [role="link"] { cursor: none; }

.neon-cursor-dot,
.neon-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    pointer-events: none;
    border-radius: 50%;
    opacity: 0;
    transition: opacity .2s ease, width .2s ease, height .2s ease, margin .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
    will-change: transform;
}
.neon-cursor-dot {
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    background: #f3ecff;
    box-shadow:
        0 0 4px #c4a6ff,
        0 0 10px #a26bff,
        0 0 18px rgba(139, 92, 246, .8);
}
/* Yayılan ışık hüzmesi: yumuşak mor hale + dönen ince ışınlar + dışa yayılan dalga */
.neon-cursor-ring {
    width: 120px;
    height: 120px;
    margin: -60px 0 0 -60px;
    background: radial-gradient(circle, rgba(196, 166, 255, .55) 0%, rgba(139, 92, 246, .22) 18%, rgba(139, 92, 246, .08) 40%, transparent 68%);
}
.neon-cursor-ring::before,
.neon-cursor-ring::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.neon-cursor-ring::before {
    inset: 0;
    background: repeating-conic-gradient(from 0deg, rgba(167, 120, 255, .38) 0deg 2.5deg, transparent 2.5deg 22.5deg);
    -webkit-mask: radial-gradient(circle, transparent 0 9%, #000 12%, rgba(0, 0, 0, .5) 32%, transparent 62%);
    mask: radial-gradient(circle, transparent 0 9%, #000 12%, rgba(0, 0, 0, .5) 32%, transparent 62%);
    animation: beam-rotate 12s linear infinite;
}
.neon-cursor-ring::after {
    inset: 40%;
    border: 1.5px solid rgba(167, 120, 255, .85);
    box-shadow: 0 0 8px rgba(139, 92, 246, .6);
    animation: beam-pulse 2s ease-out infinite;
}
.neon-cursor-visible .neon-cursor-dot,
.neon-cursor-visible .neon-cursor-ring { opacity: 1; }

.neon-cursor-hover .neon-cursor-ring {
    width: 170px;
    height: 170px;
    margin: -85px 0 0 -85px;
    background: radial-gradient(circle, rgba(196, 166, 255, .7) 0%, rgba(139, 92, 246, .3) 18%, rgba(139, 92, 246, .1) 42%, transparent 68%);
}
.neon-cursor-hover .neon-cursor-ring::after { animation-duration: 1.2s; }
.neon-cursor-hover .neon-cursor-dot { width: 4px; height: 4px; margin: -2px 0 0 -2px; }
.neon-cursor-down .neon-cursor-ring { width: 90px; height: 90px; margin: -45px 0 0 -45px; }

@keyframes beam-rotate { to { transform: rotate(360deg); } }
@keyframes beam-pulse {
    0%   { transform: scale(.4); opacity: .9; }
    100% { transform: scale(3); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .neon-cursor-ring::before, .neon-cursor-ring::after { animation: none; }
    .neon-cursor-ring::after { display: none; }
}

/* ---------- Projeler: kart çizgileri nefes alır gibi hafifçe parlar ---------- */
.project-card {
    animation: card-breathe 5s ease-in-out infinite;
}
.project-card:nth-child(2) { animation-delay: -1.66s; }
.project-card:nth-child(3) { animation-delay: -3.33s; }

@keyframes card-breathe {
    0%, 100% {
        border-color: var(--border);
        box-shadow: var(--shadow), 0 0 0 0 rgba(139, 92, 246, 0);
    }
    50% {
        border-color: rgba(139, 92, 246, .55);
        box-shadow: 0 0 0 3px rgba(139, 92, 246, .08), 0 0 26px rgba(139, 92, 246, .20);
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-card { animation: none; }
}
