/* ═══════════════════════════════════════════════
   SURETICS — LIQUID GLASS DESIGN SYSTEM v3
   WHITE & BLUE THEME — Light Mode Glassmorphism
   iOS Liquid Glass + Notch-to-Dynamic-Island Nav
   ═══════════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
    /* Brand Colors */
    --blue-700: #004EAA;
    --blue-600: #0062CC;
    --blue-500: #007AFF;
    --blue-400: #3395FF;
    --blue-300: #66B0FF;
    --blue-200: #99CAFF;
    --blue-100: #CCE4FF;
    --blue-50: #E8F3FF;
    --blue-glow: rgba(0, 122, 255, 0.3);
    --blue-glow-soft: rgba(0, 122, 255, 0.1);
    --blue-glow-strong: rgba(0, 122, 255, 0.5);

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Light-mode Liquid Glass */
    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-bg-hover: rgba(255, 255, 255, 0.75);
    --glass-bg-strong: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.7);
    --glass-border-hover: rgba(0, 122, 255, 0.25);
    --glass-border-strong: rgba(255, 255, 255, 0.85);
    --glass-shadow: 0 8px 32px rgba(0, 30, 80, 0.08);
    --glass-shadow-lg: 0 20px 60px rgba(0, 30, 80, 0.12);
    --glass-shadow-xl: 0 30px 80px rgba(0, 30, 80, 0.16);
    --glass-blur: 24px;
    --glass-blur-heavy: 48px;
    --glass-blur-mega: 80px;

    /* Island */
    --island-bg: rgba(255, 255, 255, 0.8);
    --island-border: rgba(0, 30, 80, 0.08);

    /* Accents */
    --red-500: #FF3B30;
    --red-bg: rgba(255, 59, 48, 0.08);
    --orange-500: #FF9500;
    --orange-bg: rgba(255, 149, 0, 0.08);
    --green-500: #34C759;
    --green-bg: rgba(52, 199, 89, 0.08);

    /* Typography */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --fs-2xs: 0.6875rem;
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-md: 1.125rem;
    --fs-lg: 1.25rem;
    --fs-xl: 1.5rem;
    --fs-2xl: 2rem;
    --fs-3xl: 2.5rem;
    --fs-4xl: 3.25rem;
    --fs-5xl: 4.5rem;

    /* Spacing */
    --section-py: 120px;
    --max-w: 1200px;

    /* Motion */
    --spring: cubic-bezier(0.25, 1, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --t-fast: 0.2s var(--ease-out);
    --t-base: 0.4s var(--spring);
    --t-slow: 0.6s var(--spring);

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    --radius-full: 100px;
}

/* ── Reset ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--gray-50);
    color: var(--gray-800);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
}

strong {
    font-weight: 700;
    color: var(--gray-900);
}

/* ── LIQUID GLASS — Light Mode ── */
.liquid-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(0, 0, 0, 0.02);
    position: relative;
}

/* Refraction top highlight */
.liquid-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.95) 30%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0.95) 70%, transparent 100%);
    pointer-events: none;
    border-radius: inherit;
}

/* Card shine overlay */
.card-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%),
            rgba(0, 122, 255, 0.06), transparent 40%);
    z-index: 2;
}

/* ── AMBIENT ANIMATED BACKGROUND ── */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(165deg, var(--white) 0%, var(--blue-50) 30%, var(--gray-50) 60%, var(--white) 100%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    will-change: transform;
}

.orb-1 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.1) 0%, transparent 70%);
    top: -20%;
    right: -15%;
    animation: orb1 22s ease-in-out infinite;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.07) 0%, transparent 70%);
    bottom: -15%;
    left: -10%;
    animation: orb2 28s ease-in-out infinite;
}

.orb-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.05) 0%, transparent 70%);
    top: 40%;
    left: 30%;
    animation: orb3 20s ease-in-out infinite;
}

.orb-4 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(100, 149, 237, 0.06) 0%, transparent 70%);
    top: 20%;
    right: 20%;
    animation: orb4 24s ease-in-out infinite;
}

/* Noise overlay — very subtle for depth */
.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
}

@keyframes orb1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-50px, 70px) scale(1.1);
    }

    66% {
        transform: translate(40px, -50px) scale(0.95);
    }
}

@keyframes orb2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(60px, -40px) scale(1.05);
    }

    66% {
        transform: translate(-40px, 60px) scale(0.9);
    }
}

@keyframes orb3 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-70px, 50px);
    }
}

