/* ═══════════════════════════════════════════════════════════════════════════
   SplitBill — Homepage Styles (Self-Contained)
   Premium landing page with design tokens, header, footer, animations & glassmorphism
   ═══════════════════════════════════════════════════════════════════════════ */

:root, [data-theme="dark"] {
    /* Colors (Dark Theme - Default) */
    --bg-primary: #0A0A12;
    --bg-secondary: #12121E;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --bg-glass: rgba(255, 255, 255, 0.06);
    --bg-input: rgba(255, 255, 255, 0.06);
    --bg-input-focus: rgba(255, 255, 255, 0.1);

    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --border-focus: rgba(108, 92, 231, 0.5);

    --text-primary: #F0F0F5;
    --text-secondary: #8B8BA3;
    --text-muted: #5A5A72;
    --text-accent: #A78BFA;

    --accent-primary: #6C5CE7;
    --accent-secondary: #A855F7;
    --accent-gradient: linear-gradient(135deg, #6C5CE7 0%, #A855F7 100%);
    --accent-glow: rgba(108, 92, 231, 0.3);

    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;
}

[data-theme="light"] {
    /* Colors (Light Theme Overrides) */
    --bg-primary: #F4F4F9;
    --bg-secondary: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F0F0F7;
    --bg-glass: rgba(0, 0, 0, 0.03);
    --bg-input: #F0F0F7;
    --bg-input-focus: #FFFFFF;

    --border-color: rgba(0, 0, 0, 0.1);
    --border-hover: rgba(0, 0, 0, 0.2);
    --border-focus: rgba(108, 92, 231, 0.6);

    --text-primary: #1E1E2E;
    --text-secondary: #6C6C82;
    --text-muted: #9E9EA8;
    --text-accent: #6C5CE7;

    --accent-primary: #6C5CE7;
    --accent-secondary: #A855F7;
    --accent-gradient: linear-gradient(135deg, #6C5CE7 0%, #A855F7 100%);
    --accent-glow: rgba(108, 92, 231, 0.2);

    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;
}

:root {
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Border radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px var(--accent-glow);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-base: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.25rem;
    --font-2xl: 1.5rem;
    --font-3xl: 2rem;
    --font-4xl: 2.5rem;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Layout */
    --navbar-height: 64px;
    --content-max-width: 1200px;
}

/* ─── Reset & Base ──────────────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-base);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--text-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-secondary);
}

img {
    max-width: 100%;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ─── Navbar ────────────────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-xl);
    background: rgba(10, 10, 18, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-primary);
    font-size: var(--font-xl);
    font-weight: 700;
}

.navbar-logo:hover {
    color: var(--text-primary);
}

.logo-icon {
    width: 28px;
    height: 28px;
    color: var(--accent-primary);
}

.logo-accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-btn:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
}

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.625rem 1.25rem;
    font-size: var(--font-sm);
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px var(--accent-glow);
    transform: translateY(-1px);
    color: white;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
}



/* ─── Override main-content constraints for homepage ────────────────────── */
.main-content:has(.hp-wrapper) {
    max-width: none;
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
}

/* ─── Wrapper ────────────────────────────────────────────────────────────── */
.hp-wrapper {
    width: 100%;
    overflow-x: hidden;
}

/* ─── Section Header ─────────────────────────────────────────────────────── */
.hp-section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.hp-section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
}

.hp-section-subtitle {
    font-size: var(--font-lg);
    color: var(--text-secondary);
    line-height: 1.6;
}


/* ═══════════════════════════════════════════════════════════════════════════
   HERO BANNER
   ═══════════════════════════════════════════════════════════════════════════ */
.hp-hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px var(--space-2xl) var(--space-2xl);
    background: radial-gradient(circle at 50% 30%, rgba(30, 26, 58, 0.95) 0%, rgba(13, 12, 23, 1) 100%);
    box-sizing: border-box;
}

.hp-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    filter: blur(2px);
}

.hp-hero__overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(108, 92, 231, 0.18) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

