* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #07111f;
    color: #edf4ff;
    font-family: Inter, system-ui, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: auto;
}

/* =========================
   HEADER
========================= */

.site-header {
    position: fixed;
    z-index: 20;
    top: 0;
    width: 100%;
    background: rgba(7, 17, 31, 0.72);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-wrap {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* =========================
   BRAND / LOGO
========================= */

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.brand > span:last-child > span {
    opacity: 0.5;
}

/*
   Gerçek KaradagLabs logosu.
   Eski K kutusu kaldırıldı.
*/
.brand-mark {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
    overflow: visible;
    flex-shrink: 0;
}

.brand-mark img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: block;
}

/* =========================
   NAVIGATION
========================= */

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
    color: #aebbd0;
    font-size: 14px;
}

.nav a:hover {
    color: #fff;
}

.nav-cta {
    padding: 10px 17px;
    border: 1px solid rgba(123, 212, 255, 0.35);
    border-radius: 9px;
    color: #eaf8ff !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    color: #fff;
    font-size: 24px;
}

/* =========================
   HERO
========================= */

.hero {
    position: relative;
    overflow: hidden;
    padding: 180px 0 120px;
    background:
        radial-gradient(
            circle at 75% 30%,
            rgba(37, 125, 201, 0.14),
            transparent 34%
        ),
        linear-gradient(180deg, #07111f, #081525);
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.22;
}

.glow.one {
    width: 300px;
    height: 300px;
    background: #1785d5;
    right: 10%;
    top: 16%;
}

.glow.two {
    width: 220px;
    height: 220px;
    background: #6846d8;
    left: -80px;
    bottom: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 70px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.17em;
    color: #76cfff;
}

.eyebrow span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #76cfff;
    box-shadow: 0 0 12px #76cfff;
}

.hero h1 {
    font-size: clamp(48px, 6vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.065em;
    margin: 20px 0;
}

.hero h1 em,
.heading h2 em,
.product-copy h2 em,
.contact h2 em {
    font-style: normal;
    color: #6bd1ff;
}

.hero p {
    max-width: 610px;
    color: #9eacc0;
    font-size: 18px;
}

.hero-actions {
    display: flex;
    gap: 13px;
    margin: 32px 0 20px;
}

/* =========================
   BUTTONS
========================= */

.button {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 14px 19px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    transition: 0.25s;
}

.button span {
    font-size: 18px;
}

.primary {
    background: #66cdfb;
    color: #03101b;
    box-shadow: 0 10px 30px rgba(54, 174, 235, 0.2);
}

.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(54, 174, 235, 0.3);
}

.ghost {
    border: 1px solid rgba(255, 255, 255, 0.13);
    color: #d8e1ee;
}

.ghost:hover {
    background: rgba(255, 255, 255, 0.05);
}

.hero-note {
    font-size: 12px;
    color: #78869a;
}

.status {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #55df9a;
    box-shadow: 0 0 10px #55df9a;
    margin-right: 8px;
}

/* =========================
   HERO VISUAL
========================= */

.hero-visual {
    height: 480px;
    position: relative;
    display: grid;
    place-items: center;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
}

.orb.main {
    width: 310px;
    height: 310px;
    background:
        radial-gradient(
            circle at 35% 30%,
            #244c70,
            #0b1b2c 62%,
            transparent 63%
        );
    box-shadow: 0 0 100px rgba(65, 170, 238, 0.16);
}

.code-card {
    position: relative;
    width: min(430px, 100%);
    border: 1px solid rgba(151, 207, 241, 0.16);
    border-radius: 18px;
    background: rgba(7, 17, 31, 0.78);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    transform: rotate(2deg);
}

.window {
    height: 43px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #5f7187;
    font-size: 11px;
}

.window i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #314357;
}

.window span {
    margin-left: auto;
}

.code {
    padding: 25px 24px;
    font: 13px/2.15 ui-monospace, SFMono-Regular, Menlo, monospace;
    color: #d7e7f7;
}

.code > span {
    display: inline-block;
    width: 28px;
    color: #40536b;
}

.code b {
    color: #7bcfff;
}

.code strong {
    color: #c69cff;
}

.code mark {
    background: none;
    color: #82e0b1;
}

.float {
    position: absolute;
    padding: 11px 15px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 11px;
    background: rgba(13, 29, 47, 0.9);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    font-size: 11px;
    color: #c9d7e6;
}

.float.top {
    right: 0;
    top: 78px;
    color: #73dda9;
}

.float.bottom {
    left: 15px;
    bottom: 55px;
    display: flex;
    flex-direction: column;
}

.float.bottom b {
    font-size: 17px;
    color: #fff;
}

.float.bottom small {
    color: #718196;
}

/* =========================
   SECTIONS
========================= */

.section {
    padding: 120px 0;
}

.heading {
    max-width: 760px;
    margin-bottom: 55px;
}

.heading h2,
.contact h2 {
    font-size: clamp(36px, 4vw, 55px);
    line-height: 1.1;
    letter-spacing: -0.05em;
    margin: 17px 0;
}

.heading p {
    color: #8797aa;
    max-width: 650px;
}

/* =========================
   SERVICES
========================= */

