:root {
    --accent-orange: #ff5733;
    --accent-pink: #ea3e6e;
    --accent-magenta: #b44891;
    --accent-lavender: #a78bc3;
    --accent: #ea3e6e;
    --text: #f9fafb;
    --text-soft: #d1d5db;
    --text-muted: #9ca3af;
    --success: #34d399;
    --danger: #ff5733;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.6);
    --shadow-subtle: 0 8px 24px rgba(15, 23, 42, 0.35);
    --shadow-pill: 0 8px 24px rgba(234, 62, 110, 0.25);
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; scroll-behavior: smooth; }

body {
    background: #1e293b;
    min-height: 100vh;
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.6;
}

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.section { padding: 4.5rem 0; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    background: linear-gradient(to bottom, rgba(30, 41, 59, 0.95), rgba(30, 41, 59, 0.85));
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
}

.logo { display: inline-flex; align-items: center; text-decoration: none; }

.logo-img {
    height: 55px;
    width: auto;
    transition: height 0.2s ease-out;
}

.site-header.scrolled .logo-img {
    height: 32px;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle-line {
    width: 24px;
    height: 2px;
    background: var(--text-soft);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    font-size: 0.9rem;
    color: var(--text-soft);
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.25rem;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--accent-orange), var(--accent-pink));
    border-radius: 999px;
    transition: width 0.18s ease-out;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero - Side by Side Layout */
.hero {
    padding: 4rem 0;
    background: #1e293b;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-image-container {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.hero-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-copy h1 {
    font-size: clamp(2rem, 2.5vw + 1rem, 2.5rem);
    line-height: 1.15;
    margin: 0 0 1rem;
    letter-spacing: -0.03em;
}

.hero-copy p {
    margin: 0 0 1.5rem;
    color: var(--text-soft);
    font-size: 0.98rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.75rem; }

/* Buttons */
.btn {
    border-radius: 999px;
    padding: 0.7rem 1.4rem;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 550;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-pink));
    color: white;
    box-shadow: var(--shadow-pill);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(234, 62, 110, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text-soft);
    border: 1px solid rgba(167, 139, 195, 0.7);
}

.btn-outline:hover {
    background: rgba(15, 23, 42, 0.9);
    transform: translateY(-1px);
}

.btn-full { width: 100%; }

/* Hero badges */
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.badge {
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    background: radial-gradient(circle at top left, rgba(234, 62, 110, 0.25), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(167, 139, 195, 0.45);
    box-shadow: var(--shadow-subtle);
    display: inline-flex;
    flex-direction: column;
    gap: 0.15rem;
}

.badge-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); }
.badge-value { font-size: 0.85rem; color: #ffffff; }

/* KPI Section */
.kpi-section {
    padding: 3rem 0;
    background: rgba(15, 23, 42, 0.5);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.kpi {
    padding: 1.2rem;
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.5);
    text-align: center;
}

.kpi-label { font-size: 0.8rem; color: var(--text-muted); }
.kpi-value { font-size: 1.5rem; font-weight: 600; display: block; margin: 0.5rem 0; }

.kpi-tag {
    display: inline-flex;
    font-size: 0.75rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.5);
    color: var(--text-soft);
}

.kpi-tag-up { border-color: rgba(52, 211, 153, 0.7); color: var(--success); }
.kpi-tag-down { border-color: rgba(255, 87, 51, 0.7); color: var(--danger); }

.kpi-note {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Section headers */
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header.align-left { text-align: left; }
.section-header h2 { font-size: 1.6rem; margin: 0 0 0.8rem; letter-spacing: -0.02em; }
.section-header p { margin: 0; color: var(--text-soft); max-width: 32rem; margin-inline: auto; font-size: 0.95rem; }
.section-header.align-left p { margin-inline: 0; }

/* Features */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: rgba(15, 23, 42, 0.92);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.3rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: var(--shadow-subtle);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-pink), var(--accent-magenta), var(--accent-lavender));
}

.feature-card h3 { margin: 0 0 0.6rem; font-size: 1rem; }
.feature-card p { margin: 0; color: var(--text-soft); font-size: 0.9rem; }

.feature-cta { text-align: center; margin-top: 2rem; }

/* Steps / How it works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.step {
    background: rgba(15, 23, 42, 0.98);
    border-radius: var(--radius-lg);
    padding: 1.3rem 1.2rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    position: relative;
}

.step:nth-child(1) .step-number { background: var(--accent-orange); border-color: var(--accent-orange); }
.step:nth-child(2) .step-number { background: var(--accent-pink); border-color: var(--accent-pink); }
.step:nth-child(3) .step-number { background: var(--accent-magenta); border-color: var(--accent-magenta); }
.step:nth-child(4) .step-number { background: var(--accent-lavender); border-color: var(--accent-lavender); }

.step-number {
    position: absolute;
    top: 0.85rem;
    right: 0.95rem;
    font-size: 0.8rem;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    border: 1px solid;
    color: white;
}

.step h3 { margin: 0 0 0.6rem; font-size: 0.95rem; }
.step p { margin: 0; font-size: 0.88rem; color: var(--text-soft); }

/* For TMCs */
.for-tmcs-inner {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
    gap: 2rem;
    align-items: flex-start;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.checklist li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.4rem;
    font-size: 0.92rem;
    color: var(--text-soft);
}

.checklist li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--accent-pink);
}

