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

:root {
    --cyan:    #00f5ff;
    --blue:    #0080ff;
    --red:     #ff6b6b;
    --teal:    #4ecdc4;
    --dark:    #0a0e27;
    --mid:     #1a1a3e;
    --accent:  rgba(0, 245, 255, 0.15);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--dark) 0%, var(--mid) 50%, #2d1b69 100%);
    color: white;
    overflow-x: hidden;
    cursor: none;
    min-height: 100vh;
}

/* ── CURSOR ── */
.cursor-atom {
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, var(--cyan) 0%, var(--blue) 100%);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 0 20px var(--cyan), 0 0 40px var(--cyan);
    transition: all 0.1s ease-out;
    transform: translate(-50%, -50%);
}

/* ── FLOATING ATOMS ── */
.atom {
    position: fixed;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    pointer-events: none;
    transition: opacity 0.4s, transform 0.4s;
    z-index: 1;
}
.neutral-atom  { background: radial-gradient(circle, var(--red) 0%, #ee5a52 100%); box-shadow: 0 0 15px var(--red); }
.trapped-ion   { background: radial-gradient(circle, var(--teal) 0%, #44a08d 100%); box-shadow: 0 0 15px var(--teal); }

/* ── QUANTUM BG ── */
.quantum-bg {
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(0,245,255,.08) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255,107,107,.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ── HEADER ── */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 18px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    z-index: 500;
}

.logo { font-family: 'Syne', sans-serif; font-size: 24px; font-weight: 800; }
.logo-tri    { color: #0055cc; }
.logo-quanta { color: #00aaff; }
.logo-labs   { color: #999; font-weight: 400; font-size: 18px; }

.nav { display: flex; gap: 36px; }
.nav a {
    color: #1a1a3e;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: color 0.2s;
    position: relative;
}
.nav a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue);
    transition: width 0.25s ease;
}
.nav a:hover { color: #0066cc; }
.nav a:hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: none; font-size: 22px; cursor: none; color: #1a1a3e; }

/* ── SHARED SECTION STYLES ── */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cyan);
    background: rgba(0,245,255,.1);
    border: 1px solid rgba(0,245,255,.25);
    border-radius: 20px;
    padding: 4px 14px;
    margin-bottom: 18px;
}

.section-subtitle {
    text-align: center;
    color: rgba(255,255,255,.6);
    font-size: 1.1rem;
    margin-top: -40px;
    margin-bottom: 64px;
    font-weight: 400;
}

h2 {
    font-family: 'Syne', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    background: linear-gradient(45deg, #fff, var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    padding: 120px 60px 80px;
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cyan);
    background: rgba(0,245,255,.1);
    border: 1px solid rgba(0,245,255,.3);
    border-radius: 20px;
    padding: 6px 18px;
    margin-bottom: 28px;
}

.hero h1 {
    font-family: 'Syne', sans-serif;
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #fff;
}

.gradient-text {
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255,255,255,.75);
    margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 56px; }

.cta-button {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(45deg, var(--cyan), var(--blue));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 28px rgba(0,245,255,.25);
    cursor: none;
    border: none;
}
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(0,245,255,.45);
}

.cta-button-ghost {
    display: inline-block;
    padding: 14px 36px;
    background: transparent;
    color: rgba(255,255,255,.85);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1.5px solid rgba(255,255,255,.25);
    cursor: none;
}
.cta-button-ghost:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    transform: translateY(-2px);
}

/* Hero stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--cyan);
    line-height: 1;
}
.stat-num sup { font-size: 0.9rem; }
.stat-label { font-size: 0.75rem; color: rgba(255,255,255,.5); margin-top: 4px; font-weight: 500; letter-spacing: 0.05em; }
.stat-divider { width: 1px; height: 48px; background: rgba(255,255,255,.15); }

/* Hero visual — orbital animation */
.hero-visual {
    position: relative;
    width: 420px;
    height: 420px;
    margin: 0 auto;
}
.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0,245,255,.25);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: spin linear infinite;
}
.ring-1 { width: 200px; height: 200px; animation-duration: 6s; }
.ring-2 { width: 300px; height: 300px; animation-duration: 10s; animation-direction: reverse; border-color: rgba(255,107,107,.2); }
.ring-3 { width: 400px; height: 400px; animation-duration: 16s; border-color: rgba(78,205,196,.15); }

