/* ============================================
   EchoComm - Global Stylesheet
   科技蓝企业级 SaaS 官网
   ============================================ */

/* --- CSS Variables --- */
:root {
    --primary-blue: #0056b3;
    --secondary-blue: #004a99;
    --accent-blue: #e8f0fe;
    --text-dark: #1a1a1a;
    --text-grey: #4a5568;
    --text-light: #ffffff;
    --bg-light: #f8faff;
    --bg-dark: #1a202c;
    --border-color: #e2e8f0;
    --error-red: #e53e3e;
    --success-green: #38a169;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-code: 'Fira Code', 'Source Code Pro', 'Consolas', monospace;
    --max-width: 1200px;
    --header-height: 72px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

/* --- Reset --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--text-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Layout --- */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-main);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
    background-color: var(--primary-blue);
    color: var(--text-light);
}

.btn-white {
    background-color: var(--text-light);
    color: var(--primary-blue);
    font-weight: 600;
}

.btn-white:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.btn-lg {
    font-size: 1.1rem;
    padding: 15px 30px;
}

/* --- Header / Navigation --- */
.header {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 1.4rem;
}

.logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: inline-block;
}

.logo .logo-sub {
    font-size: 0.75rem;
    color: var(--text-grey);
    font-weight: 400;
    margin-left: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-grey);
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-blue);
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.login-btn {
    font-weight: 600;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
}

.login-btn:hover {
    opacity: 0.8;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--text-light);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    flex-direction: column;
    gap: 0;
    z-index: 999;
    border-top: 1px solid var(--border-color);
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    display: block;
    padding: 14px 0;
    font-weight: 500;
    color: var(--text-grey);
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover {
    color: var(--primary-blue);
}

.mobile-menu .btn {
    margin-top: 10px;
    text-align: center;
}

/* --- Hero Section (shared) --- */
.hero {
    background: linear-gradient(135deg, rgba(0, 78, 146, 0.92) 0%, rgba(0, 4, 40, 0.95) 100%),
        url('../images/hero-bg.png') center/cover no-repeat;
    color: var(--text-light);
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.03)" d="M0,160L48,170.7C96,181,192,203,288,186.7C384,171,480,117,576,128C672,139,768,213,864,218.7C960,224,1056,160,1152,138.7C1248,117,1344,139,1392,149.3L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 750px;
    margin: 0 auto 2rem;
    opacity: 0.9;
    line-height: 1.7;
}

.hero-small {
    padding: 140px 0 60px;
}

.hero-small h1 {
    font-size: 2.5rem;
}

/* --- Section Styles --- */
.section {
    padding: 100px 0;
}

.section-alt {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.section-header p {
    color: var(--text-grey);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* --- Feature Cards Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--text-light);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-blue);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-grey);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Stats Bar --- */
.stats-bar {
    background: var(--text-light);
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.stat-item h3.stat-text {
    font-size: 1.6rem;
}

.stat-item p {
    color: var(--text-grey);
    font-size: 0.95rem;
    font-weight: 500;
}

/* --- CTA Section --- */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--text-light);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-section p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

/* --- Footer --- */
.footer {
    background-color: var(--bg-dark);
    color: #a0aec0;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-company-info h3 {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-company-info>p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.company-details {
    border-top: 1px solid #2d3748;
    padding-top: 1.5rem;
}

.company-details p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.company-details p i {
    width: 16px;
    text-align: center;
    color: #718096;
}

.footer-links h4 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: var(--text-light);
}

.footer-links .highlight-link {
    font-weight: 700;
    color: var(--text-light);
}

.footer-bottom {
    border-top: 1px solid #2d3748;
    padding-top: 30px;
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.8;
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    color: #cbd5e0;
    padding: 18px 0;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-inner p {
    font-size: 0.9rem;
    line-height: 1.5;
    flex: 1;
}

.cookie-inner p a {
    color: var(--text-light);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-actions .btn {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* --- Page Content (for legal / text-heavy pages) --- */
.page-content {
    padding: 40px 0 100px;
}

.page-content .content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.page-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-blue);
}

.page-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 1.5rem 0 0.75rem;
}

.page-content p {
    color: var(--text-grey);
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 0.95rem;
}

.page-content ul,
.page-content ol {
    color: var(--text-grey);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    line-height: 1.8;
    font-size: 0.95rem;
}

.page-content ul {
    list-style: disc;
}

.page-content ol {
    list-style: decimal;
}

.page-content ul li,
.page-content ol li {
    margin-bottom: 0.4rem;
}

.page-content strong {
    color: var(--text-dark);
}

.page-content .effective-date {
    color: var(--text-grey);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary-blue);
}

