/* ====================================
   CSS CUSTOM PROPERTIES
   ==================================== */
:root {
    --color-dark-navy: #0f172a;
    --color-deep-blue: #27267e;
    --color-green: #10b981;
    --color-light-bg: #f8fafc;
    --color-light-grey: #e2e8f0;
    --color-medium-grey: #94a3b8;
    --color-text: #334155;
    --color-white: #ffffff;
    --color-grey-bg: #f5f5f5;
    --color-dark-grey-bg:#efefef; 

    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;

    --container-max: 1200px;
    --container-padding: 2.5rem;
    --container-padding-tablet: 2rem;
    --container-padding-mobile: 1.25rem;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

    --transition: all 0.3s ease;
}

/* ====================================
   GLOBAL STYLES
   ==================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-grey-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-dark-navy);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    overflow-wrap: break-word;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    overflow-wrap: break-word;
}

a {
    color: var(--color-deep-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-green);
}

ul {
    list-style: none;
}

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

/* ====================================
   CONTAINER
   ==================================== */
.container {
    max-width: var(--container-max);
    width: 100%;
    padding: 0 var(--container-padding);
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .container {
        padding: 0 var(--container-padding-tablet);
    }

    .product-stack__container {
        padding: 0 var(--container-padding-tablet);
    }

    .header-wrapper {
        padding: 0 var(--container-padding-tablet);
    }

    .header.scrolled .header-wrapper {
        padding: 0.85rem var(--container-padding-tablet);
    }
}

/* ====================================
   HEADER & NAVIGATION
   ==================================== */
.header {
    padding: 1.5rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: transparent;
    z-index: 1000;
    transition: padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}


.header.scrolled {
    padding: 1.5rem;
    background-color: transparent;
    box-shadow: none;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    transition: all 0.3s ease;
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto 2.5rem auto;
    padding: 0 var(--container-padding);
}

.header.scrolled .header-wrapper {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    max-width: var(--container-max);
    width: 100%;
    padding: 0.85rem var(--container-padding);
    box-shadow: none;
    gap: 2.5rem;
    margin-bottom: 1.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark-blue);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.logo-img {
    height: 28px;
    width: auto;
    display: block;
    transition: all 0.3s ease;
}

.header.scrolled .logo-img {
    height: 24px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-dark-navy);
    transition: all 0.3s ease;
}

.header.scrolled .logo-text {
    font-size: 1.1rem;
}

.logo:hover {
    opacity: 0.8;
}

.navbar {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 0.75rem 2rem;
    box-shadow: var(--shadow-sm);
    flex: 0 1 auto;
    transition: all 0.3s ease;
}

.header.scrolled .navbar {
    background-color: var(--color-white);
    box-shadow: none;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-lg);
}

.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    transition: var(--transition);
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--color-deep-blue);
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background-color: var(--color-dark-navy);
    margin: 3px 0;
    transition: var(--transition);
}

/* ====================================
   BUTTONS
   ==================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-green);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #059669;
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-deep-blue);
    border: 2px solid var(--color-deep-blue);
}

.btn-secondary:hover {
    background-color: var(--color-deep-blue);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-nav {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.btn-contact {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    flex-shrink: 0;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.header.scrolled .btn-contact {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

.btn-email {
    font-size: 1rem;
}

/* ====================================
   HERO SECTION
   ==================================== */
.hero {
    padding: var(--spacing-xl) 0;
    margin-top: 100px;
}

.hero--small {
    padding: var(--spacing-lg) 0;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
    gap: 4rem;
    align-items: center;
    padding: 0 1.5rem;
}

.hero-copy {
    max-width: 600px;
}

.hero-copy h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 2rem;
}

.underline {
    border-bottom: 5px solid var(--color-green);
    padding-bottom: 1px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.highlight {
    background: var(--color-deep-blue);
    padding: 0 4px;
    border-radius: 4px;
    color: #ffffff;
}

.hero-animations {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
}

.hero-card {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Big primary card - main focal point */
.hero-card--primary {
    grid-column: 1;
    animation: heroFloatPrimary 7s ease-in-out infinite alternate;
}

/* Secondary mini cards - underneath main card */
.hero-card--secondary {
    animation: heroFloatSecondary 6s ease-in-out infinite alternate;
    position: relative;
}

.hero-card--top-right {
    grid-column: 1;
    animation-delay: 0.8s;
    top: -20px;
}

.hero-card--bottom-right {
    grid-column: 1;
    animation-delay: 1.6s;
    top: 20px;
}

/* Gentle float animations */
@keyframes heroFloatPrimary {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-10px);
    }
}

@keyframes heroFloatSecondary {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-12px);
    }
}

