/* ===================================
   CSS Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --color-bg-dark: #003E4E;
    --color-text: #FFFFFF;
    --color-text-muted: rgba(255, 255, 255, 0.85);

    --color-text-dark: #0A2A3E;
    --color-text-dark-muted: rgba(10, 42, 62, 0.8);

    --color-accent: #4BB8D8;
    --color-accent-light: #5CC5E5;

    --color-text-box: rgba(75, 184, 216, 0.9);

    /* Typography */
    --font-body: 'DM Sans', sans-serif;
    --font-logo: 'Syncopate', sans-serif;
    --font-size-base: 18px;

    /* Spacing */
    --spacing-md: 2rem;
    --spacing-lg: 4rem;

    /* Transitions */
    --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    /* Lighter base background - Teal/Dark Mix */
    background: #005066;
    overflow-x: hidden;
    line-height: 1.6;
    font-size: var(--font-size-base);
    min-height: 100vh;
}

/* ===================================
   Backgrounds (Blobs & Spotlight)
   =================================== */
.blob-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    /* Reduced opacity further to 0.4 */
    opacity: 0.4;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.8;
    animation: blobFloat 15s ease-in-out infinite;
}

.blob-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, #2A9BC2 0%, transparent 70%);
    top: -15%;
    left: -15%;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #1B7E99 0%, transparent 70%);
    top: 40%;
    right: -20%;
    animation-delay: -5s;
}

.blob-3 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, #2A9BC2 0%, transparent 70%);
    bottom: -10%;
    left: 15%;
    animation-delay: -10s;
}

.blob-4 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #1B7E99 0%, transparent 70%);
    top: 20%;
    left: 40%;
    animation-delay: -15s;
}

@keyframes blobFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    50% {
        transform: translate(40px, -40px) scale(1.1) rotate(5deg);
    }
}

.cursor-spotlight {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: overlay;
    transition: width 0.3s, height 0.3s;
}

.gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 80%);
    mix-blend-mode: screen;
}

/* ===================================
   Navigation (Mid Teal)
   =================================== */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 2rem;
    /* Reduced padding slightly */
    /* Specific Mid Teal Color */
    background: #1B7E99;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: padding 0.3s ease;
}

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

