/*
Theme Name: Waveform AI
Theme URI: https://waveformai.com
Author: Waveform AI
Author URI: https://waveformai.com
Description: A sleek, Apple-inspired single-page theme for Waveform AI — AI-powered audio software development.
Version: 1.1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: waveform-ai

── STYLESHEET ARCHITECTURE ───────────────────────────────────────────
This file is the only stylesheet for the theme. It follows a
top-down section order that mirrors the page structure:

  1. CSS Custom Properties (design tokens)
  2. Reset & Base
  3. Utility Classes (.container, .gradient-text, .fade-in)
  4. Navigation
  5. Section 1 – Hero
  6. Section 2 – Vision
  7. Section 3 – Technology (cards, canvas graphics)
  8. Section 4 – Stats (animated counters)
  9. Section 5 – B2B / How We Work
 10. Section 6 – Partnership
 11. Section 7 – About
 12. Section 8 – Contact / CTA
 13. Footer
 14. Responsive – Tablet  (≤ 1024 px)
 15. Responsive – Mobile  (≤ 768 px)
 16. Responsive – Small   (≤ 480 px)
 17. WordPress Core Overrides
*/

/* ========================================================================
   CSS Custom Properties
   ======================================================================== */

:root {
    --color-bg-primary: #050505;
    --color-bg-secondary: #111111;
    --color-bg-card: #1a1a1a;
    --color-accent: #00C2FF;
    --color-accent-violet: #7B61FF;
    --color-text-primary: #ffffff;
    --color-text-secondary: #8A8A8E;
    --color-text-muted: #555555;
    --color-border: rgba(255, 255, 255, 0.08);

    --gradient-accent: linear-gradient(135deg, #00C2FF, #7B61FF);
    --gradient-glow: radial-gradient(ellipse at center, rgba(0, 194, 255, 0.15) 0%, transparent 70%);

    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

    --section-padding: 140px 0;
    --container-width: 1200px;
    --container-padding: 0 40px;

    --transition-base: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ========================================================================
   Reset & Base
   ======================================================================== */

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

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--color-accent-violet);
}

::selection {
    background: rgba(0, 194, 255, 0.3);
    color: var(--color-text-primary);
}

/* ========================================================================
   Utility Classes
   ======================================================================== */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Scroll Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

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

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: background var(--transition-base), padding var(--transition-base);
}

.site-nav.scrolled {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
}

.nav-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.08em;
    color: var(--color-text-primary);
    text-decoration: none;
}

.nav-logo .logo-ai {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color var(--transition-base);
    letter-spacing: 0.01em;
}

.nav-links a:hover {
    color: var(--color-text-primary);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: var(--gradient-accent);
    color: var(--color-bg-primary) !important;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 100px;
    transition: opacity var(--transition-base), transform var(--transition-base);
    letter-spacing: 0.01em;
}

.nav-cta:hover {
    opacity: 0.9;
    transform: scale(1.02);
    color: var(--color-bg-primary) !important;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text-primary);
    margin: 5px 0;
    transition: var(--transition-base);
    border-radius: 2px;
}

/* ========================================================================
   Section 1: Hero
   ======================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: var(--color-bg-primary);
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6;
}

.hero-bg-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    max-width: none;
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 40px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 400;
    color: var(--color-text-secondary);
    line-height: 1.65;
    max-width: 680px;
    margin: 0 auto 48px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: var(--gradient-accent);
    color: var(--color-bg-primary);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 100px;
    transition: opacity var(--transition-base), transform var(--transition-base);
    letter-spacing: 0.01em;
}

.hero-cta:hover {
    opacity: 0.9;
    transform: scale(1.03);
    color: var(--color-bg-primary);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: float 2.5s ease-in-out infinite;
}

.scroll-indicator::after {
    content: '';
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-text-muted), transparent);
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ========================================================================
   Section 2: Vision
   ======================================================================== */

.vision {
    padding: var(--section-padding);
    background: var(--color-bg-primary);
    text-align: center;
}

.vision-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 32px;
}

.vision-statement {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.02em;
    max-width: 850px;
    margin: 0 auto 28px;
    color: var(--color-text-primary);
}

.vision-body {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ========================================================================
   Section 3: Technology
   ======================================================================== */

.technology {
    padding: var(--section-padding);
    background: var(--color-bg-secondary);
    position: relative;
}

.technology::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: var(--gradient-glow);
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
    z-index: 1;
}

.tech-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 48px 36px;
    transition: border-color var(--transition-base), transform var(--transition-base);
    text-align: center;
}

.tech-card:hover {
    border-color: rgba(0, 194, 255, 0.2);
    transform: translateY(-4px);
}

/* Tech icon — default (SVG-based icons); centered in card */
.tech-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 28px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-icon svg {
    width: 100%;
    height: 100%;
}

/* Tech icon — canvas variant
   All three tech canvases use the same 240×240 container so titles
   and body copy are guaranteed to start at the same vertical position. */