/* Desktop layout - PlateWorth on top, mini cards underneath */
@media (min-width: 700px) {
    .hero-animations {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .hero-card--primary {
        grid-column: 1 / -1;
        max-width: 100%;
    }

    .hero-card--top-right {
        grid-column: 1;
        top: -30px;
    }

    .hero-card--bottom-right {
        grid-column: 2;
        top: 30px;
    }
}

/* Tablet: tighten hero stack so cards stay tidy when nav collapses */
@media (max-width: 910px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-animations {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto;
        gap: 1.25rem;
    }

    .hero-card {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-card--primary,
    .hero-card--secondary {
        top: 0;
    }

    .hero-card--secondary .mini-card {
        padding: 1rem;
    }
}

/* ====================================
   MINI CARDS
   ==================================== */

.mini-card {
    background: var(--color-white);
    border-radius: 1rem;
    padding: 1.15rem 1.25rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    font-size: 0.85rem;
    border: 1px solid var(--color-light-grey);
}

.mini-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.7rem;
}

.mini-chip {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: var(--color-deep-blue);
    color: var(--color-white);
}

/* Relationships Card */
.mini-card--relationships .mini-chip {
    background: var(--color-deep-blue);
}

.mini-score {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-green);
    transition: all 0.45s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.mini-bar {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: var(--color-light-grey);
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.mini-bar-fill {
    height: 100%;
    width: 60%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-green), #34d399);
    transition: width 0.7s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.mini-chat {
    min-height: 38px;
    display: flex;
    align-items: center;
}

.chat-bubble {
    display: inline-block;
    max-width: 100%;
    padding: 0.45rem 0.75rem;
    border-radius: 0.85rem;
    background: var(--color-light-bg);
    color: var(--color-text);
    font-size: 0.75rem;
    line-height: 1.45;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.chat-bubble.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Journal Card */
.mini-card--journal .mini-chip {
    background: var(--color-green);
}

.mini-mood {
    font-weight: 600;
    color: var(--color-deep-blue);
    font-size: 0.8rem;
    transition: all 0.35s ease;
}

.mini-timeline {
    display: flex;
    gap: 0.5rem;
    margin: 0.5rem 0 0.7rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--color-light-grey);
    transition: background 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dot.is-active {
    background: var(--color-deep-blue);
    transform: scale(1.35);
}

.mini-note {
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--color-medium-grey);
    transition: opacity 0.35s ease;
}

.product-logo {
    margin-bottom: 2rem;
}

.plateworth-logo {
    height: 60px;
    width: auto;
    display: block;
}

/* ====================================
   VALUATION CARD
   ==================================== */
.valuation-card {
    background: linear-gradient(135deg, var(--color-white) 0%, #fefefe 100%);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-light-grey);
    animation: slideInUp 0.8s ease-out;
    max-height: 100%;
    width: 100%;
    max-width: 100%;
}

/* PlateWorth Branding */
.valuation-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-light-grey);
}

.plateworth-logo-hero {
    height: 20px;
    width: auto;
}

.plateworth-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-deep-blue);
    letter-spacing: -0.02em;
}

/* Hero version of valuation card - horizontal rectangle format */
.valuation-card--hero {
    max-width: 100%;
    display: grid;
    grid-template-columns: auto 1fr 1.2fr;
    grid-template-rows: auto auto auto;
    gap: 1rem 2rem;
    align-items: start;
}

.valuation-card--hero .valuation-brand {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

.valuation-card--hero .valuation-header {
    grid-column: 1;
    grid-row: 2;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0;
}

.valuation-card--hero .valuation-divider {
    display: none;
}

.valuation-card--hero .valuation-values {
    grid-column: 2;
    grid-row: 1 / 3;
    margin-bottom: 0;
    align-self: center;
}

.valuation-card--hero .valuation-graph {
    grid-column: 3;
    grid-row: 1 / 3;
    margin-bottom: 0;
    width: 100%;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.valuation-card--hero .valuation-graph svg {
    max-height: 100px;
    width: 100%;
}

.valuation-card--hero .valuation-footer {
    grid-column: 1 / -1;
    grid-row: 3;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--color-light-grey);
}

.valuation-card--large {
    padding: 2.5rem;
    max-width: 600px;
    margin: 2rem auto;
}

.valuation-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.plate-state {
    background-color: var(--color-deep-blue);
    color: var(--color-white);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    animation: fadeInLeft 0.6s ease-out 0.3s both;
    transition: transform 0.1s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
    transform-origin: center;
    min-width: 3.5rem;
    text-align: center;
}

.plate-number {
    background: var(--color-light-bg);
    color: var(--color-dark-navy);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    animation: fadeInRight 0.6s ease-out 0.4s both;
    transition: transform 0.1s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
    transform-origin: center;
    min-width: 5rem;
    text-align: center;
}

/* Divider */
.valuation-divider {
    height: 1px;
    background: var(--color-light-grey);
    margin-bottom: 1.25rem;
}

.valuation-values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.hero-card .valuation-values {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    animation: fadeInUp 0.6s ease-out both;
}

.value-item:nth-child(1) {
    animation-delay: 0.5s;
}

.value-item:nth-child(2) {
    animation-delay: 0.6s;
}

.value-item:nth-child(3) {
    animation-delay: 0.7s;
}

.value-item--primary {
    transform: none;
}

.value-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-medium-grey);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.value-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-dark-navy);
    transition: color 0.3s ease;
    font-variant-numeric: tabular-nums;
}

.value-item--primary .value-amount {
    font-size: 1.5rem;
    color: var(--color-green);
}

.value-desc {
    display: block;
    font-size: 0.75rem;
    color: var(--color-medium-grey);
}

/* Graph */
.valuation-graph {
    margin-bottom: 1.25rem;
    overflow: visible;
    border-radius: 8px;
}