@keyframes orb4 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(50px, -60px);
    }
}


/* ═══════════════════════════════════
   DYNAMIC ISLAND — NOTCH TO DETACHED
   White/Blue Light Theme
   ═══════════════════════════════════ */
.dynamic-island {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    transition: top 0.55s var(--spring), transform 0.55s var(--spring);
}

.island-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--island-bg);
    backdrop-filter: blur(var(--glass-blur-heavy));
    -webkit-backdrop-filter: blur(var(--glass-blur-heavy));
    border: 1px solid transparent;
    border-top: none;
    border-radius: 0 0 26px 26px;
    padding: 10px 14px 10px 18px;
    box-shadow: 0 4px 32px rgba(0, 30, 80, 0.08),
        0 0 0 0.5px rgba(0, 0, 0, 0.04);
    width: min(780px, 92vw);
    height: 56px;
    overflow: hidden;
    transition: all 0.55s var(--spring);
    gap: 12px;
}

/* Notch mode */
.dynamic-island.notch-mode .island-pill {
    border-radius: 0 0 26px 26px;
    border-top: none;
    border-color: transparent;
    border-bottom-color: rgba(0, 0, 0, 0.06);
    border-left-color: rgba(0, 0, 0, 0.06);
    border-right-color: rgba(0, 0, 0, 0.06);
}

/* Detached mode */
.dynamic-island.detached-mode {
    top: 14px;
}

.dynamic-island.detached-mode .island-pill {
    border-radius: var(--radius-full);
    border: 1px solid rgba(0, 30, 80, 0.06);
    box-shadow: 0 8px 40px rgba(0, 30, 80, 0.1),
        0 0 60px rgba(0, 122, 255, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    height: 52px;
    padding: 8px 14px 8px 18px;
}

/* Compact mode */
.dynamic-island.compact-mode {
    top: 14px;
}

.dynamic-island.compact-mode .island-pill {
    width: 180px;
    height: 44px;
    border-radius: 22px;
    border: 1px solid rgba(0, 30, 80, 0.06);
    padding: 6px 12px;
    gap: 8px;
    justify-content: center;
    box-shadow: 0 4px 24px rgba(0, 30, 80, 0.1);
}

.dynamic-island.compact-mode .island-center,
.dynamic-island.compact-mode .island-cta-btn,
.dynamic-island.compact-mode .island-brand {
    opacity: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Context indicator in compact */
.island-context {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.dynamic-island.compact-mode .island-context {
    opacity: 1;
}

.context-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue-500);
    box-shadow: 0 0 8px var(--blue-glow);
}

.context-text {
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--gray-500);
    letter-spacing: -0.01em;
}

/* ─── Island Elements ─── */
.island-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    min-width: 36px;
    z-index: 2;
}

.island-logo {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    object-fit: contain;
    flex-shrink: 0;
}

.island-brand {
    font-weight: 800;
    font-size: var(--fs-sm);
    white-space: nowrap;
    transition: all 0.4s var(--spring);
    letter-spacing: -0.02em;
    color: var(--gray-900);
}

.brand-highlight {
    color: var(--blue-500);
}

.island-center {
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.4s var(--spring);
    flex-shrink: 1;
    overflow: hidden;
    z-index: 2;
}

.island-link {
    font-size: var(--fs-2xs);
    font-weight: 500;
    color: var(--gray-500);
    padding: 5px 10px;
    border-radius: var(--radius-full);
    transition: all var(--t-fast);
    white-space: nowrap;
}

.island-link:hover {
    color: var(--gray-800);
    background: rgba(0, 30, 80, 0.04);
}

.island-link.active {
    color: var(--blue-600);
    background: var(--blue-glow-soft);
}

.island-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    z-index: 2;
}

.island-cta-btn {
    display: inline-flex;
    font-size: var(--fs-2xs);
    font-weight: 700;
    background: var(--blue-500);
    color: var(--white);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    transition: all var(--t-fast);
    white-space: nowrap;
    box-shadow: 0 2px 12px var(--blue-glow-soft);
}

.island-cta-btn:hover {
    background: var(--blue-600);
    box-shadow: 0 4px 20px var(--blue-glow);
    transform: scale(1.03);
}

/* Hamburger */
.island-hamburger {
    width: 30px;
    height: 30px;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 4px;
    flex-shrink: 0;
    z-index: 2;
}

.island-hamburger span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--gray-500);
    border-radius: 2px;
    transition: all 0.3s var(--spring);
    transform-origin: center;
}

