@layer reset, base, components, animations, utilities;

/* =========================================
   🌤️ NUVEM GOSPEL SKY — Design System
   Paleta: Azul Céu + Nuvens Brancas
   Ultra-light, clean & airy
========================================= */

/* ------- RESET ------- */
@layer reset {

    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    html:focus-within {
        scroll-behavior: smooth;
    }

    body {
        margin: 0;
    }

    img,
    picture,
    video,
    canvas,
    svg {
        display: block;
        max-width: 100%;
    }

    input,
    button,
    textarea,
    select {
        font: inherit;
    }

    a {
        color: inherit;
        text-decoration: none;
    }

    button {
        cursor: pointer;
    }
}

/* ------- BASE / TOKENS ------- */
@layer base {
    :root {
        /* Sky Blues - Céu Claro */
        --sky-50: #f0f9ff;
        --sky-100: #e0f2fe;
        --sky-200: #bae6fd;
        --sky-300: #7dd3fc;
        --sky-400: #38bdf8;
        --sky-500: #0ea5e9;
        --sky-600: #0284c7;
        --sky-700: #0369a1;

        /* Cloud Whites - Nuvens */
        --cloud-white: #ffffff;
        --cloud-soft: #f8fafc;
        --cloud-mist: #f1f5f9;
        --cloud-gray: #e2e8f0;

        /* Primary palette */
        --bg: linear-gradient(180deg, #e0f2fe 0%, #f0f9ff 30%, #ffffff 100%);
        --bg-solid: #f0f9ff;
        --surface: rgba(255, 255, 255, 0.85);
        --surface-blur: rgba(255, 255, 255, 0.6);
        --surface-subtle: rgba(255, 255, 255, 0.5);

        /* Borders & Strokes */
        --stroke: rgba(56, 189, 248, 0.2);
        --stroke-soft: rgba(186, 230, 253, 0.5);
        --stroke-hover: rgba(14, 165, 233, 0.3);

        /* Typography Colors */
        --text: #0c4a6e;
        --text-dark: #082f49;
        --text-muted: #64748b;
        --text-soft: #94a3b8;

        /* Brand */
        --brand: #0ea5e9;
        --brand-light: #38bdf8;
        --brand-dark: #0284c7;
        --brand-glow: rgba(14, 165, 233, 0.15);

        /* Semantic */
        --success: #10b981;
        --success-bg: #d1fae5;
        --warning: #f59e0b;
        --warning-bg: #fef3c7;

        /* Shadows (suaves como nuvens) */
        --shadow-float:
            0 4px 6px -1px rgba(14, 165, 233, 0.06),
            0 10px 20px -5px rgba(14, 165, 233, 0.08),
            0 25px 50px -12px rgba(14, 165, 233, 0.12);
        --shadow-soft:
            0 2px 4px rgba(14, 165, 233, 0.04),
            0 8px 16px rgba(14, 165, 233, 0.06);
        --shadow-glow:
            0 0 40px rgba(14, 165, 233, 0.12),
            0 0 80px rgba(56, 189, 248, 0.08);

        /* Layout */
        --radius-sm: 12px;
        --radius-md: 18px;
        --radius-lg: 24px;
        --radius-xl: 32px;
        --radius-full: 999px;

        --container: 1140px;
        --pad: clamp(20px, 4vw, 32px);

        /* Typography */
        --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        --h1: clamp(2.25rem, 5vw, 3.5rem);
        --h2: clamp(1.75rem, 3.5vw, 2.5rem);
        --h3: clamp(1.25rem, 2vw, 1.5rem);
        --body: clamp(1rem, 1.5vw, 1.125rem);
        --small: 0.875rem;
        --tiny: 0.75rem;
    }

    html {
        color-scheme: light;
    }

    body {
        font-family: var(--font);
        color: var(--text);
        background: var(--bg);
        background-attachment: fixed;
        min-height: 100vh;
        line-height: 1.6;
        overflow-x: hidden;
        position: relative;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    /* Ambient floating clouds background */
    body::before,
    body::after {
        content: '';
        position: fixed;
        border-radius: 50%;
        filter: blur(80px);
        opacity: 0.6;
        z-index: -1;
        animation: float-ambient 20s ease-in-out infinite;
        pointer-events: none;
    }

    body::before {
        width: 600px;
        height: 400px;
        background: radial-gradient(circle, rgba(186, 230, 253, 0.6) 0%, transparent 70%);
        top: 10%;
        left: -10%;
    }

    body::after {
        width: 500px;
        height: 350px;
        background: radial-gradient(circle, rgba(125, 211, 252, 0.5) 0%, transparent 70%);
        bottom: 15%;
        right: -5%;
        animation-delay: -10s;
    }

    .container {
        width: min(var(--container), calc(100% - var(--pad) * 2));
        margin-inline: auto;
    }

    .skip {
        position: absolute;
        left: -999px;
        top: 0;
        background: var(--brand);
        color: white;
        padding: 12px 18px;
        border-radius: var(--radius-md);
        z-index: 9999;
        font-weight: 600;
    }

    .skip:focus {
        left: 16px;
        top: 16px;
    }

    .section {
        padding: clamp(60px, 8vw, 120px) 0;
        position: relative;
    }

    /* Typography */
    h1,
    h2,
    h3 {
        margin: 0;
        color: var(--text-dark);
        letter-spacing: -0.02em;
        line-height: 1.2;
    }

    h1 {
        font-size: var(--h1);
        font-weight: 800;
    }

    h2 {
        font-size: var(--h2);
        font-weight: 700;
    }

    h3 {
        font-size: var(--h3);
        font-weight: 600;
    }

    p {
        margin: 0;
        font-size: var(--body);
        color: var(--text-muted);
        line-height: 1.7;
    }

    .kicker {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 10px 16px;
        margin-bottom: 16px;
        background: var(--surface);
        border: 1px solid var(--stroke-soft);
        border-radius: var(--radius-full);
        box-shadow: var(--shadow-soft);
        font-size: var(--small);
        color: var(--text-muted);
        backdrop-filter: blur(12px);
    }

    .kicker b {
        color: var(--brand-dark);
        font-weight: 700;
    }

    .divider {
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--stroke-soft), transparent);
        margin: clamp(24px, 4vw, 40px) 0;
    }

    /* Responsive Grid */
    .grid {
        display: grid;
        gap: 20px;
    }

    .cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    @media (max-width: 1024px) {
        .cols-4 {
            grid-template-columns: repeat(2, 1fr);
        }

        .cols-3 {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 640px) {

        .cols-4,
        .cols-3,
        .cols-2 {
            grid-template-columns: 1fr;
        }
    }
}

/* ------- ANIMATIONS ------- */
@layer animations {
    @keyframes float-ambient {

        0%,
        100% {
            transform: translate(0, 0) scale(1);
        }

        33% {
            transform: translate(30px, -20px) scale(1.05);
        }

        66% {
            transform: translate(-20px, 15px) scale(0.95);
        }
    }

    @keyframes float-y {

        0%,
        100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-8px);
        }
    }

    @keyframes fade-in-up {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes slide-in-right {
        from {
            opacity: 0;
            transform: translateX(30px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @keyframes pulse-glow {

        0%,
        100% {
            box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4);
        }

        50% {
            box-shadow: 0 0 0 12px rgba(14, 165, 233, 0);
        }
    }

    @keyframes shimmer {
        0% {
            background-position: -200% center;
        }

        100% {
            background-position: 200% center;
        }
    }

    @keyframes cloud-drift {
        0% {
            transform: translateX(-5%);
            opacity: 0.5;
        }

        50% {
            opacity: 0.8;
        }

        100% {
            transform: translateX(105%);
            opacity: 0.5;
        }
    }

    /* Reveal on scroll */
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
            transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 {
        transition-delay: 0.1s;
    }

    .reveal-delay-2 {
        transition-delay: 0.2s;
    }

    .reveal-delay-3 {
        transition-delay: 0.3s;
    }

    @media (prefers-reduced-motion: reduce) {

        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }

        .reveal {
            opacity: 1;
            transform: none;
        }
    }
}

/* ------- COMPONENTS ------- */
@layer components {

    /* ===== HEADER ===== */
    .header {
        position: sticky;
        top: 0;
        z-index: 100;
        padding: 14px 0;
        background: var(--surface-blur);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--stroke-soft);
        transition: all 0.3s ease;
    }

    .header.scrolled {
        box-shadow: var(--shadow-soft);
    }

    .header-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
    }

    .brand {
        display: flex;
        align-items: center;
        gap: 14px;
        transition: transform 0.3s ease;
    }

    .brand:hover {
        transform: translateY(-2px);
    }

    .brand-icon {
        width: 44px;
        height: 44px;
        background: linear-gradient(135deg, var(--sky-400), var(--sky-600));
        border-radius: var(--radius-md);
        display: grid;
        place-items: center;
        box-shadow: var(--shadow-soft);
        animation: float-y 4s ease-in-out infinite;
    }

    .brand-icon svg {
        width: 24px;
        height: 24px;
        color: white;
    }

    .brand-name {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .brand-name strong {
        font-size: 1rem;
        font-weight: 700;
        color: var(--text-dark);
    }

    .brand-name span {
        font-size: var(--tiny);
        color: var(--text-soft);
    }

    .nav {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .nav a {
        padding: 10px 16px;
        border-radius: var(--radius-full);
        font-size: var(--small);
        font-weight: 500;
        color: var(--text-muted);
        transition: all 0.25s ease;
        position: relative;
    }

    .nav a:hover {
        color: var(--brand);
        background: var(--brand-glow);
    }

    .nav a.active {
        color: var(--brand-dark);
        background: var(--surface);
        box-shadow: var(--shadow-soft);
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .menu-btn {
        display: none;
        width: 44px;
        height: 44px;
        border: 1px solid var(--stroke-soft);
        background: var(--surface);
        border-radius: var(--radius-md);
        place-items: center;
        color: var(--text);
        transition: all 0.25s ease;
    }

    .menu-btn:hover {
        background: var(--brand-glow);
        border-color: var(--stroke-hover);
    }

    @media (max-width: 900px) {
        .nav {
            display: none;
        }

        .menu-btn {
            display: grid;
        }
    }

    .mobile-drawer {
        display: none;
        padding: 16px;
        margin-top: 12px;
        background: var(--surface);
        border: 1px solid var(--stroke-soft);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-float);
        backdrop-filter: blur(20px);
    }

    .mobile-drawer.open {
        display: block;
    }

    .mobile-drawer a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        border-radius: var(--radius-md);
        font-weight: 500;
        color: var(--text-muted);
        transition: all 0.25s ease;
    }

    .mobile-drawer a:hover {
        background: var(--brand-glow);
        color: var(--brand-dark);
    }

    /* ===== BUTTONS ===== */
    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 14px 24px;
        border-radius: var(--radius-full);
        border: 1px solid var(--stroke-soft);
        background: var(--surface);
        color: var(--text);
        font-weight: 600;
        font-size: var(--small);
        box-shadow: var(--shadow-soft);
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        cursor: pointer;
        white-space: nowrap;
    }

    .btn:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-float);
    }

    .btn:active {
        transform: translateY(-1px);
    }

    .btn.primary {
        background: linear-gradient(135deg, var(--sky-400), var(--brand));
        border-color: transparent;
        color: white;
        box-shadow:
            var(--shadow-soft),
            0 4px 16px rgba(14, 165, 233, 0.25);
    }

    .btn.primary:hover {
        background: linear-gradient(135deg, var(--sky-500), var(--brand-dark));
        box-shadow:
            var(--shadow-float),
            0 8px 24px rgba(14, 165, 233, 0.35);
    }

    .btn.ghost {
        background: transparent;
        border-color: transparent;
        box-shadow: none;
        color: var(--brand);
    }

    .btn.ghost:hover {
        background: var(--brand-glow);
        box-shadow: none;
    }

    .btn svg {
        width: 18px;
        height: 18px;
    }

    /* ===== HERO ===== */
    .hero {
        padding: clamp(40px, 8vw, 80px) 0;
        position: relative;
        overflow: hidden;
    }

    /* Floating clouds decoration */
    .hero-clouds {
        position: absolute;
        inset: 0;
        pointer-events: none;
        overflow: hidden;
        z-index: 0;
    }

    .cloud {
        position: absolute;
        width: 200px;
        height: 100px;
        background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.9) 0%, transparent 70%);
        border-radius: 50%;
        filter: blur(25px);
        animation: cloud-drift 45s linear infinite;
    }

    .cloud:nth-child(1) {
        top: 10%;
        animation-duration: 45s;
        animation-delay: 0s;
        width: 300px;
    }

    .cloud:nth-child(2) {
        top: 30%;
        animation-duration: 55s;
        animation-delay: -15s;
        width: 250px;
    }

    .cloud:nth-child(3) {
        top: 60%;
        animation-duration: 60s;
        animation-delay: -30s;
        width: 220px;
    }

    .hero-grid {
        display: grid;
        grid-template-columns: 1.2fr 0.8fr;
        gap: 32px;
        align-items: center;
        position: relative;
        z-index: 1;
    }

    @media (max-width: 900px) {
        .hero-grid {
            grid-template-columns: 1fr;
        }
    }

    .hero-content {
        max-width: 640px;
    }

    .hero-title {
        margin-bottom: 20px;
        background: linear-gradient(135deg, var(--text-dark), var(--brand-dark));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .hero-sub {
        font-size: clamp(1.05rem, 2vw, 1.25rem);
        margin-bottom: 28px;
        max-width: 55ch;
    }

    .hero-cta {
        display: flex;
        flex-wrap: wrap;
        gap: 14px;
        margin-bottom: 32px;
    }

    .hero-pills {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .pill {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 16px;
        background: var(--surface);
        border: 1px solid var(--stroke-soft);
        border-radius: var(--radius-full);
        font-size: var(--small);
        color: var(--text-muted);
        backdrop-filter: blur(12px);
    }

    .pill i {
        width: 8px;
        height: 8px;
        background: var(--brand);
        border-radius: 50%;
        box-shadow: 0 0 0 4px var(--brand-glow);
        animation: pulse-glow 2s ease-in-out infinite;
    }

    .hero-side {
        position: relative;
    }

    .hero-card {
        background: var(--surface);
        border: 1px solid var(--stroke-soft);
        border-radius: var(--radius-xl);
        padding: 28px;
        box-shadow: var(--shadow-float);
        backdrop-filter: blur(20px);
        animation: float-y 6s ease-in-out infinite;
    }

    .hero-card h3 {
        margin-bottom: 12px;
        color: var(--text-dark);
    }

    /* ===== CARDS ===== */
    .card {
        background: var(--surface);
        border: 1px solid var(--stroke-soft);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-soft);
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        backdrop-filter: blur(12px);
    }

    .card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-float);
        border-color: var(--stroke-hover);
    }

    .card.pad {
        padding: 24px;
    }

    .card h3 {
        margin-bottom: 10px;
    }

    .card p {
        margin-bottom: 0;
    }

    /* App Cards */
    .app-card {
        display: flex;
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        height: 100%;
    }

    .app-top {
        display: flex;
        align-items: flex-start;
        gap: 14px;
    }

    .app-icon {
        width: 56px;
        height: 56px;
        border-radius: var(--radius-md);
        background: linear-gradient(135deg, var(--sky-100), var(--sky-200));
        border: 1px solid var(--stroke-soft);
        overflow: hidden;
        flex-shrink: 0;
        display: grid;
        place-items: center;
        transition: transform 0.3s ease;
    }

    .app-card:hover .app-icon {
        transform: scale(1.05);
    }

    .app-icon img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .app-meta {
        flex: 1;
    }

    .app-meta h3 {
        margin: 0 0 6px;
        font-size: 1.1rem;
    }

    .app-meta p {
        font-size: var(--small);
    }

    .app-badge {
        padding: 6px 12px;
        border-radius: var(--radius-full);
        font-size: var(--tiny);
        font-weight: 600;
        background: var(--cloud-mist);
        color: var(--text-muted);
        margin-left: auto;
        flex-shrink: 0;
    }

    .app-badge.live {
        background: var(--success-bg);
        color: #059669;
    }

    .app-badge.soon {
        background: var(--warning-bg);
        color: #b45309;
    }

    .app-actions {
        margin-top: auto;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    /* Quote Cards */
    .quote {
        padding: 24px;
        position: relative;
    }

    .quote::before {
        content: '"';
        position: absolute;
        left: 18px;
        top: 8px;
        font-size: 48px;
        color: var(--sky-200);
        font-family: Georgia, serif;
    }

    .quote p {
        position: relative;
        z-index: 1;
        color: var(--text);
        margin-top: 12px;
    }

    .quote .who {
        font-size: var(--tiny);
        color: var(--text-soft);
        margin-top: 12px;
    }

    /* Feature List */
    .list {
        display: grid;
        gap: 12px;
        margin-top: 12px;
    }

    .li {
        display: flex;
        align-items: flex-start;
        gap: 14px;
        padding: 14px 16px;
        background: var(--surface-subtle);
        border: 1px solid var(--stroke-soft);
        border-radius: var(--radius-md);
        transition: all 0.3s ease;
    }

    .li:hover {
        background: var(--surface);
        transform: translateX(4px);
    }

    .li svg {
        width: 20px;
        height: 20px;
        color: var(--brand);
        flex-shrink: 0;
        margin-top: 2px;
    }

    .li b {
        color: var(--text-dark);
    }

    .tagline {
        font-size: var(--small);
        color: var(--text-soft);
    }

    /* FAQ */
    details.faq {
        background: var(--surface);
        border: 1px solid var(--stroke-soft);
        border-radius: var(--radius-lg);
        padding: 18px 20px;
        transition: all 0.3s ease;
    }

    details.faq:hover {
        border-color: var(--stroke-hover);
    }

    details.faq[open] {
        background: var(--cloud-white);
        box-shadow: var(--shadow-soft);
    }

    details.faq summary {
        cursor: pointer;
        list-style: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        font-weight: 600;
        color: var(--text-dark);
        transition: color 0.3s ease;
    }

    details.faq summary::-webkit-details-marker {
        display: none;
    }

    details.faq summary::after {
        content: '+';
        font-size: 1.25rem;
        color: var(--brand);
        transition: transform 0.3s ease;
    }

    details.faq[open] summary::after {
        transform: rotate(45deg);
    }

    details.faq p {
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid var(--stroke-soft);
    }

    /* ===== FOOTER ===== */
    .footer {
        padding: 48px 0 64px;
        background: linear-gradient(180deg, transparent, var(--sky-50));
        border-top: 1px solid var(--stroke-soft);
        margin-top: 60px;
    }

    .footer-grid {
        display: grid;
        grid-template-columns: 1.2fr 0.8fr;
        gap: 32px;
        align-items: start;
    }

    @media (max-width: 768px) {
        .footer-grid {
            grid-template-columns: 1fr;
        }
    }

    .footer .brand {
        margin-bottom: 16px;
    }

    .fine {
        font-size: var(--tiny);
        color: var(--text-soft);
        line-height: 1.7;
    }

    /* ===== PAGE HERO (subpages) ===== */
    .page-hero {
        padding: clamp(32px, 6vw, 60px) 0;
    }

    .page-hero .wrap {
        display: grid;
        grid-template-columns: 1.15fr 0.85fr;
        gap: 28px;
        align-items: stretch;
    }

    @media (max-width: 900px) {
        .page-hero .wrap {
            grid-template-columns: 1fr;
        }
    }

    .media {
        background: var(--surface);
        border: 1px solid var(--stroke-soft);
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-float);
        padding: 24px;
        min-height: 280px;
    }

    /* ===== FORMS ===== */
    .form {
        display: grid;
        gap: 16px;
    }

    .row2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    @media (max-width: 640px) {
        .row2 {
            grid-template-columns: 1fr;
        }
    }

    .field {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    label {
        font-size: var(--small);
        font-weight: 500;
        color: var(--text-muted);
    }

    input,
    textarea,
    select {
        padding: 14px 18px;
        border: 1px solid var(--stroke-soft);
        border-radius: var(--radius-md);
        background: var(--cloud-white);
        color: var(--text);
        font-size: 1rem;
        outline: none;
        transition: all 0.3s ease;
    }

    input:focus,
    textarea:focus,
    select:focus {
        border-color: var(--brand);
        box-shadow: 0 0 0 4px var(--brand-glow);
    }

    input::placeholder,
    textarea::placeholder {
        color: var(--text-soft);
    }

    textarea {
        min-height: 140px;
        resize: vertical;
    }

    .success {
        background: var(--success-bg);
        border: 1px solid #10b981;
        border-radius: var(--radius-lg);
        padding: 18px;
        color: #065f46;
    }

    .notice {
        background: var(--warning-bg);
        border: 1px solid #f59e0b;
        border-radius: var(--radius-lg);
        padding: 18px;
        color: #92400e;
    }

    /* CTA Section */
    .cta-box {
        background: linear-gradient(135deg, var(--sky-100), var(--sky-50));
        border: 1px solid var(--stroke-soft);
        border-radius: var(--radius-xl);
        padding: clamp(32px, 5vw, 48px);
        text-align: center;
        position: relative;
        overflow: hidden;
    }

    .cta-box::before {
        content: '';
        position: absolute;
        inset: 0;
        background:
            radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 80% 70%, rgba(14, 165, 233, 0.1) 0%, transparent 50%);
        pointer-events: none;
    }

    .cta-box>* {
        position: relative;
        z-index: 1;
    }

    .cta-box h2 {
        margin-bottom: 16px;
    }

    .cta-box p {
        max-width: 50ch;
        margin: 0 auto 24px;
    }
}

