/* ═══════════════════════════════════════════════════════════════════════════
   WALTZ LABS — CSS
   A refined editorial aesthetic with warmth and experimentation
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    /* Color Palette — Deep ink with warm amber accents */
    --ink-900: #0d0d0f;
    --ink-800: #17171c;
    --ink-700: #1f1f26;
    --ink-600: #2a2a33;
    --ink-500: #3d3d4a;
    --ink-400: #5c5c6e;
    --ink-300: #8585994;
    --ink-200: #b0b0be;
    --ink-100: #e0e0e8;
    --ink-50: #f5f5f8;

    --amber-500: #d4a853;
    --amber-400: #e4bd6a;
    --amber-300: #f0d08a;
    --amber-glow: rgba(212, 168, 83, 0.15);

    --coral-500: #c97b6b;
    --sage-500: #7b9e87;

    /* Typography */
    --font-display: 'Fraunces', Georgia, serif;
    --font-mono: 'IBM Plex Mono', 'SF Mono', monospace;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    --space-2xl: 12rem;

    /* Animation */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════════════════ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-display);
    background: var(--ink-900);
    color: var(--ink-100);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

ul {
    list-style: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BACKGROUND EFFECTS
   ═══════════════════════════════════════════════════════════════════════════ */

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.gradient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: -1;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--amber-glow) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: float-orb 20s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(123, 158, 135, 0.1) 0%, transparent 70%);
    bottom: 20%;
    left: -150px;
    animation: float-orb 25s ease-in-out infinite reverse;
}

@keyframes float-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════════════════ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(to bottom, var(--ink-900) 0%, transparent 100%);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

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

.logo-dot {
    width: 6px;
    height: 6px;
    background: var(--amber-500);
    border-radius: 50%;
    animation: pulse-dot 3s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-300);
    transition: color 0.3s var(--ease-out-quart);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--amber-500);
    transition: width 0.3s var(--ease-out-expo);
}

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

.nav-link:hover::after {
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: var(--space-xl) var(--space-lg);
    gap: var(--space-lg);
}

.hero-content {
    max-width: 640px;
}

.hero-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: fade-up 1s var(--ease-out-expo) 0.2s forwards;
}

.label-line {
    width: 40px;
    height: 1px;
    background: var(--amber-500);
}

.label-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--amber-400);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
}

.title-line {
    display: block;
    opacity: 0;
    animation: fade-up 1s var(--ease-out-expo) forwards;
}

.title-line-1 { animation-delay: 0.3s; }
.title-line-2 { animation-delay: 0.4s; }
.title-line-3 { animation-delay: 0.5s; }

.hero-title em {
    font-style: italic;
    color: var(--amber-400);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--ink-300);
    max-width: 480px;
    opacity: 0;
    animation: fade-up 1s var(--ease-out-expo) 0.6s forwards;
}

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

/* Hero Visual */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 500px;
}

.visual-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--ink-600);
}

.ring-1 {
    width: 400px;
    height: 400px;
    animation: rotate-ring 30s linear infinite, fade-in 1s var(--ease-out-expo) 0.3s forwards;
    opacity: 0;
}

.ring-2 {
    width: 300px;
    height: 300px;
    border-color: var(--ink-500);
    animation: rotate-ring 25s linear infinite reverse, fade-in 1s var(--ease-out-expo) 0.5s forwards;
    opacity: 0;
}

.ring-3 {
    width: 200px;
    height: 200px;
    border-color: var(--amber-500);
    border-style: dashed;
    animation: rotate-ring 20s linear infinite, fade-in 1s var(--ease-out-expo) 0.7s forwards;
    opacity: 0;
}

.visual-core {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--amber-400) 0%, var(--amber-500) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(20px);
    animation: pulse-core 4s ease-in-out infinite, fade-in 1s var(--ease-out-expo) 0.9s forwards;
    opacity: 0;
}