.dynamic-island.menu-open .island-hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.dynamic-island.menu-open .island-hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.dynamic-island.menu-open .island-hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile overlay — light glass */
.island-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(var(--glass-blur-mega));
    -webkit-backdrop-filter: blur(var(--glass-blur-mega));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out);
    z-index: -1;
}

.dynamic-island.menu-open .island-mobile-menu {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    font-size: var(--fs-2xl);
    font-weight: 800;
    color: var(--gray-900);
}

.mobile-brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.mobile-link {
    font-size: var(--fs-xl);
    font-weight: 600;
    color: var(--gray-500);
    padding: 12px 28px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.dynamic-island.menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.dynamic-island.menu-open .mobile-link:nth-child(2) {
    transition-delay: 0.05s;
}

.dynamic-island.menu-open .mobile-link:nth-child(3) {
    transition-delay: 0.1s;
}

.dynamic-island.menu-open .mobile-link:nth-child(4) {
    transition-delay: 0.15s;
}

.dynamic-island.menu-open .mobile-link:nth-child(5) {
    transition-delay: 0.2s;
}

.dynamic-island.menu-open .mobile-link:nth-child(6) {
    transition-delay: 0.25s;
}

.dynamic-island.menu-open .mobile-link:nth-child(7) {
    transition-delay: 0.3s;
}

.mobile-link:hover {
    color: var(--gray-900);
    background: rgba(0, 122, 255, 0.05);
}

.mobile-link.mobile-cta {
    margin-top: 20px;
    background: var(--blue-500);
    color: var(--white);
    font-size: var(--fs-lg);
    box-shadow: 0 4px 20px var(--blue-glow);
}

/* Desktop: hide hamburger */
@media(min-width: 769px) {
    .island-hamburger {
        display: none;
    }

    .island-mobile-menu {
        display: none;
    }
}

/* Mobile: hide desktop nav */
@media(max-width: 768px) {
    .island-hamburger {
        display: flex;
    }

    .island-center {
        display: none !important;
    }

    .island-cta-btn {
        display: none !important;
    }

    .island-pill {
        width: 92vw !important;
    }

    .dynamic-island.compact-mode .island-pill {
        width: 160px !important;
    }

    .island-context {
        display: none;
    }

    .dynamic-island.compact-mode .island-brand {
        opacity: 1;
        width: auto;
    }

    .dynamic-island.compact-mode .island-left {
        gap: 8px;
    }
}


/* ═══════════════════════
   SECTIONS — SHARED
   ═══════════════════════ */
.section {
    padding: var(--section-py) 0;
    max-width: var(--max-w);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.section-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--blue-600);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
}

.section-tag-red {
    color: var(--red-500);
}

.section-title {
    font-size: var(--fs-4xl);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin-bottom: 20px;
    color: var(--gray-900);
}

.section-desc {
    font-size: var(--fs-lg);
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.gradient-text {
    background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-400) 40%, var(--blue-500) 100%);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 5s linear infinite;
}

.gradient-text-red {
    background: linear-gradient(135deg, var(--red-500), #FF6B6B, var(--orange-500));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 300% center;
    }
}


/* ═══════════════════
   HERO SECTION
   ═══════════════════ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 110px 24px 80px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--blue-700);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    margin-bottom: 28px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-500);
    box-shadow: 0 0 12px rgba(52, 199, 89, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.hero-title {
    font-size: var(--fs-5xl);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.045em;
    margin-bottom: 24px;
    color: var(--gray-900);
}

.hero-subtitle {
    font-size: var(--fs-lg);
    font-weight: 400;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 520px;
}

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    border-radius: var(--radius-lg);
    padding: 6px;
    margin-bottom: 28px;
    transition: all var(--t-base);
    --glass-bg: rgba(255, 255, 255, 0.7);
}

.search-bar:focus-within {
    border-color: var(--blue-500);
    box-shadow: var(--glass-shadow-lg), 0 0 0 3px var(--blue-glow-soft);
}

.search-icon {
    padding: 0 12px;
    color: var(--gray-400);
    flex-shrink: 0;
}

.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--gray-800);
    font-size: var(--fs-base);
    font-weight: 500;
    padding: 12px 8px;
    font-family: var(--font);
    min-width: 0;
}

.search-bar input::placeholder {
    color: var(--gray-400);
}

.search-btn {
    background: var(--blue-500);
    color: var(--white);
    font-size: var(--fs-sm);
    font-weight: 700;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    transition: all var(--t-fast);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 12px var(--blue-glow-soft);
}

.search-btn:hover {
    background: var(--blue-600);
    box-shadow: 0 4px 20px var(--blue-glow);
}

.search-btn:active {
    transform: scale(0.97);
}

.search-btn.loading .search-btn-text {
    display: none;
}

.search-btn.loading .search-spinner {
    display: block;
}

.search-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Trust badges */
.hero-trust-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--gray-600);
    padding: 8px 16px;
    border-radius: var(--radius-full);
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 400px;
}