.small-note { font-size: 0.8rem; color: var(--text-muted); }

.panel-card {
    background: radial-gradient(circle at top left, rgba(234, 62, 110, 0.18), rgba(15, 23, 42, 0.98));
    border-radius: var(--radius-xl);
    padding: 1.3rem 1.2rem;
    border: 1px solid rgba(167, 139, 195, 0.5);
    box-shadow: var(--shadow-soft);
}

.panel-card h3 { margin: 0 0 0.8rem; font-size: 0.98rem; }

.compact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.8rem;
    font-size: 0.9rem;
}

.compact-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.4);
}

.compact-list li:last-child { border-bottom: none; }
.compact-list span:last-child { font-weight: 550; color: #e5e7eb; }

/* Contact */
.contact-centered {
    max-width: 640px;
    margin-inline: auto;
    text-align: center;
}

.contact-header {
    margin-bottom: 2rem;
}

.contact-header h2 { margin: 0 0 0.8rem; font-size: 1.5rem; }
.contact-header p { color: var(--text-soft); font-size: 0.95rem; margin: 0 0 0.5rem; }

.contact-email a {
    color: var(--accent-pink);
    text-decoration: none;
}

.contact-email a:hover {
    text-decoration: underline;
}

.contact-form {
    background: rgba(15, 23, 42, 0.95);
    border-radius: var(--radius-xl);
    padding: 1.6rem 1.4rem;
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow: var(--shadow-subtle);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.form-field label { font-size: 0.82rem; color: var(--text-soft); }

.form-field input,
.form-field textarea {
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    padding: 0.55rem 0.7rem;
    background: rgba(15, 23, 42, 0.9);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent-pink);
    box-shadow: 0 0 0 1px rgba(234, 62, 110, 0.4);
}

.form-note {
    margin-top: 0.6rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    min-height: 1.5em;
}

.g-recaptcha {
    transform: scale(0.85);
    transform-origin: left top;
}

/* Footer */
.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.3);
    padding: 1.7rem 0 2rem;
    background: rgba(15, 23, 42, 0.96);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.footer-text { margin: 0.8rem 0 0; font-size: 0.86rem; color: var(--text-muted); }

.footer-links {
    list-style: none;
    display: flex;
    gap: 1.1rem;
    margin: 0 0 0.5rem;
    padding: 0;
    font-size: 0.85rem;
}

.footer-links a { text-decoration: none; color: var(--text-soft); }
.footer-links a:hover { color: #ffffff; }

.footer-meta { margin: 0; font-size: 0.78rem; color: var(--text-muted); }

.footer-logo .logo-img { height: 28px; }

/* Mobile nav */
@media (max-width: 720px) {
    .nav-toggle { display: flex; }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(30, 41, 59, 0.98);
        flex-direction: column;
        padding: 1rem 1.25rem;
        gap: 0;
        border-bottom: 1px solid rgba(148, 163, 184, 0.2);
        display: none;
    }

    .nav-links li { padding: 0.6rem 0; }

    .nav-open .nav-links { display: flex; }

    .nav-open .nav-toggle-line:first-child {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-open .nav-toggle-line:last-child {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* Responsive */
@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-image-container { order: -1; }
    .kpi-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .for-tmcs-inner, .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .feature-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

/* Features Page */
.page-hero {
    padding: 4rem 0 2.5rem;
    text-align: center;
    background: rgba(15, 23, 42, 0.5);
}

.page-hero h1 {
    font-size: clamp(2rem, 2.5vw + 1rem, 2.5rem);
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.page-hero p {
    color: var(--text-soft);
    font-size: 1.05rem;
    margin: 0;
    max-width: 36rem;
    margin-inline: auto;
}

.section-alt {
    background: rgba(15, 23, 42, 0.5);
}

.nav-active {
    color: var(--text) !important;
}

.nav-active::after {
    width: 100% !important;
}

.feature-block {
    margin-bottom: 2.5rem;
}

.feature-block:last-child {
    margin-bottom: 0;
}

.feature-block-header {
    margin-bottom: 1.25rem;
}

.feature-block-header h3 {
    font-size: 1.15rem;
    margin: 0;
    color: var(--text);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, var(--accent-orange), var(--accent-pink), var(--accent-magenta), var(--accent-lavender)) 1;
}

.feature-block-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.feature-item {
    background: rgba(15, 23, 42, 0.92);
    border-radius: var(--radius-lg);
    padding: 1.3rem 1.2rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.feature-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--text);
}

.feature-item p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-soft);
    line-height: 1.6;
}

.features-grid-full {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.feature-card-large {
    background: rgba(15, 23, 42, 0.92);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.3rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    position: relative;
    overflow: hidden;
}

.feature-card-large::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-pink), var(--accent-magenta), var(--accent-lavender));
}

.feature-card-large h3 {
    font-size: 1rem;
    margin: 0 0 0.6rem;
    color: var(--text);
}

.feature-card-large p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-soft);
    line-height: 1.6;
}

.cta-block {
    text-align: center;
    padding: 2rem 0;
}

.cta-block h2 {
    font-size: 1.5rem;
    margin: 0 0 0.6rem;
}

.cta-block p {
    color: var(--text-soft);
    margin: 0 0 1.5rem;
}

@media (max-width: 960px) {
    .features-grid-full { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .feature-block-content { grid-template-columns: 1fr; }
    .features-grid-full { grid-template-columns: 1fr; }
}
