/* ================================================
   PELLA RESEARCH — Audio Deepfake Detection
   Sharp geometric design with teal accents
   ================================================ */

:root {
    /* Dark "cyber" palette — variable names keep their original semantic
       roles: --black = ink/text, --white = page background */
    --black: #e8f0f2;
    --white: #07090c;
    --gray-100: #10151a;
    --gray-200: rgba(232, 240, 242, 0.22);
    --gray-400: #8496a0;
    --gray-600: #b4c5cd;
    --accent: #f2f7f8;
    --accent-light: #ffffff;
    --tealblue: #8b9ba3;
    
    --font-sans: 'DM Sans', -apple-system, sans-serif;
    --font-serif: 'Instrument Serif', Georgia, serif;
}

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

html {
    scroll-behavior: smooth;
}

::selection {
    background: rgba(232, 240, 242, 0.9);
    color: #07090c;
}

body {
    font-family: var(--font-sans);
    background: var(--white);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ================================================
   BACKGROUND LINES — Sharp diagonal accents
   ================================================ */

.bg-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.line {
    position: absolute;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--gray-200) 20%,
        var(--gray-200) 80%,
        transparent 100%
    );
    width: 1px;
    height: 200vh;
    transform-origin: top;
}

.line-1 {
    left: 15%;
    top: -20%;
    transform: rotate(15deg);
}

.line-2 {
    right: 25%;
    top: -10%;
    transform: rotate(-12deg);
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 30%,
        rgba(255, 255, 255, 0.15) 70%,
        transparent 100%
    );
    width: 2px;
}

.line-3 {
    right: 10%;
    top: -5%;
    transform: rotate(-20deg);
}

/* ================================================
   NAVIGATION
   ================================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(7, 9, 12, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--black);
}

.logo-img {
    height: 60px;
    width: auto;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-text sup {
    font-size: 0.5em;
    font-weight: 600;
    vertical-align: super;
    margin-left: 1px;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--black);
}

.nav-contact {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-200);
    transition: all 0.2s ease;
}

.nav-contact:hover {
    border-color: var(--black);
    color: var(--black);
}

/* ================================================
   HERO SECTION
   ================================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 3rem 8rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 800px;
}

.hero-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    border-left: 3px solid var(--accent);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
    text-shadow: 0 0 16px rgba(255, 255, 255, 0.6);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-title-accent {
    font-style: italic;
    color: var(--gray-600);
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--accent);
    color: #04070a;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateX(4px);
    box-shadow: 0 0 28px rgba(255, 255, 255, 0.45);
}

.cta-button svg {
    transition: transform 0.2s ease;
}

.cta-button:hover svg {
    transform: translateX(4px);
}

.hero-visual {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40%;
    height: 70%;
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    right: -5%;
    top: 10%;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* Animated wave */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 150px;
    overflow: hidden;
}

.editorial {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 100%;
    margin: 0;
    z-index: 5;
    bottom: 0;
    position: absolute;
    left: 0;
}

.parallax1 > use {
    animation: move-forever1 10s linear infinite;
}

.parallax1 > use:nth-child(1) {
    animation-delay: -2s;
}

.parallax2 > use {
    animation: move-forever2 8s linear infinite;
}

.parallax2 > use:nth-child(1) {
    animation-delay: -2s;
}

.parallax3 > use {
    animation: move-forever3 6s linear infinite;
}

.parallax3 > use:nth-child(1) {
    animation-delay: -2s;
}

.parallax4 > use {
    animation: move-forever4 4s linear infinite;
}

.parallax4 > use:nth-child(1) {
    animation-delay: -2s;
}

@keyframes move-forever1 {
    0% {
        transform: translate(85px, 0%);
    }
    100% {
        transform: translate(-90px, 0%);
    }
}

@keyframes move-forever2 {
    0% {
        transform: translate(-90px, 0%);
    }
    100% {
        transform: translate(85px, 0%);
    }
}

@keyframes move-forever3 {
    0% {
        transform: translate(85px, 0%);
    }
    100% {
        transform: translate(-90px, 0%);
    }
}

