/* RESET & BASE */

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

html, body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #02030b;
    color: #e5e7eb;
}

body {
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

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

button {
    font-family: inherit;
}

/* INTRO SCREEN */

#intro-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000 url('hero.jpeg') center/cover no-repeat;
    overflow: hidden;
}

#intro-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55; /* let overlay text pop */
}

.intro-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 70%);
}

.intro-overlay {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 24px;
}

.intro-logo {
    font-size: 1.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
}

.intro-subtitle {
    font-size: 1rem;
    opacity: 0.85;
    margin-bottom: 24px;
}

#enter-btn {
    min-width: 200px;
}

/* INTRO TRANSITION */

.hidden-intro {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

.hidden-initial {
    opacity: 0;
    pointer-events: none;
}

/* NAVBAR */

#top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(3, 7, 18, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, #22d3ee, #1d4ed8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 0.95rem;
    font-weight: 600;
}

.brand-tagline {
    font-size: 0.75rem;
    color: #9ca3af;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 0.9rem;
}

.nav-links a {
    opacity: 0.8;
    padding: 4px 0;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-links .nav-cta {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.6);
    background: radial-gradient(circle at top left, rgba(56,189,248,0.15), rgba(15,23,42,0.8));
}

/* NAV - MOBILE */

#nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #e5e7eb;
    font-size: 1.4rem;
}

/* LAYOUT */

main {
    max-width: 1120px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.section-header {
    text-align: left;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.section-header p {
    font-size: 0.95rem;
    color: #9ca3af;
    max-width: 640px;
}

/* HERO */

#hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 40px 0 60px;
}

.hero-text {
    width: 52%;
}

.hero-text h1 {
    font-size: 2.2rem;
    line-height: 1.15;
    margin-bottom: 16px;
}

.hero-text .accent {
    color: #38bdf8;
}

.hero-text p {
    font-size: 0.98rem;
    color: #9ca3af;
    margin-bottom: 20px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 0.8rem;
}

.metric {
    border-left: 2px solid rgba(56, 189, 248, 0.6);
    padding-left: 10px;
}

.metric-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    display: block;
    margin-bottom: 2px;
}

.metric-value {
    font-weight: 500;
}

.hero-image {
    width: 40%;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    max-width: 380px;  /* Size control */
    border-radius: 14px;
    box-shadow: 0 22px 60px rgba(15,23,42,0.9);
    object-fit: cover;
}

/* BUTTONS */

.btn {
    border-radius: 999px;
    border: none;
    padding: 10px 18px;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
    white-space: nowrap;
}

.btn.primary {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #0b1120;
    font-weight: 600;
    box-shadow: 0 14px 30px rgba(56,189,248,0.4);
}

.btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(56,189,248,0.5);
}

.btn.ghost {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.6);
    color: #e5e7eb;
}

.btn.ghost:hover {
    background: rgba(15,23,42,0.8);
}

.btn.full-width {
    width: 100%;
}

/* PLATFORM */

#platform {
    padding: 40px 0;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.platform-card {
    padding: 18px 18px 20px;
    border-radius: 14px;
    background: radial-gradient(circle at top, rgba(15,23,42,0.9), rgba(2,6,23,0.98));
    border: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 0.9rem;
}

.platform-card h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.platform-card p {
    color: #9ca3af;
    margin: 0 0 10px;
}

.platform-card ul {
    padding-left: 16px;
    margin: 0;
    list-style: disc;
    color: #9ca3af;
}

/* PATENTS */

#patents {
    padding: 40px 0;
}

.patent-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.patent-card {
    padding: 18px 18px 20px;
    border-radius: 14px;
    background: radial-gradient(circle at top left, rgba(56,189,248,0.12), rgba(15,23,42,0.98));
    border: 1px solid rgba(148, 163, 184, 0.25);
    font-size: 0.9rem;
}

.patent-card h3 {
    margin: 0 0 8px;
    font-size: 1.02rem;
}

.patent-meta {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 10px;
}

.patent-card p {
    margin: 0 0 10px;
    color: #d1d5db;
}

.badge {
    display: inline-block;
    font-size: 0.72rem;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(56, 189, 248, 0.5);
    color: #bae6fd;
}

.patent-footnote {
    margin-top: 14px;
    font-size: 0.8rem;
    color: #9ca3af;
}

/* USE CASES */

#use-cases {
    padding: 40px 0;
}

