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

:root {
    /* FONTS */
    --font-display: 'Playfair Display', serif;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* COLORS - Premium Minimalist */
    --color-bg: #FAFAF9;
    /* Warm off-white */
    --color-surface: #FFFFFF;
    --color-text: #1C1917;
    /* Warm black */
    --color-text-muted: #57534E;
    --color-border: #E7E5E4;
    /* Stone 200 */

    /* ACCENTS (for gradient blobs) */
    --color-accent-1: rgba(139, 92, 246, 0.4);
    /* Violet */
    --color-accent-2: rgba(59, 130, 246, 0.4);
    /* Blue */
    --color-accent-3: rgba(236, 72, 153, 0.3);
    /* Pink */
    --color-accent-subtle: rgba(255, 255, 255, 0.6);

    /* UI TOKENS */
    --radius-lg: 24px;
    --radius-md: 12px;
    --radius-pill: 9999px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.15);

    --container-width: 1200px;
    --header-height: 80px;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

h1 {
    font-family: var(--font-heading);
    /* Modern sleek sans */
}

h2,
h3 {
    font-family: var(--font-display);
    /* Elegant Serif touch */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

/* UTILITIES */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.text-gradient {
    background: linear-gradient(135deg, #1C1917 0%, #57534E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    /* Rectangular rounded */
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Match nav */
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--color-text);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translate(-3px, -3px);
    box-shadow: 4px 4px 0 var(--color-text-muted);
    /* Hard shadow */
    background: #000;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.btn-secondary:hover {
    background: #fff;
    border-color: var(--color-text);
    transform: translate(-3px, -3px);
    box-shadow: 4px 4px 0 var(--color-text);
}

.btn-yellow {
    background: #FDE047;
    /* Soft yellow */
    color: #422006;
    font-weight: 600;
}

.btn-yellow:hover {
    transform: translate(-3px, -3px);
    box-shadow: 4px 4px 0 var(--color-text);
}

/* HEADER */
.site-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    /* Changed from absolute to fixed */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease, border-bottom 0.3s ease;
    /* Default subtle background even in hero */
    background-color: rgba(250, 250, 249, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

@media (min-width: 768px) {
    .site-header {
        overflow: hidden;
        /* Contain blobs on desktop only */
    }
}

.site-header.scrolled {
    background-color: rgba(250, 250, 249, 0.9);
    /* More opaque when scrolled */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.site-header.scrolled .header-blobs {
    opacity: 1;
}

/* HEADER BLOBS */
.header-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    overflow: hidden;
}

.header-blob {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.5;
    top: 0;
    left: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    /* Transformation handled by JS */
}

.blob-1 {
    background: var(--color-accent-2);
    /* Blue */
}

.blob-2 {
    background: var(--color-accent-3);
    /* Pink */
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    z-index: 52;
}

.header-logo {
    height: 28px;
    /* Subtle, smaller logo */
    opacity: 0.9;
    transition: opacity 0.2s;
}

.header-logo:hover {
    opacity: 1;
}

/* NAVIGATION */
.main-nav {
    display: none;
    /* Mobile first hidden */
}

/* Mobile Menu Styles */
@media (max-width: 767px) {
    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: rgba(250, 250, 249, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 3rem 2rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 60;
    }

    .main-nav.active {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .main-nav ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav a {
        font-family: var(--font-heading);
        font-size: 1.5rem;
        font-weight: 500;
        color: var(--color-text);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        padding: 1rem 1.5rem;
        display: block;
        border-radius: 4px;
        border: 1px solid transparent;
        transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .main-nav a:hover {
        color: var(--color-text);
        background: transparent;
        border-color: var(--color-text);
        box-shadow: 4px 4px 0 var(--color-text);
        transform: translate(-3px, -3px);
    }
}

/* Desktop Navigation */
@media (min-width: 768px) {
    .main-nav {
        display: block;
    }

    .main-nav ul {
        display: flex;
        gap: 1rem;
        /* Reduced gap since items now have padding */
        list-style: none;
    }

    .main-nav a {
        font-family: var(--font-heading);
        font-size: 0.95rem;
        font-weight: 500;
        color: var(--color-text-muted);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        padding: 0.6rem 1.2rem;
        /* Pill shape padding */
        position: relative;
        border-radius: 4px;
        /* Slight radius but keeping it geometric */
        border: 1px solid transparent;
        /* No outline by default */
        transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .main-nav a:hover {
        color: var(--color-text);
        background: transparent;
        border-color: var(--color-text);
        /* Visible border */
        box-shadow: 4px 4px 0 var(--color-text);
        /* Bauhaus Hard Shadow */
        transform: translate(-3px, -3px);
        /* Pop effect */
    }
}

/* Mobile Menu Toggle (Hamburger) */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 52;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
}

/* Animated Hamburger to X */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* HERO SECTION */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

/* Animated Gradient Background */
.interactive-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.particle-blob {
    position: absolute;
    /* Soft blur to maintain 'frosty' look while keeping shape */
    filter: blur(20px);
    opacity: 0.6;
    will-change: transform;
    mix-blend-mode: multiply;
    /* Blents nicely on light bg */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
}

.hero-content h1 {
    font-size: 3.5rem;
    /* Mobile */
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.hero-content h1 span {
    font-style: italic;
    font-family: var(--font-display);
    font-weight: 400;
}

.subheadline {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-weight: 300;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    /* Increased gap */
    justify-content: center;
    align-items: center;
    /* Ensures vertical alignment */
    flex-wrap: wrap;
}

/* WHAT WE BUILD (Glass Cards) */
#what-we-build {
    padding: 4rem 0 8rem 0;
    position: relative;
    z-index: 2;
}

@media (min-width: 1024px) {
    #what-we-build {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.divider {
    display: none;
    /* Removing bauhaus divider */
}

#what-we-build h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.build-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.build-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    padding: 3rem;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-sm);
}

.build-card:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: #fff;
}

.card-icon-shape {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #E5E7EB, #F3F4F6);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Shapes via CSS only for visual interest, mimicking Bauhaus but softer */
.shape-square {
    border-radius: 8px;
}

.shape-circle {
    border-radius: 50%;
}

.shape-triangle {
    width: 0;
    height: 0;
    background: transparent;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 40px solid #E5E7EB;
    border-radius: 0;
}

.build-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
}

.build-card p {
    color: var(--color-text-muted);
}

/* KIAILABS SPOTLIGHT */
#kiailabs {
    padding: 8rem 0;
    background: #FFFFFF;
    border-radius: 40px 40px 0 0;
    /* Card-like section transition */
    margin-top: -40px;
    position: relative;
    z-index: 3;
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.02);
}