/* Logo */
.nav-logo {
    font-family: var(--font-logo);
    font-size: 1.75rem;
    /* Slightly smaller logo */
    font-weight: 400;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.95rem;
    /* Slightly smaller font */
    padding: 0.5rem 1.1rem;
    /* Slightly less padding */
    border-radius: 50px;
    transition: all var(--transition-medium);
    white-space: nowrap;
    /* Prevent wrapping inside link */
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-cta {
    background: transparent;
    color: white;
    font-weight: 500;
    border: 2px solid white;
}

.nav-cta:hover {
    background: var(--color-accent);
    color: var(--color-text-dark);
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

/* Active state when on autoplace page */
body:has(.scene-autoplace) .nav-cta,
body:has(#autoplace-intro) .nav-cta {
    background: var(--color-accent);
    color: var(--color-text-dark);
    border-color: var(--color-accent);
}

/* ===================================
   Scroll Snap & Scenes
   =================================== */
.scroll-container {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: 100vh;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

.scene {
    min-height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 3rem;
    position: relative;
    overflow: hidden;
}

.scene-content {
    max-width: 1000px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 10;
}

.scene-content-wide {
    max-width: 1300px;
}

.scene-content-narrow {
    max-width: 800px;
}

/* Scene Styles */
.scene-dark {
    background: transparent;
    z-index: 5;
}

.scene-title-slide {
    background: transparent;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Ensuring center alignment */
}

/* Animated Light Gradient */
.scene-gradient-light-animated {
    background: linear-gradient(-45deg, rgba(255, 255, 255, 0.9), rgba(224, 247, 250, 0.9), rgba(178, 235, 242, 0.9), rgba(255, 255, 255, 0.9));
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
    color: var(--color-text-dark);
    backdrop-filter: blur(10px);
    z-index: 10;
}

/* Animated Dark Gradient - Lighter Mix */
.scene-gradient-dark-animated {
    background: linear-gradient(-45deg, #1B7E99, #0A2A3E, #2A9BC2, #1B7E99);
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
    color: var(--color-text);
    z-index: 10;
}

/* About Section Specific Background */
.scene-about {
    background: #1B7E99;
    /* User Requested Mid Teal */
    color: white;
    z-index: 5;
    padding: 12rem 3rem;
    /* Increased padding to make section 'larger' */
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Autoplace Section */
.scene-autoplace {
    background: linear-gradient(135deg, #0A2A3E 0%, #1B7E99 100%);
    color: white;
    z-index: 10;
}

/* ===================================
   Typography Refinements
   =================================== */
.hero-headline {
    text-align: center;
    font-weight: 300;
    font-family: 'Syncopate', sans-serif;
    line-height: normal;
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
}

.headline-small {
    display: block;
    font-size: clamp(1.2rem, 3vw, 2rem);
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.headline-large {
    display: block;
    font-size: clamp(3.5rem, 8vw, 6rem);
    letter-spacing: 0.05em;
}

.hero-subtext {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--color-text-muted);
    /* Constrained width as requested (Green Box) */
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.5;
    font-weight: 300;
}

h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
}

h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
}

h3 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h4 {
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

p {
    line-height: 1.75;
    margin-bottom: 1.5rem;
    font-weight: 400;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
}

/* Large Display Titles (Products) - Centered & Slightly Smaller */
.title-slide-text {
    font-family: var(--font-body);
    font-size: clamp(6rem, 15vw, 15rem);
    font-weight: 900;
    color: #FFFFFF;
    line-height: 1;
    letter-spacing: -0.04em;
    text-shadow: 0 0 50px rgba(75, 184, 216, 0.4);
    text-align: center;
    width: 100%;
}

.bounce-soft {
    animation: bounceLoop 3s ease-in-out infinite;
}

@keyframes bounceLoop {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* ===================================
   Carousel Animation (set/save/autoplace)
   =================================== */
.lets-carousel {
    position: relative;
    display: inline-block;
    font-family: var(--font-logo);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.2;
    min-height: 1.2em;
}

.large-carousel {
    font-size: clamp(4rem, 10vw, 8rem);
}

.lets-word {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.lets-word.active {
    position: relative;
    opacity: 1;
    transform: translateY(0);
}

.lets-word.exit {
    opacity: 0;
    transform: translateY(-20px);
}

/* ===================================
   Elements
   =================================== */
.flagship-jump {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.flagship-hint {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: var(--color-text-light);
    text-transform: uppercase;
}

/* Jump Button */
.jump-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.jump-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(4px);
}

.jump-arrow {
    width: 24px;
    height: 24px;
    background: var(--color-accent);
    border-radius: 50%;
    color: #003E4E;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Autoplace Logo */
.autoplace-logo-svg {
    max-width: 320px;
    width: 80%;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px rgba(75, 184, 216, 0.4));
}

/* New Text Logo Style for Hero - Significantly LARGER */
.flagship-text-logo {
    display: inline-block;
    font-family: var(--font-body);
    /* DM Sans */
    font-weight: 300;
    /* Light */
    /* Reduced text size by 25% while maintaining box size */
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    color: #FFFFFF;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    line-height: 1;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 1.1rem 3.5rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: normal;
    box-sizing: border-box;
}

.flagship-text-logo:hover {
    color: var(--color-accent);
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(75, 184, 216, 0.4);
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.05);
}



/* Fix Hero Vertical Spacing - Push content down */
#home.scene,
#autoplace-intro.scene {
    padding-top: 15vh;
}

.autoplace-tagline {
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.1em;
    text-transform: lowercase;
    /* Lowercase as requested */
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

/* Scroll Sequence Title */
.scroll-sequence-title h2,
.scroll-sequence-title .text-box {
    display: inline-block;
    background: none;
    color: #FFFFFF;
    padding: 0;
    border-radius: 0;
    font-size: clamp(5rem, 12vw, 10rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1;
}

.scroll-hint {
    font-size: 3rem;
    opacity: 0.6;
}

@keyframes bounceDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

/* Back to Top Arrow */
.back-to-top {
    display: inline-block;
    font-size: 2.5rem;
    color: var(--color-text-muted);
    text-decoration: none;
    margin-top: 2rem;
    opacity: 0.5;
    transition: all 0.3s ease;
    cursor: pointer;
}

.back-to-top:hover {
    opacity: 1;
    transform: translateY(-5px);
    color: var(--color-accent);
}

/* CTA Buttons - Redesigned */
.card-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    /* Centered Text */
    text-decoration: none;
    color: var(--color-text-dark);
    font-size: 0.95rem;
    font-weight: 600;
    /* Pill Shape Padding */
    padding: 1rem 2rem;
    border: 1px solid rgba(10, 42, 62, 0.2);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.15);
    transition: all var(--transition-medium);
}

.card-btn:hover {
    background: var(--color-text-dark);
    color: var(--color-text);
    border-color: var(--color-text-dark);
    transform: translateY(-2px);
}

.card-btn-wire {
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.card-btn-wire:hover {
    background: white;
    color: var(--color-text-dark);
}

.card-btn-accent {
    border: 2px solid var(--color-accent);
    background: rgba(75, 184, 216, 0.15);
    color: white;
    box-shadow: 0 0 15px rgba(75, 184, 216, 0.2);
}

.card-btn-accent:hover {
    background: var(--color-accent);
    color: var(--color-text-dark);
    box-shadow: 0 0 25px rgba(75, 184, 216, 0.4);
}

.btn-get-started {
    background: var(--color-text-dark);
    color: white;
}

.btn-get-started:hover {
    background: var(--color-accent) !important;
    color: var(--color-text-dark) !important;
}

.btn-back {
    background: var(--color-accent);
    color: white;
}

.btn-back:hover {
    background: var(--color-text-dark) !important;
    color: white !important;
}


/* ===================================
   Pricing Section
   =================================== */
.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    width: 350px;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.12);
}

.pricing-card.featured {
    border-color: var(--color-accent);
    box-shadow: 0 0 30px rgba(75, 184, 216, 0.2);
}

.price-type {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.price-amount {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1.5rem;
    color: white;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}

.price-amount span {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--color-text-muted);
}

.pricing-card p {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

/* ===================================
   Scroll-Driven Use Cases
   =================================== */
.scene-use-case {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.use-case-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    width: 100%;
    align-items: center;
    opacity: 0;
    transform: scale(0.9) translateY(40px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scene.active .use-case-container {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.use-case-info {
    text-align: left;
}

.use-case-info h3 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.use-case-info p {
    font-size: 1.2rem;
    max-width: 500px;
    line-height: 1.6;
}

.use-case-features {
    list-style: none;
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.use-case-features li {
    padding: 0.5rem 1rem;
    border: 1px solid currentColor;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
}

.use-case-visual {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: visible;
    /* Changed to visible to allow button to hang off */
    transition: transform 0.5s ease;
    display: flex;
    flex-direction: column;
}

.scene.active .use-case-visual {
    transform: scale(1.02);
}

.use-case-visual.left {
    order: -1;
}

.visual-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
}

.use-case-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.tutorial-jump-btn {
    position: absolute;
    bottom: -1.5rem;
    right: 2rem;
    z-index: 10;
    pointer-events: all;
    background: var(--color-accent);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(75, 184, 216, 0.3);
    transition: all 0.3s ease;
    border: none;
}

.tutorial-jump-btn:hover {
    background: var(--color-text-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.use-case-visual.left .tutorial-jump-btn {
    right: auto;
    left: 2rem;
}

.visual-placeholder::after {
    content: 'Interactive Visual';
    opacity: 0.5;
    font-weight: 600;
}

/* ===================================
   Tutorial Detail Pages
   =================================== */
.video-frame-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.video-frame-placeholder::before {
    content: '▶';
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.5);
    opacity: 0.3;
    /* Faded back since we have overlay */
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.coming-soon-overlay {
    background: rgba(10, 42, 62, 0.85);
    backdrop-filter: blur(8px);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(75, 184, 216, 0.3);
    max-width: 80%;
    position: absolute;
    z-index: 5;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.coming-soon-overlay h3 {
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.coming-soon-overlay p {
    color: white;
    font-size: 0.95rem;
    margin-bottom: 0;
    opacity: 0.9;
    line-height: 1.4;
}

.video-frame-placeholder:hover::before {
    transform: scale(1.1);
    opacity: 1;
}

.video-frame-placeholder span {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.back-btn:hover {
    opacity: 1;
    transform: translateX(-5px);
    color: var(--color-accent);
}

.tutorial-detail-content {
    text-align: left;
}

.tutorial-detail-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    color: white;
}

.tutorial-detail-content p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    max-width: 600px;
}

/* ===================================
   Services Section
   =================================== */
.services-grid-single {
    display: flex;
    justify-content: center;
    width: 100%;
}

.service-card-large {
    max-width: 800px;
    padding: 5rem;
    text-align: center;
}

.service-card .service-label {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 2rem;
    display: block;
    text-transform: lowercase;
}

.service-card p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all var(--transition-medium);
}

.arrow-circle {
    width: 60px;
    height: 60px;
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-top: 4rem;
    z-index: 20;
}

.arrow-circle:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background: white;
    color: #003E4E;
}

.service-link:hover {
    gap: 1rem;
    color: white;
}

/* ===================================
   About Section - Light Blue Brightening
   =================================== */
.about-heading {
    color: #FFFFFF;
    font-size: clamp(3rem, 5vw, 4rem);
}

.about-text p {
    font-size: 1.25rem;
    color: #FFFFFF;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* ===================================
   Vector Graphics & Shapes
   =================================== */
.vector-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.vector-shape {
    position: absolute;
    opacity: 0.4;
}

/* Shapes */
.shape-circle {
    width: 400px;
    height: 400px;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    top: 5%;
    right: 5%;
    animation: breathe 8s infinite ease-in-out;
}

.shape-circle-2 {
    width: 300px;
    height: 300px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    bottom: 10%;
    right: 15%;
    animation: spinSlow 25s infinite reverse linear;
}

.shape-plus {
    font-size: 20rem;
    color: var(--color-accent);
    bottom: 5%;
    left: 5%;
    /* Faster pulse for more presence */
    animation: pulseScale 5s infinite;
    font-weight: 100;
}

.shape-plus-2 {
    font-size: 12rem;
    color: var(--color-accent-light);
    top: 15%;
    left: 10%;
    font-weight: 300;
    opacity: 0.1;
    animation: pulseScale 7s infinite alternate;
}

.shape-line {
    width: 300px;
    height: 3px;
    background: currentColor;
    bottom: 20%;
    right: 20%;
    transform: rotate(-30deg);
    opacity: 0.1;
}

.shape-ring {
    width: 500px;
    height: 500px;
    border: 1px dashed rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spinSlow 20s infinite linear;
}

/* Animated Dots (Pulse Animation) */
.shape-dots {
    width: 100%;
    height: 100%;
    background-image: radial-gradient(currentColor 2px, transparent 2px);
    background-size: 50px 50px;
    opacity: 0.1;
    animation: dotsPulse 6s ease-in-out infinite alternate;
}

.shape-x::before {
    content: '×';
    font-size: 15rem;
    color: white;
    opacity: 0.15;
    position: absolute;
    top: 10%;
    left: 10%;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid rgba(255, 255, 255, 0.1);
    top: 20%;
    left: 15%;
    animation: floatSlow 10s infinite ease-in-out;
}

.shape-circle-small {
    width: 100px;
    height: 100px;
    border: 4px solid var(--color-text-dark);
    border-radius: 50%;
    top: 60%;
    right: 10%;
    opacity: 0.1;
}

.shape-circle-small-fill {
    width: 80px;
    height: 80px;
    background: var(--color-accent);
    border-radius: 50%;
    top: 30%;
    right: 40%;
    opacity: 0.2;
    animation: pulseScale 6s infinite;
}

.shape-plus-small {
    font-size: 5rem;
    color: var(--color-text-dark);
    top: 15%;
    right: 15%;
    opacity: 0.1;
}

.shape-ring-small {
    width: 150px;
    height: 150px;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    bottom: 20%;
    left: 40%;
    opacity: 0.3;
}

.shape-dashed-line {
    width: 400px;
    height: 2px;
    border-bottom: 2px dashed var(--color-text-dark);
    top: 40%;
    left: -50px;
    transform: rotate(15deg);
    opacity: 0.15;
}

.shape-dots-cluster {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(var(--color-accent) 2px, transparent 2px);
    background-size: 20px 20px;
    bottom: 10%;
    left: 10%;
    opacity: 0.3;
}

.shape-x-small::before {
    content: '+';
    font-size: 8rem;
    color: var(--color-text-dark);
    position: absolute;
    top: 30%;
    left: 20%;
    transform: rotate(45deg);
    opacity: 0.1;
}

/* Animations */
@keyframes spinSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes breathe {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.6;
    }
}

@keyframes pulseScale {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.15;
    }

    50% {
        transform: scale(1.2) rotate(5deg);
        opacity: 0.4;
    }
}

@keyframes floatSlow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes dotsPulse {
    0% {
        opacity: 0.1;
        transform: scale(1);
    }

    100% {
        opacity: 0.25;
        transform: scale(1.05);
    }
}

/* Letter Hover & Carousel */
.hover-letter {
    display: inline-block;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), text-shadow 0.25s ease;
    cursor: default;
}

.hover-letter:hover {
    transform: scale(1.25) translateY(-3px);
    text-shadow: 0 0 30px rgba(92, 197, 229, 0.6);
}

.hover-letter.letter-space {
    width: 0.3em;
}

/* Updated Let's Section Layout - Centered */
.scene-split {
    display: flex;
    gap: 4rem;
    align-items: center;
    justify-content: center;
    text-align: left;
    max-width: 1200px;
    width: 100%;
}

.centered-layout {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
}

.centered-carousel {
    align-items: center;
    width: 100%;
}

.centered-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.lets-side {
    display: flex;
    flex-direction: column;
}

.lets-static {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1;
}

.lets-carousel {
    position: relative;
    height: clamp(3.5rem, 8vw, 5.5rem);
    overflow: hidden;
}

.large-carousel {
    height: clamp(6.5rem, 13vw, 10.4rem);
    margin-bottom: 2rem;
    width: 100%;
}

.lets-word {
    position: absolute;
    width: 100%;
    left: 0;
    text-align: center;
    /* Centering the word */
    font-size: clamp(5.2rem, 11.7vw, 7.8rem);
    font-weight: 700;
    color: var(--color-text-dark);
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    line-height: 1;
}

.lets-word.active {
    opacity: 1;
    transform: translateY(0);
}

.lets-word.exit {
    opacity: 0;
    transform: translateY(-100%);
}

.service-side {
    padding: 2rem 0;
}

.service-side h4 {
    color: var(--color-text-dark);
    margin-bottom: 1.5rem;
}

.service-side p {
    font-size: 1.15rem;
    color: var(--color-text-dark);
    line-height: 1.85;
    font-weight: 400;
    max-width: 800px;
}

/* Misc */
.hero-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.hero-card {
    padding: 3rem;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    /* Updated centering logic */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-medium);
}

.hero-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 20px 50px rgba(0, 62, 78, 0.15);
}

.hero-card-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-dark-muted);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-card h3 {
    color: var(--color-text-dark);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.hero-card-featured {
    width: 100%;
    max-width: 800px;
    padding: 4rem;
    margin: 0 auto;
}

.flagship-text-logo-dark {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    color: var(--color-text-dark);
    margin: 1rem 0 2rem;
    letter-spacing: 0.05em;
    font-family: var(--font-body);
    font-weight: 300;
}

@media (max-width: 768px) {
    .hero-card-featured {
        padding: 2.5rem 1.5rem;
    }
}

/* ===================================
   Footer - Fixed Visibility
   =================================== */
.footer {
    padding: 2rem 3rem;
    /* Reduced padding for smaller height */
    margin-top: auto;
    position: relative;
    z-index: 100;
    width: 100%;
    scroll-snap-align: end;
    /* Ensure footer can be snapped/scrolled to */
}


.footer-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    /* Reduced gap */
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Center vertically */
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.footer-logo {
    font-family: var(--font-logo);
    font-size: 1.5rem;
    color: white;
}

/* Removed specific social style if not used, but keeping generic just in case */

.footer-section {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
    /* Align items centered */
}

.footer-links-group {
    display: flex;
    flex-direction: column;
}

.footer-links-label {
    display: none;
    /* Hide labels as requested for 'one line' look */
}

/* Updated to Flex Row */
.footer-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    /* Consistent spacing */
    align-items: center;
}

.footer-links-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    white-space: nowrap;
    /* Prevent line breaks within links */
}

.footer-links-list a:hover {
    color: white;
    transform: translateY(-2px);
    /* Slight lift */
}


/* Responsive Adjustments */
@media (max-width: 1200px) {

    /* Handling 'desktop but not full screen' (split screen range) */
    .use-case-container,
    .hero-cards,
    .pricing-grid {
        /* Force single column sooner to avoid squashed layout in split view */
        grid-template-columns: 1fr;
        gap: 3rem;
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .use-case-visual.left {
        order: 0;
    }

    .use-case-info {
        text-align: center;
        margin: 0 auto;
    }

    /* Reveal geometric shapes on smaller screens */
    .vector-shape {
        display: block;
        opacity: 0.1;
    }

    .scene-split {
        flex-direction: column;
        text-align: center;
    }

    .tutorial-grid {
        justify-content: center;
    }
}

/* Intermediate shrink for nav to keep it on one line */
@media (max-width: 1400px) {
    .nav {
        padding: 1rem 2rem;
    }

    .nav-logo {
        font-size: 1.5rem;
    }

    .nav-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 1024px) {
    .nav {
        padding: 1rem 2rem;
    }

    .scene {
        padding: 6rem 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-lg: 2.5rem;
    }

    /* Disable scroll snapping on mobile to prevent stuck sections */
    .scroll-container {
        scroll-snap-type: none;
        height: auto;
        overflow-y: visible;
    }

    body {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .scene {
        min-height: auto;
        padding: 5rem 1.5rem;
        scroll-snap-align: none;
    }

    /* Target the first section (Header/Hero) of every page */
    .scene:first-of-type,
    .scene-title-slide {
        padding-top: 9rem !important;
        /* Extra padding to clear the fixed nav */
        padding-bottom: 6rem;
    }

    /* Target specifically the mechanics section which has an anchor link */
    #mechanics {
        padding-top: 10rem !important;
    }

    #mechanics .centered-layout {
        gap: 0.5rem;
        /* Bring carousel closer to text */
    }

    .nav {
        padding: 0.8rem 1.5rem;
    }

    .nav-logo {
        font-size: 1.25rem;
        flex-shrink: 0;
    }

    .nav-links {
        gap: 0.5rem;
    }

    .nav-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }

    .nav-cta {
        padding: 0.4rem 0.8rem;
    }

    .title-slide-text {
        font-size: clamp(3rem, 15vw, 6rem) !important;
    }

    .headline-small {
        margin-bottom: 0.5rem;
        /* Fix leading on mobile specifically */
    }

    .headline-large {
        font-size: clamp(2.5rem, 10vw, 4rem);
        line-height: 1.1;
    }

    .hero-subtext {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .flagship-text-logo {
        padding: 1rem 2rem;
        font-size: 1.25rem;
        width: 100%;
        max-width: 300px;
    }

    .hero-cards {
        gap: 1.5rem;
        padding: 0;
    }

    .hero-card {
        padding: 2.5rem 1.5rem;
    }

    .pricing-card {
        width: 100%;
        max-width: 400px;
        padding: 2.5rem 1.5rem;
    }

    .use-case-container {
        gap: 2.5rem;
    }

    .use-case-info h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .arrow-circle {
        width: 50px;
        height: 50px;
        margin: 2rem auto 0;
        /* Centered with margin */
        font-size: 1.5rem;
    }

    .lets-carousel {
        height: 4rem;
    }

    .large-carousel {
        height: 6rem;
    }

    .lets-word {
        font-size: 3rem;
    }

    .use-case-visual {
        aspect-ratio: 4/3;
    }

    .tutorial-card {
        width: 100%;
        max-width: 320px;
    }

    .footer {
        padding: 3rem 1.5rem;
    }

    .footer-brand {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .footer-grid {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-section {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    .footer-links-list {
        justify-content: center;
        gap: 1rem;
    }

    /* Hide cursor spotlight on mobile as it's for mouse only */
    .cursor-spotlight {
        display: none;
    }

    /* Fix for large titles on autoplace page */
    .autoplace-logo-svg {
        max-width: 240px;
    }

    .autoplace-tagline {
        font-size: 0.85rem;
        padding: 0 1rem;
    }

    /* Make blobs more subtle on mobile */
    .blob-container {
        opacity: 0.2;
    }

    .blob {
        filter: blur(120px);
    }

    .hero-card-large-center {
        padding: 4rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 0.75rem 1rem;
    }

    .nav-container {
        flex-direction: row;
        /* Keep it one deck as long as possible */
        justify-content: space-between;
        gap: 0.5rem;
    }

    .nav-logo {
        position: static;
        font-size: 1.1rem;
    }

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

    .nav-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }

    .nav-cta {
        padding: 0.35rem 0.75rem;
    }

    /* For extremely small phones, allow stacking to avoid overlap */
    @media (max-width: 360px) {
        .nav-container {
            flex-direction: column;
            gap: 0.5rem;
        }

        .nav-logo {
            font-size: 1.25rem;
        }
    }

    .title-slide-text {
        font-size: 3rem !important;
    }

    .hero-card h3 {
        font-size: 1.5rem;
    }
}

/* Large Centered Flagship Card */
.hero-card-large-center {
    padding: 6rem 4rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-card-large-center .flagship-text-logo-dark {
    font-family: var(--font-body);
    font-weight: 300;
    letter-spacing: 0.05em;
    font-size: clamp(3rem, 6vw, 5.5rem);
    margin-bottom: 2rem;
    display: block;
    width: 100%;
    color: var(--color-text-dark);
    line-height: 1;
}

.hero-card-large-center p {
    font-size: 1.25rem;
    color: var(--color-text-dark-muted);
    margin-bottom: 3rem;
}

/* Responsive Pricing Text */
.price-tag-large {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    color: var(--color-text-dark);
    margin: 0;
    font-size: clamp(3rem, 15vw, 6rem);
    line-height: 1;
    white-space: nowrap;
    display: block;
    width: 100%;
    text-align: center;
}

.price-tag-large span {
    font-size: 0.55em;
    vertical-align: middle;
    margin-left: -0.1em;
}

/* ===================================
   Pricing Grid & Cards
   =================================== */
.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    width: 380px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, background 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pricing-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.pricing-card.featured {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid var(--color-accent);
}

.price-type {
    font-size: 0.9rem;
    color: var(--color-accent);
    letter-spacing: 0.2em;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2rem;
    font-family: var(--font-body);
}

.price-amount span {
    font-size: 1.2rem;
    opacity: 0.6;
    font-weight: 400;
}

.pricing-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ===================================
   New Home Animations
   =================================== */

/* Rolling Wave Animation for 'awaio' */
.wave-text span {
    display: inline-block;
    transform-origin: bottom center;
    /* 6s total: ~1s active, 5s pause */
    animation: wave 6s ease-in-out infinite;
}

.wave-text span:nth-child(1) {
    animation-delay: 0.0s;
}

.wave-text span:nth-child(2) {
    animation-delay: 0.1s;
}

.wave-text span:nth-child(3) {
    animation-delay: 0.2s;
}

.wave-text span:nth-child(4) {
    animation-delay: 0.3s;
}

.wave-text span:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes wave {

    0%,
    10%,
    100% {
        transform: scale(1);
    }

    5% {
        transform: scale(1.35);
    }
}

/* Bounce for Awaio Text Only */
.bounce-vertical {
    animation: bounceVertical 4s ease-in-out infinite;
}

@keyframes bounceVertical {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* ===================================
   New Product Card Styles (Reduced Size)
   =================================== */
.products-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.product-card {
    flex: 1 1 40%;
    /* ~40-45% width */
    max-width: 500px;
    min-width: 320px;
    padding: 3rem 2rem;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

/* Mobile Responsiveness for Product Cards to match existing breakpoints */
@media (max-width: 900px) {
    .products-row {
        /* Keep row layout but allow wrap if needed, ensure centering */
        justify-content: center;
    }

    .product-card {
        /* On smaller tablets/large phones, maybe stack or keep side-by-side if small enough */
        flex: 1 1 100%;
        max-width: 600px;
    }
}

@media (min-width: 901px) {
    .product-card {
        /* Ensure they are side-by-side on desktop */
        margin-bottom: 0;
    }
}