/* ==========================================================================
   CARDBOARD COSMOS DESIGN SYSTEM - LANDING PAGE CSS
   CareTech Scrapbook & Cardboard Theme for Landing Page
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Press+Start+2P&display=swap');

/* --------------------------------------------------------------------------
   0. Custom Font Faces (GROBOLD for Brand & Headings)
   -------------------------------------------------------------------------- */
@font-face {
    font-family: 'GROBOLD';
    src: local('GROBOLD'), local('Grobold'), url('assets/fonts/GROBOLD.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* --------------------------------------------------------------------------
   1. Root Variables & Typography Configuration
   -------------------------------------------------------------------------- */
:root {
    /* Exact Color Tokens from Cardboard Cosmos */
    --ink: #000000;
    --pink: #ff2e93;
    --lime: #39ff14;
    --sun: #ffe500;
    --cy: #00e5ff;
    --orange: #ff8a00;
    --purple: #9b5cff;
    --red: #ff3b30;

    /* Cardboard & Paper Palette */
    --cardboard: #e5d9c5;
    --cardboard-dark: #d8c7ad;
    --kraft: #c8964f;
    --kraft-dark: #8a5a24;
    --kraft-light: #dfb274;
    --paper: #ffffff;
    --paper-warm: #fffdf5;
    --paper-blue: #f0faff;
    --paper-pink: #fff3f8;
    --paper-yellow: #fffde6;

    /* Green Craft Paper (Meadow & Hills) */
    --craft-green-deep: #1e5e39;
    --craft-green-mid: #2d7d4c;
    --craft-green-light: #3eb364;
    --craft-green-soft: #86efac;

    /* Legacy Aliases */
    --gold-bright: #ffe500;
    --gold-amber: #ff8a00;
    --cyan-neon: #00e5ff;
    --purple-light: #c084fc;
    --purple-main: #9333ea;
    --purple-dark: #7e22ce;

    /* Typography */
    --mk: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --mono: 'Courier New', Courier, monospace;
    --imp: 'GROBOLD', 'Grobold', sans-serif;
    --title-font: 'GROBOLD', 'Grobold', sans-serif;
    --body-font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --pixel-font: 'Press Start 2P', monospace, sans-serif;
}

/* --------------------------------------------------------------------------
   2. Reset & Base Settings
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    width: 100%;
    margin: 0;
    color: var(--ink);
    font: 700 1.12rem/1.5 var(--mk);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    /* The Authentic Cardboard Cosmos Background */
    background:
        linear-gradient(90deg, transparent 0 62px, rgba(230, 30, 70, 0.55) 62px 65px, transparent 65px),
        linear-gradient(112deg, transparent 0 31%, rgba(60, 30, 0, 0.1) 31% 31.3%, transparent 31.3%),
        linear-gradient(64deg, transparent 0 66%, rgba(255, 255, 255, 0.45) 66% 66.4%, transparent 66.4%),
        repeating-linear-gradient(0deg, transparent 0 33px, rgba(40, 110, 220, 0.3) 33px 35px),
        radial-gradient(rgba(90, 55, 15, 0.25) 1px, transparent 1.6px) 0 0/7px 9px,
        radial-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 2px) 3px 4px/11px 13px,
        var(--cardboard);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'GROBOLD', 'Grobold', var(--imp);
    letter-spacing: 0.03em;
    color: var(--ink);
    font-weight: 400;
}

/* Custom Cardboard Scrollbar */
::-webkit-scrollbar {
    width: 14px;
}

::-webkit-scrollbar-track {
    background: var(--cardboard);
    border-left: 3px solid var(--ink);
}

::-webkit-scrollbar-thumb {
    background: var(--kraft);
    border: 3px solid var(--ink);
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--pink);
}

/* Jagged Hand-Drawn Borders & Corners */
.mk {
    border: 4px solid var(--ink) !important;
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px !important;
}

.mk-alt {
    border: 4px solid var(--ink) !important;
    border-radius: 15px 225px 15px 255px/255px 15px 225px 15px !important;
}

.mk-wobbly {
    border: 4px solid var(--ink) !important;
    border-radius: 20px 255px 20px 240px/240px 20px 250px 20px !important;
}

.mk-sticker {
    border: 4px solid var(--ink) !important;
    border-radius: 52% 48% 50% 50%/48% 52% 48% 52% !important;
}

/* Decorative Washi Tapes */
.tape {
    display: inline-block;
    margin: 0 0 1rem;
    padding: 0.35rem 1.6rem;
    background: rgba(255, 229, 0, 0.95);
    color: var(--ink);
    border: 0 dotted rgba(0, 0, 0, 0.35);
    border-width: 0 8px;
    transform: rotate(-3deg);
    font: 700 1rem var(--mono);
    box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    user-select: none;
}

.tape-pink {
    background: var(--pink) !important;
    color: #fff !important;
    transform: rotate(2.5deg);
}

.tape-cyan {
    background: var(--cy) !important;
    color: var(--ink) !important;
    transform: rotate(-2.5deg);
}