.hero-glass-card {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 44px;
    width: 100%;
    overflow: hidden;
    --glass-bg: rgba(255, 255, 255, 0.65);
    border-color: rgba(0, 122, 255, 0.1);
}

.hero-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.hero-logo-img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0, 122, 255, 0.2));
    animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.hero-card-badge {
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--blue-600);
    background: var(--blue-50);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--blue-100);
}

.hero-card-stats {
    display: flex;
    gap: 36px;
    width: 100%;
    justify-content: center;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 30, 80, 0.06);
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    display: block;
    font-size: var(--fs-xl);
    font-weight: 800;
    color: var(--gray-900);
}

.hero-stat-label {
    font-size: var(--fs-2xs);
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-card-glow {
    position: absolute;
    bottom: -30%;
    left: 10%;
    width: 80%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(0, 122, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
    filter: blur(40px);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--blue-500);
    color: var(--white);
    font-size: var(--fs-base);
    font-weight: 700;
    padding: 16px 32px;
    border-radius: var(--radius-full);
    transition: all var(--t-base);
    box-shadow: 0 4px 20px var(--blue-glow);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--blue-glow-strong);
    background: var(--blue-600);
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(0) scale(0.97);
}

.btn-lg {
    padding: 18px 40px;
    font-size: var(--fs-md);
}


/* ═══════════════════════
   PROJECT LIST TABLE
   ═══════════════════════ */
.project-list-section {
    padding: 60px 0;
}

.project-list-title {
    font-size: var(--fs-2xl);
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--gray-900);
}

.table-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    --glass-bg: rgba(255, 255, 255, 0.7);
}

.project-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.project-table thead tr {
    background: rgba(0, 30, 80, 0.02);
    border-bottom: 1px solid var(--gray-200);
}

.project-table th {
    padding: 16px 20px;
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-table td {
    padding: 16px 20px;
    font-size: var(--fs-sm);
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-100);
}

.project-table tbody tr {
    transition: background 0.2s ease;
}

.project-table tbody tr:hover {
    background: rgba(0, 122, 255, 0.03);
}

.project-table .name-cell {
    font-weight: 700;
    color: var(--gray-900);
}

.status-badge {
    display: inline-block;
    font-size: var(--fs-2xs);
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
}

.run-ai-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--green-500);
    color: var(--white);
    font-size: var(--fs-xs);
    font-weight: 700;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--t-fast);
    box-shadow: 0 2px 12px rgba(52, 199, 89, 0.2);
}

.run-ai-btn:hover {
    background: #2ebd50;
    transform: scale(1.03);
}

/* AI Loader */
.ai-loader-section {
    padding: 100px 0;
}

.loader-content {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 40px;
    border-radius: var(--radius-xl);
}

.ai-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--blue-100);
    border-top-color: var(--blue-500);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

.loader-content h3 {
    font-size: var(--fs-xl);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.loader-content p {
    font-size: var(--fs-sm);
    color: var(--gray-500);
    margin-bottom: 12px;
}

.loader-hint {
    font-size: var(--fs-xs);
    color: var(--blue-500);
}


/* ═══════════════════════
   PROBLEM SECTION
   ═══════════════════════ */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.problem-card {
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    text-align: center;
    overflow: hidden;
    transition: all var(--t-base);
}

.problem-card:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--glass-shadow-lg);
}

.problem-card:hover .card-shine {
    opacity: 1;
}

.problem-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.problem-icon-red {
    background: var(--red-bg);
    color: var(--red-500);
}

.problem-icon-orange {
    background: var(--orange-bg);
    color: var(--orange-500);
}

.problem-icon-blue {
    background: var(--blue-50);
    color: var(--blue-500);
}

.problem-icon-slate {
    background: var(--gray-100);
    color: var(--gray-600);
}