.services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.service {
    min-height: 285px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.025);
    border-radius: 15px;
    position: relative;
    transition: 0.25s;
}

.service:hover {
    transform: translateY(-5px);
    border-color: rgba(108, 202, 255, 0.25);
    background: rgba(108, 202, 255, 0.04);
}

.icon {
    font-size: 25px;
    color: #70cffd;
    margin-bottom: 45px;
}

.service h3 {
    font-size: 18px;
    margin: 0 0 10px;
}

.service p {
    color: #8291a5;
    font-size: 13px;
}

.service > b {
    position: absolute;
    bottom: 25px;
    right: 25px;
    color: #33455c;
    font-size: 11px;
}

/* =========================
   PRODUCT
========================= */

.product {
    background: #091827;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
    align-items: center;
}

.product-copy h2 {
    font-size: 62px;
    letter-spacing: -0.06em;
    margin: 15px 0;
}

.lead {
    font-size: 17px;
    color: #9aabc0;
}

.product-copy ul {
    list-style: none;
    padding: 0;
    margin: 28px 0;
}

.product-copy li {
    padding: 8px 0;
    color: #c1cedd;
    font-size: 14px;
}

.product-copy li::first-letter {
    color: #6bd1ff;
}

/* =========================
   DASHBOARD PREVIEW
========================= */

.preview {
    padding: 18px;
    border-radius: 22px;
    background:
        linear-gradient(
            135deg,
            rgba(98, 203, 251, 0.08),
            rgba(129, 93, 231, 0.06)
        );
    border: 1px solid rgba(130, 203, 245, 0.12);
}

.dashboard {
    border-radius: 14px;
    background: #0b1828;
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 22px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
}

.dash-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dash-top small,
.stats small {
    display: block;
    color: #6f8096;
    font-size: 10px;
}

.dash-top strong {
    display: block;
    font-size: 17px;
}

.dash-top > span {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #173b56;
    color: #73d2ff;
    font-size: 10px;
}

.stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 25px 0;
}

.stats > div {
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

.stats b {
    display: block;
    font-size: 25px;
    margin: 3px 0;
}

.stats em {
    font-size: 10px;
    color: #60d89e;
    font-style: normal;
}

.chart {
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

.chart > div {
    display: flex;
    justify-content: space-between;
    color: #c8d4e2;
    font-size: 11px;
}

.chart small {
    color: #64758a;
}

.chart section {
    height: 130px;
    display: flex;
    align-items: end;
    gap: 10px;
    padding-top: 15px;
}

.chart i {
    display: block;
    flex: 1;
    border-radius: 5px 5px 2px 2px;
    background: linear-gradient(#69cdfb, #183b56);
}

/* =========================
   WHY
========================= */

.why-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 100px;
}

.why {
    display: grid;
    gap: 0;
}

.why-item {
    display: grid;
    grid-template-columns: 55px 1fr;
    gap: 15px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.why-item > b {
    color: #456078;
    font-size: 11px;
}

.why-item h3 {
    margin: 0 0 7px;
    font-size: 18px;
}

.why-item p {
    margin: 0;
    color: #7f8fa4;
    font-size: 13px;
}

/* =========================
   CONTACT
========================= */

.contact {
    padding-top: 20px;
}

.contact-box {
    padding: 65px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    border: 1px solid rgba(103, 204, 255, 0.16);
    border-radius: 22px;
    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(53, 149, 211, 0.13),
            transparent 40%
        ),
        #0a1929;
}

.contact-box p {
    color: #92a3b7;
    margin: 30px 0;
}

/* =========================
   FOOTER
========================= */

.footer {
    padding: 55px 0 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

footer {
    padding: 55px 0 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer p {
    color: #66778c;
    font-size: 12px;
    max-width: 300px;
}

.links {
    display: flex;
    gap: 24px;
    color: #8190a3;
    font-size: 12px;
}

.links a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 55px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 10px;
    color: #53647a;
}

/* =========================
   ANIMATIONS
========================= */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.7s,
        transform 0.7s;
}

.reveal.show {
    opacity: 1;
    transform: none;
}

/* =========================
   TABLET / MOBILE
========================= */

@media (max-width: 850px) {

    .nav {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .nav.open {
        display: flex;
        position: absolute;
        top: 76px;
        left: 20px;
        right: 20px;
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        background: #0a1929;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 12px;
    }

    .hero {
        padding-top: 145px;
    }

    .hero-grid,
    .product-grid,
    .why-grid,
    .contact-box {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .hero-visual {
        height: 390px;
    }

    .services {
        grid-template-columns: 1fr 1fr;
    }

    .contact-box {
        padding: 35px;
    }

    .links {
        display: none;
    }
}

/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 520px) {

    .container {
        width: min(100% - 28px, 1120px);
    }

    .brand {
        font-size: 18px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .brand-mark img {
        width: 38px;
        height: 38px;
    }

    .hero h1 {
        font-size: 46px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .services {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 85px 0;
    }

    .product-copy h2 {
        font-size: 50px;
    }

    .hero-visual {
        height: 340px;
    }

    .code-card {
        width: 100%;
    }

    .float {
        display: none;
    }

    .footer-grid,
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }

    .footer-bottom {
        margin-top: 35px;
    }

    .chart section {
        height: 100px;
    }
}