/* ------- UTILITIES ------- */
@layer utilities {
    .top-space {
        margin-top: 24px;
    }

    .center {
        text-align: center;
    }

    .right {
        text-align: right;
    }

    .stack {
        display: grid;
        gap: 16px;
    }

    .flex-center {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .max-70 {
        max-width: 70ch;
    }

    .max-55 {
        max-width: 55ch;
    }

    .muted {
        color: var(--text-soft);
    }

    .mono {
        font-family: ui-monospace, monospace;
        font-size: var(--tiny);
    }
}

/* =========================================
   🌤️ NEW VISUAL HERO SECTION
   Clean animated scene with SVG sky
========================================= */

/* Visual Hero Container */
.hero-visual {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(180deg, #bae6fd 0%, #e0f2fe 50%, #f0f9ff 100%);
}

/* SVG Scene Background */
.hero-scene {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.sky-illustration {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Cloud Layer Animations */
.cloud-layer-1 {
    animation: cloud-move-slow 80s linear infinite;
}

.cloud-layer-2 {
    animation: cloud-move-medium 50s linear infinite;
}

.cloud-layer-3 {
    animation: cloud-move-fast 30s linear infinite;
}

@keyframes cloud-move-slow {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(200px);
    }
}

@keyframes cloud-move-medium {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-150px);
    }
}

@keyframes cloud-move-fast {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(100px);
    }
}

