/* ============================================================
   Black Kode Software — landing page styles
   Dark, modern, professional. Single-page.
   ============================================================ */

:root {
    --bg:        #07080d;   /* siyah-mavi / cool near-black */
    --bg-soft:   #0c0e16;
    --surface:   #11131e;
    --surface-2: #181b29;
    --border:    rgba(255, 255, 255, 0.08);
    --border-2:  rgba(255, 255, 255, 0.14);
    --text:      #eef0f6;
    --muted:     #969bb0;
    --muted-2:   #6a6f85;
    --accent:    #4f7dff;  /* elektrik mavisi / electric blue */
    --accent-2:  #9a6bff;  /* indigo-mor / indigo-violet */
    --accent-3:  #93acff;  /* açık mavi — metin vurguları */
    --accent-soft: rgba(79, 125, 255, 0.18);
    --grad:      linear-gradient(120deg, #4f7dff 0%, #6e7bff 42%, #9a6bff 100%);
    --shadow:    0 24px 60px -20px rgba(0, 0, 0, 0.7);
    --radius:    18px;
    --max:       1200px;
    --ease:      cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
    --pad: 14px 28px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: var(--pad);
    font-weight: 600; font-size: 0.95rem;
    border-radius: 12px; border: 1px solid transparent;
    cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
    white-space: nowrap;
}
.btn--sm { --pad: 9px 18px; font-size: 0.85rem; }
.btn--block { width: 100%; }
.btn--primary {
    background: var(--grad); color: #fff;
    box-shadow: 0 10px 30px -10px rgba(79, 125, 255, 0.55);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -10px rgba(154, 107, 255, 0.6); }
.btn--ghost { background: rgba(255,255,255,.03); color: var(--text); border-color: var(--border-2); }
.btn--ghost:hover { background: rgba(255,255,255,.07); transform: translateY(-2px); }

/* ---------- Navbar ---------- */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    transition: background .3s, border-color .3s, backdrop-filter .3s;
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(7, 7, 11, 0.8);
    backdrop-filter: blur(14px);
    border-bottom-color: var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__logo { width: 34px; height: 34px; }
.brand__name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; }
.brand__accent { color: var(--accent-3); }
.nav__links { display: flex; gap: 32px; }
.nav__links a { color: var(--muted); font-weight: 500; font-size: .94rem; transition: color .2s; position: relative; }
.nav__links a:hover { color: var(--text); }
.nav__links a::after {
    content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
    background: var(--grad); transition: width .3s var(--ease);
}
.nav__links a:hover::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
    display: flex; align-items: center; gap: 4px; background: rgba(255,255,255,.04);
    border: 1px solid var(--border); border-radius: 10px; padding: 6px 10px;
    color: var(--muted-2); font-size: .8rem; font-weight: 700; cursor: pointer; transition: border-color .2s;
}
.lang-toggle:hover { border-color: var(--border-2); }
.lang-toggle__opt { transition: color .2s; }
.lang-toggle__opt.active { color: var(--text); }
.lang-toggle__sep { color: var(--muted-2); }

.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 170px 0 110px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
    opacity: .5;
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .35; }
.hero__glow--1 { width: 520px; height: 520px; background: var(--accent); top: -140px; left: -120px; }
.hero__glow--2 { width: 480px; height: 480px; background: var(--accent-2); top: -60px; right: -120px; opacity: .22; }
.hero__inner { text-align: center; max-width: 880px; margin-inline: auto; }

