:root {
    --primary: #00a1de;
    --primary-dark: #007dab;
    --bg-dark: #0a0a0f;
    --bg-card: #111118;
    --bg-elevated: #16161f;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border: #27272a;
    --border-light: #3f3f46;
    --gradient-glow: radial-gradient(ellipse at center, rgba(0, 161, 222, 0.12) 0%, transparent 70%);
    --radius-md: 12px;
    --radius-lg: 14px;
    --transition-fast: all 0.15s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    font-feature-settings: "cv11", "ss01";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Topbar ── */

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 36px;
    z-index: 1200;
    background: rgba(6, 6, 10, 0.95);
    border-bottom: 1px solid var(--border);
}

.topbar-container {
    height: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-domain {
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.topbar-right {
    font-size: 12px;
    color: var(--text-muted);
}

/* ── Navbar ── */

.navbar {
    position: fixed;
    top: 36px;
    left: 0;
    right: 0;
    z-index: 1100;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(16px);
}

.nav-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 36px;
    width: auto;
    display: block;
}

/* ── Hero / intro ──
   Motion map (minimal, ambiguous):
   grid-drift · faint coordinate texture
   ambient-glow · soft hero wash
   point-breathe · scattered ambient points
   light-pass · faint horizontal wash
   halo-pulse · subtle mark focal point
   perimeter-expand · fading coverage ring
   mark-shimmer · gentle hex edge emphasis
   mark-glow · gentle hexagon emphasis
   boot-fade · initial load only
*/

.hero {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-minimal {
    min-height: calc(100vh - 36px);
    padding: calc(36px + 64px + 8vh) 0 10vh;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-gradient {
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 80%;
    background: var(--gradient-glow);
    opacity: 0.36;
    animation: ambient-glow 14s ease-in-out infinite;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 161, 222, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 161, 222, 0.018) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 72%);
    animation: grid-drift 52s linear infinite;
}

.hero-ambient-points {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.ambient-point {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(0, 161, 222, 0.2);
    box-shadow: 0 0 12px rgba(0, 161, 222, 0.12);
    animation: point-breathe 11s ease-in-out infinite;
}

.ambient-point:nth-child(1) {
    top: 26%;
    left: 19%;
    animation-delay: 0s;
}

.ambient-point:nth-child(2) {
    top: 64%;
    right: 16%;
    animation-delay: -5.5s;
}

.hero-light-band {
    position: absolute;
    top: 44%;
    left: -35%;
    width: 42%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 161, 222, 0.04) 35%,
        rgba(0, 161, 222, 0.1) 50%,
        rgba(0, 161, 222, 0.04) 65%,
        transparent 100%
    );
    filter: blur(1px);
    animation: light-pass 32s ease-in-out infinite;
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 35%, rgba(10, 10, 15, 0.55) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
}

.mark-wrap {
    position: relative;
    width: fit-content;
    margin: 0 auto 32px;
    animation: boot-fade 0.8s ease 0.1s backwards;
}

.mark-halo {
    position: absolute;
    inset: -16px;
    border-radius: 50%;
    border: 1px solid rgba(0, 161, 222, 0.2);
    animation: halo-pulse 10s ease-in-out infinite;
}

.mark-perimeter {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px solid rgba(0, 161, 222, 0.28);
    animation: perimeter-expand 9s ease-out infinite;
    pointer-events: none;
}

.mark-shimmer {
    position: absolute;
    inset: 0;
    z-index: 2;
    clip-path: polygon(50% 10%, 90% 30%, 90% 70%, 50% 90%, 10% 70%, 10% 30%);
    padding: 1.5px;
    background: conic-gradient(
        from 0deg at 50% 50%,
        transparent 0deg,
        rgba(0, 161, 222, 0.22) 70deg,
        transparent 140deg,
        rgba(0, 161, 222, 0.14) 220deg,
        transparent 300deg
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: mark-shimmer 18s linear infinite;
    pointer-events: none;
    opacity: 0.55;
}

.intro-mark {
    display: block;
    position: relative;
    z-index: 1;
    height: 64px;
    width: auto;
    animation: mark-glow 12s ease-in-out infinite;
}

.hero-content h1 {
    margin: 0 0 10px;
    font-size: clamp(32px, 6vw, 42px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    animation: boot-fade 0.8s ease 0.25s backwards;
}

.intro-domain {
    margin: 0 0 22px;
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    animation: boot-fade 0.8s ease 0.4s backwards;
}

.intro-tagline {
    margin: 0;
    max-width: 22rem;
    margin-inline: auto;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
    animation: boot-fade 0.8s ease 0.55s backwards;
}

.intro-launch {
    display: inline-block;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
    letter-spacing: 0.02em;
}

@keyframes boot-fade {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ambient-glow {
    0%, 100% {
        opacity: 0.3;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.42;
        transform: translateX(-50%) scale(1.02);
    }
}

@keyframes grid-drift {
    0% { background-position: 0 0; }
    100% { background-position: 56px 56px; }
}

@keyframes halo-pulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.72;
        transform: scale(1.03);
    }
}

@keyframes mark-glow {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(0, 161, 222, 0.08)); }
    50% { filter: drop-shadow(0 0 10px rgba(0, 161, 222, 0.16)); }
}

@keyframes point-breathe {
    0%, 100% {
        opacity: 0.15;
        transform: scale(1);
    }
    50% {
        opacity: 0.45;
        transform: scale(1.35);
    }
}

@keyframes light-pass {
    0%, 8%, 92%, 100% {
        opacity: 0;
        transform: translateX(0);
    }
    18% {
        opacity: 0.55;
    }
    50% {
        opacity: 0.4;
        transform: translateX(260vw);
    }
}

@keyframes perimeter-expand {
    0% {
        opacity: 0.45;
        transform: scale(1);
    }
    55% {
        opacity: 0.08;
        transform: scale(1.65);
    }
    100% {
        opacity: 0;
        transform: scale(1.85);
    }
}

@keyframes mark-shimmer {
    0% { transform: rotate(0deg); opacity: 0.4; }
    50% { opacity: 0.7; }
    100% { transform: rotate(360deg); opacity: 0.4; }
}

/* ── Footer ── */

.footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
    padding: 64px 0 34px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 26px;
    margin-bottom: 24px;
}

.footer-brand .logo {
    margin-bottom: 14px;
}

.footer-brand .logo-img {
    height: 32px;
}

.footer-email {
    display: block;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 6px;
}

.footer-email:hover {
    color: var(--primary);
}

.footer-links h4 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
}

.footer-links ul {
    display: grid;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 18px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}

.footer-bottom p {
    margin: 0 0 6px;
}

.copyright {
    color: var(--text-secondary);
    margin-top: 10px !important;
}

/* ── Responsive ── */

@media (max-width: 940px) {
    .topbar-right {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-gradient,
    .hero-grid,
    .ambient-point,
    .hero-light-band,
    .mark-halo,
    .mark-perimeter,
    .mark-shimmer,
    .intro-mark,
    .mark-wrap,
    .hero-content h1,
    .intro-domain,
    .intro-tagline {
        animation: none;
    }
}

@media (max-width: 640px) {
    .hero-minimal {
        padding: calc(36px + 64px + 6vh) 0 8vh;
    }

    .mark-wrap {
        margin-bottom: 24px;
    }

    .intro-mark {
        height: 52px;
    }

    .mark-halo {
        inset: -12px;
    }

    .mark-perimeter {
        inset: -8px;
    }

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