/* Sun Animation */
.sun {
    animation: sun-pulse 4s ease-in-out infinite alternate;
}

.sun-glow {
    animation: sun-glow-pulse 6s ease-in-out infinite alternate;
}

@keyframes sun-pulse {
    0% {
        r: 58;
        opacity: 0.85;
    }

    100% {
        r: 62;
        opacity: 0.95;
    }
}

@keyframes sun-glow-pulse {
    0% {
        r: 170;
        opacity: 0.7;
    }

    100% {
        r: 190;
        opacity: 0.85;
    }
}

/* Birds Animation */
.bird {
    animation: bird-fly 12s ease-in-out infinite;
}

.bird-1 {
    transform: translate(300px, 100px);
    animation-delay: 0s;
}

.bird-2 {
    transform: translate(400px, 150px);
    animation-delay: -4s;
}

.bird-3 {
    transform: translate(500px, 120px);
    animation-delay: -8s;
}

@keyframes bird-fly {

    0%,
    100% {
        transform: translate(200px, 100px);
    }

    25% {
        transform: translate(600px, 80px);
    }

    50% {
        transform: translate(1000px, 120px);
    }

    75% {
        transform: translate(700px, 90px);
    }
}

/* Light Rays Animation */
.light-rays {
    animation: rays-pulse 8s ease-in-out infinite alternate;
}

