/* BSE IRAD - Shared Styles */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --black-light: #0a0a0a;
    --black-elevated: #111111;
    --black-card: #161616;
    --black-border: #222222;
    --white: #ffffff;
    --white-off: #f5f5f5;
    --white-muted: #888888;
    --white-dim: #555555;
    --accent: #00ff88;
    --accent-dim: #00cc6a;
    --accent-glow: rgba(0, 255, 136, 0.15);
    --accent-glow-strong: rgba(0, 255, 136, 0.3);
    --gold: #ffd700;
    --font-sans: 'Instrument Sans', -apple-system, sans-serif;
    --font-mono: 'Space Mono', monospace;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

::selection {
    background: var(--accent);
    color: var(--black);
}

h1,
h2,
h3,
h4 {
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Skip to Content - Accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--black);
    padding: 12px 24px;
    font-weight: 600;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 10px;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 60px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--black-border);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-logo-text {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.1em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-link {
    padding: 10px 20px;
    color: var(--white-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 20px;
    right: 20px;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s var(--ease);
}

.nav-link:hover,
.nav-link:focus {
    color: var(--white);
    outline: none;
}

.nav-link:hover::after,
.nav-link:focus::after {
    transform: scaleX(1);
}

.nav-link.active {
    color: var(--accent);
}

.nav-link.active::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    width: 32px;
    height: 32px;
    background: none;
    border: 1px solid var(--black-border);
    cursor: pointer;
    position: relative;
}

.nav-toggle span {
    position: absolute;
    left: 8px;
    width: 14px;
    height: 1px;
    background: var(--white);
    transition: all 0.3s var(--ease);
}

.nav-toggle span:nth-child(1) {
    top: 10px;
}

.nav-toggle span:nth-child(2) {
    top: 15px;
}

.nav-toggle span:nth-child(3) {
    top: 20px;
}

/* Main Content */
main {
    padding-top: 80px;
    min-height: 100vh;
}

.page-content {
    padding: 80px 60px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Section Headers */
.section-header {
    margin-bottom: 60px;
}

.section-header--center {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 16px;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--white);
    margin-bottom: 20px;
}

.section-title span {
    color: var(--accent);
}

.section-description {
    font-size: 1rem;
    color: var(--white-muted);
    line-height: 1.8;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.02em;
    border: none;
    cursor: pointer;
    transition: all 0.4s var(--ease);
    position: relative;
}

.btn:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn--primary {
    background: var(--accent);
    color: var(--black);
}

.btn--primary:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px var(--accent-glow-strong);
}

.btn--secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--black-border);
}

.btn--secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn svg {
    transition: transform 0.3s var(--ease);
}

.btn:hover svg {
    transform: translateX(4px);
}

/* ==========================================
   HOME PAGE HERO
   ========================================== */
.hero-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Animated Background Grid */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    animation: grid-pulse 8s ease-in-out infinite;
}

@keyframes grid-pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Animated Scan Line */
.hero-scanline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: scanline 4s linear infinite;
    opacity: 0.6;
}

@keyframes scanline {
    0% {
        top: 0;
    }

    100% {
        top: 100%;
    }
}

/* Circuit Traces */
.circuit-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.4;
}

.circuit-h {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
    animation: circuit-flow-h 6s linear infinite;
}

.circuit-h:nth-child(1) {
    top: 20%;
    width: 40%;
    left: 0;
    animation-delay: 0s;
}

.circuit-h:nth-child(2) {
    top: 35%;
    width: 30%;
    right: 0;
    left: auto;
    animation-delay: 1.5s;
}

.circuit-h:nth-child(3) {
    top: 55%;
    width: 50%;
    left: 5%;
    animation-delay: 3s;
}

.circuit-h:nth-child(4) {
    top: 75%;
    width: 35%;
    right: 0;
    left: auto;
    animation-delay: 4.5s;
}

.circuit-v {
    position: absolute;
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, var(--accent) 50%, transparent 100%);
    animation: circuit-flow-v 8s linear infinite;
}

.circuit-v:nth-child(5) {
    left: 15%;
    height: 30%;
    top: 10%;
    animation-delay: 0.5s;
}

.circuit-v:nth-child(6) {
    left: 45%;
    height: 40%;
    top: 30%;
    animation-delay: 2s;
}

.circuit-v:nth-child(7) {
    left: 75%;
    height: 35%;
    top: 20%;
    animation-delay: 3.5s;
}

.circuit-v:nth-child(8) {
    left: 90%;
    height: 25%;
    top: 50%;
    animation-delay: 5s;
}

@keyframes circuit-flow-h {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

@keyframes circuit-flow-v {
    0% {
        opacity: 0;
        transform: translateY(-100%);
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(100%);
    }
}

/* Floating Particles */
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent);
    animation: particle-drift 20s linear infinite;
}