/* --- Solutions page specific --- */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.solution-card {
    background: var(--text-light);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.solution-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.solution-card .card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.solution-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.solution-card p {
    color: var(--text-grey);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* How it works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.step-item {
    text-align: center;
    position: relative;
}

.step-item::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -1rem;
    width: calc(100%);
    height: 2px;
    background: var(--border-color);
}

.step-item:last-child::after {
    display: none;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.2rem;
    position: relative;
    z-index: 1;
}

.step-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.step-item p {
    color: var(--text-grey);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- About page specific --- */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-intro .about-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    border: none;
    padding: 0;
}

.about-intro .about-text p {
    color: var(--text-grey);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.about-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--accent-blue);
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    background: var(--text-light);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.value-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.value-card .value-icon {
    width: 64px;
    height: 64px;
    background: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
}

.value-card .value-icon i {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.value-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.value-card p {
    color: var(--text-grey);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- Contact page specific --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: flex-start;
}

.contact-info h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact-info>p {
    color: var(--text-grey);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-detail-item i {
    color: var(--primary-blue);
    margin-top: 4px;
    width: 20px;
    text-align: center;
}

.contact-detail-item span {
    color: var(--text-grey);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-form {
    background: var(--text-light);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.form-group label .required {
    color: var(--error-red);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: border-color 0.3s;
    background-color: var(--text-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-success {
    display: none;
    padding: 14px;
    background: #f0fff4;
    border: 1px solid var(--success-green);
    border-radius: var(--radius-sm);
    color: var(--success-green);
    font-weight: 500;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.form-success.show {
    display: block;
}

/* --- Login page specific --- */
.login-page {
    min-height: 100vh;
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
}

.login-header {
    padding: 1.5rem 0;
    text-align: center;
}

.login-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-box {
    background: var(--text-light);
    padding: 3rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--border-color);
}

.login-box h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.login-box .login-subtitle {
    color: var(--text-grey);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.login-error {
    display: none;
    padding: 12px 14px;
    background: #fff5f5;
    border: 1px solid var(--error-red);
    border-radius: var(--radius-sm);
    color: var(--error-red);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.login-error.show {
    display: block;
}

.login-box .btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
}

.login-links {
    text-align: center;
    margin-top: 1.5rem;
}

.login-links a {
    color: var(--primary-blue);
    font-size: 0.9rem;
    font-weight: 500;
}

.login-links a:hover {
    text-decoration: underline;
}

.login-footer {
    text-align: center;
    padding: 1.5rem;
    color: #a0aec0;
    font-size: 0.8rem;
}

/* --- API Docs page specific --- */
.api-info-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.api-info-item {
    background: var(--bg-light);
    padding: 1.2rem 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.api-info-item .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-grey);
    font-weight: 600;
    margin-bottom: 4px;
}

.api-info-item .value {
    font-family: var(--font-code);
    font-size: 0.95rem;
    color: var(--primary-blue);
    font-weight: 600;
}

.endpoint-block {
    background: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 2.5rem;
    overflow: hidden;
}

.endpoint-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.method-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: var(--font-code);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.method-badge.get {
    background: #ebf8ff;
    color: #2b6cb0;
}

.method-badge.post {
    background: #f0fff4;
    color: #276749;
}

.endpoint-path {
    font-family: var(--font-code);
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
}

.endpoint-body {
    padding: 2rem;
}

.endpoint-body p {
    color: var(--text-grey);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.endpoint-body h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.code-block {
    background: #1e293b;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.code-block-header {
    background: #0f172a;
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-block-header span {
    color: #94a3b8;
    font-size: 0.8rem;
    font-family: var(--font-code);
}

.code-block pre {
    padding: 1.2rem 1.5rem;
    overflow-x: auto;
    margin: 0;
}

.code-block code {
    font-family: var(--font-code);
    font-size: 0.85rem;
    line-height: 1.7;
    color: #e2e8f0;
}

/* --- Forgot Password Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-overlay.show {
    display: flex;
}

.modal-box {
    background: var(--text-light);
    padding: 2rem;
    border-radius: var(--radius-md);
    max-width: 440px;
    width: 90%;
    box-shadow: var(--shadow-lg);
}

.modal-box h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.modal-box p {
    color: var(--text-grey);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.modal-box .btn {
    width: 100%;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .about-intro {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .api-info-bar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-actions {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding: 130px 0 70px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-small {
        padding: 110px 0 40px;
    }

    .hero-small h1 {
        font-size: 1.8rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-header h2 {
        font-size: 1.7rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cookie-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .step-item::after {
        display: none;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cta-section h2 {
        font-size: 1.7rem;
    }

    .login-box {
        padding: 2rem;
    }

    .about-image {
        min-height: 250px;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .btn-lg {
        font-size: 1rem;
        padding: 12px 24px;
    }
}