/* ========================================
   A11 Labs — High-Tech Editorial
   WordPress Theme Stylesheet
   ======================================== */

:root {
    --bg: #0a0a0a;
    --bg-subtle: #0e0e11;
    --bg-card: rgba(255, 255, 255, 0.02);
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --text: #f0f0ec;
    --text-secondary: #8a8a85;
    --text-muted: #555550;
    --accent: #7dd3fc;
    --accent-dim: rgba(125, 211, 252, 0.08);
    --accent-glow: rgba(125, 211, 252, 0.025);
    --heading: 'Space Grotesk', -apple-system, sans-serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', 'SF Mono', monospace;
    --transition: 0.3s cubic-bezier(0.25, 0, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 300;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

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

::selection {
    background: var(--accent-dim);
    color: var(--accent);
}

/* ========================================
   Cursor Glow
   ======================================== */

.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
    transform: translate(-50%, -50%);
    opacity: 1;
    will-change: transform;
}

/* ========================================
   Navigation
   ======================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 24px 40px;
    transition: background var(--transition);
}

.nav.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(30px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    font-family: var(--mono);
    font-weight: 400;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 48px;
}

.nav-links a {
    font-family: var(--mono);
    font-size: 0.6875rem;
    color: var(--text);
    transition: color var(--transition), opacity var(--transition);
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.5;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--accent);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    width: 32px;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--text);
    transition: var(--transition);
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 36px;
    font-family: var(--mono);
    font-size: 0.6875rem;
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid var(--border-hover);
    background: transparent;
    color: var(--text);
    transition: all var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-dim), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn:hover::before {
    opacity: 1;
}

.btn-arrow {
    transition: transform var(--transition);
    font-size: 0.875rem;
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-glow {
    box-shadow: 0 0 30px rgba(125, 211, 252, 0.05);
}

.btn-glow:hover {
    box-shadow: 0 0 40px rgba(125, 211, 252, 0.12);
}

.btn-full {
    width: 100%;
}

/* ========================================
   Hero
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 40px 80px;
    overflow: hidden;
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(rgba(125, 211, 252, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(125, 211, 252, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--mono);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 300;
}

.eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
    animation: dot-pulse 2.5s ease-in-out infinite;
}

@keyframes dot-pulse {
    0%, 100% { opacity: 0.5; box-shadow: 0 0 8px var(--accent); }
    50% { opacity: 1; box-shadow: 0 0 16px var(--accent); }
}

.hero h1 {
    font-family: var(--heading);
    font-size: clamp(2.75rem, 7.5vw, 6rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 60px;
    color: var(--text);
}

.hero h1 em {
    font-style: normal;
    font-weight: 300;
    background: linear-gradient(135deg, var(--text), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 60px;
    border-top: 1px solid var(--border);
    padding-top: 40px;
}

.hero-sub {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 480px;
    line-height: 1.8;
    font-weight: 300;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.scroll-text {
    font-family: var(--mono);
    font-size: 0.625rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    writing-mode: vertical-rl;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ========================================
   Marquee Strip
   ======================================== */

.marquee-strip {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
    overflow: hidden;
    background: var(--bg-subtle);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 40px;
    animation: marquee 20s linear infinite;
    white-space: nowrap;
    width: max-content;
}

.marquee-track span {
    font-family: var(--mono);
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 300;
}

.marquee-dot {
    width: 3px;
    height: 3px;
    background: var(--accent);
    opacity: 0.4;
    border-radius: 50%;
    flex-shrink: 0;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========================================
   Sections
   ======================================== */

.section {
    padding: 160px 0;
    position: relative;
}

.section-dark {
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-label {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
}

.label-number {
    font-family: var(--mono);
    font-size: 0.625rem;
    font-weight: 300;
    color: var(--accent);
    letter-spacing: 0.05em;
    opacity: 0.7;
}

.label-line {
    width: 32px;
    height: 1px;
    background: var(--border-hover);
}

.label-text {
    font-family: var(--mono);
    font-size: 0.625rem;
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 80px;
}

.section-title em {
    font-style: normal;
    font-weight: 300;
    color: var(--accent);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 480px;
    margin-top: -40px;
    margin-bottom: 64px;
    font-weight: 300;
}

/* ========================================
   Services
   ======================================== */

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
}

.service-item {
    padding: 48px 40px;
    background: var(--bg);
    transition: background var(--transition);
    position: relative;
    overflow: hidden;
    perspective: 800px;
}

.service-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-dim), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.service-item:hover .service-glow {
    opacity: 1;
}

.service-item:hover {
    background: rgba(255, 255, 255, 0.015);
}

.service-index {
    font-family: var(--mono);
    font-size: 0.6875rem;
    color: var(--accent);
    display: block;
    margin-bottom: 24px;
    opacity: 0.5;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
}

.service-item h3 {
    font-family: var(--heading);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.25;
    position: relative;
    z-index: 1;
}

.service-item p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.8;
    font-weight: 300;
    max-width: 440px;
    position: relative;
    z-index: 1;
}

.service-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
    position: relative;
    z-index: 1;
}

.service-tags li {
    font-family: var(--mono);
    font-size: 0.625rem;
    color: var(--accent);
    opacity: 0.6;
    padding: 6px 14px;
    border: 1px solid var(--accent-dim);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all var(--transition);
}

.service-item:hover .service-tags li {
    border-color: rgba(125, 211, 252, 0.2);
    opacity: 0.8;
}

/* ========================================
   Process
   ======================================== */

.process-grid {
    display: flex;
    flex-direction: column;
    max-width: 800px;
}

.process-step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 40px;
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
    align-items: start;
    transition: all var(--transition);
}

.process-step:first-child {
    border-top: 1px solid var(--border);
}

