:root {
    --bg-color: #050811;
    --primary-blue: #3B95D1;
    --accent-teal: #29B5A6;
    --text-white: #FFFFFF;
    --text-gray: #8A9AAB;
    --body-font: 'Montserrat', sans-serif;
    --heading-font: 'Playfair Display', serif;
    --nav-font: 'Montserrat', sans-serif;
    --home-headline-font: 'Montserrat', sans-serif;
    --home-subheadline-font: 'Playfair Display', serif;
    --home-description-font: 'Montserrat', sans-serif;
    --about-title-font: 'Playfair Display', serif;
    --about-body-font: 'Montserrat', sans-serif;
    --apps-title-font: 'Playfair Display', serif;
    --app-card-title-font: 'Montserrat', sans-serif;
    --app-card-text-font: 'Montserrat', sans-serif;
    --process-title-font: 'Playfair Display', serif;
    --process-step-title-font: 'Montserrat', sans-serif;
    --process-step-text-font: 'Montserrat', sans-serif;
    --contact-title-font: 'Playfair Display', serif;
    --contact-body-font: 'Montserrat', sans-serif;
    --body-weight: 300;
    --body-style: normal;
    --heading-weight: 300;
    --heading-style: normal;
    --app-card-title-weight: 700;
    --app-card-title-style: normal;
    --app-card-text-weight: 300;
    --app-card-text-style: normal;
}

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

body, html {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background-color: var(--bg-color);
    color: var(--text-white);
    font-family: var(--body-font);
    font-weight: var(--body-weight);
    font-style: var(--body-style);
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    cursor: none;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
}

.cursor,
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

.cursor {
    width: 12px;
    height: 12px;
    background: var(--accent-teal);
    border-radius: 50%;
    mix-blend-mode: screen;
    transition: width 0.3s, height 0.3s, background 0.3s;
}

.cursor-ring {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(0, 201, 167, 0.5);
    border-radius: 50%;
    z-index: 9998;
    transition: width 0.3s, height 0.3s, border-color 0.3s;
}

a { color: inherit; }

#wave-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.55;
}

.grid-overlay {
    position: fixed;
    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: 50px 50px;
    z-index: 1;
    pointer-events: none;
}

header, main, .bottom-section { position: relative; z-index: 2; }

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    z-index: 10;
}

.logo img { height: 75px; width: auto; }

nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

nav a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    transition: color 0.3s ease;
    font-family: var(--nav-font);
}

nav a:hover,
nav a.active { color: var(--text-white); }

.mobile-nav-cta {
    display: none;
}

.btn-outline {
    border: 1px solid rgba(41,181,166,0.5);
    color: var(--accent-teal);
    background: transparent;
    padding: 0.7rem 1.8rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
    font-family: var(--body-font);
    text-decoration: none;
}

.btn-outline:hover {
    background: rgba(41,181,166,0.1);
    border-color: var(--accent-teal);
}

.hamburger {
    display: none;
    border: 0;
    background: transparent;
    font-size: 2rem;
    color: var(--accent-teal);
    cursor: pointer;
    user-select: none;
}

.home-main {
    min-height: calc(100vh - 220px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    margin-top: -3rem;
}

.eyebrow {
    color: var(--accent-teal);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-weight: 700;
}

.eyebrow::before,
.eyebrow::after {
    content: "";
    display: block;
    width: 40px;
    height: 1px;
    background-color: rgba(41,181,166,0.3);
}

h1 {
    font-family: var(--home-headline-font);
    font-size: 6.5rem;
    margin: 0;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -1px;
}

.blue-text { color: var(--primary-blue); }

h2,
.page-hero h1 {
    font-family: var(--heading-font);
    font-size: 5.5rem;
    font-weight: var(--heading-weight);
    font-style: var(--heading-style);
    margin: 0.5rem 0 2rem;
    line-height: 1.1;
}

body[data-page="home"] h2 { font-family: var(--home-subheadline-font); }
body[data-page="home"] p.description { font-family: var(--home-description-font); }
body[data-page="about"] .page-hero h1 { font-family: var(--about-title-font); }
body[data-page="about"] .description,
body[data-page="about"] .glass-card p { font-family: var(--about-body-font); }
body[data-page="apps"] .page-hero h1,
body[data-page="apps"] .section-title { font-family: var(--apps-title-font); }
body[data-page="process"] .page-hero h1 { font-family: var(--process-title-font); }

.italic-teal { font-style: italic; color: var(--accent-teal); }

p.description {
    font-family: var(--body-font);
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 650px;
    margin: 0 auto 3rem;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
}

.btn-gradient,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 2px;
    font-family: var(--body-font);
}

