:root {
    --bg: #f4f7fb;
    --surface: rgba(255, 255, 255, 0.9);
    --surface-strong: #ffffff;
    --line: #dde6f2;
    --text: #102033;
    --muted: #5f7186;
    --brand: #0f86ff;
    --brand-dark: #0a66c6;
    --accent: #0ea5e9;
    --deep: #0f172a;
    --shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", "Trebuchet MS", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.12), transparent 32%),
        radial-gradient(circle at top right, rgba(15, 134, 255, 0.10), transparent 26%),
        linear-gradient(180deg, #f7fbff 0%, #eef4fb 100%);
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px 5%;
    backdrop-filter: blur(16px);
    background: rgba(244, 247, 251, 0.74);
    border-bottom: 1px solid rgba(221, 230, 242, 0.85);
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-badge {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand), #60a5fa);
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 12px 24px rgba(15, 134, 255, 0.28);
}

.brand-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--deep);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--muted);
    font-weight: 600;
}

.site-nav a {
    text-decoration: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.lang-switch a {
    min-width: 44px;
    padding: 8px 12px;
    border-radius: 999px;
    text-decoration: none;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    color: var(--muted);
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.lang-switch a.active {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #ffffff;
}

.lang-switch a:hover {
    transform: translateY(-1px);
}

.header-link,
.header-btn,
.cta-primary,
.cta-secondary,
.pricing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease;
}

.header-link {
    color: var(--deep);
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--line);
}

.header-btn,
.cta-primary,
.pricing-btn,
.pricing-btn-strong {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 14px 26px rgba(15, 134, 255, 0.26);
}

.cta-secondary {
    color: var(--deep);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
}

.header-link:hover,
.header-btn:hover,
.cta-primary:hover,
.cta-secondary:hover,
.pricing-btn:hover {
    transform: translateY(-2px);
}

.hero-section,
.feature-section,
.platform-section,
.pricing-section,
.closing-section {
    padding: 84px 5%;
}

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 40px;
    align-items: center;
    min-height: calc(100vh - 92px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.12);
    color: #0369a1;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
}

.hero-copy h1,
.section-heading h2,
.platform-copy h2,
.closing-card h2 {
    margin: 0;
    color: var(--deep);
    line-height: 1.08;
}

.hero-copy h1 {
    font-size: clamp(40px, 6vw, 68px);
    max-width: 12ch;
}

.hero-lead,
.section-heading p,
.platform-copy p,
.closing-card p {
    color: var(--muted);
    line-height: 1.7;
}

.hero-lead {
    margin: 24px 0 30px;
    max-width: 62ch;
    font-size: 18px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 34px;
}

.metric-card {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.metric-card strong {
    display: block;
    color: var(--deep);
    margin-bottom: 6px;
}

.metric-card span {
    color: var(--muted);
    line-height: 1.6;
    font-size: 14px;
}

.hero-stage {
    position: relative;
    min-height: 620px;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.18);
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
}

.hero-stage-image {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.38)),
        url('/InOutX/img/hero.png') center/cover no-repeat;
}

.hero-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(96, 165, 250, 0.28), transparent 24%),
        radial-gradient(circle at 80% 24%, rgba(14, 165, 233, 0.22), transparent 22%),
        linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.16) 100%);
}

.floating-card {
    position: absolute;
    max-width: 260px;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: var(--shadow);
    z-index: 2;
}

.floating-card strong {
    display: block;
    margin: 6px 0 4px;
    color: var(--deep);
}

.floating-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 14px;
}

.floating-label {
    color: #0369a1;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.top-right {
    top: 28px;
    right: 28px;
}

.bottom-left {
    left: 28px;
    bottom: 28px;
}

.proof-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 0 5% 84px;
}

.proof-item {
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.proof-title {
    display: block;
    color: var(--deep);
    font-weight: 800;
    margin-bottom: 6px;
}

.proof-text {
    color: var(--muted);
    line-height: 1.6;
    font-size: 14px;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 42px;
}

.feature-grid,
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.feature-card,
.pricing-card {
    padding: 26px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.2s ease;
}

.feature-card.visible,
.pricing-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover,
.pricing-card:hover {
    box-shadow: 0 24px 44px rgba(15, 23, 42, 0.14);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-bottom: 18px;
}

.feature-icon.aqua { background: rgba(14, 165, 233, 0.14); color: #0369a1; }
.feature-icon.amber { background: rgba(245, 158, 11, 0.18); color: #b45309; }
.feature-icon.blue { background: rgba(59, 130, 246, 0.14); color: #1d4ed8; }
.feature-icon.rose { background: rgba(244, 63, 94, 0.14); color: #be123c; }

.feature-card h3,
.pricing-card h3 {
    margin: 0 0 10px;
    color: var(--deep);
}

.feature-card p,
.pricing-card ul li {
    color: var(--muted);
    line-height: 1.7;
}

.platform-panel,
.closing-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
    gap: 26px;
    padding: 30px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(239,246,255,0.94));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.platform-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: grid;
    gap: 12px;
}

.platform-list li {
    position: relative;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.7;
}

.platform-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
}

.platform-stack {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.stack-card {
    padding: 18px 20px;
    border-radius: 18px;
    background: var(--surface-strong);
    border: 1px solid var(--line);
}

.stack-step {
    display: inline-flex;
    margin-bottom: 8px;
    color: #0369a1;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.stack-card strong {
    display: block;
    margin-bottom: 6px;
    color: var(--deep);
}

.stack-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.stack-arrow {
    text-align: center;
    color: #0ea5e9;
    font-size: 22px;
    font-weight: 800;
}

.pricing-section {
    background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.32));
}

.pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 18px 0 28px;
}

.pricing-card ul li {
    margin: 10px 0;
}

.price-line {
    font-size: 34px;
    font-weight: 800;
    color: var(--deep);
}

.price-line span {
    color: var(--muted);
    font-size: 16px;
    font-weight: 600;
}

.featured {
    position: relative;
    border: 2px solid rgba(15, 134, 255, 0.32);
    background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 26px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--brand);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.closing-section {
    padding-top: 0;
}

.closing-card {
    grid-template-columns: 1fr;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 28px 5% 40px;
    color: var(--muted);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-links a {
    text-decoration: none;
}

@media (max-width: 1180px) {
    .hero-section,
    .platform-panel {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .proof-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .site-header {
        flex-wrap: wrap;
    }

    .site-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-metrics,
    .feature-grid,
    .pricing-grid,
    .proof-strip {
        grid-template-columns: 1fr;
    }

    .hero-stage {
        min-height: 420px;
    }

    .site-footer,
    .header-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .lang-switch {
        justify-content: center;
    }
}

@media (max-width: 680px) {
    .hero-section,
    .feature-section,
    .platform-section,
    .pricing-section,
    .closing-section {
        padding: 64px 5%;
    }

    .hero-copy h1 {
        max-width: none;
    }

    .hero-stage {
        min-height: 360px;
    }

    .floating-card {
        position: static;
        margin: 14px;
        max-width: none;
    }

    .hero-stage {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }
}
