/* vars */
:root {
    color-scheme: light dark;
    --link-primary-color: #129bd8;
    --bg-primary-color: #030305;
    --bg-secondary-color: #000080;
    --text-primary-color: #f8fbff;
    --text-secondary-color: #e2eefd;
    --button-primary-color: black;
    --border-primary-color: #6f6f6f;
    --accent-color: #129bd8;
}

:root.light {
    --bg-primary-color: #f0f4fa;
    --bg-secondary-color: #c8d8ed;
    --text-primary-color: #000080;
    --text-secondary-color: #1a2a40;
    --button-primary-color: white;
    --border-primary-color: #375271c2;
}

/* General */

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

html {
    font-size: 16px;
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--text-secondary-color);
    background: var(--bg-primary-color);
}

.landing {
    background: radial-gradient(circle at 30% 30%, var(--bg-primary-color), var(--bg-secondary-color));
}

h1, h2, h3, h4 {
    padding-bottom: 1rem;
    padding-top: 1rem;
}

h2 {
    font-size: 1.8rem;
    color: var(--text-primary-color);
    text-align: center;
}

h3 {
    font-size: 1.3rem;
    color: var(--text-primary-color);
}

p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0.5rem 0;
}

a {
    cursor: pointer;
    color: var(--link-primary-color);
    text-decoration: none;
}

svg {
    display: block;
    margin: auto;
    transition: fill 0.3s ease;
    max-width: 100%;
    fill: var(--text-primary-color);
}

/* Theme toggle */
.show-light { display: none; }
.show-dark { display: inline; }
:root.light .show-light { display: inline; }
:root.light .show-dark { display: none; }

/* ========== Nav bar ========== */

.nav-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(3, 3, 5, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(111, 111, 111, 0.3);
    padding: 0.5rem 1.5rem;
}

:root.light .nav-bar {
    background: rgba(240, 244, 250, 0.8);
}

.nav-inner {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.nav-logo svg {
    width: 14rem;
    height: auto;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang {
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary-color);
}

.lang:hover {
    color: var(--text-primary-color);
}

.theme {
    cursor: pointer;
}

.theme svg {
    width: 1.5rem;
    height: 1.5rem;
}

@media (max-width: 768px) {
    .nav-bar {
        padding: 0.4rem 0.75rem;
    }

    .nav-logo svg {
        width: 9rem;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .lang {
        font-size: 0.8rem;
    }

    .theme svg {
        width: 1.2rem;
        height: 1.2rem;
    }
}

/* ========== Sections (shared) ========== */

.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(111, 111, 111, 0.15);
}

.section:first-child {
    border-top: none;
}

/* Scroll fade-in */
.section, .hero {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section.visible, .hero.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-subtitle {
    color: var(--text-secondary-color);
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
}

/* ========== Hero ========== */

.hero {
    padding: 5rem 1.5rem 3rem;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 900px;
    margin: auto;
}

.hero-tagline {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    text-align: center;
    background: linear-gradient(135deg, var(--text-primary-color) 40%, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary-color);
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    text-shadow: 0 0 30px rgba(18, 155, 216, 0.3);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary-color);
}

.hero-cta {
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 1rem 2rem;
    }
    .hero-tagline {
        font-size: 1.8rem;
    }
    .hero-stats {
        gap: 1.5rem;
    }
    .stat-value {
        font-size: 1.8rem;
    }
}

/* ========== CTA button ========== */

.cta-btn {
    display: inline-block;
    padding: 0.85rem 2.5rem;
    background: var(--accent-color);
    color: #fff;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.05rem;
    transition: opacity 0.2s, transform 0.2s;
}

.cta-btn:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(18, 155, 216, 0.4);
}

/* ========== Card grid (why-choose) ========== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.card {
    background: var(--bg-primary-color);
    border: 1px solid var(--border-primary-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: left;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
    box-shadow: 0 4px 20px rgba(18, 155, 216, 0.1);
}

.card h3 {
    padding-top: 0;
    padding-bottom: 0.5rem;
}

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

/* ========== Steps (services, how-it-works) ========== */

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.step {
    text-align: left;
    padding: 1.5rem;
    background: var(--bg-primary-color);
    border: 1px solid var(--border-primary-color);
    border-radius: 0.75rem;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.step:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
    box-shadow: 0 4px 20px rgba(18, 155, 216, 0.1);
}