@keyframes rotate-ring {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse-core {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
}

@keyframes fade-in {
    to { opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MARQUEE
   ═══════════════════════════════════════════════════════════════════════════ */

.marquee-section {
    border-top: 1px solid var(--ink-700);
    border-bottom: 1px solid var(--ink-700);
    padding: var(--space-md) 0;
    overflow: hidden;
}

.marquee {
    display: flex;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    animation: marquee 30s linear infinite;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-400);
    white-space: nowrap;
}

.marquee-dot {
    color: var(--amber-500);
    font-size: 0.625rem;
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   SECTIONS — COMMON
   ═══════════════════════════════════════════════════════════════════════════ */

.section-header {
    display: flex;
    align-items: baseline;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.section-number {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--amber-500);
    letter-spacing: 0.1em;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    letter-spacing: -0.02em;
}

/* ═══════════════════════════════════════════════════════════════════════════
   WORK SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.work-section {
    padding: var(--space-2xl) var(--space-lg);
}

.product-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    margin-bottom: var(--space-2xl);
}

/* Phone Mockup */
.product-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-frame {
    width: 280px;
    height: 580px;
    background: var(--ink-800);
    border-radius: 40px;
    padding: 12px;
    box-shadow:
        0 0 0 1px var(--ink-600),
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: var(--ink-900);
    border-radius: 12px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--ink-900) 0%, var(--ink-800) 100%);
    border-radius: 32px;
    padding: var(--space-lg) var(--space-md);
    display: flex;
    flex-direction: column;
}

.app-header {
    text-align: center;
    margin-bottom: var(--space-lg);
    padding-top: var(--space-md);
}

.app-name {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.app-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-md);
}

.message-bubble {
    padding: var(--space-sm) var(--space-md);
    border-radius: 16px;
    position: relative;
}

.bubble-label {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-400);
    display: block;
    margin-bottom: var(--space-xs);
}

.message-bubble p {
    font-size: 0.9375rem;
    line-height: 1.5;
}

.message-bubble.original {
    background: var(--ink-700);
    color: var(--ink-200);
}

.message-bubble.rewritten {
    background: linear-gradient(135deg, var(--amber-500) 0%, var(--coral-500) 100%);
    color: var(--ink-900);
}

.message-bubble.rewritten .bubble-label {
    color: rgba(13, 13, 15, 0.6);
}

.rewrite-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-xs) 0;
}

.indicator-line {
    flex: 1;
    height: 1px;
    background: var(--ink-600);
}

.indicator-icon {
    color: var(--amber-500);
    font-size: 0.75rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.5; transform: scale(0.8) rotate(180deg); }
}

.product-badge {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background: var(--ink-700);
    border: 1px solid var(--ink-600);
    padding: var(--space-xs) var(--space-sm);
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-300);
}

/* Product Info */
.product-info {
    max-width: 480px;
}

.product-name {
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-xs);
}

.product-tagline {
    font-style: italic;
    color: var(--amber-400);
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
}

.product-description {
    color: var(--ink-300);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.product-features {
    margin-bottom: var(--space-md);
}

.product-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-xs) 0;
    color: var(--ink-200);
}

.feature-icon {
    color: var(--amber-500);
    font-family: var(--font-mono);
}

.product-status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: var(--ink-800);
    border: 1px solid var(--ink-600);
    border-radius: 20px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: var(--sage-500);
    border-radius: 50%;
    animation: pulse-status 2s ease-in-out infinite;
}

@keyframes pulse-status {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.status-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-300);
}

/* More Work */
.more-work {
    border-top: 1px solid var(--ink-700);
    padding-top: var(--space-lg);
}

.more-text {
    font-size: 1.125rem;
    color: var(--ink-300);
    max-width: 600px;
    margin-bottom: var(--space-lg);
}

.coming-soon {
    display: flex;
    gap: var(--space-md);
}

.soon-item {
    flex: 1;
    max-width: 200px;
    padding: var(--space-md);
    background: var(--ink-800);
    border: 1px solid var(--ink-700);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    transition: border-color 0.3s var(--ease-out-quart);
}

.soon-item:hover {
    border-color: var(--ink-500);
}

.soon-number {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--ink-500);
}

.soon-label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-400);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.about-section {
    padding: var(--space-2xl) var(--space-lg);
    background: linear-gradient(180deg, transparent 0%, var(--ink-800) 50%, transparent 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-xl);
}

.statement-text {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 300;
    line-height: 1.5;
    color: var(--ink-200);
}

.statement-text .highlight {
    color: var(--amber-400);
    font-style: italic;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.value-item {
    padding: var(--space-md);
    border-left: 2px solid var(--ink-600);
    transition: border-color 0.3s var(--ease-out-quart);
}

.value-item:hover {
    border-color: var(--amber-500);
}

.value-number {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--amber-500);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: var(--space-xs);
}