.valuation-graph svg {
    display: block;
    width: 100%;
    height: auto;
}

.graph-line {
    fill: none;
    stroke: var(--color-green);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: points 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.graph-fill {
    transition: points 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.graph-point {
    fill: var(--color-white);
    stroke: var(--color-green);
    stroke-width: 2;
    transition: cy 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.graph-point-avg {
    fill: var(--color-green);
}

.valuation-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--color-light-grey);
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--color-medium-grey);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 6px 12px;
    background: var(--color-light-bg);
    border-radius: 20px;
}

.ai-badge::before {
    content: "✨";
    font-size: 12px;
}

.valuation-date {
    font-size: 0.85rem;
    color: var(--color-medium-grey);
}

@media (max-width: 1024px) {
    .valuation-values {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-card .valuation-values {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .value-amount,
    .graph-line,
    .graph-fill,
    .graph-point {
        transition: none !important;
    }

    /* Disable hero card animations */
    .hero-card--primary,
    .hero-card--secondary {
        animation: none !important;
    }

    .chat-bubble,
    .mini-score,
    .mini-bar-fill,
    .mini-mood,
    .dot,
    .mini-note {
        transition: none !important;
    }
}

/* ====================================
   SECTIONS
   ==================================== */
.section {
    padding: var(--spacing-lg) 1.5rem;
}

.section--alt {
    background-color: var(--color-white);
}

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

.section-intro h2 {
    margin-bottom: 1rem;
}

.section-intro p {
    font-size: 1.1rem;
    color: var(--color-text);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

/* ====================================
   CARDS
   ==================================== */
.card {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--color-light-grey);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

/* Feature Cards */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-card {
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* What We Do Section - Central Image with Bubbles */
.what-we-do-section {
    padding: 2rem 0 2.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.what-we-do-section .section-intro {
    margin-bottom: 0.25rem;
}

.what-we-do-section .section-intro p {
    margin-bottom: 0;
}

.what-we-do-container {
    position: relative;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    padding: 0.5rem;
}

.central-image {
    position: relative;
    width: 420px;
    height: 420px;
    border-radius: 12px;
    overflow: hidden;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.central-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.info-bubble {
    position: absolute;
    background: var(--color-white);
    border-radius: 50%;
    width: 260px;
    height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    z-index: 1;
}

.info-bubble:hover {
    transform: scale(1.08) translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    z-index: 3;
}

.bubble-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.info-bubble h3 {
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
    color: var(--color-dark-navy);
}

.info-bubble p {
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.5;
    margin: 0;
}

/* Bubble Positioning - Desktop */
.bubble-1 {
    top: 20px;
    right: 20px;
    background: var(--color-white);
    animation: bubbleFloat1 7s ease-in-out infinite;
}

.bubble-2 {
    bottom: 20px;
    left: 20px;
    background: var(--color-white);
    animation: bubbleFloat2 8s ease-in-out infinite;
}

.bubble-3 {
    bottom: 20px;
    right: 20px;
    background: var(--color-white);
    animation: bubbleFloat3 9s ease-in-out infinite;
}

.bubble-4 {
    top: 20px;
    left: 20px;
    background: var(--color-white);
    animation: bubbleFloat4 6.5s ease-in-out infinite;
}

@keyframes bubbleFloat1 {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-10px, 10px);
    }
}

@keyframes bubbleFloat2 {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(10px, -10px);
    }
}

@keyframes bubbleFloat3 {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-10px, -10px);
    }
}

@keyframes bubbleFloat4 {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(10px, 10px);
    }
}

/* Solutions Grid - All cards visible */
.solutions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 0 auto;
}

.solution-card {
    position: relative;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    padding: 4rem 2rem 2rem;
}

.solution-card--plateworth {
    background: var(--color-white);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.15), 0 0 0 2px var(--color-green);
}

.solution-card--future {
    background: var(--color-dark-grey-bg);
}

@media (min-width: 768px) {
    .solutions-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        max-width: 1400px;
    }
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.product-card {
    position: relative;
}

.product-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background-color: var(--color-green);
    color: var(--color-white);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.product-badge--future {
    background-color: var(--color-deep-blue);
}

