/* Sharp Modern Dark Theme */

/* ------------------- */
/* 1. ROOT VARIABLES   */
/* ------------------- */
:root {
    --color-primary: #6366f1;
    --color-primary-hover: #818cf8;
    --color-secondary: #22d3ee;
    --color-accent: #f59e0b;
    --color-bg: #0a0a0b;
    --color-bg-elevated: #141416;
    --color-bg-card: #18181b;
    --color-text: #fafafa;
    --color-text-muted: #a1a1aa;
    --color-heading: #ffffff;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-shadow: rgba(0, 0, 0, 0.4);
    --color-glow: rgba(99, 102, 241, 0.25);
    --color-glow-cyan: rgba(34, 211, 238, 0.2);

    --font-primary: 'Outfit', sans-serif;
    --font-heading: 'Syne', sans-serif;

    --header-height: 80px;
    --border-radius: 16px;
    --radius-sm: 10px;
    --transition-smooth: all 0.25s ease;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

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

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

h1 { font-size: clamp(2.25rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
h3 { font-size: 1.35rem; }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--color-secondary);
}

a:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 4px;
}

ul {
    list-style: none;
}

::selection {
    background: rgba(99, 102, 241, 0.35);
    color: var(--color-text);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.section-padding {
    padding: 5rem 0;
}

/* ------------------- */
/* 3. BACKGROUND & FX  */
/* ------------------- */
.background-mist {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(180deg, transparent 0%, rgba(10, 10, 11, 0.3) 100%),
        radial-gradient(ellipse 80% 50% at 20% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(34, 211, 238, 0.07) 0%, transparent 50%);
    z-index: -3;
    pointer-events: none;
}

.background-mist::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    opacity: 0.5;
}

#blob {
    background: radial-gradient(circle, var(--color-primary) 0%, var(--color-secondary) 100%);
    height: 500px;
    width: 500px;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation: blob-float 20s ease-in-out infinite;
    opacity: 0.15;
    filter: blur(100px);
    z-index: -2;
    pointer-events: none;
}

@keyframes blob-float {
    0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
    50% { transform: translate(-48%, -52%) scale(1.15) rotate(180deg); }
}

.cursor-glow {
    position: fixed;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
    transition: transform 0.12s ease-out;
}

/* ------------------- */
/* 4. HEADER & NAV     */
/* ------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    padding: 1rem 0;
    background: transparent;
}

.header.scrolled {
    background: rgba(10, 10, 11, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.nav-logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-heading);
}

.nav-logo img {
    height: 42px;
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text-muted);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover {
    color: var(--color-text);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--color-secondary);
}

.nav-link:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 4px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    background: var(--color-text);
    transition: var(--transition-smooth);
}

/* ------------------- */
/* 5. BUTTONS          */
/* ------------------- */
.btn {
    padding: 14px 28px;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s ease;
    display: inline-block;
}

.btn:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 4px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), #8b5cf6);
    color: #fff;
    box-shadow: 0 4px 20px var(--color-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-hover), #a78bfa);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 40px var(--color-glow);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.btn-secondary:hover {
    background: rgba(34, 211, 238, 0.12);
    color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--color-glow-cyan);
}

.btn-lg {
    padding: 16px 34px;
    font-size: 1.05rem;
}

/* ------------------- */
/* 6. HERO — SPLIT     */
/* ------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

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

.hero .subtitle {
    display: block;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-secondary);
}

.hero-title {
    margin-bottom: 1.25rem;
    position: relative;
    letter-spacing: -0.02em;
}

.hero-title .text-reveal {
    display: block;
    transform: translateY(0);
}

.hero-description {
    max-width: 480px;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-trust {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-trust::before {
    content: '';
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2322d3ee' opacity='0.8'%3E%3Cpath d='M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

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

.hero-visual::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--border-radius) + 4px);
    padding: 2px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    pointer-events: none;
}

.hero-visual img {
    border-radius: var(--border-radius);
    box-shadow: 0 24px 64px var(--color-shadow), 0 0 0 1px var(--color-border);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    text-align: center;
}

.hero-scroll-indicator a {
    color: var(--color-text-muted);
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--color-text-muted);
    border-radius: 14px;
    position: relative;
    margin: 0 auto 8px;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--color-secondary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-dot 2s infinite;
}

@keyframes scroll-dot {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 18px; }
}

.hero-scroll-indicator a {
    transition: var(--transition-smooth);
}

.hero-scroll-indicator a:hover {
    color: var(--color-secondary);
}

/* ------------------- */
/* 7. SHARED SECTIONS  */
/* ------------------- */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.subtitle {
    font-family: var(--font-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    color: var(--color-secondary);
    margin-bottom: 0.75rem;
    display: inline-block;
    position: relative;
}

.subtitle::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
    border-radius: 1px;
}