.btn-gradient {
    background: linear-gradient(90deg, var(--accent-teal), var(--primary-blue));
    color: var(--bg-color);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.btn-gradient:hover { opacity: 0.9; }

.btn-secondary {
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-gray);
    background: transparent;
    padding: 1rem 2.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--text-white);
    color: var(--text-white);
}

.bottom-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 4rem;
    gap: 1.5rem;
}

.coming-soon {
    font-family: var(--heading-font);
    font-size: 3.5rem;
    font-style: italic;
    color: var(--text-gray);
    letter-spacing: 2px;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-gray);
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.2), var(--accent-teal));
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.15); }
}

.content-page {
    width: min(1180px, 90vw);
    margin: 0 auto;
    padding: 2rem 0 6rem;
    scroll-snap-align: start;
}

.page-hero {
    min-height: 42vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 2rem 0 4rem;
    scroll-snap-align: start;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.glass-card,
.contact-form {
    border: 1px solid rgba(41,181,166,0.22);
    background: rgba(3, 5, 10, 0.56);
    box-shadow: 0 24px 80px rgba(0,0,0,0.22);
    backdrop-filter: blur(10px);
    border-radius: 2px;
}

.glass-card {
    min-height: 230px;
    padding: 2rem;
}

.glass-card h3,
.process-step h3 {
    margin: 0 0 1rem;
    color: var(--text-white);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.glass-card p,
.process-step p {
    margin: 0;
    color: var(--text-gray);
    line-height: 1.7;
}

.apps-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    margin: 4rem 0 3rem;
    scroll-snap-align: start;
}

.apps-page-header .eyebrow {
    justify-content: flex-start;
}

.apps-page-header .section-title {
    font-family: var(--apps-title-font);
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    font-weight: 300;
    line-height: 1.15;
    margin: 0;
}

.apps-intro {
    color: var(--text-gray);
    font-family: var(--app-card-text-font);
    line-height: 1.7;
    max-width: 650px;
    margin: 1.2rem 0 0;
}

.discuss-btn {
    white-space: nowrap;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 1.5rem;
    scroll-snap-align: start;
}

.app-card {
    display: flex;
    flex-direction: column;
    min-height: 430px;
    background: #0f1e38;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.app-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 201, 167, 0.35);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 201, 167, 0.15);
}

.app-card.featured {
    grid-column: span 2;
}

.app-card.wide {
    grid-column: span 2;
}

.app-card.tall {
    min-height: 580px;
}

.app-card.compact {
    min-height: 360px;
}

.app-card-visual {
    min-height: 200px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-card.featured .app-card-visual,
.app-card.wide .app-card-visual {
    min-height: 260px;
}

.app-visual-bg {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    transition: opacity 0.4s, transform 0.6s;
}

.app-card:hover .app-visual-bg {
    opacity: 0.25;
    transform: scale(1.05);
}

.app-visual-bg svg {
    width: 100%;
    height: 100%;
}

.app-logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, var(--accent-teal), var(--primary-blue));
    color: var(--bg-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    font-size: 2.2rem;
    overflow: hidden;
}

.app-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.5rem;
}

.app-platform-tag {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #009e84;
    font-family: var(--nav-font);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.app-platform-tag::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--accent-teal);
    border-radius: 50%;
}

.app-name {
    color: var(--text-white);
    font-family: var(--app-card-title-font);
    font-size: 1.2rem;
    font-weight: var(--app-card-title-weight);
    font-style: var(--app-card-title-style);
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}

.app-desc {
    color: var(--text-gray);
    font-family: var(--app-card-text-font);
    font-size: 0.92rem;
    line-height: 1.75;
    font-weight: var(--app-card-text-weight);
    font-style: var(--app-card-text-style);
    margin-bottom: 1.2rem;
}

.app-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.4rem;
}

.tag {
    padding: 0.25rem 0.65rem;
    border: 1px solid rgba(0, 201, 167, 0.2);
    border-radius: 2px;
    background: rgba(0, 201, 167, 0.08);
    color: #009e84;
    font-family: var(--nav-font);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent-teal);
    font-family: var(--nav-font);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    margin-top: auto;
    transition: gap 0.3s;
}

.app-link:hover {
    gap: 0.7rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 2rem;
    position: relative;
    scroll-snap-align: start;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 2rem;
    left: 12.5%;
    right: 12.5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-teal), var(--primary-blue), transparent);
    opacity: 0.3;
}

.process-step {
    padding: 0 2rem;
    text-align: center;
    position: relative;
}