@keyframes move-forever4 {
    0% {
        transform: translate(-90px, 0%);
    }
    100% {
        transform: translate(85px, 0%);
    }
}

/* ================================================
   SECTION HEADERS
   ================================================ */

.section-header {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.section-number {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.1em;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
}

/* ================================================
   SERVICES SECTION
   ================================================ */

.services {
    padding: 6rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--gray-200);
    border: 1px solid var(--gray-200);
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.service-card:hover::after {
    width: 100%;
}

.service-card:hover {
    background: var(--gray-100);
}

.service-icon {
    margin-bottom: 1.5rem;
    color: var(--black);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ================================================
   WHY SECTION
   ================================================ */

.why {
    /* Deeper-than-page black panel, hairline teal frame */
    background: #030507;
    color: var(--black);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.why-inner {
    padding: 6rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.why .section-number {
    color: var(--accent-light);
}

.why .section-title {
    color: var(--black);
}

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

.why-block h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--black);
}

.why-block p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.8;
}

.why-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.08) 100%);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
}

/* ================================================
   PARTNERS SECTION
   ================================================ */

.partners {
    padding: 6rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.partner {
    flex: 1;
    min-width: 200px;
    padding: 1.5rem 2rem;
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
    background: var(--white);
}

.partner:hover {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
}

.partner:hover .partner-logo {
    opacity: 1;
    filter: grayscale(100%);
}

.partner-logo {
    max-height: 40px;
    max-width: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: all 0.2s ease;
}

.partner-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    text-align: center;
}

/* ================================================
   CONTACT SECTION
   ================================================ */

.contact {
    padding: 6rem 3rem;
    background: var(--gray-100);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, var(--tealblue) 100%);
}

.contact-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.contact-content h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.contact-content > p {
    color: var(--gray-600);
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    gap: 3rem;
}

.contact-link {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-decoration: none;
    color: inherit;
}

a.contact-link:hover .contact-value {
    color: var(--accent);
}

.contact-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
}

.contact-value {
    font-weight: 500;
    transition: color 0.2s ease;
}

.cta-large {
    padding: 1.5rem 3rem;
    font-size: 1.1rem;
}

/* ================================================
   FOOTER
   ================================================ */

