/* ================================================
   FICHAJE — Landing Page
   Orange-branded SaaS, inspired by Quipu.
   ================================================ */

/* ---------- Design Tokens ---------- */
:root {
    /* Orange palette */
    --orange-50: #FFF7ED;
    --orange-100: #FFEDD5;
    --orange-200: #FED7AA;
    --orange-300: #FDBA74;
    --orange-400: #FB923C;
    --orange-500: #F97316;
    --orange-600: #EA580C;
    --orange-700: #C2410C;
    --orange-800: #9A3412;
    --orange-900: #7C2D12;

    /* Neutrals */
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --gray-950: #030712;

    /* Semantic */
    --primary: var(--orange-500);
    --primary-dark: var(--orange-600);
    --primary-light: var(--orange-400);
    --accent: var(--orange-600);
    --bg: var(--white);
    --bg-alt: var(--gray-50);
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-muted: var(--gray-400);
    --border: var(--gray-200);

    /* Gradient */
    --gradient-orange: linear-gradient(135deg, var(--orange-400), var(--orange-600));
    --gradient-hero: linear-gradient(135deg, var(--orange-50) 0%, var(--white) 50%, var(--orange-50) 100%);
    --gradient-dark: linear-gradient(135deg, var(--gray-900), var(--gray-800));
    --gradient-text: linear-gradient(135deg, var(--orange-500), var(--orange-700));

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .07), 0 2px 4px -2px rgba(0, 0, 0, .05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .08), 0 4px 6px -4px rgba(0, 0, 0, .04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, .08), 0 8px 10px -6px rgba(0, 0, 0, .04);
    --shadow-xxl: 0 25px 50px -12px rgba(0, 0, 0, .15);
    --shadow-orange: 0 10px 40px -10px rgba(249, 115, 22, .35);

    /* Radius */
    --radius-sm: .375rem;
    --radius-md: .75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;

    /* Typography */
    --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    /* Layout */
    --container: 1200px;
    --section-py: clamp(4rem, 8vw, 7rem);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

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

/* ---------- Utilities ---------- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

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

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

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h4 {
    font-size: 1.125rem;
}

.tagline {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--primary);
    background: var(--orange-50);
    padding: .35rem .85rem;
    border-radius: var(--radius-full);
}

.subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
    font-size: .95rem;
    padding: .85rem 1.75rem;
    border-radius: var(--radius-full);
    transition: all .25s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-orange);
    color: var(--white);
    box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 44px -10px rgba(249, 115, 22, .45);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-primary);
    border: 1.5px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

.btn-dark {
    background: var(--gray-900);
    color: var(--white);
}

.btn-dark:hover {
    background: var(--gray-800);
    transform: translateY(-2px);
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    transition: box-shadow .3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--gray-900);
}

.navbar-logo img {
    height: 40px;
    width: 40px;
    object-fit: contain;
}

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

.navbar-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar-links a {
    font-size: .9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color .2s;
}

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

.navbar-cta {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.navbar-cta .btn {
    padding: .65rem 1.4rem;
    font-size: .875rem;
}

/* Mobile hamburger */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
}

.navbar-toggle span {
    display: block;
    height: 2.5px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: .3s;
}

.navbar-toggle.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.navbar-toggle.open span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(249, 115, 22, .12) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(249, 115, 22, .08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    margin-bottom: 1.25rem;
}

.hero-text p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 2rem;
    max-width: 520px;
    line-height: 1.7;
}

.hero-badges {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    color: var(--text-secondary);
}

.hero-badge svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

.hero-image-wrapper {
    position: relative;
    z-index: 1;
}

.hero-image-wrapper img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xxl);
    border: 1px solid var(--border);
}

.hero-image-glow {
    position: absolute;
    inset: -20px;
    background: var(--gradient-orange);
    border-radius: var(--radius-2xl);
    opacity: .12;
    filter: blur(40px);
    z-index: -1;
}

