:root {
    --bg-950: #070d14;
    --bg-900: #0d1623;
    --bg-800: #16253a;
    --text-100: #f4f8fd;
    --text-300: #c8d5e4;
    --text-500: #92a8bf;
    --line: rgba(132, 157, 184, 0.25);
    --line-strong: rgba(132, 157, 184, 0.48);
    --accent: #f59e0b;
    --accent-strong: #f97316;
    --accent-cyan: #0ea5e9;
    --surface-1: rgba(8, 15, 24, 0.78);
    --surface-2: rgba(11, 20, 31, 0.88);
    --radius-xl: 26px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --shadow-1: 0 16px 40px rgba(0, 0, 0, 0.35);
    --shadow-2: 0 24px 56px rgba(0, 0, 0, 0.45);
    --secondary: var(--text-100);
    --muted: var(--text-500);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-300);
    background:
        radial-gradient(1200px 700px at 10% -20%, rgba(14, 165, 233, 0.24), transparent 58%),
        radial-gradient(820px 520px at 90% 12%, rgba(245, 158, 11, 0.15), transparent 60%),
        linear-gradient(145deg, #05090f 0%, #0b1521 38%, #0f1b2b 100%);
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

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

.navbar-custom {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(5, 10, 16, 0.72);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
    transition: all .25s ease;
}

.navbar-custom.scrolled {
    background: rgba(5, 10, 16, 0.92);
    border-bottom-color: rgba(245, 158, 11, 0.4);
}

.navbar-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
}

.brand {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.01em;
}

.brand span {
    color: var(--accent);
}

.nav-toggle {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(12, 22, 34, 0.75);
    padding: 8px 10px;
}

.nav-toggle:focus {
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28242,248,255,0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

#mainNavMenu {
    flex-grow: 0;
}

.main-nav-inner {
    display: flex;
    align-items: center;
    gap: 22px;
}

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

.nav-link-custom {
    color: rgba(242, 248, 255, 0.86);
    font-weight: 500;
    transition: color .2s ease;
}

.nav-link-custom:hover {
    color: #fff;
}

.btn-main {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #1a1002;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.25);
    transition: .2s ease;
}

.btn-main:hover {
    color: #1a1002;
    filter: brightness(1.08);
    transform: translateY(-2px);
}

.btn-soft {
    background: rgba(8, 18, 29, 0.58);
    color: #f0f5fb;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 700;
    transition: .2s ease;
}

.btn-soft:hover {
    color: #fff;
    border-color: rgba(245, 158, 11, 0.5);
    transform: translateY(-2px);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 80px 0 70px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 46px 46px;
    opacity: 0.24;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 24px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.hero-main,
.hero-showcase {
    min-width: 0;
}

.hero-main {
    background: var(--surface-1);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-1);
    padding: 34px;
}

.tag {
    display: inline-block;
    background: rgba(14, 165, 233, 0.14);
    border: 1px solid rgba(14, 165, 233, 0.35);
    color: #8fdcff;
    font-weight: 700;
    border-radius: 999px;
    padding: 8px 14px;
    margin-bottom: 16px;
    font-size: .9rem;
}

.hero h1 {
    font-size: clamp(2rem, 4.4vw, 3.8rem);
    line-height: 1.06;
    margin-bottom: 18px;
    color: var(--text-100);
    font-weight: 800;
}

.hero p {
    font-size: 1.05rem;
    color: var(--text-500);
    margin-bottom: 28px;
    max-width: 690px;
}

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

.hero-visual {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.hero-visual-card {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-1);
    backdrop-filter: blur(8px);
    transition: .2s ease;
}

.hero-visual-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
}

.hero-visual-card .icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    margin-bottom: 12px;
    background: rgba(245, 158, 11, 0.16);
    color: #f8be58;
}

.hero-visual-card strong {
    display: block;
    color: var(--text-100);
    margin-bottom: 6px;
}

.hero-visual-card span {
    color: var(--text-500);
    font-size: .95rem;
}

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

.stat-card {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    box-shadow: var(--shadow-1);
    transition: .2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card strong {
    display: block;
    font-size: 1.1rem;
    color: #ffd183;
}

.stat-card span {
    color: var(--text-500);
    font-size: .9rem;
}

.hero-showcase-frame {
    height: 100%;
    min-height: 100%;
    background:
        linear-gradient(180deg, rgba(8, 16, 25, 0.88), rgba(11, 20, 31, 0.95)),
        radial-gradient(circle at 78% 20%, rgba(14, 165, 233, 0.18), transparent 52%);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 16px;
}

.hero-mockup-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 8px;
    background: rgba(14, 165, 233, 0.2);
    border: 1px solid rgba(14, 165, 233, 0.4);
    color: #bcecff;
    border-radius: 999px;
    padding: 7px 13px;
    font-size: .83rem;
    font-weight: 700;
}