.problem-stat {
    display: block;
    font-size: var(--fs-3xl);
    font-weight: 900;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
    color: var(--gray-900);
}

.problem-card h4 {
    font-size: var(--fs-base);
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--gray-800);
}

.problem-card p {
    font-size: var(--fs-sm);
    color: var(--gray-500);
    line-height: 1.6;
}


/* ═══════════════════════
   HOW IT WORKS
   ═══════════════════════ */
.how-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.how-card {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 20px 16px;
    max-width: 240px;
}

.how-step-bg {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 5rem;
    font-weight: 900;
    color: rgba(0, 122, 255, 0.04);
    pointer-events: none;
    line-height: 1;
    z-index: 0;
}

.how-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    position: relative;
    z-index: 1;
    transition: all var(--t-base);
}

.how-card:hover .how-icon-wrap {
    border-color: var(--blue-500);
    box-shadow: 0 4px 20px var(--blue-glow-soft);
}

.how-label {
    display: block;
    font-size: var(--fs-2xs);
    font-weight: 700;
    color: var(--blue-500);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
}

.how-card h4 {
    font-size: var(--fs-md);
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    color: var(--gray-900);
}

.how-card p {
    font-size: var(--fs-sm);
    color: var(--gray-500);
    line-height: 1.6;
}

.how-connector {
    display: flex;
    align-items: center;
    padding-top: 44px;
    width: 40px;
    flex-shrink: 0;
    position: relative;
}

.connector-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
}

.connector-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue-500);
    box-shadow: 0 0 8px var(--blue-glow);
}


/* ═══════════════════════
   SERVICES SECTION
   ═══════════════════════ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.service-card {
    padding: 36px 32px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--t-base);
    position: relative;
}

.service-card:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--glass-shadow-lg);
}

.service-card:hover .card-shine {
    opacity: 1;
}

.service-badge {
    display: inline-block;
    font-size: var(--fs-2xs);
    font-weight: 700;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
}

.service-badge-live {
    background: var(--green-bg);
    color: var(--green-500);
    border: 1px solid rgba(52, 199, 89, 0.15);
}

.service-badge-soon {
    background: var(--gray-100);
    color: var(--gray-400);
    border: 1px solid var(--gray-200);
}

.service-card-featured {
    border-color: rgba(0, 122, 255, 0.15) !important;
    --glass-bg: rgba(232, 243, 255, 0.5);
}

.service-card-soon {
    opacity: 0.6;
}

.service-card h3 {
    font-size: var(--fs-xl);
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    color: var(--gray-900);
}

.service-desc {
    font-size: var(--fs-sm);
    color: var(--gray-500);
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--gray-700);
}

.service-features-muted li {
    color: var(--gray-400);
}

.service-features li svg {
    flex-shrink: 0;
}

/* Future services */
.future-services {
    text-align: center;
}

.future-title {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.future-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.future-chip {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--gray-600);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    transition: all var(--t-fast);
    cursor: default;
}

.future-chip:hover {
    color: var(--blue-600);
    background: var(--glass-bg-hover);
    border-color: var(--blue-400);
    transform: translateY(-2px);
}


/* ═══════════════════════
   CTA SECTION
   ═══════════════════════ */
.cta-section {
    padding: 80px 24px 120px;
}

.cta-container {
    position: relative;
    text-align: center;
    padding: 80px 48px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    max-width: var(--max-w);
    margin: 0 auto;
    --glass-bg: rgba(232, 243, 255, 0.5);
    border-color: rgba(0, 122, 255, 0.1);
}

.cta-glow {
    position: absolute;
    top: -50%;
    left: -10%;
    width: 120%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(0, 122, 255, 0.06) 0%, transparent 60%);
    pointer-events: none;
    animation: ctaPulse 5s ease-in-out infinite;
}

@keyframes ctaPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.cta-title {
    font-size: var(--fs-4xl);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    color: var(--gray-900);
}

.cta-desc {
    font-size: var(--fs-lg);
    color: var(--gray-500);
    max-width: 480px;
    margin: 0 auto 36px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.cta-email {
    font-size: var(--fs-sm);
    color: var(--gray-400);
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.cta-email a {
    color: var(--blue-500);
    font-weight: 600;
    transition: color 0.2s ease;
}

.cta-email a:hover {
    color: var(--blue-600);
    text-decoration: underline;
}

.cta-actions {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--gray-600);
    padding: 16px 28px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--gray-200);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all var(--t-base);
}