.kiailabs-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.kiailabs-content h2 {
    font-size: 3rem;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.highlight-text {
    background: linear-gradient(to right, #6366F1, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #F3F4F6;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    margin-top: 1rem;
    text-transform: uppercase;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    padding: 2rem;
    border-radius: var(--radius-md);
    background: #FAFAF9;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: #fff;
    border-color: var(--color-border);
    box-shadow: var(--shadow-md);
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.feature-card h3::after {
    display: none;
}

/* Remove underlined accents */

.kiailabs-cta {
    text-align: center;
}

/* HOW WE WORK */
#how-we-work {
    padding: 4rem 0 8rem 0;
    background: #FFFFFF;
}

@media (min-width: 1024px) {
    #how-we-work {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 4rem 0;
}

@media (min-width: 768px) {
    .process-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.process-card {
    position: relative;
    padding: 2.5rem 2rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #FAFAF9;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Match buttons */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: currentColor;
    /* Will take text color or specific color */
    background: #fff;
}

.step-number {
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 1;
    color: var(--color-text);
    opacity: 0.05;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    transition: opacity 0.3s ease;
}

.process-card:hover .step-number {
    opacity: 0.1;
}

.process-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.step-accent {
    height: 4px;
    width: 40px;
    border-radius: var(--radius-pill);
    margin-top: auto;
}

.bg-red {
    background: #F87171;
}

.bg-blue {
    background: #60A5FA;
}

.bg-purple {
    background: #A78BFA;
}

/* FOUNDER / STUDIO REDESIGN */
#founder {
    padding: 8rem 0;
    border-top: 1px solid var(--color-border);
}

.founder-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Override generic section header styles for this simplified look */
#founder .section-header {
    margin-bottom: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#founder h2 {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    /* Small caption style */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin: 0;
}

#founder .divider {
    display: none;
}

.founder-text {
    font-family: var(--font-display);
    /* Serif for long text reading */
    font-size: 1.5rem;
    line-height: 1.5;
    color: var(--color-text);
    font-weight: 400;
}

.founder-text p {
    margin-bottom: 2rem;
}

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

.highlight-text-small {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-muted);
    border-left: 1px solid var(--color-text);
    padding-left: 1rem;
    margin-top: 2rem;
    display: block;
}

.studio-icon {
    width: 60px;
    /* Small, minimal signature */
    height: auto;
    opacity: 0.8;
    margin-top: 1.5rem;
}

@media (min-width: 900px) {
    .founder-grid {
        display: grid;
        grid-template-columns: 1fr 2fr;
        /* Header+Icon | Text */
        gap: 4rem;
        align-items: start;
    }

    #founder .section-header {
        position: sticky;
        top: 6rem;
    }

    .founder-text {
        font-size: 2rem;
        /* Big, editorial feel */
        max-width: none;
    }

    .studio-icon {
        width: 80px;
    }
}

/* FOOTER */
footer {
    padding: 4rem 0;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-social-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.social-icon:hover {
    opacity: 1;
}

/* RESPONSIVE */
@media (min-width: 768px) {

    .build-grid,
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-content h1 {
        font-size: 5rem;
    }

    .subheadline {
        font-size: 1.5rem;
    }
}

/* ANIMATION UTILS */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}