.section-header .subtitle::after {
    left: 0;
    transform: none;
}

.section-title {
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-header p {
    max-width: 640px;
    margin: 0 auto;
    color: var(--color-text-muted);
}

/* ------------------- */
/* 8. SERVICES — LIST  */
/* ------------------- */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.service-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
    padding: 2rem 1rem;
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-smooth);
    border-radius: var(--radius-sm);
}

.service-row:last-child {
    border-bottom: none;
}

.service-row:hover {
    padding-left: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
}

.service-row:hover .service-icon-wrap {
    background: rgba(99, 102, 241, 0.2);
    color: var(--color-primary);
    transform: scale(1.05);
}

.service-row:hover .service-row-link i {
    transform: translateX(4px);
}

.service-icon-wrap {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-secondary);
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.3s var(--ease-out), background 0.25s ease, color 0.25s ease;
}

.service-row-link i {
    transition: transform 0.25s var(--ease-out);
}

.service-row-content h3 {
    margin-bottom: 0.35rem;
    color: var(--color-heading);
}

.service-row-content p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin: 0;
}

.service-row-link {
    font-weight: 600;
    color: var(--color-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.service-row-link:hover {
    color: var(--color-primary);
}

/* ------------------- */
/* 9. ABOUT + WHY US    */
/* ------------------- */
.about-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-text .section-header {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about-text .section-header p {
    margin: 0;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--color-text);
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin: 1.5rem 0 2rem;
    flex-wrap: wrap;
}

.about-stat {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.about-stat span {
    display: block;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.about-image-block img {
    border-radius: var(--border-radius);
    box-shadow: 0 20px 50px var(--color-shadow), 0 0 0 1px var(--color-border);
}

.why-us-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 3rem 2rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    margin-top: 2rem;
}

.why-us-item {
    text-align: center;
    padding: 0 1rem;
}

.why-us-item {
    transition: transform 0.3s var(--ease-out);
}

.why-us-item:hover {
    transform: translateY(-4px);
}

.why-us-item .icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.15);
    border-radius: var(--border-radius);
    color: var(--color-primary);
    font-size: 1.25rem;
    border: 1px solid rgba(99, 102, 241, 0.3);
    transition: box-shadow 0.3s var(--ease-out);
}

.why-us-item:hover .icon {
    box-shadow: 0 0 24px var(--color-glow);
}

.why-us-item h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--color-heading);
}

.why-us-item p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* -------------------- */
/* 10. PROCESS — STEPS  */
/* -------------------- */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.process-step-card {
    background: var(--color-bg-card);
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    transition: transform 0.3s var(--ease-out), border-color 0.25s ease, box-shadow 0.3s var(--ease-out);
    text-align: center;
}

.process-step-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 8px 32px var(--color-glow);
    transform: translateY(-4px);
}

.process-step-num {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 0.75rem;
    padding: 0.35rem 0.75rem;
    background: rgba(34, 211, 238, 0.12);
    border-radius: 999px;
    border: 1px solid rgba(34, 211, 238, 0.25);
}

.process-step-card .icon {
    font-size: 1.75rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.process-step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--color-heading);
}

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

/* -------------------- */
/* 11. CALCULATOR       */
/* -------------------- */
.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.calculator-content .section-header {
    text-align: left;
}