.tape-lime {
    background: var(--lime) !important;
    color: var(--ink) !important;
    transform: rotate(1.8deg);
}

.tape-white {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px dashed rgba(0, 0, 0, 0.35) !important;
    color: var(--ink) !important;
}

.tape-yellow {
    background: var(--sun) !important;
    color: var(--ink) !important;
}

/* Tape Section Headings */
h2.tape, .tape-heading {
    font: 400 clamp(1.8rem, 4vw, 2.3rem)/1.15 var(--imp);
    padding: 0.45rem 1.8rem;
    box-shadow: 4px 4px 0 var(--ink);
    letter-spacing: 0.04em;
    margin-bottom: 0.6rem;
}

/* Sticky Note Containers (.note) */
.note {
    position: relative;
    padding: 2.2rem 2rem 2rem;
    background: var(--lime);
    border: 4px solid var(--ink);
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
    transform: rotate(-2deg);
    box-shadow: 10px 10px 0 var(--ink);
}

.note::before {
    content: '';
    position: absolute;
    top: -18px;
    left: 50%;
    width: 140px;
    height: 34px;
    margin-left: -70px;
    background: rgba(255, 255, 255, 0.7);
    border: 2px dashed rgba(0, 0, 0, 0.35);
    transform: rotate(3deg);
    z-index: 2;
}

.note::after {
    content: 'CATATAN!';
    position: absolute;
    right: -10px;
    bottom: -18px;
    padding: 0.15rem 0.9rem;
    background: var(--pink);
    color: #fff;
    border: 3px solid var(--ink);
    font: 400 1.25rem var(--imp);
    transform: rotate(6deg);
    box-shadow: 4px 4px 0 var(--ink);
}

/* Twinkling Pixel Stars */
.star {
    position: absolute;
    width: 8px;
    height: 8px;
    color: var(--sun);
    background: currentColor;
    box-shadow: 8px 0, -8px 0, 0 8px, 0 -8px;
    filter: drop-shadow(3px 3px 0 var(--ink));
    animation: tw 1.6s steps(2) infinite;
    pointer-events: none;
}

@keyframes tw {
    50% { opacity: 0.2; }
}

/* Floating Scrapbook Paper Junk Debris */
.deb {
    position: absolute;
    pointer-events: none;
    border: 4px solid var(--ink);
    filter: drop-shadow(4px 4px 0 var(--ink));
    animation: drift 4s steps(6) infinite;
    z-index: 2;
}

.deb.sc {
    width: 58px;
    height: 32px;
    border-radius: 6px 20px 8px 24px;
    background: repeating-linear-gradient(90deg, #c8964f 0 6px, #a8742f 6px 9px);
}

.deb.tp {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: radial-gradient(circle, #e5d9c5 0 26%, var(--sun) 28%);
}

.deb.cp {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border-style: dotted;
    background: var(--cy);
}

.deb.bl {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 30%, #fff 0 12%, var(--pink) 14%);
}

@keyframes drift {
    50% { transform: translateY(-16px) rotate(12deg); }
}

/* Global Paper & Craft Texture Overlay (Subtle) */
.scanlines-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    background: radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1.6px) 0 0/12px 12px;
    opacity: 0.6;
}

/* ==========================================================================
   SECTION 1: HERO COSMIC ARENA (CARDBOARD COSMOS SPACE ARENA)
   ========================================================================== */
.hero-cosmic-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 620px;
    /* Deep Indigo Ink-Stained Craft Night Sky */
    background:
        radial-gradient(circle at 50% 50%, rgba(200, 150, 79, 0.15) 0%, rgba(26, 21, 38, 0.92) 65%, #151120 100%),
        repeating-linear-gradient(0deg, transparent 0 33px, rgba(255, 255, 255, 0.04) 33px 35px),
        radial-gradient(rgba(255, 229, 0, 0.15) 1px, transparent 1.8px) 0 0/14px 18px,
        #1c172b;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 10;
}

/* Space Background Layer with Canvas Starfield */
.space-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.starfield-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* Sharp Cardboard Confetti & Starfall */
.css-pixel-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 4px;
    background: #ffffff;
    box-shadow:
        45px 80px 0 0 var(--sun),
        140px 220px 0 0 #ffffff,
        280px 95px 0 0 var(--cy),
        420px 310px 0 0 var(--pink),
        590px 140px 0 0 var(--lime),
        720px 280px 0 0 var(--sun),
        860px 85px 0 0 #ffffff,
        980px 210px 0 0 var(--cy),
        1120px 340px 0 0 var(--pink),
        1250px 115px 0 0 var(--sun),
        1380px 260px 0 0 var(--lime),
        1520px 90px 0 0 #ffffff,
        1680px 230px 0 0 var(--cy),
        90px 480px 0 0 var(--pink),
        240px 620px 0 0 var(--sun),
        380px 520px 0 0 #ffffff,
        540px 690px 0 0 var(--lime),
        710px 580px 0 0 var(--cy);
    opacity: 0.9;
    animation: starsTwinkle 3s steps(2, start) infinite alternate;
}