.btn-secondary-outline:hover {
    color: var(--blue-600);
    border-color: var(--blue-400);
    background: var(--blue-50);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--blue-glow-soft);
}


/* ═══════════════════════
   FOOTER
   ═══════════════════════ */
.site-footer {
    padding: 0 24px 32px;
    max-width: var(--max-w);
    margin: 0 auto;
}

.footer-glass {
    border-radius: var(--radius-xl);
    padding: 56px 48px 28px;
    --glass-bg: rgba(255, 255, 255, 0.65);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 36px;
}

.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.footer-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.footer-brand-name {
    font-size: var(--fs-xl);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--gray-900);
}

.footer-tagline {
    font-size: var(--fs-sm);
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 18px;
    max-width: 300px;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    transition: all var(--t-fast);
}

.social-btn:hover {
    color: var(--blue-500);
    background: var(--blue-50);
    border-color: var(--blue-100);
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
    margin-bottom: 14px;
}

.footer-col a {
    display: block;
    font-size: var(--fs-sm);
    color: var(--gray-500);
    padding: 5px 0;
    transition: all var(--t-fast);
}

.footer-col a:hover {
    color: var(--blue-600);
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid var(--gray-200);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: var(--fs-xs);
    color: var(--gray-400);
}


/* ═══════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════ */
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-animate="slide-right"] {
    transform: translateX(-40px);
}

[data-animate="slide-left"] {
    transform: translateX(40px);
}

[data-animate="scale-in"] {
    transform: scale(0.92);
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}


/* ═══════════════════════
   RESPONSIVE — TABLET
   ═══════════════════════ */
