:root {
    --bg: #ffffff;
    --surface: #f8fafc;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --primary: #1d4ed8;
    --primary-dark: #1e40af;
    --shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Nunito Sans", "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

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

.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

.narrow {
    width: min(800px, 92%);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid #e6ebf2;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
}

.announcement-bar {
    height: 36px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid #e6ebf2;
    background: linear-gradient(90deg, #eaf2ff 0%, #f5f9ff 100%);
}

.announcement-track {
    display: flex;
    width: max-content;
    min-width: 100%;
    gap: 48px;
    white-space: nowrap;
    animation: announcement-scroll 34s linear infinite;
    will-change: transform;
}

.announcement-track span {
    color: #1e3a8a;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1px;
}

@keyframes announcement-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 82px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 240px;
}

.brand-fallback {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.brand-logo {
    width: auto;
    height: 48px;
    max-width: 200px;
    object-fit: contain;
    border-radius: 8px;
}

.brand-text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 1.02rem;
    letter-spacing: 0.2px;
}

.brand-text small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 500;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-weight: 500;
    background: #f8fafc;
    border: 1px solid #edf1f5;
    border-radius: 999px;
    padding: 6px;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    min-height: 36px;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.nav-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.nav-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.main-nav a:hover {
    color: var(--text);
    background: #eef2ff;
}

.main-nav a.is-active {
    color: #1e3a8a;
    background: #eaf0ff;
    font-weight: 600;
}

.nav-dropdown {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.nav-dropdown-toggle {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    min-height: 36px;
    border-radius: 999px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: 1;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0;
    vertical-align: middle;
}

.nav-dropdown-toggle:hover {
    color: var(--text);
    background: #eef2ff;
}

.nav-dropdown.is-active .nav-dropdown-toggle {
    color: #1e3a8a;
    background: #eaf0ff;
    font-weight: 600;
}

.nav-chevron {
    font-size: 0.8rem;
    color: #64748b;
    transform: translateY(0);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.12);
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 40;
}

.main-nav {
    overflow: visible;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown.is-open .nav-dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 9px 10px;
    border-radius: 8px;
    color: #334155;
    font-size: 0.9rem;
}

.nav-dropdown-menu a:hover {
    background: #eef2ff;
    color: #1e3a8a;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
}

.lang-switch a {
    font-size: 0.78rem;
    color: #6b7280;
    padding: 4px 8px;
    border-radius: 999px;
    font-weight: 700;
}

.lang-switch a.is-active {
    color: #1e3a8a;
    background: #eaf0ff;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

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

.payment-btn {
    background: #16a34a;
    box-shadow: 0 8px 18px rgba(22, 163, 74, 0.26);
}

.payment-btn:hover {
    background: #15803d;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.15;
    letter-spacing: 0.1px;
    white-space: nowrap;
}

.btn-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

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

.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.hero {
    padding: 72px 0 40px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(10px);
}

.hero::before {
    width: 280px;
    height: 280px;
    right: -80px;
    top: -80px;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.16), transparent 70%);
}

.hero::after {
    width: 260px;
    height: 260px;
    left: -90px;
    bottom: -90px;
    background: radial-gradient(circle at center, rgba(14, 165, 233, 0.12), transparent 70%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 30px;
    align-items: start;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--primary);
    font-weight: 600;
}

h1 {
    font-size: clamp(1.8rem, 3.4vw, 2.8rem);
    line-height: 1.2;
    margin: 0 0 18px;
}

h2 {
    margin-top: 0;
}

.lead {
    color: var(--muted);
    max-width: 66ch;
}

.rotating-line {
    margin: 0 0 14px;
    color: #1e3a8a;
    font-weight: 600;
    min-height: 4.2em;
    max-width: 58ch;
    line-height: 1.45;
    position: relative;
}

.rotating-line.typing::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 1.05em;
    background: #1e3a8a;
    margin-left: 6px;
    vertical-align: -2px;
    animation: blink-caret 0.8s step-end infinite;
}

@keyframes blink-caret {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

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

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.feature-list {
    margin: 0;
    padding-left: 18px;
}

.hero-device {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: auto;
    background: transparent;
    box-shadow: none;
    padding-top: 52px;
}

.hero-device-image {
    width: min(100%, 430px);
    height: auto;
    display: block;
    filter: drop-shadow(0 20px 34px rgba(15, 23, 42, 0.28));
}

.hero-device-placeholder {
    width: min(100%, 430px);
    min-height: 220px;
    background: linear-gradient(180deg, #eff6ff, #dbeafe);
    color: #1e3a8a;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.95rem;
    padding: 16px;
    border: 1px dashed #93c5fd;
    border-radius: 14px;
}

.hero-video-card {
    width: min(100%, 520px);
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.2);
    transform: translateY(0);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.hero-video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 38px rgba(15, 23, 42, 0.24);
}

.hero-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    object-fit: cover;
}

.hero-video-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #000;
    pointer-events: none;
}

.section {
    padding: 56px 0;
}

.section-divider-wrap {
    padding: 6px 0 0;
}

.section-divider-wrap-spaced {
    padding: 14px 0 8px;
}

.section-divider {
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(148, 163, 184, 0) 0%,
        rgba(148, 163, 184, 0.55) 20%,
        rgba(148, 163, 184, 0.75) 50%,
        rgba(148, 163, 184, 0.55) 80%,
        rgba(148, 163, 184, 0) 100%
    );
}