@keyframes starsTwinkle {
    0% { opacity: 0.9; }
    50% { opacity: 0.4; }
    100% { opacity: 0.9; }
}

.cosmic-content-container {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* --------------------------------------------------------------------------
   CARDBOARD PLANET GLOBE CONTAINER
   -------------------------------------------------------------------------- */
.globe-stage-wrapper {
    position: absolute;
    top: 48.5%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 0;
    height: 0;
    z-index: 15;
    pointer-events: none;
}

.globe-floating-container {
    animation: floatGlobe 5s ease-in-out infinite;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0;
    height: 0;
}

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

/* Rotating 2D Pixel Globe Floating Planet */
.pixel-globe-canvas {
    width: min(98vh, 98vw);
    height: min(98vh, 98vw);
    max-width: 740px;
    max-height: 740px;
    flex-shrink: 0;
    display: block;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    border-radius: 50%;
    border: none;
    box-shadow: none;
    background: transparent;
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.45));
    position: relative;
}

.globe-space-shadow {
    display: none;
}

/* Overlay Centered Directly on the Cardboard Globe */
.globe-center-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 30;
    pointer-events: auto;
    width: auto;
    max-width: 92vw;
    text-align: center;
    background: transparent;
    padding: 0;
}

/* CareTech Brand Wrapper (Cardboard Scrapbook Plaque) */
.caretech-brand-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 0;
    margin-bottom: 1.2rem;
    user-select: none;
    text-decoration: none;
    background: var(--paper-warm);
    border: 4.5px solid var(--ink);
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
    padding: 0.6rem 2.2rem;
    box-shadow: 8px 8px 0 var(--ink);
    transform: rotate(-2deg);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.caretech-brand-wrapper:hover {
    transform: scale(1.05) rotate(0deg);
    box-shadow: 11px 11px 0 var(--ink);
}

.caretech-brand-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    background: #ffffff;
    padding: 6px;
    border: 3.5px solid var(--ink);
    border-radius: 50%;
    box-shadow: 3px 3px 0 var(--ink);
    transform: rotate(-4deg);
    animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) rotate(-4deg);
    }
    50% {
        transform: translateY(-4px) rotate(2deg);
    }
}

.caretech-brand-title {
    font-family: var(--imp);
    font-size: 3.8rem;
    font-weight: normal;
    letter-spacing: 0.04em;
    color: var(--ink);
    line-height: 1;
    text-shadow: 3px 3px 0 var(--sun);
    display: flex;
    align-items: center;
}

.brand-tech-accent {
    color: var(--pink);
    text-shadow: 3px 3px 0 var(--sun);
}

/* Giant Chunky Cardboard Button: 'Mulai Refleksi' */
.action-button-wrapper {
    margin-top: 0;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 35;
    position: relative;
}

.btn-starfall-giant {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    flex-shrink: 0;
    font-family: var(--imp);
    font-size: 1.45rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    color: #ffffff;
    background: var(--pink);
    padding: 1rem 2.8rem;
    border: 5px solid var(--ink);
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
    box-shadow: 8px 8px 0 var(--ink);
    transform: rotate(1.5deg);
    position: relative;
    user-select: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-starfall-giant span {
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    display: inline-block;
}

.btn-starfall-giant:hover {
    background: var(--lime);
    color: var(--ink);
    transform: scale(1.06) rotate(-1.5deg);
    box-shadow: 12px 12px 0 var(--ink);
}

.btn-starfall-giant:active {
    transform: translate(4px, 4px) rotate(1.5deg);
    box-shadow: 2px 2px 0 var(--ink);
}

.btn-arrow-icon {
    color: var(--sun);
    font-size: 1.3rem;
    filter: drop-shadow(2px 2px 0 var(--ink));
    animation: arrowPulse 0.9s infinite alternate ease-in-out;
}

@keyframes arrowPulse {
    0% { transform: scale(0.9); }
    100% { transform: scale(1.18); }
}

/* --------------------------------------------------------------------------
   ATMOSPHERE CLOUD PATH (3-TIER SCALLOPED PAPER CLOUDS & SEAMLESS TRANSITION)
   -------------------------------------------------------------------------- */
.atmosphere-cloud-path {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: clamp(120px, 16vh, 175px);
    z-index: 25;
    pointer-events: none;
    overflow: visible;
}

/* Atmosphere glow blending space darkness into upper cloud limb */
.atmosphere-space-glow {
    position: absolute;
    top: -65px;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(56, 189, 248, 0.12) 35%,
        rgba(186, 230, 253, 0.35) 70%,
        rgba(255, 255, 255, 0.5) 100%);
    pointer-events: none;
    z-index: 1;
}

.cloud-bank-svg {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 -4px 0 rgba(0, 0, 0, 0.28));
    z-index: 3;
}