.hp-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.hp-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 24px;
    background: rgba(30, 27, 52, 0.6);
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: var(--radius-full);
    color: var(--text-accent);
    font-size: var(--font-sm);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.2);
    animation: fadeInDown 0.8s ease-out;
}

.hp-hero__title {
    font-size: clamp(2.75rem, 6.5vw, 4.75rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 35%, #C084FC 70%, #6C5CE7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hp-hero__subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto var(--space-xl);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hp-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 42px;
    background: linear-gradient(135deg, #6C5CE7 0%, #A855F7 100%);
    color: white;
    font-size: var(--font-lg);
    font-weight: 800;
    border-radius: var(--radius-full);
    text-decoration: none;
    box-shadow: 0 10px 36px rgba(108, 92, 231, 0.45), 0 0 80px rgba(168, 85, 247, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hp-hero__cta:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 16px 52px rgba(108, 92, 231, 0.6), 0 0 100px rgba(168, 85, 247, 0.4);
    color: white;
}

/* Floating orbs */
.hp-hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
}

.hp-hero__orb--1 {
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    top: -100px;
    left: -100px;
    animation: orbFloat 8s ease-in-out infinite;
}

.hp-hero__orb--2 {
    width: 300px;
    height: 300px;
    background: #A855F7;
    bottom: -50px;
    right: -80px;
    animation: orbFloat 10s ease-in-out infinite reverse;
}

.hp-hero__orb--3 {
    width: 200px;
    height: 200px;
    background: #3B82F6;
    top: 50%;
    left: 60%;
    animation: orbFloat 12s ease-in-out infinite 2s;
}


/* ═══════════════════════════════════════════════════════════════════════════
   APP STEPS (Phone Mockup)
   ═══════════════════════════════════════════════════════════════════════════ */
.hp-steps {
    padding: 100px var(--space-2xl);
    max-width: 1200px;
    margin: 0 auto;
}

.hp-steps__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hp-steps__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.hp-step {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: left;
    width: 100%;
    color: var(--text-primary);
    font-family: inherit;
    font-size: inherit;
    position: relative;
    overflow: hidden;
    /* scroll animation */
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.5s ease, transform 0.5s ease, background var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.hp-step.hp-visible {
    opacity: 1;
    transform: translateX(0);
}

.hp-step:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.hp-step--active {
    background: rgba(108, 92, 231, 0.08);
    border-color: rgba(108, 92, 231, 0.3);
    box-shadow: 0 0 30px rgba(108, 92, 231, 0.1);
}

.hp-step--active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-gradient);
    border-radius: 0 3px 3px 0;
}

.hp-step__number {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: var(--radius-full);
    background: var(--accent-gradient);
    color: white;
    font-weight: 700;
    font-size: var(--font-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-step__icon {
    color: var(--text-accent);
    margin-top: 2px;
}

.hp-step__icon i {
    width: 22px;
    height: 22px;
}

.hp-step__title {
    font-weight: 700;
    font-size: var(--font-base);
    margin-bottom: 4px;
}

.hp-step__desc {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Phone mockup */
.hp-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hp-phone__frame {
    width: 280px;
    height: 580px;
    background: #1a1a2e;
    border-radius: 40px;
    border: 3px solid rgba(255, 255, 255, 0.12);
    padding: 12px;
    position: relative;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 1;
}

[data-theme="light"] .hp-phone__frame {
    background: #e8e8f0;
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.hp-phone__notch {
    width: 120px;
    height: 28px;
    background: #1a1a2e;
    border-radius: 0 0 16px 16px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

[data-theme="light"] .hp-phone__notch {
    background: #e8e8f0;
}

.hp-phone__screen {
    width: 100%;
    height: calc(100% - 28px);
    background: var(--bg-primary);
    border-radius: 28px;
    overflow: hidden;
    position: relative;
}

.hp-phone__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hp-phone__image--active {
    opacity: 1;
    transform: scale(1);
}

.hp-phone__glow {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    animation: pulse 4s ease-in-out infinite;
}


/* ═══════════════════════════════════════════════════════════════════════════
   FEATURE CARDS
   ═══════════════════════════════════════════════════════════════════════════ */
.hp-features {
    padding: 100px var(--space-2xl);
    max-width: 1200px;
    margin: 0 auto;
}

.hp-features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.hp-feature-card {
    position: relative;
    padding: var(--space-xl) var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
    /* scroll animation */
    opacity: 0;
    transform: translateY(40px);
}

.hp-feature-card.hp-visible {
    opacity: 1;
    transform: translateY(0);
}

.hp-feature-card:hover {
    transform: translateY(-8px);
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.hp-feature-card.hp-visible:hover {
    transform: translateY(-8px);
}

.hp-feature-card__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: var(--space-lg);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.hp-feature-card__icon i {
    width: 28px;
    height: 28px;
}

.hp-feature-card__title {
    font-size: var(--font-xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.hp-feature-card__desc {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Hover shine effect */
.hp-feature-card__shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.03) 50%,
        transparent 60%
    );
    transform: rotate(25deg) translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.hp-feature-card:hover .hp-feature-card__shine {
    transform: rotate(25deg) translateX(100%);
}


/* ═══════════════════════════════════════════════════════════════════════════
   STATS COUNTER
   ═══════════════════════════════════════════════════════════════════════════ */
.hp-stats {
    position: relative;
    padding: 90px var(--space-2xl);
    width: 100%;
    background: linear-gradient(135deg, rgba(20, 16, 38, 0.95) 0%, rgba(48, 22, 85, 0.85) 50%, rgba(16, 14, 30, 0.95) 100%);
    border-top: 1px solid rgba(168, 85, 247, 0.25);
    border-bottom: 1px solid rgba(168, 85, 247, 0.25);
    box-shadow: inset 0 0 120px rgba(108, 92, 231, 0.25), 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.hp-stats::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(168, 85, 247, 0.15), transparent 40%),
                radial-gradient(circle at 70% 50%, rgba(59, 130, 246, 0.12), transparent 40%);
    animation: orbFloat 15s ease-in-out infinite alternate;
    pointer-events: none;
}

.hp-stats__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-xl);
    max-width: 1100px;
    margin: 0 auto;
}

.hp-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    background: rgba(30, 26, 56, 0.55);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 40px rgba(108, 92, 231, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.hp-stat.hp-visible {
    opacity: 1;
    transform: scale(1);
}

.hp-stat:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: rgba(168, 85, 247, 0.7);
    background: rgba(40, 34, 76, 0.75);
    box-shadow: 0 18px 50px rgba(168, 85, 247, 0.35), 0 0 30px rgba(108, 92, 231, 0.3);
}

.hp-stat__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-md);
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.3), rgba(168, 85, 247, 0.3));
    border: 1px solid rgba(168, 85, 247, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C084FC;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3);
}

.hp-stat__icon i, .hp-stat__icon svg {
    width: 26px;
    height: 26px;
}

.hp-stat__value {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 900;
    font-family: var(--font-mono);
    background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 40%, #C084FC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.hp-stat__label {
    font-size: var(--font-base);
    color: var(--text-secondary);
    font-weight: 600;
}


/* ═══════════════════════════════════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════════════════════════════════ */
.hp-testimonials {
    padding: 100px var(--space-2xl);
    max-width: 1200px;
    margin: 0 auto;
}

.hp-testimonials__track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    align-items: stretch;
}

