/* ============================================================
   HOW IT WORKS - TACTILE MAXIMALISM
   A kinetic playground with clay textures, spring physics,
   and physical depth.
   ============================================================ */

/* --- Spring Easing (reused from TactileButton.css) --- */
:root {
    --hiw-spring-easing: linear(
        0, 0.2459, 0.6526, 0.9468, 1.0764, 1.0915, 1.0585,
        1.0219, 0.9993, 0.9914, 0.9921, 0.9957, 0.9988, 1.0004, 1
    );
    /* Use global sapphire variables from TactileFormVariables.tsx */
    --hiw-timeline-color: var(--sapphire-main, #4338ca);
    --hiw-clay-bg: #fdfdfd;
    --hiw-hero-text: #0f172a;
    --hiw-sapphire-light: var(--sapphire-light, #6366f1);
    --hiw-sapphire-main: var(--sapphire-main, #4338ca);
    --hiw-sapphire-dark: var(--sapphire-dark, #312e81);
    --hiw-sapphire-glow: var(--sapphire-main-40, rgba(67, 56, 202, 0.4));
    --hiw-teal: #0d7377;
    --hiw-teal-light: #e0f7f4;
}

/* --- Noise Texture Background --- */
.hiw-noise-bg {
    background-color: var(--hiw-clay-bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    overflow-x: hidden;
}

/* --- Hero Section --- */
.hiw-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px 60px;
    min-height: 420px;
}

@media (min-width: 900px) {
    .hiw-hero {
        padding: 120px 48px 80px;
        min-height: 500px;
    }
}

.hiw-hero__title {
    color: var(--hiw-hero-text);
    text-shadow: 0 2px 0 rgba(255, 255, 255, 0.9);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.hiw-hero__subtitle {
    color: #475569;
    font-weight: 400;
    max-width: 560px;
    line-height: 1.6;
}

/* Floating clay UI component shapes */
.hiw-hero__floaters {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hiw-clay-ui {
    position: absolute;
    opacity: 0.7;
    animation: float-sphere 6s ease-in-out infinite;
    will-change: transform;
}

/* Miniature clay text field */
.hiw-clay-ui--textfield {
    top: 32%;
    left: 12%;
    width: 90px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    box-shadow:
        inset 2px 2px 4px rgba(0, 0, 0, 0.08),
        inset -1px -1px 2px rgba(255, 255, 255, 0.9),
        3px 4px 8px rgba(0, 0, 0, 0.1),
        0 0 0 2px #e2e8f0;
    animation-duration: 7s;
    animation-delay: 0.3s;
}

/* Miniature clay toggle switch (On state) */
.hiw-clay-ui--toggle {
    top: 34%;
    right: 16%;
    width: 52px;
    height: 28px;
    border-radius: 14px;
    background: transparent;
    animation-duration: 5.5s;
    animation-delay: 1s;
}

@media (max-width: 599px) {
    .hiw-clay-ui--textfield {
        top: 18%;
    }

    .hiw-clay-ui--toggle {
        top: 20%;
    }

    .hiw-hero {
        padding-bottom: 36px;
    }

    .hiw-timeline {
        padding-top: 32px;
    }
}

.hiw-clay-ui__toggle-track {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--hiw-sapphire-light), var(--hiw-sapphire-main));
    box-shadow:
        inset 1px 2px 3px rgba(0, 0, 0, 0.2),
        3px 3px 8px var(--hiw-sapphire-glow),
        0 0 12px var(--sapphire-light-20);
    position: relative;
}

.hiw-clay-ui__toggle-thumb {
    position: absolute;
    right: 3px;
    top: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffffff, #f0f0f0);
    box-shadow:
        1px 2px 4px rgba(0, 0, 0, 0.15),
        inset -1px -1px 2px rgba(0, 0, 0, 0.05);
}

/* Miniature clay checkmark */
.hiw-clay-ui--checkmark {
    bottom: 28%;
    right: 14%;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #818cf8, var(--hiw-sapphire-main), var(--hiw-sapphire-dark));
    box-shadow:
        inset -3px -3px 6px rgba(0, 0, 0, 0.2),
        3px 4px 8px var(--sapphire-main-30),
        0 0 10px var(--sapphire-light-15);
    animation-duration: 6.5s;
    animation-delay: 0.5s;
}

.hiw-clay-ui--checkmark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 16px;
    border-right: 3px solid #ffffff;
    border-bottom: 3px solid #ffffff;
    transform: translate(-50%, -58%) rotate(40deg);
    opacity: 0.95;
}

/* Miniature Royal Sapphire lozenge button */
.hiw-clay-ui--button {
    bottom: 32%;
    left: 12%;
    width: 72px;
    height: 28px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--hiw-sapphire-light) 0%, var(--hiw-sapphire-main) 60%, var(--hiw-sapphire-dark) 100%);
    box-shadow:
        inset 0 2px 3px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.15),
        3px 4px 10px var(--hiw-sapphire-glow);
    animation-duration: 8s;
    animation-delay: 2s;
}