/* 3-Tier Layered Paper Cloud Horizons with Inky Borders */
.cloud-path-back {
    fill: #bae6fd;
    stroke: var(--ink);
    stroke-width: 2.5px;
    stroke-linejoin: round;
}

.cloud-path-mid {
    fill: var(--paper-warm);
    stroke: var(--ink);
    stroke-width: 3px;
    stroke-linejoin: round;
}

.cloud-path-front {
    fill: #ffffff;
    stroke: var(--ink);
    stroke-width: 3.5px;
    stroke-linejoin: round;
}

/* Bottom mist blending cloud base into Section 2 Cardboard background */
.cloud-bottom-mist {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 38px;
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.45) 30%,
        rgba(229, 217, 197, 0.75) 70%,
        var(--cardboard) 100%);
    pointer-events: none;
    z-index: 5;
}

/* --------------------------------------------------------------------------
   DRIFTING PAPER CUTOUT CLOUDS (HERO HORIZON)
   -------------------------------------------------------------------------- */
.paper-cloud-drift {
    position: absolute;
    display: block;
    filter: drop-shadow(4px 4px 0 var(--ink));
    pointer-events: none;
    z-index: 4;
}

.cloud-drift-1 {
    width: 145px;
    height: auto;
    bottom: 50px;
    left: -180px;
    animation: cloudMove 34s linear infinite;
    animation-delay: -5s;
}

.cloud-drift-2 {
    width: 185px;
    height: auto;
    bottom: 70px;
    left: -220px;
    animation: cloudMove 46s linear infinite;
    animation-delay: -18s;
}

.cloud-drift-3 {
    width: 115px;
    height: auto;
    bottom: 35px;
    left: -150px;
    animation: cloudMove 28s linear infinite;
    animation-delay: -10s;
}

.cloud-drift-4 {
    width: 155px;
    height: auto;
    bottom: 80px;
    left: -200px;
    animation: cloudMove 40s linear infinite;
    animation-delay: -26s;
}

@keyframes cloudMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(100vw + 350px)); }
}

/* ==========================================================================
   SECTION 2: SKY & FEATURES EXPLANATION (CARDBOARD NOTEBOOK PLAYGROUND)
   ========================================================================== */
.sky-features-section {
    position: relative;
    width: 100%;
    /* The Authentic Cardboard Cosmos Background */
    background:
        linear-gradient(90deg, transparent 0 62px, rgba(230, 30, 70, 0.55) 62px 65px, transparent 65px),
        linear-gradient(112deg, transparent 0 31%, rgba(60, 30, 0, 0.1) 31% 31.3%, transparent 31.3%),
        linear-gradient(64deg, transparent 0 66%, rgba(255, 255, 255, 0.45) 66% 66.4%, transparent 66.4%),
        repeating-linear-gradient(0deg, transparent 0 33px, rgba(40, 110, 220, 0.3) 33px 35px),
        radial-gradient(rgba(90, 55, 15, 0.25) 1px, transparent 1.6px) 0 0/7px 9px,
        radial-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 2px) 3px 4px/11px 13px,
        var(--cardboard);
    color: var(--ink);
    padding: 7rem 1.5rem 6rem 1.5rem;
    overflow: hidden;
    z-index: 25;
}

/* Seamless top atmospheric mist blending from cloud base into cardboard */
.sky-features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 75px;
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0.35) 0%,
        rgba(229, 217, 197, 0.2) 60%,
        transparent 100%);
    pointer-events: none;
    z-index: 2;
}

.daytime-clouds-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

/* Gentle Floating Cutout Clouds in Section 2 Background */
.sky-drift-cloud {
    position: absolute;
    display: block;
    filter: drop-shadow(3px 3px 0 var(--ink));
    pointer-events: none;
    opacity: 0.85;
    z-index: 1;
}

.sky-cloud-1 {
    width: 150px;
    height: auto;
    top: 30px;
    left: -180px;
    animation: skyCloudDrift 38s linear infinite;
    animation-delay: -14s;
}

.sky-cloud-2 {
    width: 120px;
    height: auto;
    top: 85px;
    left: -150px;
    animation: skyCloudDrift 50s linear infinite;
    animation-delay: -32s;
}

@keyframes skyCloudDrift {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(100vw + 400px)); }
}

.sky-content-wrapper {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
}

/* Features Main Header */
.features-main-header {
    text-align: center;
    max-width: 920px;
    margin: 0 auto 3rem auto;
}