.pill {
    display: inline-block; padding: 8px 18px; border-radius: 999px;
    background: var(--accent-soft); border: 1px solid rgba(79, 125, 255, .3);
    color: #c3d2ff; font-size: .82rem; font-weight: 600; margin-bottom: 28px;
}
.hero__title {
    font-family: 'Space Grotesk', sans-serif; font-weight: 700;
    font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.08; letter-spacing: -.03em;
    margin-bottom: 24px;
}
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); max-width: 640px; margin: 0 auto 38px; }
.hero__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero__highlights {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
    margin-top: 72px; padding-top: 44px; border-top: 1px solid var(--border);
}
.hl {
    display: flex; align-items: center; gap: 12px; justify-content: center;
    color: var(--text); font-weight: 600; font-size: .95rem; text-align: left;
}
.hl__ico {
    flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
    background: var(--accent-soft); color: var(--accent);
    border: 1px solid rgba(79, 125, 255, .25);
}
.hl:nth-child(even) .hl__ico {
    background: rgba(154, 107, 255, .12); color: var(--accent-2); border-color: rgba(154, 107, 255, .28);
}
.hl__ico svg { width: 22px; height: 22px; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section--alt { background: var(--bg-soft); border-block: 1px solid var(--border); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.eyebrow {
    display: inline-block; text-transform: uppercase; letter-spacing: .18em;
    font-size: .76rem; font-weight: 700; color: var(--accent-3); margin-bottom: 16px;
}
.section__title {
    font-family: 'Space Grotesk', sans-serif; font-weight: 700; letter-spacing: -.02em;
    font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.15;
}
.section__title--left { text-align: left; }
.section__sub { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; }

/* ---------- Cards ---------- */
.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px 26px; transition: transform .35s var(--ease), border-color .35s, background .35s, box-shadow .35s;
    position: relative; overflow: hidden; isolation: isolate;
}
.card > * { position: relative; z-index: 1; }
/* gradient border on hover */
.card::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: 2;
    background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s;
}
/* cursor-following spotlight */
.card::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: 0; pointer-events: none;
    background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(79, 125, 255, .14), transparent 45%);
    opacity: 0; transition: opacity .4s;
}
.card:hover { transform: translateY(-6px); background: var(--surface-2); box-shadow: 0 24px 50px -28px rgba(79, 125, 255, .5); }
.card:hover::before { opacity: 1; }
.card:hover::after { opacity: 1; }
.card__icon {
    width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
    background: var(--accent-soft); color: var(--accent); margin-bottom: 22px;
    transition: transform .35s var(--ease), box-shadow .35s, background .35s;
}
.card:hover .card__icon { transform: translateY(-3px) scale(1.05); box-shadow: 0 0 26px rgba(79, 125, 255, .4); }
.card__icon svg { width: 26px; height: 26px; }
.card__title { font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; font-family: 'Space Grotesk', sans-serif; }
.card__text { color: var(--muted); font-size: .95rem; }

/* ---------- About / features ---------- */
.about__text { color: var(--muted); margin: 18px 0; font-size: 1.02rem; }
.about .btn { margin-top: 12px; }
.features { display: flex; flex-direction: column; gap: 20px; }
.feature { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--border); padding: 22px; border-radius: 14px; transition: border-color .3s, transform .3s; }
.feature:hover { border-color: var(--border-2); transform: translateX(4px); }
.feature__check {
    flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
    background: var(--accent-soft); color: var(--accent); font-weight: 700;
}
.feature h4 { font-size: 1.02rem; font-weight: 600; margin-bottom: 2px; }
.feature p { color: var(--muted); font-size: .92rem; }

/* ---------- Process ---------- */
.steps .step {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px 26px; transition: border-color .3s, transform .3s;
}
.steps .step:hover { border-color: var(--border-2); transform: translateY(-4px); }
.step__num {
    font-family: 'Space Grotesk', sans-serif; font-size: 2.2rem; font-weight: 700;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
    display: block; margin-bottom: 14px;
}
.step h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .92rem; }

/* ---------- Tech ---------- */
.techgrid { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; max-width: 820px; margin-inline: auto; }
.tech {
    padding: 12px 22px; border-radius: 999px; background: var(--surface);
    border: 1px solid var(--border); color: var(--muted); font-weight: 600; font-size: .92rem;
    transition: color .25s, border-color .25s, transform .25s, background .25s;
}
.tech:hover { color: var(--text); border-color: var(--accent); transform: translateY(-3px); background: var(--surface-2); }

/* ---------- Contact ---------- */
.contact { align-items: start; }
.contact__info { margin-top: 30px; display: flex; flex-direction: column; gap: 16px; }
.contact__info li { display: flex; align-items: center; gap: 14px; color: var(--muted); }
.contact__info a:hover { color: var(--accent-3); }
.contact__ico {
    width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center;
    background: var(--surface); border: 1px solid var(--border);
}