@keyframes rays-pulse {
    0% {
        opacity: 0.1;
    }

    100% {
        opacity: 0.2;
    }
}

/* Hero Content Overlay */
.hero-visual-content {
    position: relative;
    z-index: 10;
    width: 100%;
    text-align: center;
    padding: 60px var(--pad);
}

.hero-center {
    max-width: 700px;
    margin: 0 auto;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--stroke-soft);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-soft);
    font-size: var(--small);
    font-weight: 500;
    color: var(--text-muted);
    backdrop-filter: blur(12px);
    margin-bottom: 24px;
}

.badge-icon {
    font-size: 1.25rem;
}

/* Hero Headline */
.hero-headline {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-muted);
    max-width: 50ch;
    margin: 0 auto 32px;
    line-height: 1.5;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.btn-lg {
    padding: 18px 32px;
    font-size: 1rem;
}

/* Scroll Hint */
.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-soft);
    font-size: var(--small);
    animation: bounce-down 2s ease-in-out infinite;
}

.scroll-hint svg {
    animation: bounce-down 2s ease-in-out infinite;
}

@keyframes bounce-down {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

/* =========================================
   📱 INTRO SECTION (Moved hero content)
========================================= */
.section-intro {
    background: var(--cloud-white);
    border-top: 1px solid var(--stroke-soft);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: start;
}

.intro-content h2 {
    margin-bottom: 16px;
}

.intro-content p {
    margin-bottom: 20px;
}

.intro-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.intro-card .card {
    height: 100%;
    padding: 28px;
}

@media (max-width: 900px) {
    .intro-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   📱 ANDROID APP-STYLE MOBILE NAVIGATION
   Native bottom tab bar experience
========================================= */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.08);
}