.header-retro-badge {
    display: inline-block;
    margin: 0 0 1.2rem;
    padding: 0.45rem 2rem;
    background: var(--lime);
    color: var(--ink);
    border: 0 dotted rgba(0, 0, 0, 0.35);
    border-width: 0 8px;
    transform: rotate(-2.5deg);
    font: 700 1rem var(--mono);
    box-shadow: 3px 3px 0 var(--ink);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-icon {
    color: var(--pink);
    margin: 0 4px;
}

.features-main-title {
    font-family: var(--imp);
    font-size: 2.6rem;
    color: var(--ink);
    line-height: 1.25;
    margin-bottom: 1.4rem;
    font-weight: normal;
    text-shadow: 3px 3px 0 var(--sun);
}

.features-main-desc {
    font-family: var(--mk);
    font-size: 1.15rem;
    color: #222222;
    line-height: 1.7;
    max-width: 820px;
    margin: 0 auto;
    background: var(--paper-warm);
    border: 3.5px solid var(--ink);
    border-radius: 16px;
    box-shadow: 5px 5px 0 var(--ink);
    padding: 1.2rem 1.8rem;
    transform: rotate(0.4deg);
}

/* --------------------------------------------------------------------------
   RETRO FLOW ROADMAP / TIMELINE (CARDBOARD PROGRESSION STEPPER)
   -------------------------------------------------------------------------- */
.retro-flow-timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    background: var(--paper-warm);
    padding: 1.4rem 2.2rem;
    border: 4px solid var(--ink);
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
    box-shadow: 8px 8px 0 var(--ink);
    margin: 0 auto 3.6rem auto;
    max-width: 1040px;
    transform: rotate(-0.5deg);
}

.flow-timeline-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #ffffff;
    border: 3px solid var(--ink);
    border-radius: 12px;
    padding: 0.5rem 1.1rem;
    box-shadow: 3px 3px 0 var(--ink);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.flow-timeline-step:nth-child(1) {
    background: var(--paper-yellow);
    transform: rotate(-2deg);
}

.flow-timeline-step:nth-child(3) {
    background: var(--paper-blue);
    transform: rotate(1.5deg);
}

.flow-timeline-step:nth-child(5) {
    background: var(--paper-pink);
    transform: rotate(-1.5deg);
}

.flow-timeline-step:nth-child(7) {
    background: var(--paper-warm);
    transform: rotate(2deg);
}

.flow-timeline-step:hover {
    transform: scale(1.08) rotate(0deg) !important;
    box-shadow: 5px 5px 0 var(--ink) !important;
}

.timeline-step-badge {
    font-family: var(--imp);
    font-size: 1.15rem;
    background: var(--ink);
    color: var(--sun);
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: 2px 2px 0 var(--pink);
    flex-shrink: 0;
}

.timeline-step-text {
    font-family: var(--imp);
    font-size: 1.1rem;
    color: var(--ink);
    letter-spacing: 0.02em;
}

.flow-timeline-arrow {
    color: var(--ink);
    font-family: var(--imp);
    font-size: 2.2rem;
    filter: drop-shadow(2px 2px 0 var(--sun));
    user-select: none;
}

/* --------------------------------------------------------------------------
   THE 4 FEATURE CARDS (SCRAPBOOK CARDBOARD CARDS)
   -------------------------------------------------------------------------- */
.features-retro-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.8rem;
}

.retro-feature-card {
    background: #ffffff;
    border: 4px solid var(--ink);
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
    padding: 2.6rem 2.2rem 2.2rem;
    box-shadow: 8px 8px 0 var(--ink);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28), box-shadow 0.2s ease;
}

.card-reflection {
    background: var(--paper-yellow) !important;
    transform: rotate(-1.2deg);
}

.card-module {
    background: var(--paper-blue) !important;
    border-radius: 15px 225px 15px 255px/255px 15px 225px 15px !important;
    transform: rotate(1.2deg);
}

.card-game {
    background: var(--paper-pink) !important;
    transform: rotate(-1deg);
}

.card-journal {
    background: var(--paper-warm) !important;
    border-radius: 15px 225px 15px 255px/255px 15px 225px 15px !important;
    transform: rotate(1.5deg);
}

.retro-feature-card:hover {
    transform: scale(1.04) rotate(0deg) !important;
    box-shadow: 12px 12px 0 var(--ink) !important;
}

/* Washi tape pinned to the top of each card */
.card-washi-tape {
    position: absolute;
    top: -16px;
    left: 24px;
    margin: 0;
    padding: 0.25rem 1.2rem;
    font-size: 0.85rem;
    z-index: 5;
    box-shadow: 2px 2px 0 var(--ink);
}

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

.feature-number-badge {
    font-family: var(--mono);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
    background: #ffffff;
    padding: 0.35rem 0.9rem;
    border: 2.5px solid var(--ink);
    border-radius: 6px;
    box-shadow: 3px 3px 0 var(--ink);
    transform: rotate(-2deg);
}

.feature-card-icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 2.2rem;
    line-height: 1;
    background: #ffffff;
    border: 3.5px solid var(--ink);
    box-shadow: 4px 4px 0 var(--ink);
    transform: rotate(4deg);
}

.feature-card-title {
    font-family: var(--imp);
    font-size: 1.85rem;
    color: var(--ink);
    margin-bottom: 0.8rem;
    font-weight: normal;
    text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.8);
}

.feature-card-text {
    font-family: var(--mk);
    font-size: 1.08rem;
    color: #262626;
    line-height: 1.65;
    flex: 1;
    margin-bottom: 1.6rem;
}