.hiw-clay-ui--button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.7);
}

/* --- Timeline Section --- */
.hiw-timeline {
    position: relative;
    padding: 60px 16px 80px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .hiw-timeline {
        padding: 80px 48px 100px;
    }
}

/* The "Rubber Cord" Track */
.hiw-timeline__track {
    position: absolute;
    left: 24px;
    top: 60px;
    bottom: -40px;
    width: 10px;
    background: linear-gradient(180deg, #6366f1 0%, #4338ca 50%, #312e81 100%);
    border-radius: 5px;
    box-shadow:
        inset 1px 1px 3px rgba(0, 0, 0, 0.25),
        inset -1px -1px 2px rgba(255, 255, 255, 0.1),
        2px 0 6px rgba(0, 0, 0, 0.08),
        0 0 20px var(--sapphire-main-20);
}

/* End-cap "connector node" where the cord plugs into the basin */
.hiw-timeline__track::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: radial-gradient(circle at 35% 35%, #6366f1, #312e81);
    border-radius: 50%;
    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.25),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

@media (min-width: 900px) {
    .hiw-timeline__track {
        left: 50%;
        transform: translateX(-50%);
        bottom: -60px;
    }
}

/* --- Timeline Step --- */
.hiw-timeline-step {
    position: relative;
    padding-left: 64px;
    margin-bottom: 48px;
}

@media (min-width: 900px) {
    .hiw-timeline-step {
        padding-left: 0;
        width: 45%;
        margin-bottom: 64px;
    }

    .hiw-timeline-step--left {
        margin-left: 0;
        margin-right: auto;
        padding-right: 48px;
    }

    .hiw-timeline-step--right {
        margin-left: auto;
        margin-right: 0;
        padding-left: 48px;
    }
}

/* Numbered "Clay Beads" threaded on the cord */
.hiw-timeline-step__node {
    position: absolute;
    left: 10px;
    top: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #a5b4fc, #6366f1, #4338ca);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    border: 4px solid #ffffff;
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.2),
        0 2px 6px var(--sapphire-main-30),
        inset 0 -2px 4px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

@media (min-width: 900px) {
    .hiw-timeline-step__node {
        left: auto;
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .hiw-timeline-step--left .hiw-timeline-step__node {
        right: -72px;
    }

    .hiw-timeline-step--right .hiw-timeline-step__node {
        left: -72px;
    }
}

/* --- Claymorphic Card --- */
.hiw-clay-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 32px 24px;
    box-shadow:
        8px 8px 20px rgba(0, 0, 0, 0.06),
        -4px -4px 12px rgba(255, 255, 255, 0.9),
        inset 0 1px 2px rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: transform 450ms var(--hiw-spring-easing),
                box-shadow 300ms ease;
    will-change: transform;
}

.hiw-clay-card:hover {
    transform: translateY(-3px);
    box-shadow:
        10px 12px 28px rgba(0, 0, 0, 0.08),
        -4px -4px 12px rgba(255, 255, 255, 0.9),
        inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

@media (min-width: 900px) {
    .hiw-clay-card {
        padding: 40px 32px;
    }
}

/* --- Step Interactive Containers --- */
.hiw-step-visual {
    margin-top: 24px;
    border-radius: 16px;
    overflow: hidden;
}

/* Step 1: Squishy Dropdown Mockup */
.hiw-dropdown-mockup {
    background: #f8fafc;
    border-radius: 16px;
    padding: 20px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.06);
}

.hiw-dropdown-mockup__field {
    background: #ffffff;
    border-radius: 12px;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    color: #64748b;
    transition: border-color 300ms ease, box-shadow 300ms ease;
    cursor: pointer;
}

.hiw-dropdown-mockup__field:hover {
    border-color: var(--hiw-teal);
    box-shadow: 0 0 0 3px rgba(13, 115, 119, 0.1);
}

.hiw-dropdown-mockup__options {
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.hiw-dropdown-mockup__option {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    color: #334155;
    transition: background-color 200ms ease;
}

.hiw-dropdown-mockup__option:hover {
    background: var(--hiw-teal-light);
}

.hiw-dropdown-mockup__option--selected {
    background: var(--hiw-teal-light);
    color: var(--hiw-teal);
    font-weight: 600;
}

/* Step 2: Typewriter TextField */
.hiw-typewriter-field {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 24px;
    border: 2px solid #e2e8f0;
    box-shadow:
        inset 0 3px 6px rgba(0, 0, 0, 0.04),
        inset 0 1px 3px rgba(0, 0, 0, 0.03);
    position: relative;
    min-height: 60px;
    display: flex;
    align-items: center;
    transition: border-color 450ms var(--hiw-spring-easing),
                box-shadow 450ms var(--hiw-spring-easing);
}

.hiw-typewriter-field--active {
    border-color: var(--hiw-teal);
    box-shadow:
        inset 0 3px 6px rgba(0, 0, 0, 0.04),
        0 0 0 3px rgba(13, 115, 119, 0.12),
        0 0 16px rgba(13, 115, 119, 0.08);
}

.hiw-typewriter-field__label {
    position: absolute;
    top: -10px;
    left: 16px;
    background: #ffffff;
    padding: 0 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--hiw-teal);
    transition: transform 350ms var(--hiw-spring-easing);
}

.hiw-typewriter-field__text {
    font-size: 18px;
    font-weight: 500;
    color: var(--hiw-hero-text);
    border-right: 2px solid var(--hiw-teal);
    padding-right: 2px;
    white-space: nowrap;
    overflow: hidden;
}

.hiw-typewriter-field__cursor {
    animation: blink-cursor 1s step-end infinite;
}

/* Step 3: Deep Frosted Glass over blurred bill */
.hiw-frosted-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 180px;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.06),
        inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.hiw-frosted-container__bill {
    padding: 24px 20px;
    background: #f8fafc;
    filter: blur(2.5px);
    opacity: 0.6;
    font-size: 13px;
    line-height: 2.2;
    color: #64748b;
    font-family: monospace;
}

