:root {
    --bg: #f2f0f0;
    --surface: #ffffff;
    --surface-alt: #f5f5f7;
    --ink: #0a0a0b;
    --text-main: #1d1d1f;
    --muted: #6e6e73;
    --line: rgba(0, 0, 0, 0.08);
    --accent: #c5a059;
    --accent-strong: #1d1d1f;
    --accent-soft: rgba(10, 10, 11, 0.08);
    --success-soft: rgba(10, 12, 16, 0.08);
    --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.08);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-pill: 999px;
    --content-width: 1180px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(197, 160, 89, 0.12), transparent 28%),
        linear-gradient(180deg, #f5f4f4 0%, var(--bg) 100%);
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

a,
button {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.page-shell {
    position: relative;
}

.page-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 88%);
    pointer-events: none;
    z-index: -1;
}

.header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 16px 0 0;
}

.floating-navbar {
    width: min(92%, var(--content-width));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: var(--radius-pill);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(18px);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-logo img {
    height: 32px;
    width: auto;
}

.logo-text {
    color: var(--ink);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
}

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

.nav-item {
    position: relative;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 600;
    transition: color 0.25s ease;
}

.nav-item:hover,
.nav-item:focus-visible,
.nav-item[aria-current="page"] {
    color: var(--ink);
    outline: none;
}

.nav-item[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 2px;
    background: var(--ink);
}

.nav-actions,
#auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-login,
.btn-start,
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-login,
.btn-secondary {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
}

.btn-start,
.btn-primary {
    color: #ffffff;
    background: var(--ink);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.btn-login:hover,
.btn-secondary:hover,
.btn-primary:hover,
.btn-start:hover {
    transform: translateY(-2px);
}

.btn-secondary:hover,
.btn-login:hover {
    background: #ffffff;
}

.btn-primary:hover,
.btn-start:hover {
    background: #1d1d1f;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

.btn-secondary.accent {
    border-color: rgba(255, 255, 255, 0.28);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.btn-secondary.accent:hover {
    background: rgba(255, 255, 255, 0.16);
}

.hamburger,
.close-btn {
    display: none;
}

.hamburger {
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: 0;
    padding: 6px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 999px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #ffffff;
    align-items: center;
    justify-content: center;
}

.close-btn span {
    font-size: 1.65rem;
    line-height: 1;
}

main {
    width: min(92%, var(--content-width));
    margin: 0 auto;
    padding: 40px 0 88px;
}

.section-block {
    margin-top: 32px;
}

.hero-section {
    position: relative;
    min-height: 76vh;
    display: grid;
    align-items: end;
    overflow: hidden;
    border-radius: 20px;
    background:
        linear-gradient(110deg, rgba(10, 10, 11, 0.86), rgba(10, 10, 11, 0.5)),
        url('../assets/SERVICES_IMG.jpg') center/cover no-repeat;
    box-shadow: var(--shadow-soft);
}

.hero-content {
    width: min(100%, 720px);
    padding: 56px;
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 18px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.6rem, 5vw, 4.7rem);
    line-height: 1.02;
    margin-bottom: 16px;
}

.hero-content p {
    max-width: 560px;
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.84);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
    max-width: 580px;
}

.stat-card {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
}

.stat-card strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.45rem;
    line-height: 1.1;
}

.stat-card span {
    display: block;
    margin-top: 4px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.74);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.section-heading h2,
.cta-panel h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.08;
    color: var(--ink);
}

.section-heading p {
    max-width: 520px;
    color: var(--muted);
}

.services-grid,
.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.service-card,
.trust-card,
.step-card {
    padding: 20px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-card);
}

.service-card {
    position: relative;
    overflow: hidden;
    min-height: 100%;
}

.service-card::after {
    content: "";
    position: absolute;
    inset: auto -40px -40px auto;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.14), transparent 68%);
    pointer-events: none;
}

.service-card:hover,
.trust-card:hover,
.step-card:hover {
    transform: translateY(-4px);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
}

.icon-chip {
    width: 62px;
    height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(10, 10, 11, 0.06);
    color: var(--ink);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
}

.icon-chip svg {
    width: 28px;
    height: 28px;
    display: block;
}

.icon-chip.success {
    background: rgba(10, 10, 11, 0.06);
    color: var(--ink);
}

.service-card h3,
.trust-card h3,
.step-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.12rem;
    line-height: 1.25;
    margin-bottom: 8px;
}

.service-card p,
.trust-card p,
.step-card p {
    color: var(--muted);
    font-size: 0.95rem;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.service-tags span {
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--surface-alt);
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 600;
}

.why-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
    align-items: stretch;
}

.why-panel {
    padding: 28px;
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 245, 247, 0.92));
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-soft);
}