/* Step Flow Tag inside card */
.feature-flow-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #ffffff;
    border: 2.5px dashed var(--ink);
    border-radius: 8px;
    padding: 0.55rem 1rem;
    margin-top: auto;
    box-shadow: 3px 3px 0 var(--ink);
    width: fit-content;
    box-sizing: border-box;
}

.flow-tag-num {
    font-family: var(--mono);
    font-size: 0.85rem;
    font-weight: bold;
    background: var(--ink);
    color: var(--sun);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    line-height: 1;
    flex-shrink: 0;
}

.flow-tag-label {
    font-family: var(--mono);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.35;
}

/* Reminder Note (.flow-footer-reminder with .note style) */
.flow-footer-reminder {
    margin: 3.8rem auto 0 auto;
    max-width: 860px;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    text-align: left;
}

.reminder-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
}

.reminder-text {
    font-family: var(--mk);
    font-size: 1.15rem;
    color: var(--ink);
    line-height: 1.6;
}

.reminder-text strong {
    color: var(--pink);
    text-decoration: underline;
    text-decoration-thickness: 3px;
}

.reminder-text em {
    font-style: normal;
    background: var(--sun);
    padding: 0.15rem 0.5rem;
    border: 2px solid var(--ink);
    border-radius: 6px;
    font-weight: 700;
    box-shadow: 2px 2px 0 var(--ink);
}

/* --------------------------------------------------------------------------
   CRAFT BIRDS (PAPER CUTOUT BIRDS AROUND CARDS IN SECTION 2)
   -------------------------------------------------------------------------- */
.craft-bird {
    display: inline-block;
    pointer-events: none;
    filter: drop-shadow(3.5px 3.5px 0 var(--ink));
    transition: transform 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

/* Perched birds on each feature card */
.bird-card-1 {
    position: absolute;
    top: -24px;
    right: 28px;
    z-index: 12;
    animation: birdPerchBob1 4.2s ease-in-out infinite;
}

.bird-card-2 {
    position: absolute;
    top: -22px;
    right: 32px;
    z-index: 12;
    animation: birdPerchBob2 4.8s ease-in-out infinite 1.2s;
}

.bird-card-3 {
    position: absolute;
    top: -22px;
    right: 26px;
    z-index: 12;
    animation: birdPerchBob3 3.8s ease-in-out infinite 0.7s;
}

.bird-card-4 {
    position: absolute;
    top: -24px;
    right: 28px;
    z-index: 12;
    animation: birdPerchBob4 4.5s ease-in-out infinite 1.9s;
}

/* Card hover reaction: birds hop and flutter happily */
.retro-feature-card:hover .bird-card-1 {
    transform: translateY(-8px) rotate(14deg) scale(1.12);
}

.retro-feature-card:hover .bird-card-2 {
    transform: translateY(-8px) rotate(2deg) scale(1.12);
}

.retro-feature-card:hover .bird-card-3 {
    transform: translateY(-8px) rotate(12deg) scale(1.12);
}

.retro-feature-card:hover .bird-card-4 {
    transform: translateY(-8px) rotate(-1deg) scale(1.12);
}

/* Floating ambient birds in grid margins */
.features-retro-grid-wrapper {
    position: relative;
    width: 100%;
}

.bird-grid-float-left {
    position: absolute;
    top: 25%;
    left: -55px;
    z-index: 11;
    animation: birdHoverGliderLeft 6s ease-in-out infinite;
}

.bird-grid-float-right {
    position: absolute;
    top: 55%;
    right: -55px;
    z-index: 11;
    animation: birdHoverGliderRight 7s ease-in-out infinite 2s;
}

/* Perched bird on Reminder Note */
.bird-reminder-note {
    position: absolute;
    top: -24px;
    right: 24px;
    z-index: 12;
    animation: birdPerchBobNote 5s ease-in-out infinite 0.5s;
}

.flow-footer-reminder:hover .bird-reminder-note {
    transform: translateY(-6px) rotate(10deg) scale(1.1);
}

@keyframes birdPerchBob1 {
    0%, 100% { transform: translateY(0) rotate(8deg); }
    50% { transform: translateY(-4px) rotate(11deg); }
}

@keyframes birdPerchBob2 {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-4px) rotate(-2deg); }
}

@keyframes birdPerchBob3 {
    0%, 100% { transform: translateY(0) rotate(6deg); }
    50% { transform: translateY(-4px) rotate(9deg); }
}

@keyframes birdPerchBob4 {
    0%, 100% { transform: translateY(0) rotate(-6deg); }
    50% { transform: translateY(-4px) rotate(-3deg); }
}

@keyframes birdPerchBobNote {
    0%, 100% { transform: translateY(0) rotate(5deg); }
    50% { transform: translateY(-4px) rotate(8deg); }
}

@keyframes birdHoverGliderLeft {
    0%, 100% { transform: translateY(0) rotate(-4deg); }
    50% { transform: translateY(-10px) rotate(3deg); }
}