.hiw-frosted-container__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(24px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    /* Glassy shimmer gradient */
    background-image: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.2) 100%
    );
}

.hiw-frosted-container__amount {
    font-size: 56px;
    font-weight: 900;
    color: var(--hiw-teal);
    text-shadow:
        0 2px 0 rgba(255, 255, 255, 0.9),
        0 4px 16px rgba(13, 115, 119, 0.25),
        0 0 30px rgba(13, 115, 119, 0.1);
    letter-spacing: -0.03em;
}

.hiw-frosted-container__label {
    font-size: 17px;
    font-weight: 700;
    color: #334155;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Step 4: Verified Data Tray */
.hiw-verify-tray {
    background: #f1f5f9;
    border-radius: 24px;
    padding: 24px;
    box-shadow:
        inset 4px 4px 10px rgba(0, 0, 0, 0.08),
        inset -2px -2px 5px rgba(255, 255, 255, 1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: fit-content;
    margin: 0 auto;
}

.hiw-data-chip {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    /* Candy gloss effect */
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.12),
        inset 0 2px 3px rgba(255, 255, 255, 0.4),
        inset 0 -2px 3px rgba(0, 0, 0, 0.1);
}

.hiw-data-chip--indigo { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.hiw-data-chip--teal   { background: linear-gradient(135deg, #0d9488, #0f766e); }
.hiw-data-chip--amber  { background: linear-gradient(135deg, #f59e0b, #d97706); }
.hiw-data-chip--sky    { background: linear-gradient(135deg, #0ea5e9, #0284c7); }

/* Green validation bead */
.hiw-data-chip__check {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    background: #10b981;
    border: 2.5px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Checkmark icon via pseudo-element */
.hiw-data-chip__check::after {
    content: '';
    width: 6px;
    height: 10px;
    border-right: 2.5px solid #ffffff;
    border-bottom: 2.5px solid #ffffff;
    transform: rotate(40deg) translate(-1px, -1px);
}

/* Step 5: Layered 3D Envelope with scroll-triggered open */
.hiw-envelope-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    perspective: 1000px;
}

.hiw-envelope {
    position: relative;
    width: 180px;
    height: 140px;
    transform-style: preserve-3d;
}

/* 1. Back interior */
.env-back {
    position: absolute;
    inset: 0;
    background: #ddd9d3;
    border-radius: 12px;
    z-index: 1;
}

/* 2. The Paper (slides up on scroll) */
.env-paper {
    position: absolute;
    bottom: 10px;
    left: 12px;
    right: 12px;
    height: 85%;
    background: #ffffff;
    border-radius: 6px;
    z-index: 2;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.06);
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.env-paper__lines {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    width: 100%;
}

.env-paper__lines--short {
    width: 55%;
}

.env-paper__stamp {
    margin: auto 0;
    align-self: center;
    font-size: 11px;
    font-weight: 800;
    color: #0f766e;
    letter-spacing: 0.1em;
    border: 2px solid #0f766e;
    border-radius: 4px;
    padding: 3px 10px;
    transform: rotate(-4deg);
}

/* 3. Front pocket (covers bottom, hides paper) */
.env-front {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 72%;
    background: linear-gradient(145deg, #fdfbf7 0%, #f3f0e8 100%);
    border-radius: 0 0 12px 12px;
    z-index: 3;
    border-top: 2px solid #e8e4dc;
    box-shadow:
        inset 0 2px 3px rgba(255, 255, 255, 0.8),
        0 4px 10px rgba(0, 0, 0, 0.08);
}

/* 4. Flap (rotates from top hinge) */
.env-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 58%;
    background: linear-gradient(180deg, #ffffff 0%, #f4f4f5 100%);
    border-radius: 12px 12px 50% 50%;
    transform-origin: top center;
    backface-visibility: hidden;
    z-index: 4;
    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 10px;
}

/* Wax seal (attached to flap, moves with it) */
.env-seal {
    width: 30px;
    height: 30px;
    background: radial-gradient(circle at 30% 30%, #818cf8, var(--hiw-sapphire-main), var(--hiw-sapphire-dark));
    border-radius: 50%;
    box-shadow:
        0 2px 5px var(--sapphire-main-35),
        inset 0 1px 2px rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 900;
    font-size: 13px;
    font-family: serif;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

/* --- CTA Launchpad: "Sunken Basin" carved into the page --- */
.hiw-launchpad {
    position: relative;
    padding: 100px 24px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 40%, #ffffff 100%);
    box-shadow:
        inset 0 20px 40px rgba(0, 0, 0, 0.06),
        inset 0 6px 12px rgba(0, 0, 0, 0.04),
        inset 0 1px 3px rgba(0, 0, 0, 0.03);
    border-radius: 40px 40px 0 0;
    margin-top: 40px;
}

@media (min-width: 900px) {
    .hiw-launchpad {
        padding: 120px 48px 100px;
        margin-top: 60px;
        border-radius: 48px 48px 0 0;
    }
}

.hiw-launchpad__title {
    color: var(--hiw-hero-text);
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Pulse Button - Giant CTA with breathing glow */
.hiw-pulse-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 22px 52px;
    border: none;
    border-radius: 18px;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    text-decoration: none;
    background: linear-gradient(
        135deg,
        var(--hiw-sapphire-light) 0%,
        var(--hiw-sapphire-main) 50%,
        var(--hiw-sapphire-dark) 100%
    );
    box-shadow:
        0 6px 20px var(--hiw-sapphire-glow),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.25);
    transition: transform 450ms var(--hiw-spring-easing),
                box-shadow 300ms ease;
    animation: pulse-glow 2.5s ease-in-out infinite;
    will-change: transform;
}

.hiw-pulse-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 24px var(--hiw-sapphire-glow),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.hiw-pulse-btn:active {
    transform: translateY(1px) scale(0.97);
    box-shadow:
        0 2px 8px var(--hiw-sapphire-glow),
        inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.hiw-pulse-btn:focus-visible {
    outline: 3px solid var(--hiw-sapphire-light);
    outline-offset: 3px;
}

/* Hero CTA (smaller variant) */
.hiw-hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    text-decoration: none;
    background: linear-gradient(
        135deg,
        var(--hiw-sapphire-light) 0%,
        var(--hiw-sapphire-main) 50%,
        var(--hiw-sapphire-dark) 100%
    );
    box-shadow:
        0 4px 12px var(--hiw-sapphire-glow),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
    transition: transform 450ms var(--hiw-spring-easing),
                box-shadow 300ms ease;
}

.hiw-hero-cta:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow:
        0 6px 20px var(--hiw-sapphire-glow),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.hiw-hero-cta:active {
    transform: translateY(1px) scale(0.96);
}

.hiw-hero-cta:focus-visible {
    outline: 3px solid var(--hiw-sapphire-light);
    outline-offset: 3px;
}

/* --- Keyframe Animations --- */
@keyframes float-sphere {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-18px) rotate(5deg);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow:
            0 6px 20px var(--hiw-sapphire-glow),
            0 0 0 0 var(--sapphire-light-35),
            0 2px 8px rgba(0, 0, 0, 0.1),
            inset 0 1px 2px rgba(255, 255, 255, 0.25);
    }
    50% {
        box-shadow:
            0 6px 20px var(--hiw-sapphire-glow),
            0 0 0 18px var(--sapphire-light-0),
            0 2px 8px rgba(0, 0, 0, 0.1),
            inset 0 1px 2px rgba(255, 255, 255, 0.25);
    }
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    .hiw-clay-ui {
        animation: none;
    }

    .hiw-pulse-btn {
        animation: none;
    }

    .hiw-typewriter-field__cursor {
        animation: none;
        opacity: 1;
    }

    .hiw-clay-card:hover {
        transform: none;
    }

    .hiw-pulse-btn:hover,
    .hiw-hero-cta:hover {
        transform: none;
    }
}