.particle:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-duration: 25s;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    left: 25%;
    top: 70%;
    animation-duration: 30s;
    animation-delay: 5s;
}

.particle:nth-child(3) {
    left: 50%;
    top: 30%;
    animation-duration: 22s;
    animation-delay: 2s;
}

.particle:nth-child(4) {
    left: 70%;
    top: 60%;
    animation-duration: 28s;
    animation-delay: 8s;
}

.particle:nth-child(5) {
    left: 85%;
    top: 40%;
    animation-duration: 24s;
    animation-delay: 4s;
}

.particle:nth-child(6) {
    left: 40%;
    top: 80%;
    animation-duration: 26s;
    animation-delay: 10s;
}

@keyframes particle-drift {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    50% {
        transform: translate(50px, -100px) scale(1.5);
        opacity: 0.4;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translate(100px, -200px) scale(1);
        opacity: 0;
    }
}

/* Corner Brackets */
.corner-bracket {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 1px solid var(--accent);
    opacity: 0.3;
}

.corner-bracket--tl {
    top: 40px;
    left: 40px;
    border-right: none;
    border-bottom: none;
}

.corner-bracket--tr {
    top: 40px;
    right: 40px;
    border-left: none;
    border-bottom: none;
}

.corner-bracket--bl {
    bottom: 40px;
    left: 40px;
    border-right: none;
    border-top: none;
}

.corner-bracket--br {
    bottom: 40px;
    right: 40px;
    border-left: none;
    border-top: none;
}

/* Hero Content */
.hero {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-text {
    animation: fade-up 1s var(--ease) 0.2s both;
    margin-left: -20px;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 24px;
}

.hero-label::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--accent);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 600;
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.05;
}

.hero-title span {
    color: var(--accent);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--white-muted);
    margin-bottom: 40px;
    max-width: 500px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 16px;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fade-up 1s var(--ease) 0.4s both;
}

.hero-orb {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-ring {
    position: absolute;
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 50%;
    animation: ring-spin 30s linear infinite;
}

.hero-ring:nth-child(1) {
    width: 100%;
    height: 100%;
    animation-duration: 40s;
}

.hero-ring:nth-child(2) {
    width: 80%;
    height: 80%;
    animation-duration: 30s;
    animation-direction: reverse;
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.1);
}

.hero-ring:nth-child(3) {
    width: 60%;
    height: 60%;
    animation-duration: 20s;
}

.hero-ring::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes ring-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hero-logo-container {
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
}

.hero-logo-container::before {
    content: '';
    position: absolute;
    inset: -20px;
    border: 1px solid var(--accent);
    opacity: 0.3;
    animation: logo-pulse 3s ease-in-out infinite;
}

.hero-logo-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    animation: logo-glow 3s ease-in-out infinite;
}

@keyframes logo-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

@keyframes logo-glow {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.hero-logo-container img {
    width: 250px;
    height: 250px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    opacity: 0.9;
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 30px rgba(0, 255, 136, 0.4));
    -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0.3) 70%, rgba(0, 0, 0, 0) 90%);
    mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0.3) 70%, rgba(0, 0, 0, 0) 90%);
}

/* Data Points */
.hero-data {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--white-dim);
    letter-spacing: 0.05em;
}

.hero-data--1 {
    top: 20%;
    left: -20%;
}

.hero-data--2 {
    bottom: 30%;
    right: -25%;
}

.hero-data--3 {
    top: 60%;
    left: -30%;
}

.hero-data span {
    color: var(--accent);
}

/* ==========================================
   ABOUT PAGE
   ========================================== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--black-border);
    margin-bottom: 60px;
}

.about-card {
    background: var(--black);
    padding: 40px;
    transition: all 0.4s var(--ease);
    position: relative;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

.about-card:hover {
    background: var(--black-elevated);
}

.about-card:hover::before {
    transform: scaleX(1);
}

.about-card__number {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--white-dim);
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.about-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
}

.about-card__text {
    font-size: 0.9rem;
    color: var(--white-muted);
    line-height: 1.7;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: var(--black-border);
}

.stat-card {
    background: var(--black);
    padding: 32px;
    text-align: center;
    transition: all 0.4s var(--ease);
}

.stat-card:hover {
    background: var(--black-elevated);
}

.stat-card__number {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-card__label {
    font-size: 0.75rem;
    color: var(--white-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ==========================================
   RESEARCH PAGE
   ========================================== */
.research-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--black-border);
}

.research-tab {
    padding: 16px 32px;
    background: none;
    border: none;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--white-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
}

.research-tab:focus {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.research-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s var(--ease);
}

.research-tab:hover {
    color: var(--white);
}

.research-tab.active {
    color: var(--accent);
}

.research-tab.active::after {
    transform: scaleX(1);
}