@keyframes birdHoverGliderRight {
    0%, 100% { transform: translateY(0) rotate(4deg); }
    50% { transform: translateY(-12px) rotate(-3deg); }
}

@media (max-width: 1280px) {
    .bird-grid-float-left,
    .bird-grid-float-right {
        display: none;
    }
}

/* ==========================================================================
   SECTION 3: MULTI-LAYERED GRASS & FOOTER LANDSCAPE (CRAFT HILLS & CARDBOARD BASE)
   ========================================================================== */
.layered-grass-footer {
    position: relative;
    width: 100%;
    z-index: 30;
    background: transparent;
}

/* Grass Hills Wrapper with Layered Craft Cutouts */
.grass-hills-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.grass-layer {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    shape-rendering: crispEdges;
}

.grass-layer-far {
    z-index: 1;
    filter: drop-shadow(0 -3px 0 var(--ink));
}

.grass-layer-mid {
    z-index: 2;
    filter: drop-shadow(0 -3px 0 var(--ink));
}

.grass-layer-near {
    z-index: 3;
    filter: drop-shadow(0 -4px 0 var(--ink));
}

/* Paper Flowers & Meadow Details */
.pixel-meadow-details {
    position: absolute;
    bottom: 43px;
    left: 0;
    width: 100%;
    height: 0;
    z-index: 4;
    pointer-events: none;
}

.pixel-flower,
.pixel-grass-tuft {
    position: absolute;
    bottom: 0;
    font-size: 1.6rem;
    line-height: 1;
    filter: drop-shadow(3px 3px 0 var(--ink));
    animation: gentleSway 1.2s steps(1, end) infinite;
}

.fl-1 { animation-delay: 0.2s; }
.fl-2 { animation-delay: 0.8s; font-size: 1.8rem; }
.fl-3 { animation-delay: 1.4s; }
.fl-4 { animation-delay: 0.5s; font-size: 1.7rem; }
.fl-5 { animation-delay: 1.1s; }
.gt-1 { animation-delay: 0.4s; font-size: 1.4rem; }
.gt-2 { animation-delay: 1.7s; font-size: 1.4rem; }
.gt-3 { animation-delay: 0.9s; font-size: 1.4rem; }

@keyframes gentleSway {
    0% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Footer Earth / Ground Base: Kraft Cardboard Binder Base */
.footer-earth-ground {
    background:
        linear-gradient(90deg, transparent 0 62px, rgba(138, 90, 36, 0.4) 62px 64px, transparent 64px),
        repeating-linear-gradient(0deg, transparent 0 33px, rgba(138, 90, 36, 0.25) 33px 35px),
        radial-gradient(rgba(80, 45, 10, 0.3) 1px, transparent 1.6px) 0 0/7px 9px,
        var(--kraft);
    border-top: 5px solid var(--ink);
    padding: 3.5rem 1.5rem 2.8rem 1.5rem;
    position: relative;
    z-index: 5;
    box-shadow: inset 0 6px 0 rgba(0, 0, 0, 0.15);
}

.footer-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

/* Footer Main Grid */
.footer-main-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3.5rem;
    margin-bottom: 3.5rem;
}

.footer-retro-badge {
    margin-bottom: 1.2rem;
}

.footer-headline {
    font-family: var(--imp);
    font-size: 2.3rem;
    color: var(--ink);
    line-height: 1.3;
    font-weight: normal;
    text-shadow: 3px 3px 0 var(--sun);
}

.headline-highlight {
    color: var(--pink);
    text-shadow: 3px 3px 0 var(--sun);
}

/* Pinned Contact Cards */
.footer-contact-blocks {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    background: var(--paper-warm);
    border: 4px solid var(--ink);
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
    padding: 1.6rem 1.8rem;
    box-shadow: 6px 6px 0 var(--ink);
    position: relative;
    transform: rotate(-1deg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:nth-child(even) {
    transform: rotate(1.2deg);
    border-radius: 15px 225px 15px 255px/255px 15px 225px 15px;
}

.contact-card:hover {
    transform: scale(1.03) rotate(0deg);
    box-shadow: 9px 9px 0 var(--ink);
}

.contact-pin-tape {
    position: absolute;
    top: -14px;
    left: 20px;
    margin: 0;
    padding: 0.2rem 1rem;
    font-size: 0.8rem;
    box-shadow: 2px 2px 0 var(--ink);
}

.contact-card-title {
    font-family: var(--imp);
    font-size: 1.35rem;
    color: var(--ink);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 1px 1px 0 var(--sun);
}

.card-title-icon {
    font-size: 1.2rem;
}

.contact-card-desc {
    font-family: var(--mono);
    font-weight: 700;
    font-size: 1rem;
    color: #222222;
    line-height: 1.6;
}

.contact-link {
    color: var(--ink);
    text-decoration: none;
    font-family: var(--mono);
    font-weight: 800;
    font-size: 1.1rem;
    background: var(--sun);
    padding: 0.25rem 0.75rem;
    border: 2px solid var(--ink);
    border-radius: 6px;
    box-shadow: 2px 2px 0 var(--ink);
    display: inline-block;
    transition: transform 0.15s ease, background 0.15s ease;
}

.contact-link:hover,
.contact-link:focus-visible {
    background: var(--lime);
    transform: scale(1.06);
}

/* Cardboard Dash Separator */
.footer-separator {
    height: 4px;
    border-top: 4px dashed var(--ink);
    margin-bottom: 2rem;
}

/* Footer Bottom Bar: Social & Copyright */
.footer-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-social-group {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

/* Cardboard Stamp Buttons */
.social-retro-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--paper-warm);
    color: var(--ink);
    font-family: var(--imp);
    font-size: 1.05rem;
    padding: 0.65rem 1.4rem;
    border: 3px solid var(--ink);
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 4px 4px 0 var(--ink);
    transform: rotate(-1.5deg);
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.social-retro-btn:nth-child(even) {
    transform: rotate(1.5deg);
}

.social-retro-btn:hover {
    background: var(--lime);
    transform: scale(1.08) rotate(0deg);
    box-shadow: 6px 6px 0 var(--ink);
}

.social-retro-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--ink);
}