.calculator-form-wrapper {
    padding: 2rem;
    background: var(--color-bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.calculator-form .form-group {
    margin-bottom: 2rem;
}

.calculator-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text);
}

.calculator-form input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    background: transparent;
}

.calculator-form input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    background: var(--color-bg-elevated);
    border-radius: 3px;
}

.calculator-form input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 22px;
    width: 22px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    margin-top: -8px;
    box-shadow: 0 0 20px var(--color-glow);
}

.calculator-form output {
    display: block;
    text-align: right;
    font-weight: 700;
    color: var(--color-secondary);
}

.calculator-results {
    margin-top: 2rem;
    text-align: center;
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
}

.calculator-results h4 {
    font-family: var(--font-primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.calculator-results p {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

/* -------------------- */
/* 12. TESTIMONIALS GRID */
/* -------------------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: var(--color-bg-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    transition: transform 0.3s var(--ease-out), border-color 0.25s ease, box-shadow 0.3s var(--ease-out);
}

.testimonial-card:hover {
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 12px 40px var(--color-glow);
    transform: translateY(-6px);
}

.quote-icon {
    font-size: 2rem;
    color: var(--color-primary);
    opacity: 0.6;
    margin-bottom: 1rem;
    display: block;
}

.testimonial-card p {
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--color-text);
    line-height: 1.6;
}

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

.author-info h4 {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--color-heading);
    font-size: 1rem;
}

.author-info span {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* ------------------- */
/* 13. CTA — SPLIT     */
/* ------------------- */
.cta-split {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
    background: var(--color-bg-card);
    padding: 3rem 4rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.cta-split::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    opacity: 0.8;
}

.cta-content h2 {
    margin-bottom: 0.75rem;
}

.cta-content p {
    color: var(--color-text-muted);
    margin: 0;
}

.cta-action {
    text-align: right;
}

.cta-action .btn {
    margin-bottom: 0.5rem;
}

.cta-reassurance {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ------------------- */
/* 14. FOOTER          */
/* ------------------- */
.footer {
    background: var(--color-bg-elevated);
    color: var(--color-text-muted);
    padding-top: 4rem;
    border-top: 1px solid var(--color-border);
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    padding-bottom: 3rem;
}

.footer-about .footer-logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 1rem;
}

.footer-about .footer-logo img {
    height: 40px;
    margin-right: 10px;
}

.footer-about p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

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

.footer-social a {
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-text-muted);
}

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

.footer h3 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    color: var(--color-heading);
}

.footer-links ul li {
    margin-bottom: 0.6rem;
}

.footer-links ul a {
    color: var(--color-text-muted);
}

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

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0.75rem;
    color: var(--color-text-muted);
}

.footer-contact i {
    color: var(--color-secondary);
    margin-top: 4px;
}

.footer-contact a {
    color: var(--color-text-muted);
}

.footer-contact a:hover {
    color: var(--color-secondary);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.footer-legal {
    display: flex;
    gap: 1.25rem;
}

.footer-legal a {
    color: var(--color-text-muted);
}

.footer-legal a:hover {
    color: var(--color-secondary);
}

/* ------------------- */
/* 15. UTILITY & WIDGETS */
/* ------------------- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--border-radius);
    visibility: hidden;
    opacity: 0;
    transform: translateY(16px);
    transition: var(--transition-smooth);
    z-index: 999;
}

.back-to-top.visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-primary-hover);
    color: #fff;
    box-shadow: 0 4px 24px var(--color-glow);
    transform: translateY(-2px);
}

.back-to-top:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 4px;
}

.chat-widget {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 52px;
    height: 52px;
    background: var(--color-secondary);
    color: var(--color-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--border-radius);
    z-index: 999;
    cursor: pointer;
    font-size: 1.35rem;
    transition: transform 0.25s var(--ease-out), background 0.25s ease;
}

.chat-widget:hover {
    background: #06b6d4;
    color: var(--color-bg);
    transform: scale(1.08);
}

/* ------------------- */
/* 16. LEGAL & CONTACT */
/* ------------------- */
.page-header {
    padding-top: 140px;
    padding-bottom: 4rem;
    text-align: center;
    min-height: auto;
}

.page-header .hero-content {
    max-width: 640px;
    margin: 0 auto;
}

.page-title {
    font-size: clamp(2rem, 4vw, 3rem);
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

.legal-content .content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-bg-card);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.legal-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-secondary);
    font-family: var(--font-heading);
}