.product-subtitle {
    color: var(--color-deep-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Apple-Style Horizontal Scroll */
.products-scroll-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.products-scroll-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* Center first card: padding-left centers it, padding-right shows peek */
    padding-left: calc((100vw - 500px) / 2);
    padding-right: calc((100vw - 500px) / 2);
    padding-bottom: 1.5rem;
    padding-top: 0.5rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.products-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.product-scroll-card {
    min-width: 500px !important;
    max-width: 500px !important;
    width: 500px;
    flex-shrink: 0 !important;
    flex-grow: 0;
    scroll-snap-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    display: block;
}

.product-scroll-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* Responsive adjustments for horizontal scroll */
@media (max-width: 1200px) {
    .products-scroll-container {
        padding-left: calc((100vw - 450px) / 2);
        padding-right: calc((100vw - 450px) / 2);
    }

    .product-scroll-card {
        min-width: 450px;
        max-width: 450px;
    }
}

@media (max-width: 768px) {
    .products-scroll-container {
        padding-left: 2rem;
        padding-right: 2rem;
        gap: 1.5rem;
    }

    .product-scroll-card {
        min-width: calc(100vw - 6rem);
        max-width: calc(100vw - 6rem);
        scroll-snap-align: start;
    }
}

@media (max-width: 480px) {
    .products-scroll-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        gap: 1rem;
    }

    .product-scroll-card {
        min-width: calc(100vw - 4rem);
        max-width: calc(100vw - 4rem);
    }
}

.product-features {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.feature-tag {
    background-color: var(--color-light-bg);
    color: var(--color-deep-blue);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Future Cards */
.future-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.future-card {
    text-align: center;
}

.future-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Benefit Cards */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.benefit-number {
    width: 50px;
    height: 50px;
    background-color: var(--color-deep-blue);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.benefit-card ul {
    list-style: disc;
    list-style-position: inside;
    color: var(--color-text);
}

.benefit-card ul li {
    margin-bottom: 0.5rem;
}

/* Founder Cards */
.founders-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.founder-card {
    text-align: center;
}

.founder-avatar {
    margin-bottom: 1.5rem;
}

.avatar-placeholder {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--color-deep-blue), var(--color-green));
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 auto;
}

.founder-role {
    color: var(--color-deep-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Work Cards */
.how-it-works {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.work-card {
    position: relative;
    padding-left: 4.5rem;
    padding-top: 0.5rem;
}

.work-number {
    position: absolute;
    left: 1.5rem;
    top: 1.5rem;
    width: 44px;
    height: 44px;
    background-color: var(--color-green);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
}

/* ====================================
   METHODOLOGY STEPS
   ==================================== */
.methodology-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.step-card {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--color-green);
}

.step-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-green);
    margin-bottom: 1rem;
    opacity: 0.3;
}




/* ====================================
   PLATEWORTH PREVIEW
   ==================================== */
.plateworth-preview {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    align-items: center;
}

.plateworth-text h2 {
    margin-bottom: 1.5rem;
}

.plateworth-text p {
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

/* ====================================
   EXAMPLE SECTION
   ==================================== */
.example-section {
    text-align: center;
}

.example-subtitle {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 2rem;
}

/* ====================================
   MISSION & VISION
   ==================================== */
.mission-vision {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.mission-card {
    background: linear-gradient(135deg, var(--color-deep-blue), #1e1b5e);
    color: var(--color-white);
    padding: 3rem;
}

.mission-card h3 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.mission-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ====================================
   TRANSPARENCY CARD
   ==================================== */
.transparency-card {
    background-color: var(--color-light-bg);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    border-left: 4px solid var(--color-deep-blue);
    max-width: 800px;
    margin: 0 auto;
}

.transparency-card h3 {
    margin-bottom: 1rem;
}

.transparency-card p {
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ====================================
   STORY & APPROACH CONTENT
   ==================================== */
.story-content,
.approach-content,
.vision-content {
    max-width: 800px;
    margin: 0 auto;
}

.story-content p,
.vision-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.approach-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.approach-item h4 {
    color: var(--color-deep-blue);
    margin-bottom: 0.5rem;
}

.approach-item p {
    color: var(--color-text);
}

/* ====================================
   CONTACT PAGE
   ==================================== */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-main {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-location {
    margin-top: 2rem;
    font-size: 1.1rem;
    color: var(--color-medium-grey);
}

.contact-reasons {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.contact-reasons h3 {
    margin-bottom: 1.5rem;
}

.reasons-list {
    list-style: none;
}

.reasons-list li {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-light-grey);
}

.reasons-list li:last-child {
    border-bottom: none;
}

.reason-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.reasons-list strong {
    display: block;
    color: var(--color-dark-navy);
    margin-bottom: 0.25rem;
}

.reasons-list p {
    color: var(--color-medium-grey);
    margin: 0;
}

.info-card {
    background-color: var(--color-light-bg);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.info-card h3 {
    margin-bottom: 1rem;
}

.info-card p {
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ====================================
   CTA BAND
   ==================================== */
.cta-band {
    padding: 4rem 0;
    position: relative;
}

.cta-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    padding: 0 1.5rem;
}

.cta-content {
    background-color: var(--color-dark-navy);
    padding: 4rem 3rem;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 1;
    min-height: 40vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    
}

.cta-content a {
    align-self: flex-start; /* keeps button normal size */
}

.cta-content h2 {
    color: var(--color-white);
    margin-bottom: 1rem;
    font-size: 2.25rem;
}



.cta-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}



/* Desktop layout with overlapping image */
@media (min-width: 992px) {
    .cta-wrapper {
        grid-template-columns: 2fr 1.3fr;
        gap: 0;
    }

    .cta-content {
        padding: 4rem 3.5rem;
        margin-right: 0;
    }

    .cta-image-card {
        display: block;
        position: relative;
        z-index: 1;
        border-radius: 1rem;
        overflow: hidden;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
        transform: scale(1.05);
        max-width: 100%;
        max-height: auto;
        justify-self: end;
    }

    .cta-image {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 1rem;
    }
}
/* === STACKED PRODUCT SECTION === */

.product-stack {
  position: relative;
  background: var(--color-light-bg);
  padding: 4rem 0;
}

.product-stack__container {
  max-width: var(--container-max);
  width: 100%;
  padding: 0 var(--container-padding);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.product-stack__shell {
  position: relative;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
}

.product-stack__mobile {
  display: none;
}

.product-mobile-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-light-grey);
}

.product-mobile-card h3 {
  margin-bottom: 0.75rem;
}

.product-mobile-card p {
  margin-bottom: 1rem;
}

.product-mobile-card .btn {
  margin-bottom: 1.25rem;
}

.product-mobile-card .plateworth-visual {
  margin-top: 0.5rem;
}

.product-stack__mobile .future-visual-card {
  margin-top: 1rem;
  max-width: 100%;
}

/* Container that holds all overlapping cards */
.product-stack__cards {
  position: relative;
  width: 100%;
  min-height: 500px;
  max-height: 650px;
  height: 580px;
  margin: 1.5rem 0;
  grid-column: 1;
}

/* Navigation buttons */
.product-stack__nav {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-self: stretch;
  justify-content: center;
  grid-column: 2;
}

.stack-nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-white);
  border: 2px solid var(--color-deep-blue);
  color: var(--color-deep-blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stack-nav-btn:hover:not(:disabled) {
  background: var(--color-deep-blue);
  color: var(--color-white);
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(39, 38, 126, 0.3);
}

.stack-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: var(--color-medium-grey);
  color: var(--color-medium-grey);
}

.stack-nav-btn svg {
  width: 24px;
  height: 24px;
}

/* Base product card style */
.product-card {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-dark-grey-bg);
  border-radius: 1.5rem;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
  padding: 2.5rem 3rem;
  transform-origin: top left;
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition:
    transform 0.45s ease,
    opacity 0.45s ease,
    box-shadow 0.45s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Different background colors for each product card */
.product-card[data-color="plateworth"] {
  background: var(--color-white);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.22), 0 0 0 2px var(--color-green);
}

.product-card[data-color="plateworth"].is-active {
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.25), 0 0 0 3px var(--color-green);
}

.product-card[data-color="money"] {
  background: var(--color-dark-grey-bg);
}
.product-card[data-color="relationships"] {
  background: var(--color-dark-grey-bg);
}

.product-card[data-color="lifestyle"] {
  background: var(--color-dark-grey-bg);
}

/* Active front card */
.product-card.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  z-index: 30;
}

/* Cards we've already scrolled past: fade out */
.product-card.is-past {
  opacity: 0;
  transform: translateY(-40px) scale(0.96);
  z-index: 1;
  pointer-events: none;
  transition: all 0.4s ease;
}

/* Future cards: behind, slightly down */
.product-card.is-future {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  z-index: 1;
}

/* Little "previous product" chips - hidden since we use card tabs now */
.product-stack__tabs {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  display: none; /* Hidden - we show the actual cards as tabs instead */
  flex-direction: column;
  gap: 0.4rem;
  pointer-events: none;
}

.product-stack__tab {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  color: var(--color-white);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.3);
}

/* Intro section above the sticky cards */
.product-stack__intro {
  position: relative;
  z-index: 1;
  background: var(--color-light-bg);
  margin-bottom: 2rem;
  flex-shrink: 0; /* Don't shrink when space is tight */
}

/* PlateWorth card layout - side by side */
.plateworth-preview--stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
  max-width: 100%;
}