@media(max-width: 1024px) {
    :root {
        --fs-5xl: 3.5rem;
        --fs-4xl: 2.5rem;
        --fs-3xl: 2rem;
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        gap: 48px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-trust-badges {
        justify-content: center;
    }

    .problem-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .how-grid {
        flex-wrap: wrap;
        gap: 8px;
    }

    .how-connector {
        display: none;
    }

    .how-card {
        max-width: none;
        width: calc(50% - 8px);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

/* ═══════════════════════
   RESPONSIVE — MOBILE
   ═══════════════════════ */
@media(max-width: 768px) {
    :root {
        --fs-5xl: 2.75rem;
        --fs-4xl: 2rem;
        --fs-3xl: 1.5rem;
        --section-py: 80px;
    }

    .hero-section {
        min-height: auto;
        padding-top: 90px;
        padding-bottom: 60px;
    }

    .hero-visual {
        max-width: 300px;
    }

    .search-bar {
        flex-direction: column;
        padding: 8px;
        gap: 6px;
    }

    .search-icon {
        display: none;
    }

    .search-bar input {
        padding: 12px 14px;
        width: 100%;
    }

    .search-btn {
        width: 100%;
        justify-content: center;
        padding: 14px;
    }

    .problem-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .problem-card {
        padding: 24px 16px;
    }

    .problem-stat {
        font-size: var(--fs-2xl);
    }

    .how-card {
        width: 100%;
    }

    .cta-container {
        padding: 60px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-glass {
        padding: 36px 24px 24px;
    }

    .table-wrapper {
        overflow-x: auto;
    }

    .project-table {
        min-width: 600px;
    }
}

/* ═══════════════════════
   RESPONSIVE — SMALL ANDROID
   ═══════════════════════ */
@media(max-width: 400px) {
    :root {
        --fs-5xl: 2.25rem;
        --fs-4xl: 1.75rem;
    }

    .hero-title {
        letter-spacing: -0.03em;
    }

    .hero-trust-badges {
        flex-direction: column;
        align-items: stretch;
    }

    .trust-badge {
        justify-content: center;
    }

    .problem-grid {
        grid-template-columns: 1fr;
    }

    .future-grid {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-container {
        padding: 48px 16px;
    }

    .cta-title {
        font-size: var(--fs-3xl);
    }
}

@media(max-width: 360px) {
    .hero-section {
        padding-top: 80px;
    }

    .island-pill {
        padding: 8px 10px;
    }

    .island-logo {
        width: 26px;
        height: 26px;
    }
}

/* Safe area for notched phones */
@supports(padding: max(0px)) {
    .dynamic-island.notch-mode {
        padding-top: env(safe-area-inset-top, 0px);
    }

    .island-mobile-menu {
        padding-top: env(safe-area-inset-top, 0px);
    }
}

/* ═══════════════════════════════════════
   PROJECT LIST TABLE
   ═══════════════════════════════════════ */
.project-list-section {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.project-list-title {
    font-size: var(--fs-xl);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.table-wrapper {
    border-radius: var(--radius-md);
    overflow: hidden;
    overflow-x: auto;
}

.project-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-sm);
}

.project-table thead {
    background: rgba(0, 122, 255, 0.06);
}

.project-table th {
    text-align: left;
    padding: 14px 18px;
    font-weight: 700;
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-600);
    border-bottom: 1px solid rgba(0, 30, 80, 0.06);
    white-space: nowrap;
}

.project-table td {
    padding: 14px 18px;
    color: var(--gray-700);
    border-bottom: 1px solid rgba(0, 30, 80, 0.04);
    transition: background var(--t-fast);
}

.project-table tbody tr {
    transition: all 0.25s ease;
}

.project-table tbody tr:hover {
    background: rgba(0, 122, 255, 0.03);
}

.project-table tbody tr:hover td {
    color: var(--gray-900);
}

.project-table .name-cell {
    font-weight: 600;
    color: var(--gray-900);
    max-width: 280px;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: var(--fs-2xs);
    font-weight: 700;
    background: rgba(52, 199, 89, 0.1);
    color: var(--green-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.run-ai-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: var(--fs-xs);
    font-weight: 700;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--spring);
    box-shadow: 0 2px 12px var(--blue-glow-soft);
    white-space: nowrap;
}

.run-ai-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 24px var(--blue-glow);
}

.run-ai-btn:active {
    transform: translateY(0) scale(0.98);
}

.run-ai-btn svg {
    flex-shrink: 0;
}

@media(max-width: 768px) {
    .project-table {
        font-size: var(--fs-2xs);
    }

    .project-table th,
    .project-table td {
        padding: 10px 12px;
    }

    .run-ai-btn {
        padding: 6px 12px;
        font-size: var(--fs-2xs);
    }
}


/* ═══════════════════════════════════════
   AI LOADER — PIPELINE PROGRESS
   ═══════════════════════════════════════ */
.ai-loader-section {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 60px 24px 80px;
}

.loader-content {
    max-width: 540px;
    margin: 0 auto;
    text-align: center;
    padding: 48px 36px;
    border-radius: var(--radius-lg);
}

.loader-content h3 {
    font-size: var(--fs-xl);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.loader-content p {
    color: var(--gray-500);
    font-size: var(--fs-sm);
    margin-bottom: 32px;
}

/* Spinner */
.ai-spinner {
    width: 56px;
    height: 56px;
    border: 3px solid rgba(0, 122, 255, 0.1);
    border-top-color: var(--blue-500);
    border-radius: 50%;
    margin: 0 auto 24px;
    animation: spinnerRotate 1s linear infinite;
    box-shadow: 0 0 24px var(--blue-glow-soft);
}

@keyframes spinnerRotate {
    to {
        transform: rotate(360deg);
    }
}

/* Pipeline Steps */
.pipeline-steps {
    text-align: left;
    margin: 0 auto 24px;
    max-width: 320px;
}

.pipeline-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.step-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gray-200);
    border: 2px solid var(--gray-300);
    transition: all 0.4s var(--spring);
    flex-shrink: 0;
}

.step-line {
    width: 2px;
    height: 28px;
    background: var(--gray-200);
    transition: background 0.4s ease;
}

.step-content {
    display: flex;
    flex-direction: column;
    padding-bottom: 16px;
}

.step-label {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--gray-500);
    transition: color 0.4s ease;
}

.step-status {
    font-size: var(--fs-xs);
    color: var(--gray-400);
    transition: color 0.4s ease;
}

/* Step States */
.pipeline-step.active .step-dot {
    background: var(--blue-500);
    border-color: var(--blue-500);
    box-shadow: 0 0 12px var(--blue-glow);
    animation: stepPulse 1.5s ease-in-out infinite;
}

.pipeline-step.active .step-label {
    color: var(--blue-600);
    font-weight: 700;
}

.pipeline-step.active .step-status {
    color: var(--blue-500);
}

.pipeline-step.active .step-line {
    background: linear-gradient(to bottom, var(--blue-500), var(--gray-200));
}

.pipeline-step.done .step-dot {
    background: var(--green-500);
    border-color: var(--green-500);
    box-shadow: 0 0 8px rgba(52, 199, 89, 0.3);
    animation: none;
}

.pipeline-step.done .step-label {
    color: var(--green-500);
}

.pipeline-step.done .step-status {
    color: var(--green-500);
}

.pipeline-step.done .step-line {
    background: var(--green-500);
}

@keyframes stepPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 8px var(--blue-glow-soft);
    }

    50% {
        transform: scale(1.15);
        box-shadow: 0 0 16px var(--blue-glow);
    }
}

