:root {
    --bg-main: #f4f7fb;
    --bg-surface: #ffffff;
    --bg-elevated: #edf3f9;
    --bg-contrast: #0f2a40;
    --text-main: #15263a;
    --text-muted: #4b6176;
    --text-on-dark: #e8f1ff;
    --border-color: #d6e2ee;
    --primary: #0f4c75;
    --primary-hover: #0b3a59;
    --primary-soft: #d9eaf6;
    --success: #15803d;
    --font-body: 'Inter', 'Segoe UI', sans-serif;
    --font-heading: 'Inter', 'Segoe UI', sans-serif;
    --max-width: 1160px;
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --shadow-soft: 0 12px 28px rgba(19, 41, 62, 0.08);
    --shadow-medium: 0 22px 48px rgba(13, 35, 56, 0.14);
}

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

html {
    scroll-behavior: smooth;
    background: var(--bg-main);
}

body {
    font-family: var(--font-body);
    background: linear-gradient(180deg, #f8fbff 0%, var(--bg-main) 100%);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    line-height: 1.18;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.2rem, 4vw, 3.7rem);
}

h2 {
    font-size: clamp(1.9rem, 3.3vw, 2.8rem);
}

h3 {
    font-size: 1.35rem;
}

p {
    color: var(--text-muted);
    font-size: 1.03rem;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5.5rem 0;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 82px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(214, 226, 238, 0.75);
    background: rgba(248, 252, 255, 0.9);
    backdrop-filter: blur(14px);
    z-index: 1000;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.navbar.scrolled {
    box-shadow: 0 10px 20px rgba(16, 45, 72, 0.1);
    border-color: rgba(194, 213, 232, 0.95);
}

.nav-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(140deg, #0f4c75 0%, #0c3652 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.logo-text {
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.01em;
}

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

.nav-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-surface);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    background: var(--text-main);
    border-radius: 999px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.65rem;
}

.nav-links a:not(.btn) {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.94rem;
    transition: color 0.2s ease;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 46px;
    padding: 0.72rem 1.4rem;
    border-radius: 12px;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 76, 117, 0.26);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 10px 22px rgba(11, 58, 89, 0.3);
}

.btn-secondary {
    color: var(--text-main);
    border-color: var(--border-color);
    background: #ffffff;
}

.btn-secondary:hover {
    border-color: #b9cbdd;
    background: #f8fbff;
}

.btn-block {
    width: 100%;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 152px 0 84px;
}

.hero::before {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    top: -250px;
    right: -130px;
    background: radial-gradient(circle, rgba(14, 104, 139, 0.16) 0%, rgba(14, 104, 139, 0) 70%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.75rem;
    align-items: center;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.36rem 0.78rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-hover);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-title {
    max-width: 17ch;
    margin-bottom: 1.2rem;
    color: #11263b;
}

.hero-subtitle {
    max-width: 58ch;
    margin-bottom: 1.8rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.7rem;
}

.hero-points {
    list-style: none;
    display: grid;
    gap: 0.65rem;
}

.hero-points li {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(214, 226, 238, 0.8);
    border-radius: 12px;
    padding: 0.65rem 0.8rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.hero-points strong {
    color: var(--text-main);
}

.hero-visual {
    display: grid;
    gap: 1rem;
}

.hero-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid #d4e2ef;
    box-shadow: var(--shadow-medium);
    overflow: hidden;
}

.hero-app-preview {
    width: 100%;
    height: auto;
    display: block;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(210, 223, 236, 0.85);
    border-radius: 12px;
    padding: 0.9rem 0.8rem;
}

.stat-card strong {
    display: block;
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.25;
}

.stat-card span {
    display: block;
    margin-top: 0.2rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.35;
}

.trusted-section {
    padding: 0.75rem 0 4rem;
}

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

.trusted-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.15rem 1rem;
    min-height: 138px;
    box-shadow: var(--shadow-soft);
}

.trusted-value {
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1.04rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.45rem;
}

.trusted-label {
    font-size: 0.88rem;
    line-height: 1.45;
}