/* ---------- Trusted By Bar ---------- */
.trusted {
    padding: 3rem 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.trusted p {
    text-align: center;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.trusted-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    opacity: .5;
}

.trusted-logos svg {
    height: 28px;
    width: auto;
}

/* ---------- Benefits ---------- */
.benefits {
    background: var(--bg-alt);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3.5rem;
}

.benefit-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    border: 1px solid var(--border);
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

.benefit-card:hover::before {
    transform: scaleX(1);
}

.benefit-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.benefit-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: var(--orange-50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.benefit-icon svg {
    width: 28px;
    height: 28px;
}

.benefit-card h3 {
    margin-bottom: .75rem;
}

.benefit-card p {
    color: var(--text-secondary);
    font-size: .95rem;
    line-height: 1.65;
}

/* ---------- Features Bento ---------- */
.features {
    background: var(--bg);
}

.features-bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    margin-top: 3.5rem;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all .3s ease;
}

.feature-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.feature-card.large {
    grid-column: span 7;
}

.feature-card.medium {
    grid-column: span 5;
}

.feature-card.third {
    grid-column: span 4;
}

.feature-card-img {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--orange-50), var(--orange-100));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.feature-card-img img {
    max-height: 100%;
    width: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.feature-card-body {
    padding: 1.75rem;
}

.feature-card-body .tagline {
    margin-bottom: .75rem;
}

.feature-card-body h3 {
    margin-bottom: .5rem;
}

.feature-card-body p {
    color: var(--text-secondary);
    font-size: .9rem;
}

/* ---------- How it Works ---------- */
.how-it-works {
    background: var(--bg-alt);
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3.5rem;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: var(--border);
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-orange);
    color: var(--white);
    font-size: 1.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-orange);
    font-family: var(--font-display);
}

.step h4 {
    margin-bottom: .5rem;
}

.step p {
    color: var(--text-secondary);
    font-size: .9rem;
}

/* ---------- Screenshot Showcase ---------- */
.showcase {
    background: var(--gray-900);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.showcase::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(249, 115, 22, .2), transparent 70%);
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

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

.showcase-text p {
    color: var(--gray-300);
    margin: 1.25rem 0 2rem;
    font-size: 1.05rem;
}

.showcase-text ul {
    margin-bottom: 2rem;
}

.showcase-text li {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: 1rem;
    color: var(--gray-200);
    font-size: .95rem;
}

.showcase-text li svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.showcase-image img {
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 60px rgba(0, 0, 0, .4);
    border: 1px solid rgba(255, 255, 255, .1);
}

/* ---------- Compliance ---------- */
.compliance {
    background: var(--bg);
    position: relative;
}

.compliance-card {
    background: linear-gradient(135deg, var(--orange-50), var(--white));
    border: 1px solid var(--orange-200);
    border-radius: var(--radius-2xl);
    padding: 3.5rem;
    text-align: center;
    margin-top: 3.5rem;
    position: relative;
    overflow: hidden;
}

.compliance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-orange);
}

.compliance-badges {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.compliance-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    min-width: 140px;
}

.compliance-badge-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--orange-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.compliance-badge-icon svg {
    width: 28px;
    height: 28px;
}

.compliance-badge span {
    font-weight: 600;
    font-size: .875rem;
    color: var(--text-primary);
}

.compliance-badge small {
    font-size: .75rem;
    color: var(--text-secondary);
}

/* ---------- Testimonials ---------- */
.testimonials {
    background: var(--bg-alt);
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
    animation: scroll-left 40s linear infinite;
}

.testimonial-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.testimonial-card {
    min-width: 380px;
    max-width: 380px;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 1rem;
}

.testimonial-stars svg {
    width: 18px;
    height: 18px;
    color: var(--orange-400);
    fill: var(--orange-400);
}

.testimonial-card blockquote {
    font-size: .95rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.testimonial-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gradient-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: .9rem;
}

.testimonial-info strong {
    display: block;
    font-size: .9rem;
}

.testimonial-info small {
    color: var(--text-muted);
    font-size: .8rem;
}

/* ---------- Pricing ---------- */
.pricing {
    background: var(--bg);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3.5rem;
    align-items: start;
}

.pricing-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.25rem 1.25rem;
    position: relative;
    transition: all .3s ease;
}

.pricing-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-orange);
    transform: scale(1.03);
}

.pricing-card.popular:hover {
    transform: scale(1.03) translateY(-4px);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-orange);
    color: var(--white);
    font-size: .75rem;
    font-weight: 700;
    padding: .35rem 1.25rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: .05em;
    box-shadow: var(--shadow-orange);
}

.pricing-card h3 {
    margin-bottom: .25rem;
}

.pricing-card .price-desc {
    color: var(--text-secondary);
    font-size: .875rem;
    margin-bottom: 1.5rem;
}

.price-value {
    display: flex;
    align-items: baseline;
    gap: .25rem;
    margin-bottom: .35rem;
}

.price-value .amount {
    font-size: 2.25rem;
    font-weight: 800;
    font-family: var(--font-display);
    white-space: nowrap;
}

.price-value .period {
    color: var(--text-muted);
    font-size: .95rem;
}

.price-note {
    font-size: .8rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.pricing-divider {
    height: 1px;
    background: var(--border);
    margin: 1.5rem 0;
}

.pricing-features {
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding: .45rem 0;
    font-size: .9rem;
    color: var(--text-secondary);
}

.pricing-features li svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-card .btn {
    width: 100%;
    justify-content: center;
}

/* ---------- FAQ ---------- */
.faq {
    background: var(--bg-alt);
}

.faq-list {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-primary);
    text-align: left;
    transition: color .2s;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question svg {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
    transition: transform .3s ease;
    flex-shrink: 0;
}

.faq-item.open .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}