.hero-mockup-picture {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(132, 157, 184, 0.45);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42);
    background:
        radial-gradient(circle at 20% 10%, rgba(14, 165, 233, 0.16), transparent 45%),
        rgba(8, 15, 24, 0.9);
    isolation: isolate;
    padding: 10px;
}

.hero-mockup-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
    display: block;
    border-radius: 14px;
    transform: scale(1.001);
    transition: transform .35s ease, filter .35s ease;
}

.hero-showcase-frame:hover .hero-mockup-image {
    transform: scale(1.03);
    filter: saturate(1.05);
}

.hero-showcase-content {
    display: grid;
    gap: 10px;
}

.hero-showcase-content h3 {
    margin: 0;
    color: var(--text-100);
    font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.hero-showcase-content p {
    margin: 0;
    color: #a9b8c8;
    font-size: .98rem;
}

.hero-showcase-list {
    display: grid;
    gap: 8px;
    margin-top: 4px;
}

.hero-showcase-list div {
    color: #d7e6f6;
    font-size: .92rem;
    display: flex;
    gap: 8px;
    align-items: center;
}

.hero-showcase-list i {
    color: #74d2ff;
}

.section {
    padding: 74px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 38px;
}

.section-title h2 {
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    margin-bottom: 10px;
    color: var(--text-100);
    font-weight: 800;
}

.section-title p {
    color: var(--text-500);
    max-width: 760px;
    margin: 0 auto;
}

.features-grid,
.benefit-grid,
.testimonial-grid {
    display: grid;
    gap: 20px;
}

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

.features-grid .feature-card:last-child {
    grid-column: 1 / -1;
    text-align: center;
}

.features-grid .feature-card:last-child .feature-icon {
    margin: 0 auto 14px auto;
}

.features-grid .feature-card:last-child p {
    max-width: 700px;
    margin: 0 auto;
}

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

.feature-card,
.testimonial-card,
.benefit-card,
.mini-counter {
    padding: 26px;
    background: var(--surface-2);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-1);
    height: 100%;
    transition: .2s ease;
}

.feature-card:hover,
.testimonial-card:hover,
.benefit-card:hover,
.mini-counter:hover {
    transform: translateY(-5px);
    border-color: var(--line-strong);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(14, 165, 233, 0.18);
    border: 1px solid rgba(14, 165, 233, 0.38);
    color: #9adfff;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    margin-bottom: 14px;
}

.feature-card h3,
.testimonial-card h3,
.benefit-card h3 {
    font-size: 1.15rem;
    color: var(--text-100);
    margin-bottom: 10px;
    font-weight: 700;
}

.feature-card p,
.testimonial-card p,
.benefit-card ul,
.benefit-card li {
    color: var(--text-500);
    margin: 0;
}

.benefits-section {
    background: linear-gradient(180deg, rgba(9, 17, 29, 0.55), rgba(9, 17, 29, 0));
}

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

.benefit-card ul {
    padding-left: 18px;
}

.benefit-card li {
    margin-bottom: 10px;
}

.mini-counter-wrap {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 34px;
}

.mini-counter {
    text-align: center;
    padding: 22px;
}

.mini-counter .number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #96dfff;
    line-height: 1;
    margin-bottom: 8px;
}

.mini-counter span:last-child {
    color: var(--text-500);
    font-size: .95rem;
}

.faq-wrap {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    border: 1px solid var(--line) !important;
    box-shadow: var(--shadow-1);
    margin-bottom: 14px;
    background: var(--surface-2);
}

.accordion-button {
    font-weight: 700;
    color: var(--text-100);
    background: rgba(12, 23, 36, 0.9);
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    background: rgba(14, 165, 233, 0.18);
    color: #d8f1ff;
}

.accordion-button::after {
    filter: brightness(2.3);
}

.accordion-body {
    color: var(--text-500);
}