.plateworth-preview--stack .plateworth-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  padding-top: 0.5rem;
}

.plateworth-preview--stack .plateworth-text p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Make PlateWorth header compact when in tab state */
.product-card.is-past .plateworth-preview--stack .plateworth-text h2 {
  font-size: 1.5rem;
  margin-bottom: 0;
  padding-top: 0.75rem;
}

.plateworth-preview--stack .valuation-card {
  max-width: 100%;
}

/* Future card layout - vertical with header */
.future-card--stack {
  max-width: 600px;
  margin: 0 auto;
}

.future-card__header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-top: 0.5rem; /* Extra padding for tab view */
}

.future-card__header .future-icon {
  font-size: 3.5rem;
  line-height: 1;
  margin: 0;
}

.future-card__header h3 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

/* When card is in past state (tab), make header more compact */
.product-card.is-past .future-card__header {
  gap: 1rem;
  margin-bottom: 0;
}

.product-card.is-past .future-card__header .future-icon {
  font-size: 2.5rem;
}

.product-card.is-past .future-card__header h3 {
  font-size: 1.25rem;
}

.product-card.is-past .future-pill {
  font-size: 0.65rem;
  padding: 0.2rem 0.6rem;
}

.future-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-medium-grey);
  background: var(--color-light-bg);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.future-card--stack > p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.future-list {
  list-style: none;
  padding: 0;
}

.future-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
}

.future-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-deep-blue);
  font-weight: 700;
}

/* Future Visual Cards - Animated components */
.future-pill-container {
  margin-bottom: 0.5rem;
}

.future-card--stack h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-dark-navy);
}

.future-visual-card {
  background: linear-gradient(135deg, var(--color-white) 0%, #fefefe 100%);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--color-light-grey);
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}

.future-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.future-metric-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-medium-grey);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.future-metric-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-deep-blue);
  font-variant-numeric: tabular-nums;
  transition: all 0.5s ease;
}

.future-graph {
  width: 100%;
  height: auto;
  max-height: 80px;
  margin: 0.75rem 0;
  display: block;
}

