@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    --bg-dark-1: #141414;
    --bg-dark-2: #18181b;
    --bg-card: #222222;
    --border-card: #2b2b2b;
    /* Aliases used in some existing templates */
    --bg-dark-3: var(--bg-dark-2);
    --bg-dark-4: #27272a;
    --bg-dark-5: var(--border-card);
    
    --text-white: #f4f4f5;
    --text-gray: #9f9fa9;
    --text-gray-light: #d4d4d8;
    --text-gray-dark: #71717b;

    --accent-blue-start: #155dfc;
    --accent-blue-end: #2b7fff;
    --accent-blue: var(--accent-blue-start);
    --gradient-blue: linear-gradient(135deg, var(--accent-blue-start) 0%, var(--accent-blue-end) 100%);
    --gradient-text: linear-gradient(90deg, #51a2ff 0%, #155dfc 100%);
    --accent-gradient: var(--gradient-blue);
    
    --font-main: 'Montserrat', sans-serif;
}

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

body {
    background-color: var(--bg-dark-1);
    color: var(--text-white);
    font-family: var(--font-main);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5%; /* Responsive default */
}

@media (min-width: 1200px) {
    .container {
        padding: 0 240px; /* Precise padding from design for large screens */
    }
}

@media (max-width: 1440px) {
    .container {
        max-width: 100%;
        /* padding handled by base rule and specific overrides */
    }
}
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.gap-8 { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.gap-30 { gap: 30px; }
.gap-32 { gap: 32px; }
.gap-34 { gap: 34px; }
.gap-60 { gap: 60px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }
.mt-20 { margin-top: 20px; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.relative { position: relative; }
.absolute { position: absolute; }
.rounded-16 { border-radius: 16px; }

/* Text Styles */
.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-gray-light { color: var(--text-gray-light); }
.text-sm { font-size: 14px; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px; /* Precise 14px */
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.btn-primary {
    background: var(--gradient-blue);
    color: #fff;
    /* h-[58px] from design for hero button */
    height: 58px; 
    padding: 0 32px;
}
.btn-primary:hover {
    box-shadow: 0 0 20px rgba(21, 93, 252, 0.4);
}
.btn-secondary {
    background: var(--bg-dark-2);
    border: 1px solid #27272a;
    color: #fff;
    height: 58px;
    padding: 0 32px;
}
.btn-secondary:hover {
    background: #27272a;
}
.btn-sm {
    height: 40px;
    padding: 0 16px;
    font-size: 14px;
    border-radius: 10px;
}
.btn-outline-blue {
    border: 1px solid #155dfc;
    color: var(--text-gray-light);
    background: transparent;
}

/* Header */
.app-header {
    height: 77px; /* 77px from design */
    background: var(--bg-dark-2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1000;
}
.header-inner {
    width: 1440px; /* match container logic but for full header bar */
    padding: 0 240px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
}
@media(max-width: 1440px) { .header-inner { padding: 0 40px; width: 100%; } }
@media(max-width: 768px) { .header-inner { padding: 0 20px; } }

.logo-text { font-size: 20px; font-weight: 700; }
.nav-link {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}
.nav-link:hover { color: #fff; }

/* Mobile Menu */
.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.mobile-menu-toggle span { width: 24px; height: 2px; background: #fff; transition: 0.3s; }
.mobile-menu {
    position: fixed; top: 77px; left: 0; width: 100%; height: calc(100vh - 77px);
    background: var(--bg-dark-1); z-index: 999;
    transform: translateX(100%); transition: transform 0.3s ease;
    padding: 20px;
}
.mobile-menu.open { transform: translateX(0); }

/* Hero Section */
.hero-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.hero-wrapper {
    position: relative;
}
.hero-label-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(37, 118, 254, 0.05); /* Precise */
    border: 1px solid rgba(43, 127, 255, 0.2); /* Precise */
    border-radius: 33px; /* Precise */
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 24px;
}
.hero-label-pill .dot {
    width: 8px; height: 8px; background: #0bcc6b; border-radius: 50%;
}
.hero-title {
    font-size: 50px; /* Precise 50px */
    line-height: 1.5; /* 75px line height in design */
    font-weight: 600;
    margin-bottom: 24px;
}
.hero-desc {
    font-size: 18px;
    line-height: 29.25px;
    color: #b7b7b7;
    margin-bottom: 40px;
    max-width: 550px;
}
.stat-val { font-size: 24px; color: #f4f4f5; }
.stat-lbl { font-size: 14px; color: #9f9fa9; }
.stat-divider { width: 1px; height: 48px; background: #27272a; }

/* Features Section */
.section-features { position: relative; padding: 100px 0; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 24px;
    /* Precise w/h from design, but keep responsive */
    height: 196px;
    position: relative;
}
.icon-box-gradient {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: var(--gradient-blue);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.feature-title { font-size: 18px; font-weight: 500; color: #f4f4f5; margin-bottom: 12px; }
.feature-desc { font-size: 14px; color: #9f9fa9; line-height: 22.75px; }

/* Steps Section */
.section-steps { padding: 100px 0; }
.steps-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 60px;
}
.step-card {
    width: 313px;
    height: 276px;
    position: relative;
    border-radius: 16px;
}
.step-bg {
    background: #222;
    border-radius: 16px;
    height: 186px;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    overflow: hidden;
}
.step-label-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 63px;
    background: var(--gradient-blue);
    display: flex; align-items: center; justify-content: center;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}
.step-title { color: #f4f4f5; font-size: 18px; font-weight: 500; }
.step-img-wrapper {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 195px; height: 195px;
    z-index: 2;
}
.step-number-lg {
    position: absolute;
    bottom: 80px;
    left: 24px;
    font-size: 50px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    z-index: 1;
}
.step-arrow-img {
    position: relative;
    top: 190px;
    width: 30px;
}

/* Conditions Section */
.section-conditions { padding: 80px 0; }
.conditions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
/* Reuses feature-card styles mainly */

/* FAQ Section */
.section-faq { padding: 80px 0;position: relative; }
/* Design has a specific container bg for FAQ? No, looks like items are cards in a list */
/* Wait, design shows: "Container" h[314px] bg #1a1a1a border-t */
.faq-list {
    display: flex; flex-direction: column; gap: 20px;
}
.faq-item {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
}
.faq-question {
    padding: 24px;
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer;
    font-size: 16px; color: #fff;
    min-height: 60px;
}
.faq-answer {
    padding: 0 24px 24px;
    color: #9f9fa9;
    font-size: 14px;
    display: none;
}
.faq-item.active .faq-answer { display: block; }
.faq-arrow {
    transition: transform 0.3s;
}
.faq-item.active .faq-arrow { transform: rotate(180deg); }

/* Contact CTA (Blue gradient box) */
.contact-cta-section {
    position: relative;
    height: 295px;
    border-radius: 16px;
    background: linear-gradient(168.4deg, rgb(21, 93, 252) 0%, rgb(43, 127, 255) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-top: 100px;
    margin-bottom: 20px;
    overflow: hidden;
}
.cta-title { font-size: 48px; font-weight: 600; margin-bottom: 8px; }
.cta-desc { font-size: 18px; margin-bottom: 24px; color: #eff6ff; }
.cta-btn {
    background: #fff; color: #4d4d4d;
    border-radius: 14px;
    padding: 17px 60px;
    font-weight: 500; font-size: 16px;
}

/* Footer (Contact Info Grid) */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
}
.contact-info-card {
    background: #222;
    border-radius: 16px;
    padding: 24px;
    height: 228px;
    position: relative;
}
.footer-main {
    background: #1a1a1a;
    border-top: 1px solid #27272a;
    padding: 60px 0 20px;
    margin-top: 100px;
}
.footer-row { display: flex; justify-content: space-between; }
.footer-col-title { font-size: 16px; margin-bottom: 16px; }
.footer-link { font-size: 14px; color: #9f9fa9; margin-bottom: 8px; display: block; }

/* Responsive adjustments */
@media (max-width: 1024px) {
    .features-grid, .conditions-grid, .contact-info-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 768px) {
    .app-header .header-inner { justify-content: space-between; }
    .hidden-mobile { display: none; }
    .mobile-menu-toggle { display: flex; }
    
    .hero-title { font-size: 36px; }
    .features-grid, .conditions-grid, .contact-info-grid { grid-template-columns: 1fr; }
    
    .hero-container { grid-template-columns: 1fr; }
    .step-arrow-img { display: none; }
    .contact-cta-section { height: auto; padding: 40px 20px; }
    .cta-title { font-size: 32px; }
    
    .footer-row { flex-direction: column; gap: 40px; }
}