.tech-icon--canvas {
    width: 240px;
    height: 240px;
    margin-bottom: 28px;
    margin-left: auto;
    margin-right: auto;
}

.tech-icon--canvas canvas {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 12px;
}

.tech-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.tech-card p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
}

/* ========================================================================
   Section 4: Stats
   ======================================================================== */

.stats {
    padding: 100px 0;
    background: var(--color-bg-primary);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 12px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    letter-spacing: 0.02em;
    line-height: 1.5;
}

/* ========================================================================
   Section 5: B2B / How We Work
   ======================================================================== */

.b2b {
    padding: var(--section-padding);
    background: var(--color-bg-secondary);
}

.b2b-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 80px;
}

.b2b-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 56px 44px;
    position: relative;
    overflow: hidden;
    transition: border-color var(--transition-base);
}

.b2b-card:hover {
    border-color: rgba(0, 194, 255, 0.2);
}

.b2b-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.b2b-card:hover::before {
    opacity: 1;
}

.b2b-card-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 20px;
}

.b2b-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.b2b-card p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.b2b-card ul {
    list-style: none;
    margin-top: 24px;
}

.b2b-card ul li {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.b2b-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
}

/* ========================================================================
   Section 6: Partnership
   ======================================================================== */

.partnership {
    padding: var(--section-padding);
    background: var(--color-bg-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.partnership::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(123, 97, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.partnership-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.partnership-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border: 1px solid rgba(123, 97, 255, 0.3);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-accent-violet);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 40px;
}

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

.partnership p {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.partnership-image {
    margin-top: 60px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.partnership-image img {
    width: 100%;
    transition: transform var(--transition-slow);
}

.partnership-image:hover img {
    transform: scale(1.02);
}

/* ========================================================================
   Section 7: About
   ======================================================================== */

.about {
    padding: var(--section-padding);
    background: var(--color-bg-secondary);
    text-align: center;
}

.about-content {
    max-width: 750px;
    margin: 0 auto;
}

.about h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
    line-height: 1.15;
}

.about p {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    line-height: 1.75;
    margin-bottom: 20px;
}

.about p:last-child {
    margin-bottom: 0;
}

/* ========================================================================
   Section 8: Contact / CTA
   ======================================================================== */

.contact {
    padding: var(--section-padding);
    background: var(--color-bg-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 50%;
    background: radial-gradient(ellipse at bottom, rgba(0, 194, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.contact-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
    margin: 0 auto;
}

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

.contact p {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 600;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: opacity var(--transition-base);
    letter-spacing: -0.01em;
}

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

.contact-email svg {
    flex-shrink: 0;
}

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

.site-footer {
    padding: 40px 0;
    background: var(--color-bg-primary);
    border-top: 1px solid var(--color-border);
    text-align: center;
}

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

.footer-copy {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-links a {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--color-text-secondary);
}

/* ========================================================================
   Responsive — Tablet
   ======================================================================== */

@media (max-width: 1024px) {
    :root {
        --section-padding: 100px 0;
        --container-padding: 0 32px;
    }

    .hero-bg-image {
        width: 140%;
    }

    .tech-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .b2b-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 80px auto 0;
    }

    .section-header {
        margin-bottom: 56px;
    }
}

/* ========================================================================
   Responsive — Mobile
   ======================================================================== */

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
        --container-padding: 0 24px;
    }

    /* Mobile Nav */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        padding: 40px;
        transition: right var(--transition-base);
        border-left: 1px solid var(--color-border);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .nav-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Hero adjustments */
    .hero-content {
        padding: 0 24px;
    }

    .hero-title {
        margin-bottom: 20px;
    }

    .hero-subtitle {
        margin-bottom: 36px;
    }

    .scroll-indicator {
        display: none;
    }

    /* Stats */
    .stats {
        padding: 60px 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    /* B2B Cards */
    .b2b-card {
        padding: 40px 28px;
    }

    /* Partnership image */
    .partnership-image {
        margin-top: 40px;
    }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        padding: 14px 28px;
        font-size: 0.9rem;
    }

    .partnership-badge {
        font-size: 0.65rem;
        padding: 6px 14px;
        letter-spacing: 0.1em;
    }

    .b2b-card h3 {
        font-size: 1.25rem;
    }

    .tech-card {
        padding: 36px 28px;
    }

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

    .vision-body {
        font-size: 1rem;
    }
}

/* ========================================================================
   WordPress Core Overrides
   ======================================================================== */

/* Remove default WordPress admin bar spacing when logged in */
#wpadminbar ~ .site-nav {
    top: 32px;
}

@media (max-width: 782px) {
    #wpadminbar ~ .site-nav {
        top: 46px;
    }
}

/* Hide WordPress defaults that might leak through */
.wp-block-spacer,
.entry-content,
.entry-header,
.entry-footer {
    display: none;
}