.mobile-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    height: 56px;
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 4px;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    transition: color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.8;
    transition: transform 0.15s ease;
}

.mobile-nav-item.active {
    color: var(--brand);
}

.mobile-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    background: var(--brand);
    border-radius: 0 0 3px 3px;
}

.mobile-nav-item.active svg {
    transform: scale(1.05);
}

.mobile-nav-item.primary {
    color: var(--brand);
}

/* Mobile Drawer (Full Screen) */
.drawer-cta {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--stroke-soft);
}

.drawer-cta .btn {
    width: 100%;
    justify-content: center;
}

/* Step Numbers for Journey Cards */
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--sky-400), var(--sky-600));
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    border-radius: 50%;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

/* =========================================
   📱 ANDROID APP MOBILE EXPERIENCE
   Full native app feel
========================================= */

/* Tablet */
@media (max-width: 900px) {
    .header-cta {
        display: none;
    }

    .hero-headline {
        font-size: clamp(2rem, 5vw, 2.5rem);
    }

    .hero-visual {
        min-height: 80vh;
    }
}

/* Mobile - Complete App Redesign */
@media (max-width: 640px) {

    /* === ROOT OVERRIDES === */
    :root {
        --pad: 16px;
        --radius-sm: 8px;
        --radius-md: 12px;
        --radius-lg: 16px;
        --radius-xl: 20px;
    }

    /* === BASE APP STYLES === */
    html {
        overscroll-behavior-y: contain;
    }

    body {
        padding-bottom: 64px;
        background: #f8fafc;
        -webkit-tap-highlight-color: transparent;
    }

    /* === SHOW MOBILE NAV === */
    .mobile-nav {
        display: block;
    }

    /* === APP-STYLE HEADER (Fixed) === */
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        padding: 0;
        background: #ffffff;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
        backdrop-filter: none;
    }

    .header.scrolled {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .header-row {
        height: 56px;
        padding: 0 var(--pad);
    }

    .brand {
        gap: 10px;
    }

    .brand-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        animation: none;
    }

    .brand-icon svg {
        width: 18px;
        height: 18px;
    }

    .brand-name strong {
        font-size: 14px;
    }

    .brand-name span {
        display: none;
    }

    .menu-btn {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        border: none;
        background: #f1f5f9;
    }

    .menu-btn svg {
        width: 18px;
        height: 18px;
    }

    /* === MOBILE DRAWER (Full Screen Overlay) === */
    .mobile-drawer {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        bottom: 64px;
        background: #ffffff;
        margin: 0;
        padding: 0;
        border: none;
        border-radius: 0;
        z-index: 99;
        overflow-y: auto;
        box-shadow: none;
    }

    .mobile-drawer a {
        padding: 16px 20px;
        font-size: 15px;
        border-bottom: 1px solid #f1f5f9;
        border-radius: 0;
        justify-content: flex-start;
    }

    .mobile-drawer a:active {
        background: #f1f5f9;
    }

    .drawer-cta {
        position: sticky;
        bottom: 0;
        padding: 16px;
        background: #ffffff;
        border-top: 1px solid #f1f5f9;
        margin: 0;
    }

    /* === HERO (Ultra Compact - App Home Screen) === */
    .hero-visual {
        min-height: auto !important;
        max-height: none;
        padding: 64px 0 20px !important;
        background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
    }

    .hero-scene {
        display: none !important;
    }

    .hero-visual-content {
        padding: 12px var(--pad) 16px;
    }

    .hero-badge {
        padding: 5px 10px;
        font-size: 10px;
        margin-bottom: 10px;
        gap: 5px;
        background: rgba(14, 165, 233, 0.1);
        border: none;
    }

    .badge-icon {
        font-size: 12px;
    }

    .hero-headline {
        font-size: 22px !important;
        line-height: 1.2;
        margin-bottom: 8px;
    }

    .hero-tagline {
        font-size: 13px !important;
        margin-bottom: 16px !important;
        line-height: 1.45;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 0;
    }

    .hero-buttons .btn {
        width: 100%;
        padding: 12px 16px;
        font-size: 13px;
        border-radius: 10px;
        min-height: 44px;
    }

    .scroll-hint {
        display: none !important;
    }

    /* === SECTIONS (Compact) === */
    .section {
        padding: 28px 0;
    }

    .section-intro {
        padding: 20px 0 28px;
        background: #ffffff;
    }

    /* === INTRO SECTION === */
    .intro-grid {
        gap: 16px;
    }

    .intro-content h2 {
        font-size: 18px;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    .intro-content p {
        font-size: 13px;
        line-height: 1.55;
    }

    .intro-cta {
        margin-top: 14px;
    }

    .intro-cta .btn {
        padding: 12px 18px;
        font-size: 13px;
    }

    .intro-card .card {
        padding: 18px;
    }

    /* === CARDS (Material Style) === */
    .card {
        border-radius: 14px;
        border: none;
        background: #ffffff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
    }

    .card:hover {
        transform: none;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
    }

    .card:active {
        transform: scale(0.985);
        background: #fafafa;
    }

    .card.pad {
        padding: 14px;
    }

    .card h3 {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .card p {
        font-size: 12px;
        line-height: 1.5;
    }

    /* === APP CARDS === */
    .app-card {
        padding: 12px;
        gap: 10px;
    }

    .app-top {
        gap: 10px;
    }

    .app-icon {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }

    .app-meta h3 {
        font-size: 13px;
        margin-bottom: 2px;
    }

    .app-meta p {
        font-size: 11px;
        line-height: 1.35;
    }

    .app-badge {
        font-size: 9px;
        padding: 3px 6px;
    }

    .app-actions {
        gap: 6px;
    }

    .app-actions .btn {
        padding: 10px 14px;
        font-size: 12px;
        flex: 1;
        min-height: 40px;
    }

    /* === BUTTONS (Touch Optimized) === */
    .btn {
        min-height: 44px;
        padding: 12px 18px;
        font-size: 13px;
        border-radius: 10px;
        font-weight: 600;
        border: none;
    }

    .btn:active {
        transform: scale(0.97);
        opacity: 0.9;
    }

    .btn.primary {
        box-shadow: 0 2px 8px rgba(14, 165, 233, 0.2);
    }

    .btn.ghost {
        background: transparent;
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: 14px;
    }

    /* === GRIDS === */
    .grid {
        gap: 10px;
    }

    .grid.cols-2,
    .grid.cols-3,
    .grid.cols-4 {
        grid-template-columns: 1fr;
    }

    /* === LISTS === */
    .list {
        gap: 6px;
        margin-top: 10px;
    }

    .li {
        padding: 10px 12px;
        border-radius: 10px;
        gap: 10px;
        background: #f8fafc;
        border: none;
    }

    .li:hover {
        transform: none;
        background: #f8fafc;
    }

    .li svg {
        width: 16px;
        height: 16px;
    }

    .li b {
        font-size: 13px;
    }

    .tagline {
        font-size: 11px;
    }

    /* === PILLS (Horizontal Scroll) === */
    .hero-pills {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 6px;
        margin: 0 -16px;
        padding: 0 16px 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .hero-pills::-webkit-scrollbar {
        display: none;
    }

    .pill {
        flex-shrink: 0;
        padding: 6px 12px;
        font-size: 11px;
        white-space: nowrap;
        background: rgba(255, 255, 255, 0.9);
    }

    .pill i {
        width: 6px;
        height: 6px;
    }

    /* === KICKER === */
    .kicker {
        padding: 6px 10px;
        font-size: 11px;
        margin-bottom: 10px;
    }

    /* === DIVIDER === */
    .divider {
        margin: 20px 0;
    }

    /* === TYPOGRAPHY === */
    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 18px;
    }

    h3 {
        font-size: 15px;
    }

    .center h2 {
        font-size: 18px;
    }

    .center p {
        font-size: 13px;
    }

    /* === FAQ === */
    details.faq {
        padding: 12px 14px;
        border-radius: 12px;
        border: none;
        background: #ffffff;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    details.faq summary {
        font-size: 13px;
    }

    details.faq p {
        font-size: 12px;
        margin-top: 10px;
        padding-top: 10px;
    }

    /* === CTA BOX === */
    .cta-box {
        padding: 20px 16px;
        border-radius: 16px;
        border: none;
    }

    .cta-box h2 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .cta-box p {
        font-size: 13px;
        margin-bottom: 16px;
    }

    /* === QUOTES === */
    .quote {
        padding: 14px;
    }

    .quote::before {
        font-size: 32px;
        left: 10px;
        top: 4px;
    }

    .quote p {
        font-size: 12px;
        margin-top: 6px;
    }

    .quote .who {
        font-size: 10px;
        margin-top: 8px;
    }

    /* === FOOTER === */
    .footer {
        padding: 24px 0 80px;
        margin-top: 20px;
        background: #ffffff;
    }

    .footer-grid {
        gap: 20px;
    }

    .footer .brand-name span {
        display: block;
        font-size: 10px;
    }

    .footer .card.pad {
        padding: 14px;
    }

    .footer .stack {
        gap: 8px;
    }

    .footer h3 {
        font-size: 14px;
    }

    /* === FORMS === */
    input,
    textarea,
    select {
        padding: 12px 14px;
        font-size: 16px;
        border-radius: 10px;
        border: 1px solid #e2e8f0;
        background: #ffffff;
    }

    input:focus,
    textarea:focus,
    select:focus {
        border-color: var(--brand);
        box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.1);
    }

    .row2 {
        gap: 10px;
    }

    label {
        font-size: 12px;
    }

    /* === PAGE HERO (Subpages) === */
    .page-hero {
        padding: 64px 0 20px;
    }

    .page-hero .wrap {
        gap: 16px;
    }

    .page-hero .hero-card {
        padding: 16px;
        animation: none;
    }

    .media {
        min-height: auto;
        padding: 14px;
    }

    /* === SUCCESS/NOTICE MESSAGES === */
    .success,
    .notice {
        padding: 14px;
        font-size: 13px;
        border-radius: 12px;
    }

    /* === UTILITIES === */
    .top-space {
        margin-top: 14px;
    }

    .max-70,
    .max-55 {
        max-width: 100%;
    }

    .fine {
        font-size: 10px;
    }

    /* === REMOVE HOVER EFFECTS === */
    @media (hover: none) {

        .card:hover,
        .li:hover,
        .btn:hover,
        .brand:hover,
        .mobile-nav-item:hover {
            transform: none !important;
        }
    }
}