.hp-testimonial {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 250px;
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    opacity: 0;
    transform: translateY(30px);
}

.hp-testimonial.hp-visible {
    opacity: 1;
    transform: translateY(0);
}

.hp-testimonial:hover {
    border-color: var(--border-hover);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hp-testimonial__stars {
    display: flex;
    gap: 4px;
    margin-bottom: var(--space-sm);
}

.hp-star-active {
    width: 16px;
    height: 16px;
    fill: #F59E0B;
    color: #F59E0B;
}

.hp-star-inactive {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.hp-testimonial__quote {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-bottom: var(--space-lg);
}

.hp-testimonial__quote-icon {
    width: 28px;
    height: 28px;
    color: var(--accent-primary);
    opacity: 0.5;
    margin-bottom: var(--space-sm);
    display: block;
}

.hp-testimonial__quote p {
    font-size: var(--font-base);
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
}

.hp-testimonial__author {
    margin-top: auto;
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
    min-height: 60px;
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.hp-testimonial__avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: var(--radius-full);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: var(--font-lg);
    overflow: hidden;
}

.hp-testimonial__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp-testimonial__author-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hp-testimonial__name {
    font-weight: 700;
    font-size: var(--font-sm);
    color: var(--text-primary);
}

.hp-testimonial__role {
    font-size: var(--font-xs);
    color: var(--text-muted);
}

.hp-testimonial__verified {
    font-size: var(--font-xs);
    color: var(--success);
    font-weight: 500;
}

.hp-testimonials__ctas {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    align-items: center;
    margin-top: var(--space-2xl);
    flex-wrap: wrap;
}


/* ═══════════════════════════════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.hp-cta {
    position: relative;
    padding: 100px var(--space-2xl);
    text-align: center;
    overflow: hidden;
}

.hp-cta__glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.2) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 6s ease-in-out infinite;
}

.hp-cta__content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.hp-cta__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.hp-cta__subtitle {
    font-size: var(--font-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.hp-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: var(--accent-gradient);
    color: white;
    font-size: var(--font-lg);
    font-weight: 700;
    border-radius: var(--radius-full);
    text-decoration: none;
    box-shadow: 0 8px 32px var(--accent-glow);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hp-cta__btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 48px var(--accent-glow);
}


/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
.hp-footer {
    position: relative;
    padding: 60px var(--space-2xl) 40px;
    width: 100%;
    background: linear-gradient(180deg, rgba(13, 12, 23, 0) 0%, rgba(13, 12, 23, 1) 100%);
    border-top: 1px solid rgba(168, 85, 247, 0.15);
    box-sizing: border-box;
}

.hp-footer__inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.hp-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
}

.hp-footer__brand-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.hp-footer__logo {
    font-size: var(--font-xl);
    font-weight: 800;
    color: var(--text-primary);
}

.hp-footer__tagline {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 440px;
}

.hp-footer__copy {
    grid-column: 1 / -1;
    text-align: center;
    font-size: var(--font-xs);
    color: var(--text-muted);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: var(--space-lg);
}

/* Footer menu block */
.footer-menu-block {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-menu-title {
    font-size: var(--font-sm);
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
}

.footer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-menu-list li .menu-link {
    color: var(--text-secondary);
    font-size: var(--font-sm);
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

.footer-menu-list li .menu-link:hover {
    color: #C084FC;
    padding-left: 4px;
}


/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -30px); }
    66% { transform: translate(-20px, 20px); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}


/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .hp-steps__layout {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .hp-phone {
        order: -1;
    }

    .hp-features__grid {
        grid-template-columns: 1fr;
    }

    .hp-testimonials__track {
        grid-template-columns: 1fr;
    }

    .hp-footer__inner {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

@media (max-width: 600px) {
    .hp-hero {
        min-height: 80vh;
        padding: var(--space-xl) var(--space-md);
    }

    .hp-steps,
    .hp-features,
    .hp-testimonials,
    .hp-cta,
    .hp-faq {
        padding: 60px var(--space-md);
    }

    .hp-stats {
        padding: 50px var(--space-md);
    }

    .hp-phone__frame {
        width: 240px;
        height: 500px;
    }

    .hp-step {
        padding: var(--space-md);
    }

    .hp-stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   SECTION BACKGROUND ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════════════════ */
.hp-steps {
    border-radius: var(--radius-xl);
}

.hp-features {
    background: radial-gradient(circle at 50% 0%, rgba(108, 92, 231, 0.06) 0%, transparent 70%);
}

.hp-testimonials {
    background: radial-gradient(circle at 50% 0%, rgba(108, 92, 231, 0.04) 0%, transparent 60%);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FAQ ACCORDION COMPONENT
   ═══════════════════════════════════════════════════════════════════════════ */
.hp-faq {
    padding: 100px var(--space-2xl);
    max-width: 900px;
    margin: 0 auto;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: rgba(22, 20, 38, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
}

.faq-item:hover {
    border-color: rgba(108, 92, 231, 0.5);
    box-shadow: 0 8px 32px rgba(108, 92, 231, 0.15);
    transform: translateY(-2px);
}

.faq-item.active {
    border-color: var(--accent-primary);
    background: rgba(30, 27, 52, 0.95);
    box-shadow: 0 12px 40px rgba(108, 92, 231, 0.25);
}

.faq-question {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 20px 24px !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    box-shadow: none !important;
    color: var(--text-primary) !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    text-align: left !important;
    gap: 16px !important;
    transition: color 0.2s ease !important;
}

.faq-question:hover {
    color: var(--text-accent) !important;
}

.faq-icon {
    width: 22px;
    height: 22px;
    color: var(--text-muted);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.35s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--accent-primary);
}

.faq-answer {
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
    animation: faqSlideDown 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-content {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: var(--font-base);
}

.faq-answer-content p {
    margin: 0;
}

@keyframes faqSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONTACT FORM SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.hp-contact {
    padding: 100px var(--space-2xl);
    max-width: 800px;
    margin: 0 auto;
}

.contact-card-wrap {
    background: rgba(22, 20, 38, 0.75);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 40px rgba(108, 92, 231, 0.2);
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

@media (max-width: 600px) {
    .form-row-2 {
        grid-template-columns: 1fr;
    }
}

.contact-feedback {
    font-size: var(--font-sm);
    font-weight: 600;
    text-align: center;
}

.contact-feedback.success {
    color: #10B981;
}

.contact-feedback.error {
    color: #EF4444;
}

/* ─── Form Success State ─────────────────────────────────────────────────── */
.form-success-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-2xl) var(--space-xl);
    min-height: 280px;
    animation: fadeInUp 0.6s ease-out;
}

.form-success-state__icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.08));
    border: 2px solid rgba(16, 185, 129, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    animation: successPulse 2s ease-in-out infinite;
}

.form-success-state__icon svg {
    width: 36px;
    height: 36px;
    color: #10B981;
    stroke-width: 2.5;
}

.form-success-state__title {
    font-size: var(--font-xl);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.form-success-state__message {
    font-size: var(--font-base);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 400px;
}

@keyframes successPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.2); }
    50% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
}



/* ═══════════════════════════════════════════════════════════════════════════
   NEURAL MAP / INTERACTIVE EXPENSE MATRIX
   ═══════════════════════════════════════════════════════════════════════════ */
.neural-map-section {
    padding: 100px var(--space-2xl);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.neural-map-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(30, 27, 52, 0.6);
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: var(--radius-full);
    color: var(--text-accent);
    font-size: var(--font-sm);
    font-weight: 700;
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.2);
}

.neural-map-badge i,
.neural-map-badge svg {
    width: 18px;
    height: 18px;
}

/* ─── Container & Canvas ────────────────────────────────────────────────── */
.neural-map-container {
    position: relative;
    width: 100%;
    min-height: 400px;
    border-radius: var(--radius-xl);
    background: rgba(13, 12, 23, 0.85);
    border: 1px solid rgba(168, 85, 247, 0.2);
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(108, 92, 231, 0.15), inset 0 0 80px rgba(108, 92, 231, 0.05);
}

.neural-lightning-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.neural-map-svg {
    display: block;
    width: 100%;
    height: auto;
    min-height: 350px;
    position: relative;
    z-index: 1;
}

/* ─── Arc Lines ─────────────────────────────────────────────────────────── */
.neural-arc-line {
    stroke-width: 2;
    stroke-linecap: round;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.neural-arc-line.flow-primary {
    stroke: #6C5CE7;
    stroke-dasharray: 8 4;
    animation: neuralDash 2s linear infinite;
}

.neural-arc-line.flow-success {
    stroke: #10B981;
    stroke-dasharray: 8 4;
    animation: neuralDash 2.5s linear infinite;
}

.neural-arc-line.flow-purple {
    stroke: #A855F7;
    stroke-dasharray: 8 4;
    animation: neuralDash 3s linear infinite;
}

.neural-arc-line.flow-settlement {
    stroke: url(#flow-gradient-2);
    stroke-width: 1.5;
    stroke-dasharray: 6 6;
    opacity: 0.4;
    animation: neuralDash 4s linear infinite reverse;
}

@keyframes neuralDash {
    to { stroke-dashoffset: -24; }
}

/* ─── Nodes ─────────────────────────────────────────────────────────────── */
.map-node {
    cursor: pointer;
    transition: filter 0.3s ease;
}

.map-node:hover,
.map-node.node-active {
    filter: url(#neon-glow-primary);
}

/* Hub node */
.node-hub-pulse {
    fill: rgba(108, 92, 231, 0.15);
    stroke: rgba(108, 92, 231, 0.4);
    stroke-width: 1.5;
    animation: hubPulse 3s ease-in-out infinite;
}

.node-hub-core {
    fill: #6C5CE7;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 1;
}

.node-hub-text {
    fill: #FFFFFF;
    font-size: 9px;
    font-weight: 800;
    text-anchor: middle;
    dominant-baseline: central;
    letter-spacing: 0.1em;
    font-family: var(--font-family);
}

@keyframes hubPulse {
    0%, 100% { r: 32; opacity: 1; }
    50% { r: 36; opacity: 0.7; }
}

/* Member nodes */
.node-pulse {
    stroke-width: 1;
    animation: nodePulse 2.5s ease-in-out infinite;
}

.node-pulse.pulse-success {
    fill: rgba(16, 185, 129, 0.12);
    stroke: rgba(16, 185, 129, 0.4);
}

.node-pulse.pulse-error {
    fill: rgba(239, 68, 68, 0.12);
    stroke: rgba(239, 68, 68, 0.4);
}

.node-dot {
    stroke: rgba(255, 255, 255, 0.15);
    stroke-width: 1;
}

.node-dot.dot-success {
    fill: #10B981;
}

.node-dot.dot-error {
    fill: #EF4444;
}

@keyframes nodePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Node text */
.node-text-bold {
    fill: var(--text-primary);
    font-size: 11px;
    font-weight: 700;
    text-anchor: middle;
    font-family: var(--font-family);
}

.node-text-sub {
    fill: var(--text-secondary);
    font-size: 9px;
    font-weight: 600;
    text-anchor: middle;
    font-family: var(--font-family);
}

.node-text-sub.text-success {
    fill: #10B981;
}

.node-text-sub.text-error {
    fill: #EF4444;
}

/* ─── Tooltip ───────────────────────────────────────────────────────────── */
.neural-tooltip {
    position: absolute;
    z-index: 10;
    pointer-events: none;
    background: rgba(22, 20, 40, 0.95);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(108, 92, 231, 0.3);
    opacity: 0;
    transition: opacity 0.2s ease;
    min-width: 180px;
}

.neural-tooltip-badge {
    font-size: var(--font-xs);
    font-weight: 700;
    color: #A78BFA;
    margin-bottom: 4px;
    letter-spacing: 0.03em;
}

.neural-tooltip-title {
    font-size: var(--font-sm);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.neural-tooltip-sub {
    font-size: var(--font-xs);
    color: var(--text-secondary);
}

/* ─── Neural Map Responsive ─────────────────────────────────────────────── */
@media (max-width: 600px) {
    .neural-map-section {
        padding: 60px var(--space-md);
    }

    .neural-map-container {
        min-height: 280px;
    }
}