.form {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field span { font-size: .85rem; font-weight: 600; color: var(--muted); }
.field input, .field textarea {
    background: var(--bg); border: 1px solid var(--border); border-radius: 11px;
    padding: 13px 15px; color: var(--text); font: inherit; font-size: .95rem;
    transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input:focus, .field textarea:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79, 125, 255, .2);
}
.field input.invalid, .field textarea.invalid { border-color: #ff5d6c; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form__status { font-size: .9rem; min-height: 1.2em; text-align: center; }
.form__status.ok { color: var(--accent); }
.form__status.err { color: #ff7079; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 56px 0 28px; }
.footer__inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.footer__brand p { color: var(--muted-2); font-size: .9rem; margin-top: 6px; }
.footer__links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer__links a { color: var(--muted); font-size: .92rem; transition: color .2s; }
.footer__links a:hover { color: var(--text); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; color: var(--muted-2); font-size: .85rem; }
.footer__bottom a:hover { color: var(--accent-3); }

/* ---------- Back to top ---------- */
.to-top {
    position: fixed; right: 24px; bottom: 24px; z-index: 90;
    width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
    background: var(--grad); color: #fff; font-size: 1.2rem; font-weight: 700;
    box-shadow: 0 10px 30px -8px rgba(79, 125, 255, .55);
    opacity: 0; visibility: hidden; transform: translateY(12px); transition: .3s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* staggered entrance for grid children */
.grid > .reveal:nth-child(2) { transition-delay: .08s; }
.grid > .reveal:nth-child(3) { transition-delay: .16s; }
.grid > .reveal:nth-child(4) { transition-delay: .24s; }

/* ============================================================
   Premium effects — glow, shimmer, motion
   ============================================================ */

/* Scroll progress bar */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 200;
    background: var(--grad); transform: scaleX(0); transform-origin: 0 50%;
    box-shadow: 0 0 12px rgba(79, 125, 255, .6);
}

/* Flowing gradient text */
.grad-text, .step__num {
    background-size: 220% auto;
    animation: shimmer 7s linear infinite;
}
@keyframes shimmer { to { background-position: 220% center; } }

/* Animated primary button: subtle glow pulse + shine sweep */
.btn { position: relative; overflow: hidden; }
.btn::after {
    content: ''; position: absolute; top: 0; left: -130%; width: 55%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .28), transparent);
    transform: skewX(-22deg); transition: left .65s var(--ease); pointer-events: none;
}
.btn:hover::after { left: 140%; }
.btn--primary { animation: ctaPulse 3.4s ease-in-out infinite; }
.btn--primary:hover { animation: none; }
@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 10px 30px -10px rgba(79, 125, 255, .5); }
    50%      { box-shadow: 0 12px 38px -8px rgba(154, 107, 255, .55); }
}

/* Floating hero glows + drifting grid */
.hero__glow--1 { animation: floatA 16s ease-in-out infinite; }
.hero__glow--2 { animation: floatB 20s ease-in-out infinite; }
@keyframes floatA { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(50px, 40px) scale(1.08); } }
@keyframes floatB { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-40px, 50px) scale(1.1); } }
.hero__grid { animation: gridDrift 28s linear infinite; }
@keyframes gridDrift { to { background-position: 60px 60px; } }

/* Pill soft glow */
.pill { box-shadow: 0 0 24px -6px rgba(79, 125, 255, .35); }

/* Highlight icons glow on hover */
.hl__ico { transition: transform .3s var(--ease), box-shadow .3s; }
.hl:hover .hl__ico { transform: translateY(-3px); box-shadow: 0 0 22px rgba(79, 125, 255, .45); }
.hl:nth-child(even):hover .hl__ico { box-shadow: 0 0 22px rgba(154, 107, 255, .45); }

/* Step cards: glow accent on hover */
.steps .step { position: relative; overflow: hidden; }
.steps .step:hover { box-shadow: 0 20px 44px -28px rgba(154, 107, 255, .5); }

/* Brand logo subtle glow */
.brand__logo { filter: drop-shadow(0 0 8px rgba(79, 125, 255, .25)); transition: filter .3s; }
.brand:hover .brand__logo { filter: drop-shadow(0 0 14px rgba(79, 125, 255, .5)); }

/* Navbar gets a faint accent line when scrolled */
.nav.scrolled { box-shadow: 0 1px 0 rgba(79, 125, 255, .12), 0 10px 30px -20px rgba(0, 0, 0, .8); }

/* Animated gradient ring around the contact form */
.form { position: relative; }
.form::before {
    content: ''; position: absolute; inset: -1px; border-radius: inherit; z-index: -1;
    background: linear-gradient(130deg, rgba(79, 125, 255, .5), transparent 40%, rgba(154, 107, 255, .45));
    opacity: 0; transition: opacity .5s;
}
.form:focus-within::before { opacity: 1; }

/* Section eyebrow soft glow */
.eyebrow { text-shadow: 0 0 18px rgba(154, 107, 255, .35); }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .grid--2 { grid-template-columns: 1fr; gap: 40px; }
    .section__title--left, .section--alt .about .section__title--left { text-align: left; }
}
@media (max-width: 760px) {
    .nav__links {
        position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
        background: rgba(7, 7, 11, .97); backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--border); padding: 10px 20px;
        clip-path: inset(0 0 100% 0); transition: clip-path .35s var(--ease);
    }
    .nav__links.open { clip-path: inset(0 0 0 0); }
    .nav__links a { padding: 16px 0; border-bottom: 1px solid var(--border); width: 100%; }
    .nav__links a::after { display: none; }
    .nav__burger { display: flex; }
    .nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav__burger.open span:nth-child(2) { opacity: 0; }
    .nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .nav__cta-hide { display: none; }
}
@media (max-width: 560px) {
    .grid--4 { grid-template-columns: 1fr; }
    .hero__highlights { grid-template-columns: repeat(2, 1fr); gap: 22px 16px; }
    .hl { justify-content: flex-start; }
    .form__row { grid-template-columns: 1fr; }
    .form { padding: 24px; }
    .section { padding: 80px 0; }
    .hero { padding: 140px 0 80px; }
}

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