.orbit-core {
    position: absolute;
    width: 60px; height: 60px;
    background: radial-gradient(circle, #fff 0%, var(--cyan) 40%, transparent 70%);
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 40px var(--cyan), 0 0 80px rgba(0,245,255,.4);
    animation: pulse 3s ease-in-out infinite;
}

.orbit-dot {
    position: absolute;
    width: 14px; height: 14px;
    border-radius: 50%;
}
.dot-1 {
    background: var(--red);
    box-shadow: 0 0 12px var(--red);
    top: calc(50% - 100px);
    left: 50%;
    transform-origin: 0 100px;
    animation: orbit 6s linear infinite;
}
.dot-2 {
    background: var(--teal);
    box-shadow: 0 0 12px var(--teal);
    top: calc(50% - 150px);
    left: 50%;
    transform-origin: 0 150px;
    animation: orbit 10s linear infinite reverse;
}
.dot-3 {
    background: #a78bfa;
    box-shadow: 0 0 12px #a78bfa;
    top: calc(50% - 200px);
    left: 50%;
    transform-origin: 0 200px;
    animation: orbit 16s linear infinite;
}

@keyframes spin   { to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes pulse  { 0%,100%{box-shadow:0 0 40px var(--cyan),0 0 80px rgba(0,245,255,.4);} 50%{box-shadow:0 0 60px var(--cyan),0 0 120px rgba(0,245,255,.6);} }
@keyframes orbit  { to { transform: rotate(360deg); } }

/* ── TECHNOLOGY / FEATURES ── */
.features {
    padding: 120px 60px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 0;
}

.feature-card {
    background: rgba(255,255,255,.04);
    padding: 44px 36px;
    border-radius: 24px;
    border: 1px solid rgba(0,245,255,.15);
    backdrop-filter: blur(12px);
    transition: all 0.35s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,245,255,.04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.35s;
}
.feature-card:hover { border-color: rgba(0,245,255,.45); transform: translateY(-6px); box-shadow: 0 24px 48px rgba(0,245,255,.08); }
.feature-card:hover::before { opacity: 1; }

.feature-card.featured {
    border-color: rgba(0,245,255,.4);
    background: rgba(0,245,255,.06);
    transform: translateY(-12px);
}

.feature-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cyan);
    background: rgba(0,245,255,.12);
    border: 1px solid rgba(0,245,255,.3);
    border-radius: 20px;
    padding: 3px 12px;
    margin-bottom: 20px;
}

.feature-icon {
    width: 56px; height: 56px;
    background: linear-gradient(45deg, rgba(255,107,107,.2), rgba(78,205,196,.2));
    border-radius: 16px;
    margin-bottom: 22px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    border: 1px solid rgba(255,255,255,.1);
}

.feature-card h3 { font-family: 'Syne', sans-serif; font-size: 1.25rem; font-weight: 700; margin-bottom: 14px; }
.feature-card p  { color: rgba(255,255,255,.65); line-height: 1.7; font-size: 0.95rem; }

.card-metric {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.08);
    font-size: 0.8rem;
    color: rgba(255,255,255,.45);
    font-weight: 500;
}
.card-metric span {
    font-family: 'Syne', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--cyan);
    margin-right: 8px;
}

/* ── RESEARCH ── */
.research-section {
    padding: 120px 60px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    text-align: center;
}

.research-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 28px;
    text-align: left;
}

.research-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px;
    padding: 36px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.research-card:hover {
    border-color: rgba(0,245,255,.35);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,.2);
}

.research-card.primary-paper {
    grid-column: 1 / -1;
    background: rgba(0,245,255,.05);
    border-color: rgba(0,245,255,.25);
    flex-direction: column;
}

.paper-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #a78bfa;
    background: rgba(167,139,250,.1);
    border: 1px solid rgba(167,139,250,.25);
    border-radius: 20px;
    padding: 3px 12px;
    margin-bottom: 18px;
    align-self: flex-start;
}

.research-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.4;
}
.primary-paper h3 { font-size: 1.35rem; }

.research-card p {
    color: rgba(255,255,255,.65);
    font-size: 0.92rem;
    line-height: 1.7;
    flex: 1;
}

.paper-authors {
    font-size: 0.8rem;
    color: rgba(255,255,255,.4);
    margin-top: 18px;
    font-style: italic;
}

.paper-link {
    display: inline-block;
    color: var(--cyan);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    margin-top: 18px;
    transition: color 0.2s;
}
.paper-link:hover { color: #fff; }

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

/* ── APPLICATIONS ── */
.applications-section {
    padding: 120px 60px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    text-align: center;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: left;
}

.app-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    padding: 32px 28px;
    display: flex;
    align-items: flex-start;
    gap: 22px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
.app-card:hover {
    background: rgba(255,255,255,.07);
    border-color: rgba(0,245,255,.25);
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0,0,0,.15);
}

.app-icon { font-size: 32px; flex-shrink: 0; line-height: 1; }

.app-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.app-card p {
    color: rgba(255,255,255,.6);
    font-size: 0.88rem;
    line-height: 1.65;
}