.footer {
    padding: 2rem 3rem;
    border-top: 1px solid var(--gray-200);
    background: var(--white);
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.footer-logo {
    height: 48px;
    width: auto;
}

.apeira-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.apeira-badge img {
    display: block;
    border-radius: 4px;
}

.apeira-badge:hover {
    color: var(--black);
    border-color: var(--black);
}

.footer-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-selector {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-option {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.35rem 0.6rem;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.lang-option:hover {
    color: var(--black);
    border-color: var(--gray-200);
}

.lang-option.active {
    color: var(--black);
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

.footer-right {
    color: var(--gray-400);
    font-size: 0.85rem;
}

.footer-right a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-right a:hover {
    color: var(--black);
}

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .why-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .contact-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-visual {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Nav: tighter single row, email button folds away
       (the address is still in the contact section) */
    .nav-inner {
        padding: 0.85rem 1rem;
        gap: 0.75rem;
    }

    .logo-text {
        font-size: 1.35rem;
    }

    .nav-links {
        gap: 0.9rem;
    }

    .nav-link {
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .nav-contact {
        display: none;
    }

    .section-header {
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .hero {
        padding: 7rem 1.5rem 3rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-sub {
        font-size: 1rem;
    }
    
    .services,
    .partners,
    .contact {
        padding: 4rem 1.5rem;
    }
    
    .why-inner {
        padding: 4rem 1.5rem;
    }
    
    .contact-details {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .partners-grid {
        flex-direction: column;
    }
    
    .partner {
        min-width: 100%;
    }
    
    .line-1, .line-3 {
        display: none;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-left {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-center {
        position: static;
        transform: none;
    }

    .cta-button.cta-large {
        width: 100%;
        justify-content: center;
    }

    .contact-content h2 {
        font-size: 2rem;
    }
}

/* Phones: logo on its own row, links on a second row */
@media (max-width: 600px) {
    .nav-inner {
        flex-wrap: wrap;
        row-gap: 0.35rem;
        padding: 0.75rem 1.25rem;
    }

    .nav-links {
        width: 100%;
        justify-content: flex-start;
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .hero {
        padding-top: 8.5rem;
    }
}

/* ================================================
   ANIMATIONS
   ================================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-label,
.hero-title,
.hero-sub,
.cta-button {
    animation: fadeInUp 0.6s ease forwards;
}

.hero-title {
    animation-delay: 0.1s;
}

.hero-sub {
    animation-delay: 0.2s;
}

.cta-button {
    animation-delay: 0.3s;
}

/* ================================================
   API ACCESS SECTION
   ================================================ */

/* ================================================
   LIVE DEMO SECTION
   ================================================ */

.demo {
    padding: 6rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    scroll-margin-top: 5rem;
}

.demo-inner {
    max-width: 900px;
}

.demo-intro {
    color: var(--gray-600);
    max-width: 60ch;
    margin-bottom: 2rem;
}

.demo-frame-wrap {
    border: 1px solid var(--gray-200);
    background: var(--gray-200);
}

#demo-frame {
    display: block;
    width: 100%;
    height: 640px;
    border: 0;
    background: #fff;
}

.demo-powered {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.demo-powered img {
    display: block;
}

.demo-powered a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--gray-200);
}

.demo-note {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray-600);
    max-width: 70ch;
}

@media (max-width: 768px) {
    .demo {
        padding: 4rem 1.5rem;
    }

    #demo-frame {
        height: 720px;
    }
}

.api-access {
    padding: 6rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    scroll-margin-top: 5rem;
}

.api-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.api-info h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.api-info p {
    color: var(--gray-600);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 480px;
}

.api-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.api-points li {
    position: relative;
    padding-left: 1.75rem;
    color: var(--gray-600);
    font-size: 0.95rem;
}

.api-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 10px;
    height: 10px;
    background: var(--accent);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.api-form[hidden],
.api-success[hidden] {
    display: none;
}

.api-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2.5rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-top: 3px solid var(--accent);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-600);
}

.form-field input,
.form-field textarea {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--black);
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    padding: 0.85rem 1rem;
    border-radius: 0;
    transition: border-color 0.2s ease, background 0.2s ease;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--white);
}

.form-submit {
    align-self: flex-start;
}

.api-success {
    padding: 3rem 2.5rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-top: 3px solid var(--accent);
}

.api-success h3 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
}

.api-success p {
    color: var(--gray-600);
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .api-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .api-access {
        padding: 4rem 1.5rem;
    }

    .api-form {
        padding: 1.5rem;
    }
}

/* ================================================
   BENCHMARK SECTION
   ================================================ */

.bench {
    padding: 6rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    scroll-margin-top: 5rem;
}

.bench-inner {
    max-width: 1000px;
}

.bench-intro {
    color: var(--gray-600);
    max-width: 70ch;
    margin-bottom: 2.5rem;
}

.bench-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: var(--gray-200);
    border: 1px solid var(--gray-200);
    margin-bottom: 2.5rem;
}

.bench-stat {
    background: var(--white);
    padding: 1.75rem 1.5rem;
    transition: background 0.3s ease;
}

.bench-stat:hover {
    background: var(--gray-100);
}

.bench-stat-value {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.4rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.bench-stat-label {
    display: block;
    color: var(--gray-600);
    font-size: 0.85rem;
    line-height: 1.5;
}

.bench-quote {
    border-left: 3px solid var(--accent);
    padding: 0.5rem 0 0.5rem 1.5rem;
    margin-bottom: 2.5rem;
}

.bench-quote p {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.4rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.bench-quote cite {
    font-style: normal;
    font-size: 0.85rem;
    color: var(--gray-400);
}

.bench-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--gray-200);
    margin-bottom: 1.5rem;
}

.bench-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.bench-table th {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
}

.bench-table td {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-600);
    white-space: nowrap;
}

.bench-table tr:last-child td {
    border-bottom: none;
}

