/* 
   Style Sheet for First Matrimony
   Theme: Liquid Glass Minimal UI
*/

:root {
    /* Color Palette */
    --primary: #2f80ed;
    --primary-light: rgba(47, 128, 237, 0.1);
    --secondary: #6c63ff;
    --secondary-light: rgba(108, 99, 255, 0.1);
    --accent: #ff4d4f;
    --accent-light: rgba(255, 77, 79, 0.1);

    --bg-main: #f8fbff;
    --bg-dark: #0f172a;
    --bg-light: #ffffff;

    --text-dark: #0f172a;
    --text-muted: #64748b;
    --text-white: #ffffff;
    --text-white-70: rgba(255, 255, 255, 0.7);

    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.04);

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing (8px grid) */
    --spacing-1: 8px;
    --spacing-2: 16px;
    --spacing-3: 24px;
    --spacing-4: 32px;
    --spacing-5: 40px;
    --spacing-6: 48px;
    --spacing-8: 64px;
    --spacing-10: 80px;
    --spacing-12: 96px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Initial Setup */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: initial;
    /* Handled by Lenis */
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-3);
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-2);
    }
}

.section-padding {
    padding: var(--spacing-12) 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: var(--spacing-8) 0;
    }
}

@media (max-width: 480px) {
    .section-padding {
        padding: var(--spacing-6) 0;
    }
}

.text-center {
    text-align: center;
}

.light-bg {
    background-color: var(--bg-light);
}

.dark-bg {
    background-color: var(--bg-dark);
}

.text-white {
    color: var(--text-white);
}

.text-white-imp {
    color: var(--text-white) !important;
}

.text-white-70 {
    color: var(--text-white-70);
}

.mt-4 {
    margin-top: var(--spacing-4);
}

/* Typography Classes */
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-2);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto var(--spacing-6);
    padding: 0 var(--spacing-1);
}

@media (max-width: 480px) {
    .section-desc {
        font-size: 1rem;
        margin-bottom: var(--spacing-4);
    }
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Base UI Components */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.125rem;
}

@media (max-width: 480px) {
    .btn-lg {
        padding: 14px 28px;
        font-size: 1rem;
        width: 100%;
    }

    .btn-sm {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #1a65c9);
    color: var(--text-white);
    box-shadow: 0 8px 20px rgba(47, 128, 237, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(47, 128, 237, 0.35);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-dark);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    transition: all 0.7s ease;
    z-index: -1;
}

.btn-primary:hover::after {
    left: 200%;
}

/* Cursor Blob — hidden on touch/mobile */
.cursor-blob {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.15) 0%, rgba(47, 128, 237, 0.1) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
    filter: blur(40px);
    transition: opacity 0.3s ease;
}

@media (max-width: 768px),
(hover: none) {
    .cursor-blob {
        display: none;
    }
}

/* Scroll Progress */
.scroll-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(0, 0, 0, 0.05);
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--primary);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(248, 251, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    transition: all var(--transition-fast);
    padding: var(--spacing-2) 0;
}

.navbar.scrolled {
    padding: var(--spacing-1) 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-dark);
}

.logo-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.logo-text {
    font-weight: 500;
    color: var(--text-dark);
}

.logo-text strong {
    font-weight: 700;
    color: var(--primary);
}

.footer-brand .logo-text {
    color: white;
}

.footer-brand .logo-text strong {
    color: white;
}

.nav-links {
    display: flex;
    gap: var(--spacing-4);
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--primary);
}

/* Nav CTA — hide on small mobile */
.nav-container>.btn {
    white-space: nowrap;
}

/* Mobile hamburger toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: background var(--transition-fast);
}

.nav-toggle:hover {
    background: rgba(0, 0, 0, 0.04);
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu drawer */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(248, 251, 255, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 999;
    padding: 100px var(--spacing-3) var(--spacing-6);
    flex-direction: column;
    gap: var(--spacing-2);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu.open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--text-dark);
    padding: var(--spacing-2) var(--spacing-2);
    border-radius: 12px;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.mobile-menu a:hover,
.mobile-menu a:active {
    background: var(--primary-light);
    color: var(--primary);
}

.mobile-menu .btn {
    margin-top: var(--spacing-2);
    width: 100%;
    justify-content: center;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-container>.btn {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }
}

@media (max-width: 380px) {
    .logo {
        font-size: 1.1rem;
    }

    .logo-icon {
        font-size: 1.3rem;
    }
}