.app-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--teal);
    background: rgba(78,205,196,.1);
    border: 1px solid rgba(78,205,196,.2);
    border-radius: 20px;
    padding: 2px 10px;
    margin-top: 14px;
}

/* ── CONTACT ── */
.contact-section {
    padding: 120px 60px;
    position: relative;
    z-index: 2;
    background: rgba(0,0,0,.2);
}

.contact-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: start;
}

.contact-left h2 { text-align: left; font-size: 2.4rem; }
.contact-left > .section-label { }
.contact-left > p {
    color: rgba(255,255,255,.65);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-details { display: flex; flex-direction: column; gap: 24px; }
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.contact-icon {
    width: 44px; height: 44px;
    background: rgba(0,245,255,.1);
    border: 1px solid rgba(0,245,255,.2);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.contact-item strong { display: block; font-size: 0.85rem; color: rgba(255,255,255,.5); font-weight: 500; margin-bottom: 3px; }
.contact-item span   { font-size: 0.98rem; font-weight: 600; color: white; }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,.6); letter-spacing: 0.04em; }

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    padding: 12px 16px;
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    cursor: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.3); }
.form-group select option { background: #1a1a3e; color: white; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(0,245,255,.5);
    box-shadow: 0 0 0 3px rgba(0,245,255,.1);
    background: rgba(255,255,255,.07);
}
.form-group textarea { resize: vertical; }

.submit-btn { width: 100%; text-align: center; font-size: 1rem; }

.form-success {
    display: none;
    background: rgba(78,205,196,.1);
    border: 1px solid rgba(78,205,196,.3);
    border-radius: 12px;
    padding: 14px 20px;
    color: var(--teal);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
}
.form-success.visible { display: block; }

/* ── FOOTER ── */
.footer {
    padding: 48px 60px;
    border-top: 1px solid rgba(255,255,255,.08);
    position: relative;
    z-index: 2;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
}
.footer-logo { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 800; }
.footer-tagline { color: rgba(255,255,255,.4); font-size: 0.9rem; }
.footer-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-links a {
    color: rgba(255,255,255,.45);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--cyan); }
.footer-copy { color: rgba(255,255,255,.25); font-size: 0.82rem; margin-top: 8px; }

/* ── LASERS ── */
.laser {
    position: fixed;
    top: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(to bottom, #ff4d4d, transparent);
    box-shadow: 0 0 12px rgba(255,77,77,.5), 0 0 24px rgba(255,77,77,.3);
    opacity: 0;
    pointer-events: none;
    z-index: 50;
    transition: height 1.5s ease-out, opacity 0.8s ease-out;
}
.laser.active {
    height: 150vh;
    opacity: 0.8;
    animation: laser-pulse 3s ease-in-out infinite;
}
.laser-top-left  { left: 20%; transform: rotate(-30deg); transform-origin: top center; }
.laser-top-right { right: 20%; transform: rotate(30deg); transform-origin: top center; }
.laser-bottom-center {
    top: auto; bottom: 0; left: 50%;
    transform: translateX(-50%) rotate(180deg);
    transform-origin: bottom center;
    background: linear-gradient(to top, #4dffb8, transparent);
    box-shadow: 0 0 12px rgba(77,255,184,.5), 0 0 24px rgba(77,255,184,.3);
}
@keyframes laser-pulse {
    0%,100% { opacity: 0.8; }
    50%      { opacity: 0.35; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .hero                { grid-template-columns: 1fr; padding: 100px 40px 60px; text-align: center; }
    .hero-actions        { justify-content: center; }
    .hero-stats          { justify-content: center; }
    .hero-visual         { display: none; }
    .feature-grid        { grid-template-columns: 1fr; }
    .feature-card.featured { transform: none; }
    .research-grid       { grid-template-columns: 1fr; }
    .research-card.primary-paper { grid-column: auto; }
    .app-grid            { grid-template-columns: 1fr 1fr; }
    .contact-inner       { grid-template-columns: 1fr; gap: 48px; }
    .contact-left h2     { text-align: center; }
}

@media (max-width: 768px) {
    .header              { padding: 15px 24px; }
    .nav                 { display: none; }
    .nav-toggle          { display: block; }
    h2                   { font-size: 2.2rem; }
    .hero h1             { font-size: 2.6rem; }
    .features,
    .research-section,
    .applications-section,
    .contact-section     { padding: 80px 24px; }
    .app-grid            { grid-template-columns: 1fr; }
    .form-row            { grid-template-columns: 1fr; }
    .laser               { display: none; }
    .footer              { padding: 40px 24px; }
    .footer-links        { gap: 20px; }
}

/* Form error banner */
.form-error {
    display: none;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.35);
    border-radius: 12px;
    padding: 14px 20px;
    color: #ff6b6b;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
}
.form-error.visible { display: block; }
