/* ============================================================
   BioNiyam — styles.css
   All styles extracted verbatim from the original single-file
   HTML, plus Research section and Contact Form additions.
   DO NOT edit colour tokens here — they live in :root below.
   ============================================================ */

/* ---- ROOT TOKENS ---- */
:root {
    --navy: #0F1F3D;
    --deep: #1B3A6B;
    --teal: #0D9488;
    --teal-light: #14B8A6;
    --gold: #F59E0B;
    --cream: #FAFAF7;
    --mist: #EFF6FF;
    --slate: #64748B;
    --text: #1E293B;
    --white: #FFFFFF;
}

/* ---- RESET ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: #0a0f1e;
    color: var(--white);
    line-height: 1.6;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 48px;
    background: rgba(10, 15, 30, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.5px;
    color: var(--white);
    text-decoration: none;
}

.nav-logo span {
    color: var(--teal-light);
}

.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--teal-light);
}

.nav-cta {
    background: var(--teal);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.nav-cta:hover {
    background: var(--teal-light);
}

/* Mobile hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 80px 60px;
    position: relative;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--teal);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
    max-width: 820px;
}

.section-heading .hl {
    color: var(--teal-light);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    background: radial-gradient(ellipse 80% 60% at 60% 40%, #1a3a7a 0%, #0a0f1e 70%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230D9488' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--teal-light);
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(56px, 8vw, 96px);
    font-weight: 900;
    line-height: 1.0;
    margin-bottom: 8px;
}

.hero-title .accent {
    color: var(--teal-light);
}

.hero-subtitle {
    font-size: 22px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 48px;
    max-width: 640px;
    line-height: 1.5;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.stat-value {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--teal-light);
    display: block;
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
    letter-spacing: 1px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--teal);
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: background 0.2s;
}

.hero-cta:hover {
    background: var(--teal-light);
}

/* ============================================================
   PROBLEM SECTION
   ============================================================ */
.problem {
    background: linear-gradient(135deg, #0a0f1e 0%, #0f1a2e 100%);
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    margin-top: 48px;
}

.problem-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px;
}

.problem-card .icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.problem-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gold);
}

.problem-card p {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.6);
}

.problem-stat {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 40px;
    padding: 24px 32px;
    background: rgba(13, 148, 136, 0.1);
    border: 1px solid rgba(13, 148, 136, 0.2);
    border-radius: 12px;
}

.problem-stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    font-weight: 700;
    color: var(--teal-light);
    white-space: nowrap;
}

.problem-stat-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* ============================================================
   SOLUTION SECTION
   ============================================================ */
.solution {
    background: linear-gradient(160deg, #071a1a 0%, #0a0f1e 60%);
}

.solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 40px;
}

.solution-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(13, 148, 136, 0.2);
    border-radius: 16px;
    padding: 28px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.solution-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(13, 148, 136, 0.12);
}

.solution-card.primary {
    background: rgba(13, 148, 136, 0.1);
    border-color: rgba(13, 148, 136, 0.4);
}

.solution-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--teal-light);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.solution-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.65;
}

.solution-badge {
    display: inline-block;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--gold);
    font-size: 10px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

/* ============================================================
   TEAM SECTION
   ============================================================ */
.team {
    background: linear-gradient(160deg, #0a0f1e 30%, #071a1a 100%);
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.team-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px;
}

.team-name {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--teal-light);
    margin-bottom: 8px;
}

.team-role {
    font-size: 14px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.team-credentials {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 16px;
}

.team-bio {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-style: italic;
}

.team-bio p + p {
    margin-top: 12px;
}

/* ============================================================
   RESEARCH SECTION
   (same card visual language as .solution-card / .market-card)
   ============================================================ */
.research {
    background: linear-gradient(160deg, #071a1a 0%, #0a0f1e 60%);
}

.research-subsection {
    margin-top: 48px;
}

.research-subheading {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Papers grid */
.papers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.paper-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(13, 148, 136, 0.2);
    border-radius: 16px;
    padding: 28px;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.paper-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(13, 148, 136, 0.15);
}

.paper-title {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    line-height: 1.3;
}

.paper-meta {
    font-size: 12px;
    color: var(--teal-light);
    margin-bottom: 12px;
    font-family: 'DM Mono', monospace;
    letter-spacing: 0.3px;
}

.paper-summary {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 16px;
}

.paper-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.paper-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(13, 148, 136, 0.15);
    border: 1px solid rgba(13, 148, 136, 0.3);
    color: var(--teal-light);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
    letter-spacing: 0.5px;
}

.paper-btn:hover {
    background: rgba(13, 148, 136, 0.3);
    border-color: var(--teal-light);
}

/* YouTube strip */
.yt-channels {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.yt-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 50, 50, 0.1);
    border: 1px solid rgba(255, 50, 50, 0.2);
    color: #FF4444;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.yt-chip:hover {
    background: rgba(255, 50, 50, 0.2);
    border-color: rgba(255, 50, 50, 0.4);
}

.yt-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Video cards — match .team-card border / shadow language */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.video-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition: transform 0.2s, box-shadow 0.2s;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    padding-left: 3px; /* optical centre for ▶ */
    color: #0a0f1e;
}

.video-thumbnail-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.2), rgba(27, 58, 107, 0.3));
    color: rgba(255, 255, 255, 0.3);
}

.video-title-bar {
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
}

/* ============================================================
   MARKET SECTION
   ============================================================ */
.market {
    background: #0a0f1e;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.market-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

.market-number {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--teal-light);
    margin-bottom: 8px;
}

.market-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact {
    background: radial-gradient(ellipse 80% 60% at 40% 60%, #1a3a7a 0%, #0a0f1e 70%);
    min-height: 70vh;
}

.contact-inner {
    max-width: 640px;
    margin: 0 auto;
}

.contact-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
}

.contact-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
    line-height: 1.6;
    text-align: center;
}

/* Fallback contact info bar */
.contact-info {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px 32px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.contact-email {
    font-family: 'DM Mono', monospace;
    font-size: 16px;
    color: var(--teal-light);
    text-decoration: none;
    transition: opacity 0.2s;
}

.contact-email:hover {
    opacity: 0.8;
}

.contact-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.contact-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

.contact-linkedin:hover {
    color: var(--teal-light);
}

/* Contact form */
.contact-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--teal);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    width: 100%;
    background: var(--teal);
    color: var(--white);
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 0.3px;
    margin-top: 8px;
}

.form-submit:hover {
    background: var(--teal-light);
}

.honeypot {
    display: none !important;
    visibility: hidden;
    position: absolute;
    left: -9999px;
}

/* Form success state */
.form-success {
    background: rgba(13, 148, 136, 0.12);
    border: 1px solid rgba(13, 148, 136, 0.3);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
}

.form-success-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.form-success-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: var(--teal-light);
    margin-bottom: 8px;
}

.form-success-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
}

/* ============================================================
   RESPONSIVE — 768px breakpoint
   ============================================================ */
@media (max-width: 768px) {
    nav {
        padding: 16px 24px;
        flex-wrap: wrap;
        gap: 12px;
        position: fixed;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(10, 15, 30, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        z-index: 99;
    }

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

    .nav-menu a {
        font-size: 16px;
    }

    .section {
        padding: 80px 24px 48px;
    }

    .hero-stats {
        gap: 24px;
        justify-content: center;
    }

    .problem-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

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

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

    /* Research */
    .papers-grid {
        grid-template-columns: 1fr;
    }

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

    /* Contact */
    .contact-info {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .problem-stat {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(40px, 11vw, 56px);
    }

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

    .contact-form {
        padding: 24px 20px;
    }
}