/* 1. Hero Section */
.hero {
    position: relative;
    padding-top: 140px;
    padding-bottom: var(--spacing-12);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero {
        padding-top: 110px;
        padding-bottom: var(--spacing-6);
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 100px;
        padding-bottom: var(--spacing-5);
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    max-width: 100vw;
}

.glass-mesh-1,
.glass-mesh-2,
.glass-mesh-3 {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out alternate;
}

.glass-mesh-1 {
    top: -10%;
    right: -5%;
    width: min(600px, 80vw);
    height: min(600px, 80vw);
    background: var(--primary-light);
    animation-delay: 0s;
}

.glass-mesh-2 {
    bottom: -10%;
    left: -10%;
    width: min(500px, 70vw);
    height: min(500px, 70vw);
    background: var(--secondary-light);
    animation-delay: -5s;
}

.glass-mesh-3 {
    top: 40%;
    left: 40%;
    width: min(400px, 60vw);
    height: min(400px, 60vw);
    background: var(--accent-light);
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(50px, 30px) scale(1.05);
    }

    100% {
        transform: translate(-30px, 50px) scale(0.95);
    }
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--spacing-6);
    align-items: center;
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: var(--spacing-3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: var(--spacing-3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-5);
    max-width: 540px;
}

@media (max-width: 992px) {
    .hero-subtitle {
        margin: 0 auto var(--spacing-5);
    }
}

@media (max-width: 480px) {
    .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: var(--spacing-4);
    }
}

.hero-cta {
    display: flex;
    gap: var(--spacing-2);
}

@media (max-width: 992px) {
    .hero-cta {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Floating Cards Mockup (Hero Visual) */
.hero-visual {
    position: relative;
    height: 500px;
    perspective: 1000px;
}

@media (max-width: 992px) {
    .hero-visual {
        height: 400px;
        margin-top: var(--spacing-6);
        display: none;
    }
}

.floating-cards {
    position: relative;
    width: 100%;
    height: 100%;
}

.float-card {
    position: absolute;
    width: 260px;
    height: 340px;
    padding: var(--spacing-3);
    border-radius: 16px;
    transition: transform var(--transition-smooth);
}

.card-1 {
    top: 10%;
    left: 10%;
    z-index: 3;
    animation: floatingCard 6s ease-in-out infinite;
}

.card-2 {
    top: 30%;
    right: 5%;
    z-index: 2;
    transform: scale(0.9) rotate(5deg);
    opacity: 0.9;
    animation: floatingCard 7s ease-in-out infinite reverse;
}

.card-3 {
    top: -5%;
    right: 15%;
    z-index: 1;
    transform: scale(0.8) rotate(-5deg);
    opacity: 0.7;
    animation: floatingCard 8s ease-in-out infinite 1s;
}

@keyframes floatingCard {
    0% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
    }

    100% {
        transform: translateY(0) rotate(0);
    }
}

.card-header-mock {
    height: 60px;
    background: linear-gradient(135deg, rgba(47, 128, 237, 0.2), rgba(47, 128, 237, 0.05));
    border-radius: 8px;
    margin-bottom: var(--spacing-3);
}

.card-header-mock.accent {
    background: linear-gradient(135deg, rgba(255, 77, 79, 0.2), rgba(255, 77, 79, 0.05));
}

.card-header-mock.secondary {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.2), rgba(108, 99, 255, 0.05));
}

.card-avatar-mock {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e2e8f0;
    margin-bottom: var(--spacing-3);
}

.card-lines-mock {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.line {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
}

.lw-sm {
    width: 40%;
}

.lw-md {
    width: 70%;
}

.lw-lg {
    width: 90%;
}

/* 2. Template Showcase */
.templates-section {
    overflow: hidden;
}

.template-swiper {
    padding: var(--spacing-4) var(--spacing-3) var(--spacing-8) !important;
    overflow: hidden !important;
}

@media (min-width: 769px) {
    .template-swiper {
        overflow: visible !important;
    }
}

.template-card {
    padding: 12px;
    border-radius: 20px;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    cursor: grab;
}

.template-card:active {
    cursor: grabbing;
}

.template-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.template-img-mock {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 12px;
    margin-bottom: var(--spacing-2);
}

.bg-gradient-1 {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
}

.bg-gradient-2 {
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
}

.bg-gradient-3 {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.bg-gradient-4 {
    background: linear-gradient(135deg, #cfd9df 0%, #e2ebf0 100%);
}

.template-info h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-2);
}

.template-actions {
    display: flex;
    gap: 8px;
    opacity: 1;
}

@media (max-width: 480px) {
    .template-info h3 {
        font-size: 1.1rem;
    }

    .template-actions {
        flex-wrap: wrap;
    }
}

/* 3. How It Works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-3);
    margin-top: var(--spacing-6);
}

@media (max-width: 992px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

.step-card {
    padding: var(--spacing-4);
    text-align: center;
    position: relative;
    background: #ffffff;
}

.hover-elevate {
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.hover-elevate:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.step-number {
    position: absolute;
    top: -16px;
    left: -16px;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(47, 128, 237, 0.3);
}

@media (max-width: 576px) {
    .step-number {
        top: -12px;
        left: -8px;
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .step-card {
        padding: var(--spacing-3);
    }
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-3);
    background: var(--bg-main);
    /* placeholder if lottie fails */
    border-radius: 16px;
}

