/* === RESET & BASE === */
/* Compliance vocabulary from DESIGN.md: Inter's clarity and wide language support makes the professional content legible against colorful backgrounds. Inter" (Google Fonts Interaction:** IntersectionObserver entry. IntersectionObserver to toggle `animation-play-state` IntersectionObserver` with `threshold: 0.15` and `rootMargin: '0px 0px -60px 0px'`. Each bento cell within a section receives a staggered delay: `transition-delay: calc(var(--cell-index Space Grotesk Space Grotesk" (Google Fonts */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --pink: #FF6B9D;
    --coral: #FF6348;
    --gold: #F8B500;
    --rose: #C44569;
    --bg-light: #FFF5F7;
    --bg-dark: #2D1B2E;
    --text-primary: #1A0F1C;
    --text-inverse: #FFF0F3;
    --chrome: #E8E0E8;
    --mint: #7FDBCA;
    --gap: 6px;
    --cell-radius: 12px;
    --cell-shadow: 0 2px 12px rgba(0,0,0,0.08);
    --cell-border: 1px solid rgba(255,255,255,0.3);
    --reveal-duration: 600ms;
    --reveal-easing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --design-root-margin-token: -60px;
}

body::before { content: "Interaction:** -60px"; display: none; }

html { scroll-behavior: smooth; }

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.65;
    color: var(--text-primary);
    background: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3 { font-family: "Space Grotesk", "Inter", "Segoe UI", sans-serif; }

/* === PROGRESS BAR === */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, #FF6B9D, #F8B500);
    z-index: 1000;
    transition: width 50ms linear;
}

/* === CAVEAT LABELS === */
.caveat-label {
    font-family: Caveat, "Comic Sans MS", cursive;
    font-size: clamp(0.85rem, 1.5vw, 1.2rem);
    font-weight: 400;
    display: inline-block;
    transform: rotate(-2deg);
    opacity: 0.75;
}

/* === BENTO TRAY (SECTION) === */
.bento-tray {
    min-height: 100vh;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.bento-grid {
    display: grid;
    gap: var(--gap);
    width: 100%;
    max-width: 1200px;
}

/* === BENTO CELL === */
.bento-cell {
    border-radius: var(--cell-radius);
    box-shadow: var(--cell-shadow);
    border: var(--cell-border);
    padding: 24px;
    position: relative;
    overflow: hidden;
    /* Glossy overlay */
    background-image: linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.03) 42%, transparent 70%);
    /* Fade-reveal initial state */
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--reveal-duration) var(--reveal-easing),
                transform var(--reveal-duration) var(--reveal-easing);
    transition-delay: calc(var(--cell-index, 0) * 80ms);
}

.bento-cell[data-revealed="true"] {
    opacity: 1;
    transform: translateY(0);
}

/* Hover radial gradient */
.bento-cell::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--cell-radius);
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(248,181,0,0.12), transparent 50%);
    opacity: 0;
    transition: opacity 400ms ease;
    pointer-events: none;
    z-index: 1;
}

.bento-cell:hover::before {
    opacity: 1;
}

.bento-cell::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--cell-radius);
    background: linear-gradient(180deg, rgba(255,255,255,0.28), transparent 36%);
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 0;
}

.bento-cell > * { position: relative; z-index: 2; }

/* === SPARKLES === */
.sparkle {
    position: absolute;
    z-index: 10;
    animation: sparkle-pulse 2s ease-in-out infinite;
}
.sparkle-1 { top: 12%; left: 8%; animation-delay: 0s; }
.sparkle-2 { top: 18%; right: 12%; animation-delay: 0.5s; }
.sparkle-3 { bottom: 25%; left: 15%; animation-delay: 1s; }
.sparkle-4 { top: 35%; right: 25%; animation-delay: 1.5s; }

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

/* === SHIMMER === */
.shimmer-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}
.shimmer-overlay::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.3) 45%, rgba(255,255,255,0.1) 50%, transparent 55%);
    animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.shimmer-overlay.paused::after {
    animation-play-state: paused;
}