.section-header {
    max-width: 700px;
    text-align: center;
    margin: 0 auto 2.7rem;
}

.section-header p {
    margin-top: 0.8rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.35rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(20, 48, 74, 0.12);
    border-color: #b7cde1;
}

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: linear-gradient(135deg, #e2eff9 0%, #cde2f3 100%);
    color: var(--primary-hover);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

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

.feature-card p {
    font-size: 0.95rem;
}

.showcase-panel {
    margin-top: 1.6rem;
    background: linear-gradient(140deg, #f8fbff 0%, #edf4fb 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}

.showcase-image {
    width: 100%;
    height: 100%;
    min-height: 255px;
    object-fit: cover;
    display: block;
}

.showcase-copy {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.showcase-copy h3 {
    margin: 0;
}

.showcase-copy p {
    margin: 0;
}

.compliance-section {
    background: linear-gradient(135deg, #10263a 0%, #164367 100%);
}

.compliance-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1.4rem;
    align-items: start;
}

.compliance-copy h2 {
    color: #f5f9ff;
    margin-bottom: 1rem;
}

.compliance-copy p {
    color: #d5e2f1;
    margin-bottom: 1rem;
}

.compliance-list {
    list-style: none;
    display: grid;
    gap: 0.65rem;
}

.compliance-list li {
    color: #e5eef9;
    font-size: 0.95rem;
    padding-left: 1rem;
    position: relative;
}

.compliance-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8ed0f5;
    position: absolute;
    top: 0.55rem;
    left: 0;
}

.text-link {
    display: inline-flex;
    margin-top: 1.2rem;
    color: #9edbff;
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover {
    color: #c5e9ff;
}

.compliance-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid #e3edf7;
    padding: 1.5rem;
    box-shadow: var(--shadow-medium);
}

.compliance-card h3 {
    margin-bottom: 0.85rem;
}

.compliance-checks {
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.compliance-checks li {
    position: relative;
    padding-left: 1.35rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.compliance-checks li::before {
    content: '✓';
    color: var(--success);
    font-weight: 800;
    position: absolute;
    top: 0;
    left: 0;
}

.pricing-section {
    background: transparent;
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    margin-bottom: 2rem;
}

.toggle-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: #688097;
    cursor: pointer;
    user-select: none;
}

.toggle-label.active {
    color: var(--text-main);
}

.toggle-switch {
    position: relative;
    width: 56px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: var(--primary);
    cursor: pointer;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform 0.3s ease;
}

.toggle-switch.yearly::after {
    transform: translateX(24px);
}

.pricing-badge {
    font-size: 0.7rem;
    background: #e9f7ef;
    color: #0f8a4f;
    border-radius: 999px;
    padding: 0.18rem 0.5rem;
    margin-left: 0.3rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.pricing-card {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    box-shadow: 0 20px 36px rgba(15, 76, 117, 0.18);
}

.popular-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #ffffff;
    border-radius: 999px;
    padding: 0.26rem 0.85rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.pricing-name {
    margin-bottom: 0.75rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 0.42rem;
    margin-bottom: 0.25rem;
}

.pricing-amount {
    font-size: 2.75rem;
    line-height: 1;
    color: var(--text-main);
    font-family: var(--font-heading);
}

.pricing-period {
    color: #6d8295;
    font-size: 0.82rem;
    font-weight: 700;
}

.pricing-desc {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    min-height: 66px;
}

.pricing-features {
    list-style: none;
    display: grid;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
    flex: 1;
}

.pricing-features li {
    position: relative;
    padding-left: 1.15rem;
    color: var(--text-main);
    font-size: 0.93rem;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: -1px;
    color: var(--success);
    font-weight: 800;
}

.pricing-features .disabled {
    color: #7f92a4;
}

.pricing-features .disabled::before {
    content: '−';
    color: #92a6ba;
}

.pricing-note {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.86rem;
}

.faq-section {
    background: linear-gradient(180deg, #eef4fa 0%, #f7fbff 100%);
}

.faq-container {
    max-width: 820px;
    margin: 0 auto;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 0.7rem;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.faq-question {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.faq-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #5f7890;
    transition: transform 0.25s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: max-height 0.25s ease, padding 0.25s ease;
}

.faq-item.active .faq-answer {
    max-height: 260px;
    padding: 0 1.1rem 1rem;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.cta-box {
    background: linear-gradient(130deg, #dbe8f4 0%, #eff5fb 100%);
    border: 1px solid #c9d9ea;
    border-radius: var(--radius-lg);
    padding: 3rem 2.2rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.cta-box h2 {
    max-width: 24ch;
    margin: 0 auto 0.9rem;
}

.cta-box p {
    max-width: 60ch;
    margin: 0 auto;
}

.cta-actions {
    margin-top: 1.6rem;
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.footer {
    padding: 1.7rem 0;
    border-top: 1px solid #cfdeec;
    background: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #607991;
}

.footer-links {
    display: flex;
    gap: 1.1rem;
}

.footer-links a {
    text-decoration: none;
    color: #526c86;
    font-size: 0.85rem;
    font-weight: 700;
}

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

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Register page */
.register-main {
    padding: 122px 0 78px;
    min-height: calc(100vh - 82px);
    display: flex;
    align-items: center;
}

.register-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.2rem;
    align-items: center;
}

.register-info h1 {
    margin-bottom: 1rem;
}

.register-subtitle {
    margin-bottom: 1.4rem;
}

.register-benefits {
    list-style: none;
    display: grid;
    gap: 0.85rem;
}

.register-benefits li {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    color: var(--text-main);
    font-size: 0.96rem;
}

.register-benefits svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 1px;
}

.register-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.7rem;
    box-shadow: var(--shadow-medium);
}

.register-box h3 {
    margin-bottom: 1.25rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.83rem;
    color: #27405b;
    font-weight: 700;
}

.form-group input {
    width: 100%;
    border: 1px solid #ceddea;
    border-radius: var(--radius-sm);
    background: #f8fbff;
    color: var(--text-main);
    font-size: 0.95rem;
    font-family: var(--font-body);
    padding: 0.75rem 0.85rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #89b2d2;
    box-shadow: 0 0 0 3px rgba(137, 178, 210, 0.2);
}

.form-checkbox {
    display: flex;
    gap: 0.7rem;
    margin: 1rem 0 1.2rem;
    align-items: flex-start;
}

.form-checkbox input[type='checkbox'] {
    width: 16px;
    height: 16px;
    margin-top: 0.2rem;
}

.form-checkbox label {
    font-size: 0.81rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.form-checkbox a {
    color: var(--primary);
    font-weight: 700;
}

.auth-footer {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.87rem;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 700;
}

/* Legal pages */
.legal-content a {
    color: var(--primary);
}

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

    .hero-title,
    .hero-subtitle {
        max-width: none;
    }

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

    .compliance-layout {
        grid-template-columns: 1fr;
    }

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

    .pricing-grid .pricing-card:last-child {
        grid-column: 1 / -1;
    }

    .register-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .showcase-panel {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 768px) {
    .navbar {
        height: 74px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: absolute;
        left: 0;
        right: 0;
        top: 74px;
        background: rgba(249, 253, 255, 0.98);
        border-bottom: 1px solid #d8e4ef;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
        padding: 0.6rem 1.5rem 0.9rem;
        transform: scaleY(0);
        transform-origin: top;
        opacity: 0;
        pointer-events: none;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .nav-links.open {
        transform: scaleY(1);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a:not(.btn),
    .nav-links .btn {
        width: 100%;
        text-align: center;
    }

    .hero {
        padding-top: 122px;
        padding-bottom: 56px;
    }

    .section {
        padding: 4rem 0;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

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

    .pricing-grid .pricing-card:last-child {
        grid-column: auto;
    }

    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

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

    .register-main {
        padding-top: 104px;
    }
}

@media (max-width: 520px) {
    .container {
        padding: 0 1rem;
    }

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

    .cta-box {
        padding: 2.2rem 1.2rem;
    }

    .register-box {
        padding: 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .fade-in-up {
        opacity: 1;
        transform: none;
    }
}