.step-card h3 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-1);
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 4. Features Section */
.features-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: var(--spacing-8);
}

@media (max-width: 992px) {
    .features-layout {
        grid-template-columns: 1fr;
    }
}

.sticky-rel {
    position: sticky;
    top: 100px;
    height: max-content;
}

@media (max-width: 992px) {
    .sticky-rel {
        position: relative;
        top: 0;
        text-align: center;
    }

    .features-text .section-desc {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 992px) {
    .features-layout {
        gap: var(--spacing-5);
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-3);
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-item {
    padding: var(--spacing-3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-2);
}

.bg-primary-light {
    background: var(--primary-light);
}

.bg-secondary-light {
    background: var(--secondary-light);
}

.bg-accent-light {
    background: var(--accent-light);
}

.feature-item h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 5. Live Preview */
.preview-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-6);
    align-items: center;
}

@media (max-width: 992px) {
    .preview-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.flip-card-container {
    perspective: 1500px;
    width: 100%;
    max-width: 400px;
    height: 500px;
    margin: 0 auto;
}

@media (max-width: 480px) {
    .flip-card-container {
        max-width: 100%;
        height: 380px;
    }
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    padding: var(--spacing-3);
    border-radius: 20px;
}

.flip-card-front {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.flip-card-back {
    background: rgba(255, 255, 255, 0.9);
    transform: rotateY(180deg);
}

.mock-editor-ui {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 40px;
}

.mock-input {
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    width: 100%;
}

.mock-input.block {
    height: 120px;
}

.mock-preview-ui {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 20px;
}

.mock-document-header {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e2e8f0;
    margin: 0 auto;
}

.mock-document-text {
    height: 12px;
    background: #cbd5e1;
    border-radius: 6px;
    width: 80%;
    margin: 0 auto;
}

.mock-document-text.sm {
    width: 60%;
}

/* 6. Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-3);
}

@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

.testimonial-card {
    padding: var(--spacing-4);
}

.stars {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-2);
}

.test-text {
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: var(--spacing-3);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-family: var(--font-heading);
}

.user-info h4 {
    font-size: 1rem;
    margin: 0;
}

.user-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* 7. FAQ */
.faq-container {
    max-width: 800px;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accordion-item {
    padding: 0;
    background: #ffffff;
}

.accordion-header {
    width: 100%;
    padding: var(--spacing-3);
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: var(--spacing-2);
}

@media (max-width: 480px) {
    .accordion-header {
        font-size: 1rem;
        padding: var(--spacing-2) var(--spacing-2);
    }

    .accordion-content {
        padding: 0 var(--spacing-2);
    }
}

.accordion-icon {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.accordion-content {
    padding: 0 var(--spacing-3);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-content p {
    color: var(--text-muted);
    padding-bottom: var(--spacing-3);
}

.accordion-item.active .accordion-content {
    max-height: 200px;
    /* arbitrary max height for smooth transition */
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

/* 8. Final CTA */
.cta-banner {
    padding: var(--spacing-8) var(--spacing-4);
    text-align: center;
    background: linear-gradient(135deg, rgba(47, 128, 237, 0.05) 0%, rgba(108, 99, 255, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

@media (max-width: 480px) {
    .cta-banner {
        padding: var(--spacing-6) var(--spacing-3);
        border-radius: 20px;
    }
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-2);
}

.cta-content p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

.cta-mesh-1,
.cta-mesh-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    z-index: 1;
}

.cta-mesh-1 {
    top: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: var(--primary-light);
}

.cta-mesh-2 {
    bottom: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: var(--secondary-light);
}

/* 9. Footer */
.footer {
    background: #0f172a;
    color: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-8) 0 var(--spacing-4);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-4);
    margin-bottom: var(--spacing-6);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-3);
    }

    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 400px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer {
        padding: var(--spacing-6) 0 var(--spacing-3);
    }
}

.footer-brand .logo {
    color: white;
    margin-bottom: var(--spacing-2);
}

.footer-brand p {
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-links h4 {
    color: white;
    margin-bottom: var(--spacing-2);
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: rgba(255, 255, 255, 0.6);
}

.social-links a:hover {
    color: white;
}

@media (max-width: 576px) {
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* ══════════════════════════════════════════
   Policy / Legal Pages
   ══════════════════════════════════════════ */

.policy-hero {
    position: relative;
    padding-top: 120px;
    padding-bottom: var(--spacing-6);
    overflow: hidden;
}

.policy-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.policy-hero-bg .mesh-1 {
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
}

.policy-hero-bg .mesh-2 {
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.policy-hero .container {
    position: relative;
    z-index: 1;
    max-width: 860px;
}

.policy-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--spacing-3);
}

.policy-badge .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.policy-hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: var(--spacing-2);
}

.policy-hero .hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-2);
    max-width: 600px;
}

.policy-hero .effective-date {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.policy-hero .effective-date strong {
    color: var(--text-dark);
}

.policy-body {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 var(--spacing-3) var(--spacing-10);
}

.policy-intro {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    padding: var(--spacing-4) var(--spacing-5);
    margin-bottom: var(--spacing-5);
}

.policy-intro p {
    color: var(--text-muted);
    line-height: 1.75;
}

.policy-intro p+p {
    margin-top: var(--spacing-2);
}

.policy-intro strong {
    color: var(--text-dark);
    font-weight: 600;
}

.policy-sections {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
}

.policy-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: var(--spacing-4) var(--spacing-5);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-fast);
}