.process-step:hover {
    padding-left: 16px;
}

.process-number {
    font-family: var(--heading);
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1;
    letter-spacing: -0.03em;
    transition: color var(--transition);
}

.process-step:hover .process-number {
    color: var(--accent);
}

.process-content h3 {
    font-family: var(--heading);
    font-size: 1.375rem;
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.process-content p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.8;
    font-weight: 300;
    max-width: 520px;
}

/* ========================================
   About
   ======================================== */

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
}

.about-item {
    padding: 48px 40px;
    background: var(--bg);
    transition: background var(--transition);
    position: relative;
    overflow: hidden;
}

.about-item:hover {
    background: rgba(255, 255, 255, 0.015);
}

.about-item:hover .service-glow {
    opacity: 1;
}

.about-item h3 {
    font-family: var(--heading);
    font-size: 1.375rem;
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 1;
}

.about-item p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.8;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

/* ========================================
   Contact
   ======================================== */

.contact-layout {
    max-width: 800px;
    margin: 0 auto;
}

.cal-embed-wrapper {
    overflow: hidden;
    min-height: 500px;
}

.contact-divider-row {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 64px 0;
}

.contact-divider-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.contact-divider-text {
    font-family: var(--mono);
    font-size: 0.625rem;
    color: var(--text-muted);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    white-space: nowrap;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-family: var(--mono);
    font-size: 0.625rem;
    font-weight: 300;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.form-group input,
.form-group textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    font-size: 1rem;
    color: var(--text);
    font-family: var(--sans);
    font-weight: 300;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    resize: vertical;
    border-radius: 0;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 2px 12px rgba(125, 211, 252, 0.06);
}

/* ========================================
   CTA
   ======================================== */

.cta-section {
    padding: 160px 0;
    text-align: center;
    position: relative;
}

.cta-inner {
    max-width: 700px;
    margin: 0 auto;
}

.cta-inner h2 {
    font-family: var(--heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.cta-inner h2 em {
    font-style: normal;
    font-weight: 300;
    color: var(--accent);
}

.cta-inner p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 48px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.footer-logo {
    font-family: var(--mono);
    font-size: 0.6875rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-left p {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 300;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 300;
}

.footer-contact a {
    color: var(--text-secondary);
    transition: color var(--transition);
}

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

/* ========================================
   Thank You & 404 Pages
   ======================================== */

.thanks-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.thanks-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.thanks-badge {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.6875rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 8px 20px;
    border: 1px solid var(--accent-dim);
    margin-bottom: 40px;
}

.thanks-content h1 {
    font-family: var(--heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.thanks-content h1 em {
    font-style: normal;
    font-weight: 300;
    color: var(--accent);
}

.thanks-content .hero-sub {
    margin: 0 auto 48px;
}

.thanks-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Animations
   ======================================== */

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-eyebrow,
.hero h1,
.hero-bottom {
    animation: fade-up 1s cubic-bezier(0.25, 0, 0.25, 1) forwards;
    opacity: 0;
}

.hero h1 { animation-delay: 0.15s; }
.hero-bottom { animation-delay: 0.3s; }

.revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
    .cursor-glow { display: none; }

    .container {
        padding: 0 24px;
    }

    .nav {
        padding: 20px 24px;
    }

    .nav.scrolled {
        backdrop-filter: none;
        background: var(--bg);
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        z-index: 99;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }

    /* backdrop-filter disabled on mobile via .nav.scrolled override above */

    .nav-links a {
        font-size: 0.875rem;
        opacity: 1;
    }

    .mobile-toggle {
        display: flex;
        z-index: 101;
        padding: 12px;
        min-width: 44px;
        min-height: 44px;
    }

    .mobile-toggle.active span:first-child {
        transform: translateY(4.5px) rotate(45deg);
    }

    .mobile-toggle.active span:last-child {
        transform: translateY(-4.5px) rotate(-45deg);
    }

    .hero {
        min-height: 100svh;
        padding: 0 24px 60px;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 12vw, 5rem);
        margin-bottom: 40px;
    }

    .hero-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }

    .hero-bottom .btn {
        width: 100%;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .section {
        padding: 80px 0;
    }

    .section-title {
        margin-bottom: 32px;
    }

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

    .service-item {
        padding: 32px 24px;
        background: var(--bg-subtle);
    }

    .process-step {
        grid-template-columns: 50px 1fr;
        gap: 20px;
        padding: 32px 0;
    }

    .process-step:hover {
        padding-left: 0;
    }

    .process-number {
        font-size: 1.5rem;
    }

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

    .about-item {
        background: var(--bg-subtle);
        padding: 32px 24px;
    }

    .contact-layout {
        max-width: 100%;
    }

    .cal-embed-wrapper {
        min-height: 400px;
        margin: 0 -24px;
    }

    .contact-divider-row {
        margin: 40px 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cta-section {
        padding: 80px 0;
    }

    .footer-inner {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-left {
        flex-direction: column;
        gap: 12px;
    }

    .footer-contact {
        flex-direction: column;
        gap: 8px;
    }

    .marquee-strip {
        padding: 14px 0;
    }

    .thanks-actions {
        flex-direction: column;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px 8px;
    }

    .label-text,
    .label-number {
        font-size: 0.6875rem;
    }

    .form-group label {
        font-size: 0.6875rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 0 16px 48px;
    }

    .container {
        padding: 0 16px;
    }

    .nav {
        padding: 16px;
    }

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

    .cal-embed-wrapper {
        margin: 0 -16px;
        overflow: hidden;
    }

    .process-step {
        grid-template-columns: 40px 1fr;
        gap: 16px;
    }

    .cta-inner h2 {
        font-size: 1.75rem;
    }
}