.why-panel p {
    max-width: 560px;
    color: var(--muted);
    margin-top: 10px;
}

.trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 22px;
}

.highlight-panel {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border-radius: var(--radius-xl);
    background:
        linear-gradient(145deg, rgba(10, 10, 11, 0.96), rgba(29, 29, 31, 0.96)),
        linear-gradient(180deg, #0a0a0b, #1d1d1f);
    color: #ffffff;
    box-shadow: var(--shadow-soft);
}

.highlight-panel::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.24), transparent 68%);
}

.highlight-panel h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.65rem;
    line-height: 1.15;
    margin-bottom: 10px;
}

.highlight-panel p {
    color: rgba(255, 255, 255, 0.82);
    max-width: 320px;
}

.mini-metrics {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.mini-metrics div {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.mini-metrics strong {
    display: block;
    font-size: 1.3rem;
    line-height: 1.1;
}

.mini-metrics span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.9rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.step-card {
    position: relative;
    padding-top: 64px;
}

.step-number {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ink);
    color: #ffffff;
    font-weight: 700;
}

.step-card .icon-chip {
    margin-bottom: 14px;
}

.cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px;
    border-radius: var(--radius-xl);
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.96), rgba(245, 245, 247, 0.96));
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-soft);
}

.cta-panel p {
    color: var(--muted);
    margin-top: 8px;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.page-footer {
    width: min(92%, var(--content-width));
    margin: 0 auto 32px;
    padding: 26px 28px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.page-footer p,
.page-footer a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.94rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

/* ===== Auth Modal Styles ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 24px;
}

.modal-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f5f5f5;
    color: var(--ink);
}

.modal-body {
    padding: 0 24px 24px;
}

.tab-buttons {
    display: flex;
    margin-bottom: 24px;
}

.tab-btn {
    flex: 1;
    padding: 12px 0;
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: var(--ink);
    border-bottom-color: var(--ink);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.auth-form {
    width: 100%;
}

.auth-status {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
}

.auth-status.is-error {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
}

.auth-status.is-success {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.form-group {
    margin-bottom: 16px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 4px rgba(10, 10, 11, 0.08);
}

.form-group.has-error input {
    border-color: #dc2626;
    background: #fff8f8;
}

.form-group.has-error input:focus {
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 72px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    border: none;
    background: none;
    padding: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
}

.password-toggle:hover {
    color: #333333;
}

.field-error {
    min-height: 18px;
    margin: 8px 0 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.84rem;
    font-weight: 500;
    color: #dc2626;
}

.auth-form-meta {
    display: flex;
    justify-content: flex-end;
    margin: -2px 0 16px;
}

.forgot-password-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

.auth-submit {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    background: var(--ink);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s ease, opacity 0.3s ease;
    margin-bottom: 16px;
}

.auth-submit:hover {
    background: #333333;
}

.auth-submit:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

.auth-submit-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.auth-submit.is-loading .auth-submit-spinner {
    display: inline-block;
}

.toast-stack {
    position: fixed;
    top: 20px;
    right: 20px;
    display: grid;
    gap: 12px;
    z-index: 10000;
}

.toast {
    min-width: 260px;
    max-width: 340px;
    padding: 14px 16px;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.45;
    animation: modalSlideIn 0.25s ease;
}

.toast-success {
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.toast-error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #be123c;
}

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

    .why-layout,
    .cta-panel {
        grid-template-columns: 1fr;
        display: grid;
    }

    .hero-content {
        padding: 44px;
    }
}

@media (max-width: 768px) {
    .header-wrapper {
        padding-top: 12px;
    }

    .floating-navbar {
        width: calc(100% - 24px);
        padding: 12px 18px;
    }

    .logo-text {
        font-size: 0.98rem;
    }

    .nav-links {
        display: none;
    }

    .nav-links.mobile-open {
        position: fixed;
        inset: 0 0 0 auto;
        width: min(84vw, 340px);
        height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
        padding: 92px 24px 24px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: -24px 0 50px rgba(0, 0, 0, 0.14);
        z-index: 1200;
    }

    .nav-links.mobile-open .close-btn {
        display: inline-flex;
    }

    .nav-links.mobile-open .nav-item {
        font-size: 1.04rem;
    }

    #auth-buttons {
        display: none;
    }

    .hamburger {
        display: inline-flex;
    }

    main {
        padding-top: 24px;
    }

    .hero-section {
        min-height: auto;
    }

    .hero-content {
        padding: 32px 24px;
    }

    .hero-stats,
    .services-grid,
    .trust-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .why-panel,
    .highlight-panel,
    .cta-panel {
        padding: 22px;
    }

    .page-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