.research-panel {
    display: none;
}

.research-panel.active {
    display: block;
    animation: fade-in 0.4s ease;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2px;
    background: var(--black-border);
}

.research-card {
    background: var(--black);
    padding: 32px;
    transition: all 0.4s var(--ease);
    position: relative;
}

.research-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

.research-card:hover {
    background: var(--black-elevated);
}

.research-card:hover::before {
    transform: scaleX(1);
}

.research-card--featured::before {
    transform: scaleX(1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
}

.trl-badge {
    padding: 4px 12px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    border: 1px solid;
}

.trl-3 {
    color: #60a5fa;
    border-color: #60a5fa;
    background: rgba(59, 130, 246, 0.1);
}

.trl-4 {
    color: #4ade80;
    border-color: #4ade80;
    background: rgba(34, 197, 94, 0.1);
}

.trl-5 {
    color: #2dd4bf;
    border-color: #2dd4bf;
    background: rgba(45, 212, 191, 0.1);
}

.trl-6 {
    color: #c084fc;
    border-color: #c084fc;
    background: rgba(168, 85, 247, 0.1);
}

.trl-7 {
    color: #fcd34d;
    border-color: #fcd34d;
    background: rgba(250, 204, 21, 0.1);
}

.card-description {
    font-size: 0.9rem;
    color: var(--white-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-tag {
    padding: 6px 12px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--white-dim);
    background: var(--black-card);
    border: 1px solid var(--black-border);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-tag--primary {
    background: var(--accent);
    color: var(--black);
    border-color: var(--accent);
    font-weight: 700;
}

/* ==========================================
   CAPABILITIES PAGE
   ========================================== */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--black-border);
}

.capability-card {
    background: var(--black);
    padding: 40px;
    transition: all 0.4s var(--ease);
    position: relative;
}

.capability-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 40px;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s var(--ease);
}

.capability-card:hover {
    background: var(--black-elevated);
}

.capability-card:hover::before {
    transform: scaleY(1);
}

.capability-card--wide {
    grid-column: span 2;
}

.capability-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
    color: var(--accent);
}

.capability-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
}

.capability-text {
    font-size: 0.9rem;
    color: var(--white-muted);
    line-height: 1.7;
}

/* ==========================================
   STANDARDS PAGE
   ========================================== */
.standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2px;
    background: var(--black-border);
}

.standards-category {
    background: var(--black);
    padding: 32px;
    transition: all 0.4s var(--ease);
}

.standards-category:hover {
    background: var(--black-elevated);
}

.standards-category__title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--black-border);
}

.standards-list {
    list-style: none;
}

.standards-list li {
    padding: 10px 0;
    color: var(--white-muted);
    font-size: 0.85rem;
    border-bottom: 1px solid var(--black-border);
    transition: all 0.3s ease;
}

.standards-list li:last-child {
    border-bottom: none;
}

.standards-list li:hover {
    color: var(--white);
    padding-left: 8px;
}

/* ==========================================
   CONTACT PAGE
   ========================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: var(--black-border);
}

.contact-form {
    background: var(--black);
    padding: 48px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--white-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--black-elevated);
    border: 1px solid var(--black-border);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.contact-info {
    background: var(--black);
    padding: 48px;
}

.contact-info__title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-info__item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--black-border);
}

.contact-info__item:last-child {
    border-bottom: none;
}

.contact-info__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--black-border);
    color: var(--accent);
    flex-shrink: 0;
}

.contact-info__label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--white-dim);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-info__value {
    font-size: 0.95rem;
    color: var(--white);
}

.contact-info__value a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info__value a:hover,
.contact-info__value a:focus {
    color: var(--accent);
}

/* Footer */
.footer {
    padding: 24px 60px;
    background: var(--black);
    border-top: 1px solid var(--black-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--white-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover,
.footer a:focus {
    color: var(--white);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
        padding: 40px;
    }

    .hero-text {
        order: 2;
    }

    .hero-visual {
        order: 1;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-orb {
        width: 300px;
        height: 300px;
    }

    .hero-logo-container {
        width: 280px;
        height: 280px;
    }

    .hero-logo-container img {
        width: 250px;
        height: 250px;
    }

    .hero-data {
        display: none;
    }

    .about-grid,
    .capabilities-grid {
        grid-template-columns: 1fr;
    }

    .capability-card--wide {
        grid-column: auto;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 16px 24px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s var(--ease);
        z-index: 9998;
        padding-top: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-links .nav-link {
        font-size: 1.1rem;
    }

    .nav-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }

    .page-content {
        padding: 60px 24px;
    }

    .corner-bracket {
        display: none;
    }

    .research-grid,
    .standards-grid {
        grid-template-columns: 1fr;
    }

    .research-tabs {
        overflow-x: auto;
    }

    .footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 16px 24px;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}