:root {
    --bg: #0b1020;
    --surface: rgba(255, 255, 255, 0.035);
    --border: rgba(255, 255, 255, 0.09);
    --text: #eef1f8;
    --muted: #9aa4bd;
    --accent: #22d3ee;
    --accent-2: #6366f1;
    --gradient: linear-gradient(135deg, var(--accent), var(--accent-2));
    --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
    --radius: 14px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Background */
.backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 56px 56px;
    opacity: 0.4;
    mask-image: radial-gradient(ellipse at 50% 30%, #000 15%, transparent 65%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 15%, transparent 65%);
}

.glow {
    position: absolute;
    width: 46vmax;
    height: 46vmax;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.28;
    animation: float 18s ease-in-out infinite alternate;
}

.glow-1 {
    top: -20vmax;
    left: -14vmax;
    background: var(--accent-2);
}

.glow-2 {
    bottom: -22vmax;
    right: -16vmax;
    background: var(--accent);
    animation-delay: -9s;
}

@keyframes float {
    to {
        transform: translate(6vmax, 4vmax) scale(1.1);
    }
}

/* Logo küpünün büyük, silik kopyası: sayfa açılırken kenarları çizilir. */
.cube {
    position: absolute;
    top: 50%;
    right: -8vmax;
    width: 62vmax;
    height: 62vmax;
    transform: translateY(-50%);
    opacity: 0.09;
    stroke: var(--text);
    stroke-width: 0.6;
}

.cube-edges {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 2.4s 0.3s ease-out forwards;
}

.cube circle {
    fill: var(--text);
    stroke: none;
}

.cube .cube-core {
    fill: var(--accent);
    animation: pulse-core 3s ease-in-out infinite;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes pulse-core {
    50% {
        opacity: 0.3;
    }
}

/* Top bar */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px 24px 0;
}

.logo img {
    display: block;
    width: auto;
    height: 46px;
}

.topbar-link {
    padding: 8px 18px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s, border-color 0.2s;
}

.topbar-link:hover,
.topbar-link:focus-visible {
    color: var(--text);
    border-color: var(--accent);
}

/* Layout */
.page {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 64px 24px 48px;
}

.hero {
    width: 100%;
    max-width: 760px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    animation: rise 0.9s ease-out both;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6);
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    to {
        box-shadow: 0 0 0 8px rgba(34, 211, 238, 0);
    }
}

/* Text */
h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2.1rem, 6vw, 3.75rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

.lead {
    margin: 0;
    max-width: 580px;
    color: var(--muted);
    font-size: 1.08rem;
    text-wrap: pretty;
}

/* Button */
.button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    background: var(--gradient);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(99, 102, 241, 0.5);
}

.button svg {
    transition: transform 0.2s;
}

.button:hover svg {
    transform: translateX(3px);
}

/* Services */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    width: 100%;
    margin-top: 16px;
    animation: rise 0.9s 0.15s ease-out both;
}

.service {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    backdrop-filter: blur(8px);
    transition: border-color 0.2s, transform 0.2s;
}

.service:hover {
    border-color: rgba(34, 211, 238, 0.4);
    transform: translateY(-3px);
}

.service svg {
    width: 40px;
    height: 40px;
    padding: 9px;
    border-radius: 10px;
    background: rgba(34, 211, 238, 0.1);
    color: var(--accent);
}

.service h2 {
    margin: 16px 0 6px;
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 600;
}

.service p {
    margin: 0;
    color: var(--muted);
    font-size: 0.93rem;
}

/* Contact */
.contact {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.contact a,
.contact span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 0.93rem;
    transition: color 0.2s, border-color 0.2s;
}

.contact a:hover,
.contact a:focus-visible {
    color: var(--text);
    border-color: var(--accent);
}

.contact svg {
    color: var(--accent);
}

/* Social */
.social {
    display: flex;
    gap: 12px;
}

.social a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--muted);
    transition: color 0.2s, border-color 0.2s;
}

.social a:hover,
.social a:focus-visible {
    color: var(--accent);
    border-color: var(--accent);
}

/* Misc */
.request-id {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px 16px 32px;
    color: var(--muted);
    font-size: 0.85rem;
}

.footer img {
    opacity: 0.8;
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .logo img {
        height: 38px;
    }

    .page {
        padding-top: 40px;
    }

    .cube {
        right: -30vmax;
        opacity: 0.06;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .cube-edges {
        stroke-dashoffset: 0;
    }
}