.bench-row-pella td {
    background: var(--gray-100);
    color: var(--black);
    font-weight: 500;
}

.bench-row-pella td:first-child {
    border-left: 3px solid var(--accent);
}

.bench-badge {
    display: inline-block;
    margin-left: 0.6rem;
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    white-space: nowrap;
}

.bench-note {
    color: var(--gray-600);
    font-size: 0.9rem;
    max-width: 75ch;
    margin-bottom: 2rem;
}

.bench-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.bench-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 0.3rem;
    transition: all 0.2s ease;
}

.bench-link:hover {
    border-color: var(--black);
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.5);
}

/* Floating benchmark announcement pill */
.bench-pill {
    position: fixed;
    top: 6rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.5rem 0.35rem 0.4rem;
    border-radius: 999px;
    border: 1px solid var(--gray-200);
    background: rgba(16, 21, 26, 0.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 32px rgba(255, 255, 255, 0.12);
    opacity: 0;
    animation: pillIn 0.6s ease 0.5s forwards;
}

.bench-pill[hidden] {
    display: none;
}

@keyframes pillIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.bench-pill-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.15rem 0.25rem;
    transition: color 0.2s ease;
}

.bench-pill-link:hover {
    color: var(--black);
}

.bench-pill-tag {
    padding: 0.15rem 0.65rem;
    border-radius: 999px;
    background: var(--accent);
    color: #04070a;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.bench-pill-link svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.bench-pill-link:hover svg {
    transform: translateX(3px);
}

.bench-pill-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--gray-400);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bench-pill-close:hover {
    color: var(--black);
    background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
    .bench-pill {
        top: auto;
        bottom: 1.25rem;
        width: max-content;
        max-width: calc(100vw - 2rem);
    }

    .bench-pill-link {
        font-size: 0.78rem;
    }

    .bench-pill-link span:not(.bench-pill-tag) {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Hero benchmark badge */
.hero-bench {
    display: block;
    width: fit-content;
    margin: 0 auto;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.5rem 1.1rem;
    border: 1px solid var(--gray-200);
    opacity: 0;
    animation: fadeInUp 0.9s ease 0.25s forwards;
    transition: all 0.2s ease;
}

.hero-bench:hover {
    border-color: var(--black);
    color: var(--black);
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.5);
}

.hero-bench + .hero-mini-cta {
    margin-top: 1.5rem;
}

@media (max-width: 1024px) {
    .bench-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .bench {
        padding: 4rem 1.5rem;
    }

    .bench-quote p {
        font-size: 1.15rem;
    }

    .hero-bench {
        font-size: 0.65rem;
        letter-spacing: 0.1em;
    }
}

/* ================================================
   HERO ANIMATION VARIANTS
   ================================================ */

.hero-wrap {
    position: relative;
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    animation: canvasIn 1.6s ease 0.3s forwards;
}

@keyframes canvasIn {
    to { opacity: 1; }
}

/* animations replace the old diamond shape */
.hero-visual {
    display: none;
}

/* V3 — sheen sweeping through the title, timed loosely
   with the canvas pulse */
.hero-wrap[data-variant="3"] .hero-title,
.hero-wrap[data-variant="3"] .hero-title-accent {
    background: linear-gradient(100deg,
        #aebcc2 0%, #aebcc2 42%, #ffffff 50%, #aebcc2 58%, #aebcc2 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: titleSheen 7s linear infinite, fadeInUp 0.6s ease 0.1s forwards;
}

@keyframes titleSheen {
    0% { background-position: 100% 0; }
    100% { background-position: 0% 0; }
}

/* ================================================
   HERO — MINIMAL WORDMARK
   ================================================ */

.hero-minimal {
    max-width: 100%;
    text-align: center;
}

.hero-word {
    font-family: var(--font-serif);
    font-size: clamp(6rem, 17vw, 15rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--black);
    animation: fadeInUp 0.9s ease forwards;
}

.hero-word sup {
    font-family: var(--font-sans);
    font-size: 0.085em;
    font-weight: 600;
    letter-spacing: 0.35em;
    vertical-align: 2.2em;
    margin-left: 0.35em;
    color: var(--gray-400);
}

.hw-letter {
    display: inline-block;
}

.hero-mini-cta {
    display: inline-block;
    margin-top: 3rem;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 0.4rem;
    transition: all 0.2s ease;
    opacity: 0;
    animation: fadeInUp 0.9s ease 0.35s forwards;
}

.hero-mini-cta:hover {
    color: var(--black);
    border-color: var(--black);
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.5);
}

/* ---- per-variant life for the word ---- */

/* V1 Silk — the word glows and dims like breath */
.hero-wrap[data-variant="1"] .hero-word {
    animation: fadeInUp 0.9s ease forwards, wordGlow 8s ease-in-out 1s infinite;
}

@keyframes wordGlow {
    0%, 100% { text-shadow: 0 0 30px rgba(255, 255, 255, 0.06); }
    50%      { text-shadow: 0 0 70px rgba(255, 255, 255, 0.28); }
}

/* V2 Meter — letters bob like an equalizer, staggered */
.hero-wrap[data-variant="2"] .hw-letter {
    animation: letterBob 2.4s ease-in-out infinite;
}
.hero-wrap[data-variant="2"] .hw-letter:nth-child(1) { animation-delay: 0s; }
.hero-wrap[data-variant="2"] .hw-letter:nth-child(2) { animation-delay: 0.14s; }
.hero-wrap[data-variant="2"] .hw-letter:nth-child(3) { animation-delay: 0.28s; }
.hero-wrap[data-variant="2"] .hw-letter:nth-child(4) { animation-delay: 0.42s; }
.hero-wrap[data-variant="2"] .hw-letter:nth-child(5) { animation-delay: 0.56s; }

@keyframes letterBob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-0.05em); }
}