.cards-section h2 {
    margin-bottom: 18px;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.info-card {
    border-radius: 22px;
    padding: 22px;
    min-height: 300px;
    background-color: #f3f4f6;
    background-size: cover;
    background-position: center;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 44px rgba(15, 23, 42, 0.14);
}

.card-badge {
    margin: 0 0 8px;
    color: #4b5563;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.6px;
}

.info-card h3 {
    margin: 0 0 8px;
    font-size: clamp(1.15rem, 1.45vw, 1.45rem);
    line-height: 1.25;
}

.info-card p {
    margin: 0;
    color: #374151;
    font-size: 0.96rem;
}

.card-highlight {
    margin-top: auto;
    padding-top: 12px;
    color: #111827;
    font-size: 0.95rem;
}

.testimonials-section {
    padding-top: 18px;
}

.testimonials-section h2 {
    margin-bottom: 16px;
}

.testimonials-marquee {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.testimonials-track {
    display: flex;
    gap: 18px;
    width: max-content;
    animation: testimonials-scroll 70s linear infinite;
}

.testimonial-card {
    flex: 0 0 320px;
    min-height: 132px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.testimonial-name {
    margin: 0;
    font-size: 0.92rem;
    color: #111827;
    font-weight: 700;
}

.testimonial-card p {
    margin: 0;
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.55;
}

.blog-section {
    padding-top: 18px;
}

.blog-section h2 {
    margin-bottom: 16px;
}

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

.blog-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blog-card-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
}

.blog-card h3 {
    margin: 0;
    font-size: 1.06rem;
    line-height: 1.35;
}

.blog-card p {
    margin: 0;
    color: #4b5563;
    font-size: 0.94rem;
}

.blog-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

.blog-detail-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
    padding: 24px;
}

.blog-detail-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    margin: 8px 0 14px;
}

.blog-content {
    color: #374151;
    margin-bottom: 14px;
    line-height: 1.8;
    font-size: 1.02rem;
}

.blog-content p {
    margin: 0 0 16px;
}

.blog-content p:last-child {
    margin-bottom: 0;
}

@keyframes testimonials-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-video-card,
    .info-card,
    .testimonials-track,
    .btn-primary,
    .btn-secondary {
        transition: none;
        transform: none;
    }

    .announcement-track {
        animation: none;
    }
}

@media (max-width: 1200px) {
    .info-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

.step {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    background: #fff;
}

.step span {
    display: inline-flex;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #eff6ff;
    color: var(--primary);
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 10px;
}

.contact-form {
    display: grid;
    gap: 10px;
}

.contact-form input,
.contact-form textarea {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
}

.contact-form select {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: 2px solid #dbeafe;
    border-color: #bfdbfe;
}

.transfer-section {
    min-height: 56vh;
    display: flex;
    align-items: center;
}

.transfer-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 34px 28px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
    text-align: center;
}

.transfer-spinner {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 3px solid #dbeafe;
    border-top-color: #2563eb;
    margin: 0 auto 14px;
    animation: spin 0.9s linear infinite;
}

.transfer-countdown {
    margin: 6px 0 0;
    color: #4b5563;
}

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

.application-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.modern-form .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
}

.modern-form button[type="submit"] {
    margin-top: 8px;
}

.site-footer {
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, #f9fafb 0%, #f3f6fb 100%);
    margin-top: 30px;
    flex-shrink: 0;
}

.footer-grid {
    padding: 34px 0 24px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 28px;
}

.footer-grid h3,
.footer-grid h4 {
    margin: 0 0 10px;
}

.footer-grid p {
    margin: 0;
    color: #4b5563;
    max-width: 34ch;
}

.footer-grid h4 {
    color: #1f2937;
    font-size: 0.98rem;
}

.footer-grid a {
    display: block;
    color: var(--muted);
    margin: 9px 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-grid a:hover {
    color: #1e3a8a;
    transform: translateX(2px);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.92rem;
    padding: 14px 0;
}

@media (max-width: 900px) {
    .hero-grid,
    .steps,
    .info-cards,
    .blog-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .main-nav {
        display: none;
    }

    .nav-cta {
        padding: 7px 10px;
        font-size: 0.72rem;
        border-radius: 10px;
        letter-spacing: 0;
        white-space: normal;
        line-height: 1.02;
        text-align: center;
        max-width: 100px;
        min-height: 31px;
    }

    .nav-cta .btn-icon {
        display: none;
    }

    .lang-switch {
        margin-left: auto;
        padding: 3px;
        gap: 4px;
    }

    .lang-switch a {
        font-size: 0.72rem;
        padding: 3px 7px;
    }

    .brand {
        min-width: auto;
        max-width: calc(100% - 200px);
    }

    .brand-text small {
        display: none;
    }

    .brand-logo {
        height: 36px;
        max-width: 145px;
    }

    .hero-device-image {
        width: min(100%, 360px);
    }

    .hero-video-iframe {
        height: 100%;
    }

    .hero-device {
        min-height: auto;
        box-shadow: none;
        padding-top: 12px;
    }

    .hero-video-card {
        transform: translateY(0);
    }

    .testimonial-card {
        flex-basis: 280px;
        min-height: 144px;
    }

    .nav-wrap {
        min-height: 58px;
        gap: 8px;
        padding: 8px 0;
    }

    .modern-form .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .announcement-bar {
        height: 32px;
    }

    .announcement-track span {
        font-size: 0.8rem;
    }

    .brand-logo {
        height: 32px;
        max-width: 128px;
    }

    .nav-cta {
        font-size: 0.7rem;
        padding: 6px 9px;
        max-width: 102px;
        min-height: 31px;
    }

    .lang-switch a {
        font-size: 0.68rem;
        padding: 3px 6px;
    }
}
