/* -------------------------------------------------------------------------- */
/*                                1. VARIABLES                                */
/* -------------------------------------------------------------------------- */
:root {
    /* Colors */
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #64748b;
    --accent: #f59e0b;

    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --bg-body: #ffffff;
    --bg-surface: #f8fafc;
    --bg-card: #ffffff;

    --border-light: #e2e8f0;
    --border-focus: #3b82f6;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    --gradient-glow: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.1) 0%, rgba(255, 255, 255, 0) 70%);

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

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* -------------------------------------------------------------------------- */
/*                                  2. RESET                                  */
/* -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

/* -------------------------------------------------------------------------- */
/*                                3. UTILITIES                                */
/* -------------------------------------------------------------------------- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-main);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

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

.btn-text {
    font-weight: 500;
    color: var(--text-muted);
}

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

.badge {
    display: inline-block;
    padding: 4px 12px;
    background: #dbeafe;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 99px;
    margin-bottom: 16px;
}

/* -------------------------------------------------------------------------- */
/*                              4. HEADER / NAV                               */
/* -------------------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 50;
    border-bottom: 1px solid var(--border-light);
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo .dot {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

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

.nav-links a:not(.btn-primary):hover {
    color: var(--text-main);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}

.bar {
    width: 100%;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: 0.3s;
}

/* -------------------------------------------------------------------------- */
/*                                  5. HERO                                   */
/* -------------------------------------------------------------------------- */
.hero {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--gradient-glow);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero h1 .highlight {
    color: var(--primary);
    position: relative;
}

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

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.trust-indicators {
    display: flex;
    gap: 20px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* App Mockup Animation */
.app-mockup {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 20px;
    border: 1px solid var(--border-light);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
    position: relative;
}

.app-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.mockup-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #fee2e2;
}

.yellow {
    background: #fef3c7;
}

.green {
    background: #dcfce7;
}

.mockup-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skeleton-text {
    height: 20px;
    width: 60%;
    background: #f1f5f9;
    border-radius: 4px;
}

.skeleton-chart {
    height: 150px;
    width: 100%;
    background: #f8fafc;
    border-radius: 8px;
}

.skeleton-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.list-item {
    height: 40px;
    width: 100%;
    background: #f1f5f9;
    border-radius: 6px;
}

.floating-card {
    position: absolute;
    bottom: 20px;
    right: -30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid white;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

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

    50% {
        transform: translateY(-10px);
    }
}

/* -------------------------------------------------------------------------- */
/*                                  6. STATS                                  */
/* -------------------------------------------------------------------------- */
.stats {
    padding: 60px 0;
    background: white;
    border-bottom: 1px solid var(--border-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-heading);
}

.stat-label {
    color: var(--text-muted);
    font-weight: 500;
}

/* -------------------------------------------------------------------------- */
/*                                 7. PROBLEM                                 */
/* -------------------------------------------------------------------------- */
.problem {
    padding: 100px 0;
    background: white;
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

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

.pain-points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.pain-card {
    padding: 32px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    transition: transform 0.2s;
}

.pain-card:hover {
    transform: translateY(-5px);
}

.icon-wrapper {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.pain-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.pain-card p {
    color: var(--text-muted);
}

/* -------------------------------------------------------------------------- */
/*                                 8. FEATURES                                */
/* -------------------------------------------------------------------------- */
.features {
    padding: 100px 0;
    background: var(--bg-surface);
}

.tag {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 12px;
}

.feature-rows {
    display: flex;
    flex-direction: column;
    gap: 120px;
    margin-top: 80px;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.feature-row.reverse {
    direction: rtl;
}

.feature-row.reverse .feature-content {
    direction: ltr;
}

.feature-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.feature-content p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.check-list li::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #dbeafe;
    color: var(--primary);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: bold;
}

.feature-visual {
    position: relative;
    padding: 40px;
}

.visual-placeholder {
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    box-shadow: var(--shadow-lg);
}

.gradient-1 {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
}

.gradient-2 {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

/* -------------------------------------------------------------------------- */
/*                                 9. PRICING                                 */
/* -------------------------------------------------------------------------- */
.pricing {
    padding: 100px 0;
    background: white;
}

.pricing-card-wrapper {
    display: flex;
    justify-content: center;
}

.pricing-card {
    width: 100%;
    max-width: 450px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-xl);
}

.pricing-header {
    padding: 40px;
    background: var(--bg-surface);
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.price-box {
    display: flex;
    justify-content: center;
    align-items: baseline;
    margin-bottom: 12px;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    margin-right: 4px;
}

.amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
}

.period {
    color: var(--text-muted);
    margin-left: 8px;
}

.pricing-body {
    padding: 40px;
}

.feature-list-check {
    list-style: none;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-list-check li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-list-check li span {
    color: var(--primary);
    font-weight: bold;
}

.full-width {
    width: 100%;
}

.terms-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 16px;
}

/* -------------------------------------------------------------------------- */
/*                                 10. FOOTER                                 */
/* -------------------------------------------------------------------------- */
footer {
    padding: 80px 0 40px;
    background: #0f172a;
    color: #94a3b8;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 24px;
    font-size: 1rem;
}

.footer-col a {
    display: block;
    margin-bottom: 12px;
}

.footer-col a:hover {
    color: white;
}

.logo-footer {
    color: white;
    font-weight: 800;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    display: inline-block;
    margin-bottom: 20px;
}

/* -------------------------------------------------------------------------- */
/*                                 11. MODAL                                  */
/* -------------------------------------------------------------------------- */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: none;
    opacity: 0;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.modal-container {
    background: white;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--radius-md);
    padding: 40px;
    position: relative;
    box-shadow: var(--shadow-2xl);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-backdrop.open {
    opacity: 1;
}

.modal-backdrop.open .modal-container {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--text-light);
    line-height: 1;
}

.modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.modal-header h2 {
    margin-bottom: 8px;
    font-size: 1.75rem;
}

.modal-header p {
    color: var(--text-muted);
}

/* Modern Form */
.modern-form .form-section {
    margin-bottom: 24px;
}

.section-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.input-group {
    position: relative;
    margin-bottom: 16px;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border 0.2s;
    background: transparent;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-group label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    background: white;
    padding: 0 4px;
    transition: all 0.2s;
    pointer-events: none;
}

/* Floating label effect */
.input-group input:focus+label,
.input-group input:not(:placeholder-shown)+label {
    top: 0;
    font-size: 0.75rem;
    color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.segmented-control {
    background: var(--bg-surface);
    padding: 4px;
    border-radius: var(--radius-sm);
    display: flex;
}

.segmented-control label {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.segmented-control input {
    position: absolute;
    opacity: 0;
}

.segmented-control span {
    display: block;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s;
}

.segmented-control input:checked+span {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.select-wrapper select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: white;
    font-size: 1rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    margin: 24px 0;
}

.checkbox-wrapper input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    margin-top: 3px;
}

.label-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.label-text a {
    color: var(--primary);
    text-decoration: underline;
}

/* -------------------------------------------------------------------------- */
/*                                12. RESPONSIVE                              */
/* -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .trust-indicators {
        justify-content: center;
    }

    .feature-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .feature-row.reverse {
        direction: ltr;
    }

    .check-list {
        align-items: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

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

    .mobile-menu-toggle {
        display: flex;
    }

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

    .hero {
        padding-top: 100px;
    }
}

/* -------------------------------------------------------------------------- */
/*                                13. UTILITIES/EXTRAS                        */
/* -------------------------------------------------------------------------- */
.form-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.btn-primary:disabled,
.btn-primary[disabled],
.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--text-light);
    transform: none !important;
    box-shadow: none !important;
    pointer-events: none;
}