/* --- Variables --- */
:root {
    --bg-color: #0A192F;
    --bg-secondary: #112240;
    --text-main: #FFFFFF;
    --text-muted: #8892B0;
    --accent-green: #00FF94;
    --accent-blue: #4361EE;
    --gradient-primary: linear-gradient(135deg, #00FF94 0%, #4361EE 100%);
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --transition: all 0.3s ease;
    --shadow-soft: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
    --shadow-glow: 0 0 20px rgba(0, 255, 148, 0.2);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    background-image: url('./assets/images/bg-abstract.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

/* --- Typography --- */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-accent {
    color: var(--accent-green);
}

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

/* --- Layout --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 80px 0;
}

.section--darker {
    background-color: rgba(10, 25, 47, 0.8);
    backdrop-filter: blur(10px);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 50px;
}

/* --- Components --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-family: var(--font-heading);
    cursor: pointer;
    font-size: 1rem;
    gap: 10px;
}

.btn--primary {
    background: var(--gradient-primary);
    color: #0A192F;
    box-shadow: var(--shadow-glow);
    border: none;
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 255, 148, 0.4);
}

.btn--secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
}

.btn--secondary:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.btn--large {
    padding: 18px 40px;
    font-size: 1.2rem;
}

/* --- Header --- */
.header {
    padding: 20px 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-main);
    letter-spacing: -1px;
}

.nav {
    display: none;
    /* Mobile first hidden */
}

@media (min-width: 768px) {
    .nav {
        display: flex;
        gap: 30px;
    }

    .nav__link {
        font-weight: 500;
        font-size: 0.95rem;
    }

    .nav__link:hover {
        color: var(--accent-green);
    }
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.hero__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.hero__content {
    text-align: center;
    max-width: 600px;
    z-index: 2;
}

.badge {
    display: inline-block;
    background: rgba(0, 255, 148, 0.1);
    color: var(--accent-green);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 255, 148, 0.3);
}

.hero__title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero__subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero__actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-image {
    display: block;
    width: 140px;
    /* Mobile optimal width */
    max-width: 45%;
    /* Ensure two fit */
    transition: var(--transition);
}

.btn-image:hover {
    transform: translateY(-3px);
    filter: brightness(1.2);
}

.btn-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    /* Optional polish */
}

.hero__trust {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0.8;
}

.hero__visual {
    position: relative;
    width: 100%;
    max-width: 320px;
    z-index: 1;
}

.hero__phone {
    position: relative;
    z-index: 2;
    border-radius: 30px;
    box-shadow: var(--shadow-glow);
    animation: float 6s ease-in-out infinite;
}

.hero__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 1;
    filter: blur(40px);
}

.hero__floating-card {
    position: absolute;
    top: 20%;
    right: -20px;
    background: rgba(17, 34, 64, 0.9);
    backdrop-filter: blur(10px);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-soft);
    z-index: 3;
    animation: float-delayed 7s ease-in-out infinite;
    max-width: 200px;
}

.floating-card__icon {
    font-size: 1.5rem;
}

.floating-card__text {
    font-size: 0.75rem;
    line-height: 1.3;
}

.floating-card__text strong {
    color: var(--text-main);
    display: block;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes float-delayed {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@media (min-width: 992px) {
    .hero__container {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }

    .hero__content {
        text-align: left;
        max-width: 550px;
    }

    .hero__title {
        font-size: 3.5rem;
    }

    .hero__actions {
        flex-direction: row;
    }

    .hero__trust {
        justify-content: flex-start;
    }

    .hero__visual {
        max-width: 380px;
        margin-right: 50px;
    }
}

/* --- Features Grid --- */
.features__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.feature-card {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 16px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-green);
    background: rgba(17, 34, 64, 0.8);
}

.feature-card__icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent-green);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .features__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Steps / How it works --- */
.steps__timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.steps__timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.step {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    position: relative;
}

.step:last-child {
    margin-bottom: 0;
}

.step__number {
    width: 40px;
    height: 40px;
    background: var(--bg-color);
    border: 2px solid var(--accent-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--accent-green);
    z-index: 2;
    flex-shrink: 0;
}

.step__content h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.step__content p {
    color: var(--text-muted);
}

@media (min-width: 768px) {
    .steps__timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .step {
        width: 50%;
        margin-left: auto;
        padding-left: 30px;
    }

    .step:nth-child(even) {
        margin-left: 0;
        margin-right: auto;
        padding-left: 0;
        padding-right: 30px;
        flex-direction: row-reverse;
        text-align: right;
    }

    .step__number {
        position: absolute;
        left: -20px;
        /* offset by half width */
        top: 0;
    }

    .step:nth-child(even) .step__number {
        right: -20px;
        left: auto;
    }
}

/* --- Safety --- */
.safety__wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.safety__list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.safety__list li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.check-icon {
    color: var(--accent-green);
    font-size: 1.2rem;
}

.safety__list strong {
    display: block;
    margin-bottom: 5px;
    color: var(--text-main);
}

.safety__list p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.shield-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 148, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle, rgba(0, 255, 148, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
}

.shield-icon {
    font-size: 5rem;
}

@media (min-width: 992px) {
    .safety__wrapper {
        flex-direction: row;
        justify-content: space-around;
    }

    .safety__content {
        max-width: 500px;
    }
}

/* --- Metrics & Reviews --- */
.metrics {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 60px;
    text-align: center;
}

.metric__val {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-green);
    font-family: var(--font-heading);
}

.metric__label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reviews-carousel {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 5%;
    /* padding for snap alignment edges */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
}

.reviews-carousel::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.review-card {
    background: var(--bg-secondary);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-width: 300px;
    max-width: 320px;
    scroll-snap-align: center;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    align-items: flex-start;
}

.review-user {
    display: flex;
    gap: 12px;
    align-items: center;
}

.review-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--accent-green);
}

.review-author {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.2;
}

.review-role {
    font-size: 0.8rem;
    color: var(--accent-blue);
}

.review-text {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding-top: 100px;
    padding-bottom: 50px;
    background: linear-gradient(0deg, #020C1B 0%, rgba(2, 12, 27, 0) 100%);
}

.footer__title {
    font-size: 2rem;
    margin-bottom: 20px;
}

.footer__subtitle {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.footer__actions {
    margin-bottom: 50px;
}

.footer__links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer__links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer__links a:hover {
    color: var(--accent-green);
}

.footer__copy {
    color: rgba(136, 146, 176, 0.5);
    font-size: 0.8rem;
}