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

:root {
    --bg: #080b10;
    --bg2: #0d1117;
    --surface: #111820;
    --border: rgba(255, 255, 255, 0.07);
    --white: #f0f4f8;
    --white-dim: rgba(240, 244, 248, 0.55);
    --white-faint: rgba(240, 244, 248, 0.18);
    --cyan: #29d4f5;
    --cyan-dim: rgba(41, 212, 245, 0.15);
    --cyan-glow: rgba(41, 212, 245, 0.35);
    --blue: #1a8cff;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--white);
    font-family: 'Syne', sans-serif;
    font-weight: 400;
    overflow-x: hidden;
    cursor: none;
}

/* CUSTOM CURSOR */
.cursor {
    width: 10px;
    height: 10px;
    background: var(--cyan);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s;
    transform: translate(-50%, -50%);
}

.cursor-ring {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(41, 212, 245, 0.4);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: all 0.08s;
}

@media (max-width: 900px) {
    .cursor, .cursor-ring {
        display: none;
    }

    body {
        cursor: auto;
    }
}

/* NAV */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 5vw;
    transition: padding 0.3s, background 0.3s;
}

nav.scrolled {
    background: rgba(8, 11, 16, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 16px 5vw;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    z-index: 1;
}

.logo-text {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
}

.logo-text span {
    color: var(--cyan);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 36px;
    align-items: center;
    z-index: 1;
}

nav ul a {
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white-dim);
    transition: color 0.2s;
}

nav ul a:hover {
    color: var(--cyan);
}

.nav-contact {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 11px !important;
    color: var(--cyan) !important;
    border: 1px solid rgba(41, 212, 245, 0.3);
    padding: 8px 16px;
    border-radius: 2px;
    transition: background 0.2s, border-color 0.2s !important;
}

.nav-contact:hover {
    background: var(--cyan-dim) !important;
    border-color: var(--cyan) !important;
}

@media (max-width: 900px) {
    nav ul {
        display: none;
    }
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 5vw 80px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-glow-1 {
    position: absolute;
    top: 5%;
    right: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(41, 212, 245, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-glow-2 {
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(26, 140, 255, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

/* Hero illustration — right side */
.hero-illustration {
    position: absolute;
    top: 50%;
    right: 4vw;
    transform: translateY(-50%);
    width: min(460px, 42vw);
    opacity: 0.9;
    pointer-events: none;
}

@media (max-width: 900px) {
    .hero-illustration {
        display: none;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 120px;
}

.hero-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--cyan);
    letter-spacing: 0.1em;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-tag::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--cyan);
    flex-shrink: 0;
}

.hero-headline {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(52px, 8vw, 108px);
    line-height: 0.95;
    font-weight: 400;
    max-width: 55vw;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .hero-headline {
        max-width: 100%;
        font-size: clamp(44px, 11vw, 72px);
    }
}

.hero-headline .line-italic {
    font-style: italic;
    color: var(--cyan);
}

.hero-headline .outline-text {
    -webkit-text-stroke: 1px rgba(240, 244, 248, 0.3);
    color: transparent;
}

.hero-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

@media (max-width: 900px) {
    .hero-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

.hero-desc {
    font-size: 15px;
    color: var(--white-dim);
    line-height: 1.7;
    max-width: 380px;
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .hero-cta-group {
        align-items: flex-start;
    }
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--cyan);
    color: var(--bg);
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 16px 30px;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.25s;
    white-space: nowrap;
}

.btn-cta:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 0 40px var(--cyan-glow);
}

.scroll-hint {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--white-dim);
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* DIVIDER */
.divider {
    height: 1px;
    background: var(--border);
    margin: 0 5vw;
}

/* STACK */
.stack-section {
    padding: 80px 5vw;
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 60px;
    align-items: start;
}

@media (max-width: 900px) {
    .stack-section {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.stack-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--cyan);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding-top: 6px;
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

@media (max-width: 700px) {
    .stack-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stack-item {
    background: var(--bg);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
    cursor: default;
}

.stack-item:hover {
    background: var(--surface);
}

.stack-item svg {
    width: 30px;
    height: 30px;
}

.stack-item-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--white-dim);
    letter-spacing: 0.04em;
    text-align: center;
}

/* SERVICES */
.services-section {
    padding: 100px 5vw;
}

.services-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 60px;
    gap: 40px;
}

@media (max-width: 700px) {
    .services-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.services-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(38px, 5vw, 62px);
    font-weight: 400;
    line-height: 1.05;
}

.services-title em {
    font-style: italic;
    color: var(--cyan);
}

.services-subtitle {
    font-size: 14px;
    color: var(--white-dim);
    max-width: 260px;
    line-height: 1.6;
    text-align: right;
}

@media (max-width: 700px) {
    .services-subtitle {
        text-align: left;
    }
}

.service-row {
    display: grid;
    grid-template-columns: 52px 1fr 28px;
    align-items: center;
    gap: 28px;
    padding: 26px 0;
    border-top: 1px solid var(--border);
    transition: all 0.3s;
}

.service-row:last-child {
    border-bottom: 1px solid var(--border);
}

.service-row:hover .service-row-title {
    color: var(--cyan);
    transform: translateX(8px);
}

.service-row:hover .service-row-num {
    color: var(--cyan);
}

.service-row:hover .service-row-arrow {
    opacity: 1;
    transform: translateX(0);
}

.service-row-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--white-dim);
    letter-spacing: 0.06em;
    transition: color 0.3s;
}