.loader-hint {
    display: block;
    font-size: var(--fs-xs);
    color: var(--gray-400);
    font-style: italic;
}


/* ═══════════════════════════════════════
   AI REPORT — IN-PAGE RESULTS
   ═══════════════════════════════════════ */
.ai-report-section {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 60px 24px 100px;
}

.ai-report-section .section-inner {
    padding: 0;
}

/* Report Header */
.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 24px 32px;
    border-radius: var(--radius-md);
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 16px;
    transition: transform 0.4s var(--spring), box-shadow 0.4s ease;
}

.report-header:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 30px rgba(0, 122, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.report-project-name {
    font-size: var(--fs-xl);
    font-weight: 900;
    color: #111827;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
}

.report-subtitle {
    font-size: var(--fs-sm);
    color: var(--gray-500);
    margin-top: 6px;
    font-weight: 500;
}

.rera-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--white);
    color: #20b080;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: var(--fs-xs);
    border: 1px solid #99e6cc;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* Two Column Grid */
.report-grid {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 32px;
    align-items: start;
}

.report-section-title {
    font-size: var(--fs-lg);
    font-weight: 800;
    color: #111827;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Risk Cards */
.risk-cards-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.risk-card {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 24px 28px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--red-500);
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    animation: reportCardSlideIn 0.8s var(--spring) forwards;
    transition: transform 0.4s var(--spring), box-shadow 0.4s ease, border-left-width 0.2s ease;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Glass shine effect on hover */
.risk-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 40%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    z-index: -1;
    pointer-events: none;
}

.risk-card:hover::before {
    left: 150%;
}

.risk-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 30, 80, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-left-width: 6px;
}

.risk-card.risk-green {
    border-left-color: #20b080;
}

.risk-card.risk-amber {
    border-left-color: #f59e0b;
}

.risk-card.risk-red {
    border-left-color: #ef4444;
}

@keyframes reportCardSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.risk-card-title {
    font-weight: 800;
    font-size: var(--fs-md);
    color: #111827;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Colored dot indicator in title */
.risk-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.4), 0 2px 6px rgba(0, 0, 0, 0.1);
}

.risk-green .risk-dot {
    background: radial-gradient(circle at top left, #4ade80, #16a34a);
}

.risk-amber .risk-dot {
    background: radial-gradient(circle at top left, #fcd34d, #d97706);
}

.risk-red .risk-dot {
    background: radial-gradient(circle at top left, #fca5a5, #dc2626);
}

.risk-card-summary {
    font-size: var(--fs-sm);
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 18px;
}

.risk-card-why {
    background: #f8fafc;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: var(--fs-sm);
    color: var(--gray-600);
    line-height: 1.6;
}

.risk-card-why strong {
    color: #334155;
    font-size: var(--fs-sm);
    font-weight: 700;
}

/* Info Blocks (Right Column) */
.info-blocks-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.report-info-block {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 24px 28px;
    border-radius: var(--radius-sm);
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    animation: reportCardSlideIn 0.8s var(--spring) forwards;
    transition: transform 0.4s var(--spring), box-shadow 0.4s ease;
}

.report-info-block:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 30, 80, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.info-block-title {
    font-size: var(--fs-base);
    font-weight: 800;
    color: #111827;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: var(--fs-sm);
    gap: 16px;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--gray-500);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.65rem;
    flex-shrink: 0;
    max-width: 45%;
    display: flex;
    align-items: center;
}

.info-value {
    color: #111827;
    font-weight: 600;
    text-align: right;
    max-width: 55%;
    word-wrap: break-word;
    font-size: var(--fs-xs);
}

/* Responsive Report */
@media(max-width: 900px) {
    .report-grid {
        grid-template-columns: 1fr;
    }

    .report-header {
        padding: 20px 24px;
    }

    .report-project-name {
        font-size: var(--fs-lg);
    }
}

@media(max-width: 480px) {
    .report-header {
        flex-direction: column;
        text-align: center;
    }

    .risk-card {
        padding: 18px 20px;
    }
}


/* ═══════════════════════
   REDUCED MOTION
   ═══════════════════════ */
@media(prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    [data-animate] {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}