/* V3 Scanline — a sheen sweeps through the word, loosely
   timed with the canvas pulse */
.hero-wrap[data-variant="3"] .hero-word {
    background: linear-gradient(100deg,
        #93a3aa 0%, #93a3aa 40%, #ffffff 50%, #93a3aa 60%, #93a3aa 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: fadeInUp 0.9s ease forwards, titleSheen 7s linear infinite;
}

.hero-wrap[data-variant="3"] .hero-word sup {
    -webkit-text-fill-color: currentColor;
    color: var(--gray-400);
}

/* V4 Sonar — the word barely breathes; stillness is the point */
.hero-wrap[data-variant="4"] .hero-word {
    animation: fadeInUp 0.9s ease forwards, wordBreathe 7s ease-in-out 1s infinite;
}

@keyframes wordBreathe {
    0%, 100% { opacity: 0.9; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.012); }
}

/* V5 Field — a wave of light travels letter by letter */
.hero-wrap[data-variant="5"] .hw-letter {
    opacity: 0.72;
    animation: letterLume 3.8s ease-in-out infinite;
}
.hero-wrap[data-variant="5"] .hw-letter:nth-child(1) { animation-delay: 0s; }
.hero-wrap[data-variant="5"] .hw-letter:nth-child(2) { animation-delay: 0.3s; }
.hero-wrap[data-variant="5"] .hw-letter:nth-child(3) { animation-delay: 0.6s; }
.hero-wrap[data-variant="5"] .hw-letter:nth-child(4) { animation-delay: 0.9s; }
.hero-wrap[data-variant="5"] .hw-letter:nth-child(5) { animation-delay: 1.2s; }

@keyframes letterLume {
    0%, 100% { opacity: 0.72; text-shadow: none; }
    50%      { opacity: 1; text-shadow: 0 0 40px rgba(255, 255, 255, 0.35); }
}

@media (max-width: 768px) {
    .hero-word sup {
        display: block;
        margin: 1.2rem 0 0;
        vertical-align: baseline;
        font-size: 0.7rem;
    }
}

/* ================================================
   HERO — CANVAS WORDMARK (v3 reveal)
   The word is drawn by the canvas; the HTML keeps a
   screen-reader heading and a quiet CTA near the
   bottom of the viewport.
   ================================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.hero-minimal {
    margin-top: auto;
    padding-bottom: 9vh;
}