.service-row-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.service-row-title {
    font-size: clamp(18px, 2.2vw, 26px);
    font-weight: 600;
    transition: color 0.3s, transform 0.3s;
}

.service-row-desc {
    font-size: 13px;
    color: var(--white-dim);
    line-height: 1.55;
    max-width: 580px;
}

.service-row-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    color: var(--cyan);
    border: 1px solid rgba(41, 212, 245, 0.25);
    padding: 3px 9px;
    border-radius: 100px;
    letter-spacing: 0.04em;
}

.service-row-arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

/* PRODUCT */
.product-section {
    padding: 100px 5vw;
    background: var(--bg2);
    position: relative;
    overflow: hidden;
}

.product-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(41, 212, 245, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

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

@media (max-width: 900px) {
    .product-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

.product-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--cyan);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-eyebrow::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--cyan);
}

.product-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 400;
    line-height: 1.05;
    margin-bottom: 18px;
}

.product-title em {
    font-style: italic;
    color: var(--cyan);
}

.product-desc {
    font-size: 14px;
    color: var(--white-dim);
    line-height: 1.75;
    margin-bottom: 28px;
}

.product-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-bottom: 36px;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--white-dim);
}

.feature-dot {
    width: 5px;
    height: 5px;
    background: var(--cyan);
    border-radius: 50%;
    flex-shrink: 0;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(41, 212, 245, 0.4);
    color: var(--cyan);
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 13px 26px;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.25s;
}

.btn-outline:hover {
    background: var(--cyan-dim);
    border-color: var(--cyan);
    box-shadow: 0 0 30px var(--cyan-glow);
}

/* ABOUT */
.about-section {
    padding: 100px 5vw;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 900px) {
    .about-section {
        grid-template-columns: 1fr;
        gap: 56px;
    }
}

.about-illustration {
    width: 100%;
}

.about-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--cyan);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.about-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(34px, 4vw, 50px);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 22px;
}

.about-title em {
    font-style: italic;
    color: var(--cyan);
}

.about-text {
    font-size: 14px;
    color: var(--white-dim);
    line-height: 1.75;
    margin-bottom: 14px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    margin-top: 36px;
}

.about-stat {
    background: var(--bg);
    padding: 20px;
    text-align: center;
}

.about-stat-num {
    font-family: 'Instrument Serif', serif;
    font-size: 30px;
    color: var(--cyan);
    line-height: 1;
    margin-bottom: 4px;
}

.about-stat-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    color: var(--white-dim);
    letter-spacing: 0.06em;
}

/* CONTACT */
.contact-section {
    padding: 120px 5vw;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Instrument Serif', serif;
    font-size: clamp(80px, 16vw, 200px);
    font-style: italic;
    color: rgba(255, 255, 255, 0.022);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.contact-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--cyan);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.contact-title {
    position: relative;
    font-family: 'Instrument Serif', serif;
    font-size: clamp(36px, 6vw, 76px);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 14px;
}

.contact-title em {
    font-style: italic;
    color: var(--cyan);
}

.contact-desc {
    position: relative;
    font-size: 14px;
    color: var(--white-dim);
    margin-bottom: 44px;
}

.contact-email-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-family: 'Syne', sans-serif;
    font-size: clamp(16px, 2.5vw, 28px);
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 0.01em;
    padding: 22px 44px;
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: all 0.3s;
    word-break: break-all;
}

.contact-email-link:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 60px rgba(41, 212, 245, 0.12);
}

/* FOOTER */
footer {
    border-top: 1px solid var(--border);
    padding: 26px 5vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-copy {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--white-dim);
    letter-spacing: 0.05em;
}

.footer-right {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--white-dim);
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 7px;
}

/* REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-28px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible, .reveal-left.visible {
    opacity: 1;
    transform: none;
}

.d1 {
    transition-delay: 0.1s;
}

.d2 {
    transition-delay: 0.2s;
}

.d3 {
    transition-delay: 0.3s;
}

.service-row {
    cursor: pointer;
}

.service-row-expand {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    opacity: 0;
}

.service-row-expand p {
    font-size: 13px;
    color: var(--white-dim);
    line-height: 1.7;
    margin-top: 12px;
}

.service-row-expand p + p {
    margin-top: 8px;
}

.service-row.open .service-row-expand {
    max-height: 300px;
    opacity: 1;
}

.service-row.open .service-row-title {
    color: var(--cyan);
}

.service-row.open .service-row-num {
    color: var(--cyan);
}

.service-row.open .service-row-arrow {
    opacity: 1;
    transform: rotate(90deg);
}

.service-row-arrow {
    transition: all 0.3s;
}