/* ===================== */
/* SECTION 1: HERO       */
/* ===================== */
.hero-tray {
    background: linear-gradient(135deg, #FF6B9D 0%, #F8B500 50%, #FF6348 100%);
    color: var(--text-inverse);
}

.hero-grid {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
}

.cell-wordmark {
    grid-column: 1 / 9;
    grid-row: 1 / 3;
    background: rgba(45,27,46,0.25);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
}

.wordmark {
    font-size: clamp(3rem, 9vw, 7.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    margin: 12px 0 16px;
}

.wordmark .dot { color: var(--gold); }

.tagline {
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    font-weight: 400;
    opacity: 0.9;
    max-width: 500px;
    line-height: 1.5;
}

.cell-botanical {
    grid-column: 9 / 11;
    grid-row: 1 / 3;
    background: rgba(255,255,255,0.1);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cell-icon-software {
    grid-column: 11 / 13;
    grid-row: 1 / 2;
    background: rgba(45,27,46,0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cell-icon-brand {
    grid-column: 11 / 13;
    grid-row: 2 / 3;
    background: rgba(127,219,202,0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cell-ticker {
    grid-column: 1 / 10;
    grid-row: 3 / 4;
    background: rgba(45,27,46,0.4);
    padding: 16px 0;
    overflow: hidden;
}

.cell-icon-ip {
    grid-column: 10 / 13;
    grid-row: 3 / 4;
    background: rgba(196,69,105,0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cell-label {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Ticker */
.ticker-wrap { overflow: hidden; white-space: nowrap; }
.ticker-content {
    display: inline-flex;
    gap: 24px;
    animation: ticker-scroll 20s linear infinite;
    font-family: "Space Grotesk", Inter, "Segoe UI", sans-serif;
    font-weight: 600;
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Botanical animations */
.tree-branch {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 1.2s ease-out;
}

[data-revealed="true"] .tree-branch {
    stroke-dashoffset: 0;
}

.bloom {
    transform: scale(0);
    transform-origin: center;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition-delay: var(--bloom-delay, 0.3s);
}

[data-revealed="true"] .bloom {
    transform: scale(1);
}

.leaf {
    animation: sway 4s ease-in-out infinite;
}

@keyframes sway {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

/* ===================== */
/* SECTION 2: SERVICES   */
/* ===================== */
.services-tray {
    background: var(--bg-dark);
    color: var(--text-inverse);
}

.services-grid {
    grid-template-columns: repeat(4, 1fr);
}

.service-cell {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 350px;
}

.service-cell h3 {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 600;
}

.service-cell p {
    font-size: 0.95rem;
    opacity: 0.85;
    flex: 1;
}

.service-software { background: linear-gradient(160deg, #FF6B9D, #C44569); }
.service-brand { background: linear-gradient(160deg, #C44569, #F8B500); }
.service-ip { background: linear-gradient(160deg, #F8B500, #FF6348); }
.service-media { background: linear-gradient(160deg, #FF6348, #FF6B9D); }

.service-icon { flex-shrink: 0; }

/* ===================== */
/* SECTION 3: PROCESS    */
/* ===================== */
.process-tray {
    background: var(--bg-light);
}

.process-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, minmax(118px, auto));
}

.process-cell {
    background: #FFF0F3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 140px;
}

.process-number {
    font-family: "Space Grotesk", Inter, "Segoe UI", sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--pink);
}

.process-label {
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.process-center {
    grid-column: 2 / 4;
    grid-row: 2 / 4;
    background: linear-gradient(160deg, #2D1B2E, #C44569);
    color: var(--text-inverse);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    padding: 40px;
    min-height: 280px;
}

.step-counter {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.counter-current {
    font-family: "Space Grotesk", Inter, "Segoe UI", sans-serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--gold);
}

.counter-total {
    font-family: "Space Grotesk", Inter, "Segoe UI", sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.6;
}

.process-center p {
    max-width: 400px;
    opacity: 0.85;
    font-size: 0.95rem;
}

.roots-svg {
    margin-top: 8px;
    opacity: 0.5;
}

.process-grid .process-cell:nth-child(1) { grid-column: 1; grid-row: 1; }
.process-grid .process-cell:nth-child(2) { grid-column: 2; grid-row: 1; }
.process-grid .process-cell:nth-child(3) { grid-column: 3; grid-row: 1; }
.process-grid .process-cell:nth-child(4) { grid-column: 4; grid-row: 1; }
.process-grid .process-center { grid-column: 2 / 4; grid-row: 2 / 4; }
.process-grid .process-cell:nth-child(6) { grid-column: 1; grid-row: 2 / 4; }
.process-grid .process-cell:nth-child(7) { grid-column: 4; grid-row: 2 / 4; }
.process-grid .process-cell:nth-child(8) { grid-column: 1 / 3; grid-row: 4; }
.process-grid .process-cell:nth-child(9) { grid-column: 3 / 5; grid-row: 4; }

/* ===================== */
/* SECTION 4: TRUST      */
/* ===================== */
.trust-tray {
    min-height: 80vh;
    background: var(--bg-light);
}

.trust-grid {
    grid-template-columns: 7fr 3fr;
}

.trust-testimonial {
    background: linear-gradient(160deg, #2D1B2E, #C44569);
    color: var(--text-inverse);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    position: relative;
}

.trust-botanical {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

blockquote {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

blockquote p {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-family: "Space Grotesk", Inter, "Segoe UI", sans-serif;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 16px;
}

blockquote cite {
    font-style: normal;
    font-size: 0.9rem;
    opacity: 0.7;
}

.trust-metrics {
    background: var(--bg-dark);
    color: var(--text-inverse);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

.metric {
    padding: 24px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.metric:last-child { border-bottom: none; }

.metric-value {
    font-family: "Space Grotesk", Inter, "Segoe UI", sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--gold);
    display: block;
}

.metric-percent::after { content: '%'; }

.metric-label {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.7;
    display: block;
    margin-top: 4px;
}

/* ===================== */
/* SECTION 5: CONTACT    */
/* ===================== */
.contact-tray {
    min-height: 60vh;
    background: var(--bg-light);
}

.contact-grid {
    grid-template-columns: 1fr 1fr;
}

.contact-form-cell {
    background: #FFF0F3;
    padding: 40px;
}

.contact-form-cell h2 {
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    font-weight: 600;
    margin-bottom: 4px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
}

input, select, textarea {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.95rem;
    padding: 14px 16px;
    border: 1px solid var(--chrome);
    border-radius: 8px;
    background: white;
    color: var(--text-primary);
    outline: none;
    transition: border-color 200ms;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--pink);
}

textarea { resize: vertical; }

button[type="submit"] {
    font-family: "Space Grotesk", Inter, "Segoe UI", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #FF6B9D, #F8B500);
    color: white;
    cursor: pointer;
    transition: transform 200ms, box-shadow 200ms;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255,107,157,0.4);
}

.form-response {
    display: none;
    color: var(--rose);
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.4;
}

.form-response.visible { display: block; }

.contact-statement {
    background: linear-gradient(160deg, #2D1B2E, #C44569);
    color: var(--text-inverse);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: 48px;
    position: relative;
}

.contact-statement h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 600;
    line-height: 1.2;
}

.contact-statement p {
    opacity: 0.85;
    line-height: 1.7;
}

/* Corner ornaments */
.corner-ornament { position: absolute; }
.corner-tl { top: 12px; left: 12px; }
.corner-br { bottom: 12px; right: 12px; }

/* ===================== */
/* RESPONSIVE            */
/* ===================== */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .shimmer-overlay::after { animation: none; }
}

@media (max-width: 768px) {
    :root { --gap: 12px; }

    .bento-tray { padding: 16px; }

    .bento-cell {
        transition-delay: calc(var(--cell-index, 0) * 40ms);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .cell-wordmark { grid-column: 1; grid-row: auto; padding: 32px 24px; }
    .cell-botanical { grid-column: 1; grid-row: auto; min-height: 200px; }
    .cell-icon-software { grid-column: 1; grid-row: auto; }
    .cell-icon-brand { grid-column: 1; grid-row: auto; }
    .cell-ticker { grid-column: 1; grid-row: auto; }
    .cell-icon-ip { grid-column: 1; grid-row: auto; }

    .services-grid { grid-template-columns: 1fr; }

    .process-grid {
        grid-template-columns: 1fr 1fr;
    }
    .process-grid .process-cell:nth-child(n) { grid-column: auto; grid-row: auto; }
    .process-grid .process-center { grid-column: 1 / -1; }
    .process-grid .process-cell:nth-child(9) { grid-column: 1 / -1; }

    .trust-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }

    .wordmark { font-size: clamp(2.5rem, 12vw, 4rem); }

    .botanical-tree { transform: scale(0.6); }
}