.future-graph-line {
  fill: none;
  stroke: var(--color-green);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.future-graph-fill {
  transition: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.connection-line {
  transition: opacity 0.6s ease;
}

.connection-node {
  transition: all 0.5s ease;
}

.connection-node.pulse {
  animation: nodePulse 2s ease-in-out infinite;
}

@keyframes nodePulse {
  0%, 100% {
    r: 10;
    opacity: 1;
  }
  50% {
    r: 12;
    opacity: 0.8;
  }
}

.lifestyle-bar {
  transition: width 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.lifestyle-indicator {
  transition: cx 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Journal card animations */
.journal-trend-line {
  transition: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.journal-trend-fill {
  transition: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
  opacity: 0.2;
}

.journal-dot {
  transition: all 0.5s ease;
}

.journal-dot.pulse-slow {
  animation: pulseSlow 2.5s ease-in-out infinite;
}

@keyframes pulseSlow {
  0%, 100% {
    r: 4;
    opacity: 1;
  }
  50% {
    r: 5;
    opacity: 0.7;
  }
}

.future-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--color-medium-grey);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 5px 10px;
  background: var(--color-light-bg);
  border-radius: 20px;
  margin-top: 0.75rem;
}

.future-badge::before {
  content: "✨";
  font-size: 10px;
}

/* Color variations for different metrics */
#financial-card .future-metric-value[data-financial-roi] {
  color: var(--color-green);
}

#relationship-card .future-metric-value[data-relationship-score],
#relationship-card-mobile .future-metric-value[data-relationship-score] {
  color: var(--color-deep-blue);
}

#lifestyle-card .future-metric-value[data-journal-mood],
#lifestyle-card-mobile .future-metric-value[data-journal-mood] {
  color: var(--color-green);
}

#lifestyle-card .future-metric-value[data-journal-count],
#lifestyle-card-mobile .future-metric-value[data-journal-count] {
  color: var(--color-deep-blue);
}

/* Wrapper for proper spacing */
.product-stack__shell {
  position: relative;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
}

/* Tab animation on appear */
.product-stack__tab {
  animation: slideInTab 0.3s ease-out backwards;
}

@keyframes slideInTab {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Reduce padding on shorter viewports */
@media (max-height: 800px) {
  .product-card {
    padding: 2rem;
  }

  .plateworth-preview--stack {
    gap: 2rem;
  }
}

/* Let mobile fall back to simple stacking (match header breakpoint) */
@media (max-width: 910px) {
  .product-stack {
    padding: 2rem 0;
  }

  .product-stack__container {
    width: 90%;
  }

  .product-stack__cards {
    position: static;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .product-stack__shell {
    display: none;
  }

  .product-stack__mobile {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
  }

  .product-card {
    position: static !important;
    opacity: 1 !important;
    transform: none !important;
    margin-bottom: 0;
    padding: 2rem;
  }

  .product-stack__nav {
    display: none; /* Hide navigation on mobile, show all cards stacked */
  }

  .product-stack__tabs {
    display: none;
  }

  .plateworth-preview--stack {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .future-card__header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}




/* ====================================
   PINNED TABS (Top-left corner)
   ==================================== */

.pinned-tabs {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.pinned-tab {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--color-light-grey);
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pinned-tab.visible {
    opacity: 1;
    transform: translateX(0);
}

.pinned-tab-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.pinned-tab-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
}

/* ====================================
   CARD STACK
   ==================================== */

.card-stack {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 80vh;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Individual stack card */
.stack-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1500px;
    pointer-events: none;
}

/* Active card has pointer events */
.stack-card.active {
    pointer-events: auto;
}

.stack-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ====================================
   CARD CONTENT (Full card view)
   ==================================== */

.stack-card-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-white);
    border-radius: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 4rem 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;

    /* Glass morphism effect */
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Two-column layout for PlateWorth */
.stack-card[data-card-id="plateworth"] .stack-card-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.stack-card-text {
    max-width: 600px;
}

.stack-card-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-text);
    line-height: 1.2;
}

.stack-card-text p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 2rem;
}