.cta-box {
    background:
        radial-gradient(circle at 84% 18%, rgba(245, 158, 11, 0.24), transparent 44%),
        linear-gradient(135deg, #0a121d, #15263a);
    color: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: 46px 28px;
    text-align: center;
    box-shadow: var(--shadow-2);
    position: relative;
    overflow: hidden;
}

.cta-box h2 {
    font-size: clamp(1.9rem, 3vw, 2.9rem);
    margin-bottom: 12px;
    font-weight: 800;
    position: relative;
    z-index: 1;
    color: var(--text-100);
}

.cta-box p {
    max-width: 720px;
    margin: 0 auto 22px;
    color: var(--text-500);
    position: relative;
    z-index: 1;
}

.footer-custom {
    background: #070d14;
    color: rgba(255,255,255,.76);
    padding: 30px 0;
    border-top: 1px solid var(--line);
}

.footer-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: all .7s ease;
}

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

.login-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(14, 165, 233, 0.14);
    border: 1px solid rgba(14, 165, 233, 0.35);
    color: #9fddff;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: .88rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.form-label {
    font-weight: 600;
    color: #dbe7f3;
}

.form-control,
.input-group-text,
.btn {
    min-height: 48px;
}

.form-control,
.input-group-text {
    background: rgba(5, 12, 18, 0.86);
    border-color: rgba(132, 157, 184, 0.3);
    color: #e7f0f9;
}

.form-control::placeholder {
    color: #8ea2b8;
}

.form-control:focus {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
    background: rgba(5, 12, 18, 0.95);
    color: #fff;
}

.input-group-text {
    background: rgba(5, 12, 18, 0.9);
}

.btn-outline-secondary {
    border-color: rgba(132, 157, 184, 0.35);
    color: #d7e4f2;
}

.btn-outline-secondary:hover {
    background: rgba(14, 165, 233, 0.2);
    color: #fff;
}

.helper-text {
    color: var(--text-500) !important;
}

.login-drawer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}

.login-drawer.show {
    display: block;
}

.login-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 18, 0.78);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity .25s ease;
}

.login-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(470px, 100%);
    height: 100%;
    background:
        radial-gradient(380px 240px at 95% 0%, rgba(245, 158, 11, 0.16), transparent 72%),
        linear-gradient(180deg, #0b1522, #101d2e);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform .3s ease;
    overflow-y: auto;
}

.login-drawer.show .login-overlay {
    opacity: 1;
}

.login-drawer.show .login-panel {
    transform: translateX(0);
}

.login-panel-header {
    padding: 24px 24px 0 24px;
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.login-panel-body {
    padding: 20px 24px 28px 24px;
}

.btn-icon-close {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(11, 23, 35, 0.82);
    color: #e6eef7;
    flex: 0 0 auto;
}

.btn-icon-close:hover {
    background: rgba(14, 165, 233, 0.2);
}

.login-side-highlight {
    margin-top: 18px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(245, 158, 11, 0.2));
    color: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
}

.login-side-highlight p {
    color: rgba(240, 247, 255, 0.88);
    margin-bottom: 0;
}

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

    .hero-showcase-frame {
        min-height: 320px;
    }

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

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

@media (min-width: 992px) {
    .nav-toggle {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .navbar-shell {
        flex-wrap: wrap;
    }

    #mainNavMenu {
        width: 100%;
        flex-basis: 100%;
    }

    .main-nav-inner {
        margin-top: 12px;
        background: rgba(8, 15, 24, 0.94);
        border: 1px solid var(--line);
        border-radius: 16px;
        padding: 14px;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .main-nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .main-nav-inner .btn-main {
        width: 100%;
    }

    .hero,
    .section {
        padding: 58px 0;
    }

    .features-grid,
    .benefit-grid,
    .testimonial-grid,
    .mini-counter-wrap,
    .hero-visual,
    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-main {
        padding: 28px;
    }
}

@media (max-width: 767.98px) {
    .container-custom {
        width: min(1220px, 94%);
    }

    .hero-main {
        padding: 24px 18px;
    }

    .hero h1 {
        font-size: clamp(1.75rem, 9vw, 2.5rem);
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-showcase-frame {
        padding: 22px 18px;
    }

    .hero-mockup-image {
        object-position: center;
    }

    .feature-card,
    .testimonial-card,
    .benefit-card,
    .mini-counter {
        padding: 20px;
    }

    .cta-box {
        padding: 34px 20px;
    }

    .login-panel {
        width: 100%;
    }

    .login-panel-header,
    .login-panel-body {
        padding-left: 18px;
        padding-right: 18px;
    }
}