.step-number-wrap {
    width: 4rem;
    height: 4rem;
    border: 1px solid rgba(0, 201, 167, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: #080f20;
    position: relative;
    transition: border-color 0.3s, background 0.3s;
}

.process-step:hover .step-number-wrap {
    border-color: var(--accent-teal);
    background: rgba(0, 201, 167, 0.08);
}

.step-number {
    color: var(--accent-teal);
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 300;
}

.step-title {
    color: var(--text-white);
    font-family: var(--process-step-title-font);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 0.7rem;
}

.step-desc {
    color: #3d5272;
    font-family: var(--process-step-text-font);
    font-size: 0.83rem;
    line-height: 1.75;
}

.contact-page {
    max-width: 760px;
    text-align: center;
}

.contact-copy {
    min-height: auto;
}

.contact-copy h1 {
    font-family: var(--contact-title-font);
}

.contact-copy p.description {
    font-family: var(--contact-body-font);
}

.contact-lines {
    display: grid;
    gap: 0.7rem;
    color: var(--text-gray);
    font-weight: 700;
}

.contact-lines a {
    color: var(--accent-teal);
    text-decoration: none;
}

.contact-form {
    display: grid;
    gap: 1rem;
    padding: 3.5rem;
    position: relative;
    overflow: hidden;
    background: #0f1e38;
    border-color: rgba(0, 201, 167, 0.15);
    border-radius: 8px;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-teal), var(--primary-blue));
}

.contact-input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-input {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.07);
    background: #0b1628;
    color: var(--text-white);
    font: inherit;
    padding: 0.9rem 1.2rem;
    border-radius: 3px;
    outline: none;
    transition: border-color 0.3s;
}

.contact-input:focus {
    border-color: var(--accent-teal);
}

.contact-input::placeholder {
    color: #3d5272;
}

.hidden-field { display: none; }

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 980px) {
    .content-grid,
    .apps-grid,
    .process-steps {
        grid-template-columns: 1fr;
    }

    .app-card.featured,
    .app-card.wide {
        grid-column: span 1;
    }

    .process-steps {
        gap: 2rem;
    }

    .process-steps::before {
        display: none;
    }
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .cursor,
    .cursor-ring {
        display: none;
    }

    .site-header {
        flex-wrap: wrap;
        padding: 1.5rem 5%;
    }

    .logo img {
        height: auto;
        max-height: 58px;
        max-width: 205px;
    }

    .hamburger { display: block; }
    .desktop-only { display: none; }

    nav {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: 2rem 0;
        background-color: #03050a;
        border-top: 1px solid rgba(41,181,166,0.2);
        border-bottom: 1px solid rgba(41,181,166,0.2);
        margin-top: 1rem;
    }

    nav.active { display: flex; }

    .mobile-nav-cta {
        display: inline-flex;
        justify-content: center;
        border: 1px solid rgba(41,181,166,0.5);
        color: var(--accent-teal);
        padding: 0.9rem 1.4rem;
        width: min(260px, 90%);
        margin: 0 auto;
    }

    .home-main {
        padding: 0 1.5rem;
        margin-top: 0;
        min-height: calc(100vh - 190px);
    }

    .eyebrow {
        font-size: 0.55rem;
        margin-bottom: 1.5rem;
        justify-content: center;
        text-align: center;
        letter-spacing: 2px;
    }

    .eyebrow::before,
    .eyebrow::after {
        width: 15px;
        flex-shrink: 0;
    }

    h1 { font-size: 3.2rem; }
    h2,
    .page-hero h1 {
        font-size: 2.6rem;
        margin-bottom: 1rem;
    }

    p.description {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-gradient,
    .btn-secondary {
        width: 100%;
        padding: 1.2rem;
    }

    .bottom-section { margin-bottom: 2rem; }
    .coming-soon { font-size: 2.2rem; }
    .content-page { padding-top: 0; }

    .apps-page-header {
        display: grid;
        grid-template-columns: 1fr;
        align-items: start;
        gap: 1.5rem;
        margin: 3rem 0 2rem;
    }

    .apps-page-header .eyebrow {
        justify-content: flex-start;
        margin-bottom: 1.2rem;
    }

    .apps-page-header .section-title {
        font-size: 2.75rem;
        line-height: 1.05;
        max-width: 100%;
        overflow-wrap: normal;
        word-break: normal;
    }

    .apps-intro {
        max-width: 100%;
        font-size: 0.96rem;
        line-height: 1.6;
        margin-top: 1rem;
    }

    .discuss-btn {
        width: 100%;
        white-space: normal;
    }

    .glass-card,
    .process-step,
    .contact-form { padding: 1.4rem; }
}

@media (max-width: 420px) {
    .content-page {
        width: min(100% - 36px, 1180px);
    }

    .apps-page-header .section-title {
        font-size: 2.35rem;
    }

    .apps-intro {
        font-size: 0.92rem;
    }
}