/* Centered layout for future products */
.stack-card-centered {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.stack-card-centered h2 {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.stack-card-centered p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 2rem;
}

.future-icon--large {
    font-size: 6rem;
    margin-bottom: 2rem;
    display: block;
    animation: float 3s ease-in-out infinite;
}

.future-note {
    display: inline-block;
    padding: 0.6rem 1.75rem;
    background: var(--color-green);
    color: var(--color-white);
    border-radius: 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* Floating animation for icons */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ====================================
   CARD TAB (Pinned mini view)
   ==================================== */

.stack-card-tab {
    position: absolute;
    top: 0;
    left: 0;
    display: none; /* Tabs are cloned to pinned-tabs container */
}

.tab-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.tab-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
}

/* ====================================
   CARD STATES (Controlled by JS)
   ==================================== */

/* Upcoming card (behind current) */
.stack-card.upcoming {
    z-index: 1;
}

.stack-card.upcoming .stack-card-inner {
    transform: translateY(100%) scale(0.9);
    opacity: 0;
}

/* Active card (centered, full-size) */
.stack-card.active {
    z-index: 50;
}

.stack-card.active .stack-card-inner {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Past card (shrunk and moved to corner - hidden from main view) */
.stack-card.past {
    z-index: 10;
}

.stack-card.past .stack-card-inner {
    transform: translateY(-150%) scale(0.3);
    opacity: 0;
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

/* Tablet */
@media (max-width: 992px) {
    .card-stack {
        max-width: 100%;
        height: 70vh;
        padding: 0 1.5rem;
    }

    .stack-card[data-card-id="plateworth"] .stack-card-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 2rem;
    }

    .stack-card-text h2 {
        font-size: 2rem;
    }

    .stack-card-centered h2 {
        font-size: 2.25rem;
    }

    .pinned-tabs {
        top: 1.5rem;
        left: 1.5rem;
    }

    /* What We Do - Tablet */
    .what-we-do-container {
        min-height: 500px;
    }

    .central-image {
        width: 350px;
        height: 350px;
    }

    .info-bubble {
        width: 220px;
        height: 220px;
        padding: 1.5rem;
    }

    .info-bubble h3 {
        font-size: 1.1rem;
    }

    .info-bubble p {
        font-size: 0.85rem;
    }

    .bubble-icon {
        width: 65px;
        height: 65px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Simplify for mobile - stack cards normally */
    .stacked-cards-container {
        height: auto;
    }

    .stacked-cards-viewport {
        position: relative;
        height: auto;
        padding: 2rem 0;
    }

    .card-stack {
        position: relative;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding: 0 1rem;
    }

    .stack-card {
        position: relative;
        height: auto;
        min-height: 80vh;
    }

    .stack-card-inner {
        transform: none !important;
        opacity: 1 !important;
    }

    .stack-card-content {
        position: relative;
        height: auto;
        padding: 2.5rem 2rem;
    }

    .stack-card[data-card-id="plateworth"] .stack-card-content {
        grid-template-columns: 1fr;
    }

    .stack-card-text h2 {
        font-size: 1.75rem;
    }

    .stack-card-centered h2 {
        font-size: 2rem;
    }

    .future-icon--large {
        font-size: 4rem;
    }

    /* Hide pinned tabs on mobile */
    .pinned-tabs {
        display: none;
    }

    /* What We Do - Mobile: Stack vertically */
    .what-we-do-section {
        padding: 2rem 0;
    }

    .what-we-do-container {
        min-height: auto;
        flex-direction: column;
        gap: 1.5rem;
        padding: 0.5rem;
    }

    .central-image {
        position: static;
        width: 280px;
        height: 280px;
        margin: 0 auto;
        animation: none;
    }

    .info-bubble {
        position: static;
        width: 100%;
        max-width: 350px;
        height: auto;
        border-radius: 20px;
        padding: 2rem;
        margin: 0 auto;
        animation: none !important;
    }

    .info-bubble:hover {
        transform: scale(1.02);
    }

    .bubble-icon {
        width: 70px;
        height: 70px;
    }

    .info-bubble h3 {
        font-size: 1.3rem;
    }

    .info-bubble p {
        font-size: 1rem;
    }
}

/* ====================================
   FOOTER — CARD STYLE WITH LINKS
   ==================================== */
.footer {
    background-color: var(--color-dark-navy);
    padding: 3rem var(--container-padding);
    margin-top: var(--spacing-lg);

    /* Align with main content sections */
    max-width: var(--container-max);
    width: 100%;
    margin-left: auto;
    margin-right: auto;

    /* Card look */
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.25);
}

.footer-content {
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
}

.footer-nav {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 2rem; /* space between links */
    flex-wrap: nowrap;
    overflow-x: auto;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.2s ease;
}

.footer-nav a:hover {
    color: var(--color-green);
}

.footer-content p {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    opacity: 0.65;
}

p.footer-legal {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.875rem;
    opacity: 1 !important;
}

p.footer-legal a {
    color: #ffffff !important;
    text-decoration: underline;
    transition: 0.2s ease;
}

p.footer-legal a:hover {
    color: var(--color-green) !important;
}

p.footer-legal span {
    color: rgba(255, 255, 255, 0.5);
}



/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

/* Tablets and up */
@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.25rem;
    }

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

    .future-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .plateworth-preview {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .mission-vision {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .founders-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .how-it-works {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .methodology-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .approach-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .valuation-values {
        gap: 2rem;
    }
}

/* Desktop and up */
@media (min-width: 1024px) {
    h1 {
        font-size: 3.5rem;
    }

    .logo-img {
        height: 32px;
    }

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

    .plateworth-logo {
        height: 70px;
    }

    .hero {
        padding: 5rem 0;
    }

    .section {
        padding: 5rem 0;
    }
}

/* Mobile Menu */
@media (max-width: 910px) {
    .header {
        background-color: transparent;
        box-shadow: none;
        padding: 1rem 0;
    }

    .header-wrapper {
        background-color: var(--color-white);
        box-shadow: var(--shadow-sm);
        border-radius: var(--radius-md);
        padding: 1rem 1.25rem;
        gap: 1.25rem;
        margin-bottom: 1rem;
    }

    /* Keep bubble consistent when scrolling on mobile */
    .header.scrolled {
        background-color: transparent;
        box-shadow: none;
        padding: 1rem 0;
    }

    .header.scrolled .header-wrapper {
        background-color: var(--color-white);
        box-shadow: var(--shadow-sm);
        border-radius: var(--radius-md);
        padding: 1rem 1.25rem;
        gap: 1.25rem;
        margin-bottom: 1rem;
    }

    .header.scrolled .navbar {
        background-color: var(--color-white);
        box-shadow: var(--shadow-sm);
        padding: 0.75rem 1.5rem;
    }

    body {
        font-size: 15px;
    }

    .container {
        width: 100%;
        padding: 0 var(--container-padding-mobile);
    }

    .footer {
        width: 100%;
        padding: 2.5rem var(--container-padding-mobile);
    }

    .product-stack__container {
        padding: 0 var(--container-padding-mobile);
    }

    h1 {
        font-size: 2.1rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .logo-img {
        height: 24px;
    }

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

    .plateworth-logo {
        height: 50px;
    }

    /* Hero multi-card layout - mobile */
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }

    .hero {
        padding: var(--spacing-lg) 0;
        margin-top: 80px;
    }

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

    .hero-content h1,
    .hero-copy h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-animations {
        display: block;
        width: 100%;
        margin: 1.5rem auto 0;
    }

    .hero-card {
        margin: 0 auto;
        width: 100%;
    }

    /* Keep only the main PlateWorth card visible on mobile */
    .hero-card--secondary {
        display: none;
    }

    .hero-card--primary .valuation-card {
        padding: 1.35rem;
        width: 100%;
    }

    .hero-card .valuation-values {
        grid-template-columns: 1fr;
    }

    .hero-card--primary .valuation-card,
    .hero-card--secondary .mini-card {
        padding: 1.25rem;
    }

    .mini-card {
        font-size: 0.8rem;
    }

    .hero-card--primary,
    .hero-card--secondary {
        animation: none !important;
    }

    .hero-card--primary {
        grid-column: 1;
    }

    .hero-card--top-right,
    .hero-card--bottom-right {
        grid-column: 1;
        top: 0;
    }

    /* Disable scroll effect on mobile */
    .header.scrolled {
        padding: 1.5rem 0;
    }

    .header.scrolled .header-wrapper {
        background-color: transparent;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
    }

    .header.scrolled .logo-img {
        height: 24px;
    }

    .header.scrolled .logo-text {
        font-size: 1.1rem;
    }

    .header.scrolled .navbar {
        background-color: var(--color-white);
        box-shadow: var(--shadow-sm);
    }

    .header-wrapper {
        flex-wrap: wrap;
        position: relative;
    }

    .hamburger {
        display: flex;
        order: 2;
    }

    .btn-contact {
        display: none;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin-top: 1rem;
        padding: 0;
        background: transparent;
        box-shadow: none;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: var(--transition);
    }

    .navbar.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links {
        background-color: var(--color-white);
        flex-direction: column;
        padding: 1.5rem;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
        gap: 1rem;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        display: block;
        padding: 0.5rem 0;
    }

    .btn-nav {
        width: 100%;
        text-align: center;
    }

    /* Footer links stay single row; allow scroll if tight */
    .footer-nav {
        justify-content: flex-start;
        gap: 1.25rem;
        padding: 0 0.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .section {
        padding: var(--spacing-md) 1.25rem;
    }

    .card {
        padding: 1.5rem;
    }

    .contact-reasons {
        padding: 1.75rem;
    }

    .reasons-list li {
        align-items: flex-start;
        gap: 1rem;
    }

    .valuation-card--large {
        padding: 1.75rem;
    }

    .valuation-values {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .valuation-footer {
        flex-direction: column;
        gap: 0.5rem;
    }

    .valuation-card {
        padding: 1.5rem;
    }

    .cta-wrapper {
        gap: 1.5rem;
    }

    .cta-content {
        padding: 2.5rem 2rem;
        min-height: auto;
    }

    .cta-image-card {
        margin-top: 0.5rem;
    }

    /* Reset horizontal layout on mobile */
    .valuation-card--hero {
        display: block;
    }

    .valuation-card--hero .valuation-brand {
        margin-bottom: 1.25rem;
        padding-bottom: 1rem;
        border-bottom: 2px solid var(--color-light-grey);
    }

    .valuation-card--hero .valuation-header {
        flex-direction: row;
        margin-bottom: 1rem;
    }

    .valuation-card--hero .valuation-divider {
        display: block;
    }

    .valuation-card--hero .valuation-values {
        margin-bottom: 1.25rem;
    }

    .valuation-card--hero .valuation-graph {
        min-width: auto;
        margin-bottom: 1.25rem;
    }

    .value-amount {
        font-size: 1.1rem;
    }

    .value-item--primary .value-amount {
        font-size: 1.3rem;
    }

    .value-label {
        font-size: 0.65rem;
    }

    .work-card {
        padding-left: 1.5rem;
        padding-top: 3.5rem;
    }

    .work-number {
        left: 50%;
        transform: translateX(-50%);
        top: 1.5rem;
    }
}

/* Animation classes for JS intersection observer */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ====================================
   KEYFRAME ANIMATIONS
   ==================================== */

/* Slide in from bottom */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade in from left */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade in from right */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade in from bottom */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtle pulsing effect */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.85;
        transform: scale(1.015);
    }
}

/* Expand width animation for underline */
@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 60%;
    }
}