.legal-content p,
.legal-content li {
    margin-bottom: 1rem;
    color: var(--color-text);
}

.legal-content ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    margin-top: 3rem;
}

.contact-info-block,
.contact-form-block {
    background: var(--color-bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    padding: 2.5rem;
}

.contact-info-item {
    display: flex;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.info-icon {
    font-size: 1.35rem;
    color: var(--color-secondary);
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.contact-form .form-group,
.form-group {
    position: relative;
    margin-bottom: 1.75rem;
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--color-border);
    color: var(--color-heading);
    font-size: 1rem;
    outline: none;
}

.form-group label {
    position: absolute;
    top: 14px;
    left: 0;
    color: var(--color-text-muted);
    pointer-events: none;
    transition: var(--transition-smooth);
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--color-secondary);
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--color-secondary);
}

/* Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--color-bg-elevated);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--color-border);
    transform: scale(0.95);
    transition: var(--transition-smooth);
    position: relative;
}

.popup.active .popup-content {
    transform: scale(1);
}

.popup-icon {
    font-size: 3.5rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.popup-content h3 {
    color: var(--color-heading);
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 1.75rem;
    color: var(--color-text-muted);
    cursor: pointer;
}

.popup-close:hover {
    color: var(--color-heading);
}

/* -------------------- */
/* 17. RESPONSIVENESS   */
/* -------------------- */

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

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .hero-visual {
        order: -1;
        max-width: 480px;
        margin: 0 auto;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: var(--color-bg);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        justify-content: center;
        gap: 2rem;
        box-shadow: none;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.25rem;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .about-block,
    .calculator-wrapper,
    .contact-page-wrapper {
        grid-template-columns: 1fr;
    }

    .about-text .section-header,
    .calculator-content .section-header {
        text-align: center;
    }

    .why-us-strip {
        grid-template-columns: 1fr;
    }

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

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

    .cta-split {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2.5rem 2rem;
    }

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

@media (max-width: 768px) {
    .section-padding {
        padding: 3.5rem 0;
    }

    .page-header {
        padding-top: 120px;
        padding-bottom: 3rem;
    }

    .service-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem 0;
    }

    .service-row-link {
        justify-content: flex-start;
    }

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

    .cta-split {
        padding: 2rem 1.5rem;
    }

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

    .footer-social {
        justify-content: center;
    }

    .footer-contact ul li {
        justify-content: center;
    }

    .footer-bottom {
        justify-content: center;
    }

    .contact-page-wrapper {
        gap: 1.5rem;
    }

    .contact-info-block,
    .contact-form-block {
        padding: 1.75rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Reveal animations */
.reveal-fade {
    opacity: 0;
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
    transform: translateY(20px);
}

.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal for list/grid items */
.service-row.revealed { transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), background 0.25s ease; }
.service-row.revealed:nth-child(1) { transition-delay: 0.05s; }
.service-row.revealed:nth-child(2) { transition-delay: 0.1s; }
.service-row.revealed:nth-child(3) { transition-delay: 0.15s; }
.service-row.revealed:nth-child(4) { transition-delay: 0.2s; }

.process-step-card.revealed { transition-delay: 0.1s; }
.process-step-card.revealed:nth-child(1) { transition-delay: 0.05s; }
.process-step-card.revealed:nth-child(2) { transition-delay: 0.15s; }
.process-step-card.revealed:nth-child(3) { transition-delay: 0.25s; }
.process-step-card.revealed:nth-child(4) { transition-delay: 0.35s; }

.testimonial-card.revealed:nth-child(1) { transition-delay: 0.05s; }
.testimonial-card.revealed:nth-child(2) { transition-delay: 0.15s; }
.testimonial-card.revealed:nth-child(3) { transition-delay: 0.25s; }