.footer-copyright-note {
    font-family: var(--mono);
    font-size: 0.95rem;
    color: var(--ink);
}

/* ==========================================================================
   RESPONSIVE DESIGN RULES
   ========================================================================== */
@media (max-width: 1024px) {
    .features-main-title {
        font-size: 2.1rem;
    }

    .footer-main-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 860px) {
    .hero-cosmic-section {
        height: 90vh;
        min-height: 520px;
    }

    .caretech-brand-wrapper {
        margin-bottom: 0.8rem;
        gap: 12px;
        padding: 0.5rem 1.6rem;
    }

    .caretech-brand-title {
        font-size: 2.7rem;
    }

    .caretech-brand-logo {
        width: 60px;
        height: 60px;
    }

    .btn-starfall-giant {
        font-size: 1.15rem;
        padding: 0.85rem 2rem;
        gap: 10px;
    }

    .pixel-globe-canvas {
        width: min(530px, 90vw, 65vh);
        height: min(530px, 90vw, 65vh);
    }

    .features-retro-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .retro-flow-timeline {
        padding: 1rem 1.4rem;
        gap: 0.8rem;
        margin-bottom: 2.6rem;
    }

    .timeline-step-text {
        font-size: 0.95rem;
    }

    .flow-footer-reminder {
        margin-top: 2.5rem;
        padding: 1.8rem 1.4rem;
    }

    .features-main-title {
        font-size: 1.9rem;
    }

    .footer-headline {
        font-size: 1.85rem;
    }
}

@media (max-width: 540px) {
    .hero-cosmic-section {
        height: 90vh;
        min-height: 460px;
    }

    .caretech-brand-wrapper {
        margin-bottom: 0.6rem;
        gap: 10px;
        padding: 0.4rem 1.2rem;
    }

    .caretech-brand-title {
        font-size: 2rem;
    }

    .caretech-brand-logo {
        width: 48px;
        height: 48px;
    }

    .btn-starfall-giant {
        font-size: 0.95rem;
        padding: 0.75rem 1.4rem;
        border-width: 4px;
        gap: 8px;
        white-space: nowrap !important;
        max-width: 92vw;
    }

    .pixel-globe-canvas {
        width: min(380px, 92vw, 58vh);
        height: min(380px, 92vw, 58vh);
        box-shadow: none;
        border: none;
    }

    .features-main-title {
        font-size: 1.55rem;
    }

    .features-main-desc {
        font-size: 1rem;
        padding: 1rem;
    }

    .retro-feature-card {
        padding: 2.2rem 1.4rem 1.6rem;
    }

    .retro-flow-timeline {
        padding: 0.85rem 0.9rem;
        gap: 0.5rem;
        margin-bottom: 2.2rem;
    }

    .flow-timeline-step {
        padding: 0.35rem 0.65rem;
    }

    .timeline-step-badge {
        width: 1.8rem;
        height: 1.8rem;
        font-size: 0.85rem;
    }

    .timeline-step-text {
        font-size: 0.85rem;
    }

    .flow-timeline-arrow {
        font-size: 1.4rem;
    }

    .feature-flow-tag {
        max-width: 100%;
        width: 100%;
    }

    .flow-footer-reminder {
        flex-direction: column;
        text-align: center;
        gap: 0.6rem;
        padding: 1.8rem 1.2rem;
    }

    .feature-card-title {
        font-size: 1.5rem;
    }

    .footer-headline {
        font-size: 1.55rem;
    }

    .footer-bottom-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .globe-floating-container,
    .globe-space-shadow,
    .css-pixel-stars,
    .btn-arrow-icon,
    .caretech-brand-logo,
    .pixel-cloud,
    .paper-cloud-drift,
    .craft-bird,
    .pixel-flower,
    .pixel-grass-tuft,
    .sky-drift-cloud,
    .deb {
        animation: none !important;
    }
}