.policy-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
    border-color: rgba(47, 128, 237, 0.15);
}

.policy-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: var(--spacing-2);
}

.policy-card-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #1a65c9);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(47, 128, 237, 0.3);
}

.policy-card-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.policy-card-body {
    padding-left: 50px;
}

.policy-card-body p {
    color: var(--text-muted);
    line-height: 1.75;
}

.policy-card-body p+p {
    margin-top: 12px;
}

.policy-card-body strong {
    color: var(--text-dark);
    font-weight: 600;
}

.policy-card-body a {
    color: var(--primary);
    font-weight: 600;
}

.policy-card-body a:hover {
    text-decoration: underline;
}

.policy-list {
    list-style: none;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.policy-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-muted);
    line-height: 1.6;
}

.policy-list .check-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    margin-top: 2px;
}

.check-icon.green {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.check-icon.blue {
    background: var(--primary-light);
    color: var(--primary);
}

.check-icon.amber {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.policy-list .list-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-top: 16px;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.policy-contact {
    margin-top: var(--spacing-6);
    background: linear-gradient(135deg, var(--primary), #1a65c9);
    border-radius: 20px;
    padding: var(--spacing-5);
    color: #fff;
    box-shadow: 0 16px 40px rgba(47, 128, 237, 0.25);
    position: relative;
    overflow: hidden;
}

.policy-contact::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.policy-contact::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.policy-contact-inner {
    position: relative;
    z-index: 1;
}

.policy-contact h2 {
    color: #fff;
    font-size: 1.35rem;
    margin-bottom: var(--spacing-3);
    display: flex;
    align-items: center;
    gap: 12px;
}

.policy-contact h2 .contact-num {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-3);
}

.contact-grid .contact-item label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.7;
    margin-bottom: 4px;
    font-weight: 500;
}

.contact-grid .contact-item p,
.contact-grid .contact-item a {
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
}

.contact-grid .contact-item a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .policy-hero {
        padding-top: 100px;
        padding-bottom: var(--spacing-4);
    }

    .policy-hero h1 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .policy-hero .hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .policy-card-body {
        padding-left: 0;
    }

    .policy-intro {
        padding: var(--spacing-3);
    }

    .policy-card {
        padding: var(--spacing-3);
    }

    .policy-contact {
        padding: var(--spacing-3);
    }

    .policy-body {
        padding-bottom: var(--spacing-6);
    }

    .policy-card-header h2 {
        font-size: 1.1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}