.usecase-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.usecase-card {
    padding: 18px 18px 20px;
    border-radius: 14px;
    background: radial-gradient(circle at top, rgba(30,64,175,0.25), rgba(15,23,42,0.98));
    border: 1px solid rgba(129, 140, 248, 0.3);
    font-size: 0.9rem;
}

.usecase-card h3 {
    margin: 0 0 8px;
}

.usecase-card p {
    color: #d1d5db;
    margin: 0 0 10px;
}

.usecase-card ul {
    padding-left: 16px;
    margin: 0;
    list-style: disc;
    color: #9ca3af;
}

/* TEAM */

#team {
    padding: 40px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.team-card {
    padding: 14px 14px 18px;
    border-radius: 14px;
    background: radial-gradient(circle at top, rgba(15,23,42,0.9), rgba(2,6,23,0.98));
    border: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 0.86rem;
}

.team-photo {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.team-card h3 {
    margin: 0 0 2px;
    font-size: 0.98rem;
}

.team-role {
    margin: 0 0 8px;
    font-size: 0.78rem;
    color: #9ca3af;
}

/* PRESS */

#press {
    padding: 40px 0;
}

.press-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.press-card {
    padding: 18px 18px 20px;
    border-radius: 14px;
    background: radial-gradient(circle at top, rgba(15,23,42,0.95), rgba(15,23,42,0.98));
    border: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 0.9rem;
}

.press-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #a5b4fc;
}

.press-card h3 {
    margin: 6px 0 6px;
    font-size: 1.02rem;
}

.press-meta {
    margin: 0 0 8px;
    font-size: 0.78rem;
    color: #9ca3af;
}

.press-card p {
    margin: 0 0 8px;
    color: #e5e7eb;
}

.press-link {
    font-size: 0.82rem;
    color: #38bdf8;
}

/* CONTACT */

#contact {
    padding: 40px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 24px;
}

#contact-form {
    padding: 18px 18px 20px;
    border-radius: 14px;
    background: radial-gradient(circle at top, rgba(15,23,42,0.96), rgba(2,6,23,0.98));
    border: 1px solid rgba(148, 163, 184, 0.24);
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

label {
    font-size: 0.82rem;
    color: #9ca3af;
}

input, select, textarea {
    background: rgba(15,23,42,0.9);
    border-radius: 8px;
    border: 1px solid rgba(75, 85, 99, 0.9);
    padding: 8px 10px;
    color: #e5e7eb;
    font-size: 0.88rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: 1px solid #38bdf8;
    border-color: #38bdf8;
}

.contact-side {
    padding: 18px 18px 20px;
    border-radius: 14px;
    background: radial-gradient(circle at top left, rgba(56,189,248,0.15), rgba(2,6,23,0.98));
    border: 1px solid rgba(56, 189, 248, 0.4);
    font-size: 0.9rem;
}

.contact-side h3 {
    margin: 0 0 8px;
}

.contact-side p {
    margin: 0 0 8px;
    color: #e5e7eb;
}

.contact-bullets {
    padding-left: 18px;
    margin: 0 0 10px;
    list-style: disc;
    color: #d1d5db;
    font-size: 0.85rem;
}

.contact-email a {
    color: #38bdf8;
}

/* FOOTER */

#footer {
    border-top: 1px solid rgba(31, 41, 55, 1);
    background: #020617;
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 14px 20px 18px;
    font-size: 0.78rem;
    color: #6b7280;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    #hero {
        flex-direction: column-reverse;
        padding-top: 24px;
    }

    .hero-text,
    .hero-image {
        width: 100%;
    }

    .hero-image img {
        max-width: 320px;
    }

    .platform-grid,
    .patent-grid,
    .usecase-grid,
    .press-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    .nav-links {
        position: absolute;
        right: 16px;
        top: 56px;
        flex-direction: column;
        align-items: flex-end;
        padding: 10px 12px;
        background: rgba(3,7,18,0.98);
        border-radius: 12px;
        border: 1px solid rgba(55,65,81,0.9);
        display: none;
    }

    .nav-links.open {
        display: flex;
    }

    #nav-toggle {
        display: block;
    }

    .nav-inner {
        padding-inline: 16px;
    }

    main {
        padding-inline: 16px;
    }

    .platform-grid,
    .patent-grid,
    .usecase-grid,
    .press-grid,
    .team-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