.step-num {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: var(--accent-color);
    margin-bottom: 0.75rem;
}

.step h3 {
    padding-top: 0;
}

.step p {
    color: var(--text-secondary-color);
    font-size: 0.95rem;
}

/* ========== Industries ========== */

.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.industry-item {
    background: var(--bg-primary-color);
    border: 1px solid var(--border-primary-color);
    border-radius: 0.5rem;
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3.5rem;
    text-align: center;
    transition: border-color 0.2s, color 0.2s;
}

.industry-item:hover {
    border-color: var(--accent-color);
    color: var(--text-primary-color);
}

/* ========== Results highlights ========== */

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.highlight {
    background: var(--bg-primary-color);
    border: 1px solid var(--border-primary-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.highlight:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
    box-shadow: 0 4px 20px rgba(18, 155, 216, 0.1);
}

.highlight-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-color);
    text-shadow: 0 0 20px rgba(18, 155, 216, 0.2);
}

.highlight-label {
    font-size: 0.95rem;
    color: var(--text-primary-color);
}

.highlight-detail {
    font-size: 0.85rem;
    color: var(--text-secondary-color);
}

/* ========== Case studies table ========== */

.case-studies {
    padding: 2rem 0;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    text-align: left;
}

.results-table th {
    background: var(--bg-secondary-color);
    color: var(--text-primary-color);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--border-primary-color);
}

.results-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-primary-color);
    font-size: 0.9rem;
    color: var(--text-secondary-color);
}

.results-table tr:hover td {
    background: var(--bg-primary-color);
}

.kpi-beat {
    color: var(--accent-color);
    font-weight: 600;
}

@media (max-width: 768px) {
    .results-table {
        font-size: 0.8rem;
    }
    .results-table th, .results-table td {
        padding: 0.5rem;
    }
}

/* ========== Contact ========== */

/* ========== Form inputs ========== */

.input-group {
    margin-bottom: 0;
}

.input-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    color: var(--text-secondary-color);
}

.input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    font-size: 1rem;
    border: 1px solid var(--border-primary-color);
    border-radius: 0.375rem;
    background-color: var(--bg-primary-color);
    color: var(--text-primary-color);
}

.input:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* ========== Contact form + direct ========== */

.contact-layout {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    background: var(--bg-primary-color);
    border: 1px solid var(--border-primary-color);
    border-radius: 0.75rem;
    text-align: left;
}

.contact-form .form-row {
    display: flex;
    gap: 1rem;
}

.contact-form .form-row .input-group {
    flex: 1;
}

.contact-form .cta-btn {
    align-self: center;
    border: none;
    cursor: pointer;
    margin-top: 0.5rem;
}

.contact-form textarea.input {
    resize: vertical;
    font-family: inherit;
}

.contact-direct {
    margin-top: 2.5rem;
    text-align: center;
}

.direct-label {
    font-size: 0.85rem;
    color: var(--text-secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.direct-label::before,
.direct-label::after {
    content: "";
    flex: 1;
    max-width: 6rem;
    height: 1px;
    background: var(--border-primary-color);
}

.direct-items {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.direct-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-primary-color);
    border: 1px solid var(--border-primary-color);
    border-radius: 0.75rem;
    text-align: center;
}

.contact-icon {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--accent-color);
    fill: none;
}

.direct-item:last-child .contact-icon svg {
    fill: var(--accent-color);
    stroke: none;
}

.contact-phones {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-phone-row {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-phone-name {
    font-size: 0.8rem;
    color: var(--text-secondary-color);
}

.contact-phone-row a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary-color);
}

.contact-address {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    color: var(--text-secondary-color);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .contact-form {
        padding: 1.25rem;
    }

    .contact-form .form-row {
        flex-direction: column;
        gap: 1rem;
    }

    .direct-items {
        flex-direction: column;
        align-items: stretch;
    }

    .direct-item {
        padding: 0.75rem 1rem;
    }
}

/* ========== Footer ========== */

.site-footer {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid var(--border-primary-color);
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary-color);
}

.version {
    opacity: 0.5;
}