/* === SMALL PHONES === */
@media (max-width: 380px) {
    .hero-headline {
        font-size: 22px;
    }

    .hero-tagline {
        font-size: 13px;
    }

    .hero-buttons .btn {
        padding: 12px 16px;
        font-size: 13px;
    }

    .mobile-nav-item {
        font-size: 9px;
    }

    .mobile-nav-item svg {
        width: 22px;
        height: 22px;
    }

    .card.pad {
        padding: 12px;
    }

    .app-icon {
        width: 40px;
        height: 40px;
    }
}

/* === LANDSCAPE === */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-visual {
        min-height: auto;
        padding: 60px 0 24px;
    }

    .hero-headline {
        font-size: 22px;
    }
}

/* === TABLET (Larger than phone) === */
@media (min-width: 641px) and (max-width: 900px) {
    .mobile-nav {
        display: none;
    }

    body {
        padding-bottom: 0;
    }
}

/* === PWA STANDALONE MODE === */
@media (display-mode: standalone) {
    body {
        padding-top: env(safe-area-inset-top, 0);
    }

    .header {
        top: env(safe-area-inset-top, 0);
    }

    @media (max-width: 640px) {
        .mobile-nav {
            display: block;
        }
    }
}

/* === HIGH RES DISPLAYS === */
@media (min-width: 1600px) {
    :root {
        --container: 1280px;
    }

    .hero-headline {
        font-size: 5rem;
    }
}