.value-title {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.value-desc {
    font-size: 0.9375rem;
    color: var(--ink-400);
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.contact-section {
    padding: var(--space-2xl) var(--space-lg);
    text-align: center;
}

.contact-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
}

.contact-title span {
    display: block;
}

.contact-title em {
    font-style: italic;
    color: var(--amber-400);
}

.contact-email {
    font-family: var(--font-mono);
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--ink-300);
    letter-spacing: 0.05em;
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--ink-600);
    border-radius: 30px;
    transition: all 0.3s var(--ease-out-quart);
}

.contact-email:hover {
    color: var(--amber-400);
    border-color: var(--amber-500);
    background: var(--amber-glow);
}

.contact-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.deco-line {
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ink-600), transparent);
}

.deco-text {
    color: var(--amber-500);
    font-size: 0.75rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    border-top: 1px solid var(--ink-700);
}

.footer-left {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.footer-logo {
    font-weight: 500;
}

.footer-year {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--ink-400);
}

.footer-tagline {
    font-style: italic;
    color: var(--ink-400);
    font-size: 0.9375rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-label {
        justify-content: center;
    }

    .hero-description {
        margin: 0 auto;
    }

    .hero-visual {
        height: 350px;
    }

    .ring-1 { width: 300px; height: 300px; }
    .ring-2 { width: 220px; height: 220px; }
    .ring-3 { width: 150px; height: 150px; }

    .product-showcase {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .product-info {
        max-width: 100%;
    }

    .product-features {
        display: inline-block;
        text-align: left;
    }

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

@media (max-width: 768px) {
    :root {
        --space-lg: 1.5rem;
        --space-xl: 3rem;
        --space-2xl: 5rem;
    }

    .nav {
        padding: var(--space-sm) var(--space-md);
    }

    .nav-links {
        gap: var(--space-md);
    }

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

    .hero {
        padding: var(--space-xl) var(--space-md);
        min-height: auto;
        padding-top: 120px;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-visual {
        height: 280px;
    }

    .ring-1 { width: 240px; height: 240px; }
    .ring-2 { width: 180px; height: 180px; }
    .ring-3 { width: 120px; height: 120px; }
    .visual-core { width: 60px; height: 60px; }

    .work-section,
    .about-section,
    .contact-section {
        padding: var(--space-xl) var(--space-md);
    }

    .section-header {
        margin-bottom: var(--space-lg);
    }

    .product-name {
        font-size: 2rem;
    }

    .product-tagline {
        font-size: 1.125rem;
    }

    .product-description {
        font-size: 0.9375rem;
    }

    .coming-soon {
        flex-direction: column;
    }

    .soon-item {
        max-width: 100%;
    }

    .statement-text {
        font-size: 1.25rem;
    }

    .contact-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .contact-email {
        font-size: 0.875rem;
        padding: var(--space-sm);
        word-break: break-all;
    }

    .footer {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
        padding: var(--space-md);
    }

    .footer-tagline {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    :root {
        --space-md: 1.25rem;
    }

    .nav {
        padding: var(--space-sm);
    }

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

    .nav-links {
        gap: var(--space-sm);
    }

    .nav-link {
        font-size: 0.625rem;
        letter-spacing: 0.05em;
    }

    .hero {
        padding-top: 100px;
    }

    .hero-visual {
        height: 220px;
    }

    .ring-1 { width: 180px; height: 180px; }
    .ring-2 { width: 140px; height: 140px; }
    .ring-3 { width: 100px; height: 100px; }
    .visual-core { width: 50px; height: 50px; }

    .phone-frame {
        width: 220px;
        height: 460px;
        border-radius: 32px;
        padding: 10px;
    }

    .phone-frame::before {
        width: 60px;
        height: 20px;
        top: 12px;
    }

    .phone-screen {
        border-radius: 24px;
        padding: var(--space-md) var(--space-sm);
    }

    .app-name {
        font-size: 1.125rem;
    }

    .message-bubble {
        padding: var(--space-xs) var(--space-sm);
    }

    .message-bubble p {
        font-size: 0.8125rem;
    }

    .product-badge {
        bottom: -15px;
        right: 10px;
        font-size: 0.625rem;
        padding: 6px 10px;
    }

    .value-item {
        padding: var(--space-sm);
    }

    .value-title {
        font-size: 1rem;
    }

    .value-desc {
        font-size: 0.875rem;
    }

    .deco-line {
        width: 60px;
    }
}