.faq-answer p {
    padding-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: .95rem;
}

/* ---------- Final CTA ---------- */
.final-cta {
    background: var(--gray-900);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(249, 115, 22, .15), transparent 60%);
}

.final-cta h2 {
    color: var(--white);
    position: relative;
}

.final-cta p {
    color: var(--gray-300);
    font-size: 1.1rem;
    margin: 1rem auto 2.5rem;
    max-width: 560px;
    position: relative;
}

.final-cta .btn-group {
    justify-content: center;
    position: relative;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--gray-950);
    color: var(--gray-400);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand img {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: .875rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-col h4 {
    color: var(--primary);
    text-transform: uppercase;
    font-size: .75rem;
    letter-spacing: .1em;
    margin-bottom: 1.25rem;
}

.footer-col a {
    display: block;
    padding: .3rem 0;
    font-size: .875rem;
    transition: color .2s;
}

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

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .8rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .25s;
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
}

.footer-social a svg {
    width: 18px;
    height: 18px;
}

/* ---------- Animations ---------- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all .6s cubic-bezier(.22, .61, .36, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Mobile nav overlay ---------- */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--white);
    padding: 6rem 2rem 2rem;
    flex-direction: column;
    gap: 1.5rem;
}

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

.mobile-menu a {
    font-size: 1.25rem;
    font-weight: 600;
    padding: .75rem 0;
    border-bottom: 1px solid var(--border);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto 2rem;
    }

    .hero-text .btn-group {
        justify-content: center;
    }

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

    .hero-image-wrapper {
        max-width: 600px;
        margin: 3rem auto 0;
    }

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

    .features-bento {
        grid-template-columns: 1fr;
    }

    .feature-card.large,
    .feature-card.medium,
    .feature-card.third {
        grid-column: span 1;
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps::before {
        display: none;
    }

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

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

    .showcase-text ul {
        display: inline-block;
        text-align: left;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin-left: auto;
        margin-right: auto;
    }

    .pricing-card.popular {
        transform: none;
    }

    .pricing-card.popular:hover {
        transform: translateY(-4px);
    }

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

    .compliance-card {
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 768px) {

    .navbar-links,
    .navbar-cta {
        display: none;
    }

    .navbar-toggle {
        display: flex;
    }

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

    .testimonial-card {
        min-width: 300px;
        max-width: 300px;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .compliance-badges {
        gap: 1.5rem;
    }
}

/* ---------- Pricing Grid (5 cards: 3+2 centered) ---------- */
.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.pricing-grid .pricing-card {
    flex: 0 1 calc(33.333% - 1rem);
    min-width: 260px;
}

@media (max-width: 992px) {
    .pricing-grid .pricing-card {
        flex: 0 1 calc(50% - 0.75rem);
    }
}

@media (max-width: 768px) {
    .pricing-grid .pricing-card {
        flex: 0 1 100%;
    }
}

/* ---------- Modals ---------- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    overflow-y: auto;
    padding: 2rem 1rem;
}

.modal.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: auto;
    width: 100%;
    max-width: 550px;
    border-radius: 20px;
    position: relative;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1.25rem;
    font-size: 1.75rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

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

.modal-header {
    margin-bottom: 2rem;
    text-align: center;
}

.modal-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.modal-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.modal-form .form-group {
    margin-bottom: 1.25rem;
}

.modal-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.modal-form input,
.modal-form select,
.modal-form textarea {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.form-accept {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-accept input {
    margin-top: 0.2rem;
    width: auto;
}

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

.form-response.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.form-response.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 500px) {
    .modal-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* ---------- Password Toggle ---------- */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    padding-right: 45px !important;
}

.password-toggle-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.1rem;
    z-index: 10;
}

.password-toggle-icon:hover {
    color: var(--primary);
}

/* ---------- Legal Pages ---------- */
.legal-content {
    /* Clear the fixed navbar */
    padding-top: 140px;
    padding-bottom: 80px;
}

.legal-content h2 {
    font-size: 1.35rem;
    color: var(--text-primary);
    margin: 2rem 0 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.legal-content p,
.legal-content li {
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {

    .navbar,
    .mobile-menu,
    .footer,
    .btn-primary,
    .btn-secondary {
        display: none !important;
    }

    body,
    .legal-content {
        background: white;
        color: black;
        padding-top: 0 !important;
        margin: 0 !important;
    }

    .legal-content h1,
    .legal-content h2,
    .legal-content p {
        color: black;
    }

    .gradient-text {
        background: none !important;
        -webkit-text-fill-color: black !important;
        color: black !important;
    }
}