/* ══════════════════════════════════════════════════════
   Hevo Tech – Platform Dev Landing Page Stylesheet
   ══════════════════════════════════════════════════════ */

/* ── Reset & Base ────────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

/* ── CSS Variables ───────────────────────────────────── */
:root {
    --bg: #07111f;
    --bg-soft: rgba(13, 25, 45, 0.78);
    --card: rgba(13, 24, 43, 0.72);
    --line: rgba(110, 168, 255, 0.18);
    --text: #eef4ff;
    --muted: #9fb4d1;
    --primary: #5ab2ff;
    --primary-2: #7a5cff;
    --glow: rgba(90, 178, 255, 0.35);
}

html[data-theme="light"] {
    --bg: #eef5ff;
    --bg-soft: rgba(255, 255, 255, 0.84);
    --card: rgba(255, 255, 255, 0.76);
    --line: rgba(53, 107, 186, 0.14);
    --text: #10243d;
    --muted: #5f7390;
    --primary: #2576ff;
    --primary-2: #5d7cff;
    --glow: rgba(37, 118, 255, 0.18);
}

/* ── Body ────────────────────────────────────────────── */
body {
    font-family: Inter, Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(90, 178, 255, 0.14), transparent 28%),
        radial-gradient(circle at top right, rgba(122, 92, 255, 0.14), transparent 30%),
        linear-gradient(180deg, #040b16 0%, #07111f 55%, #040914 100%);
    color: var(--text);
    line-height: 1.6;
}

html[data-theme="light"] body {
    background:
        radial-gradient(circle at top left, rgba(37, 118, 255, 0.12), transparent 24%),
        radial-gradient(circle at top right, rgba(93, 124, 255, 0.12), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, #edf4ff 52%, #e9f1ff 100%);
}

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

/* ── Layout ──────────────────────────────────────────── */
.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

/* ── Navigation ──────────────────────────────────────── */
.nav {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
    background: rgba(5, 11, 22, 0.62);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand img {
    display: block;
    height: 42px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 22px;
    color: var(--muted);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--text);
}

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

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    min-width: 48px;
    padding: 0;
    border-radius: 50%;
    position: relative;
}

.nav-toggle-line {
    position: absolute;
    left: 50%;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: translateX(-50%);
    transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.nav-toggle-line:nth-child(1) { top: 17px; }
.nav-toggle-line:nth-child(2) { top: 23px; }
.nav-toggle-line:nth-child(3) { top: 29px; }

.nav.is-mobile-open .nav-toggle-line:nth-child(1) {
    top: 23px;
    transform: translateX(-50%) rotate(45deg);
}

.nav.is-mobile-open .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav.is-mobile-open .nav-toggle-line:nth-child(3) {
    top: 23px;
    transform: translateX(-50%) rotate(-45deg);
}

/* ── Theme Toggle ────────────────────────────────────── */
.theme-toggle {
    width: 48px;
    height: 48px;
    min-width: 48px;
    padding: 0;
    border-radius: 50%;
    position: relative;
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    transition: 0.2s ease;
}

.theme-toggle .icon-sun {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.theme-toggle .icon-moon {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}

html[data-theme="dark"] .theme-toggle .icon-sun {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}

html[data-theme="dark"] .theme-toggle .icon-moon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ── Language Switcher ───────────────────────────────── */
.lang-switcher {
    position: relative;
}

.lang-trigger {
    min-width: 132px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
}

.lang-trigger:hover {
    background: rgba(255, 255, 255, 0.08);
}

.lang-trigger-text,
.lang-option {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.flag {
    font-size: 1rem;
    line-height: 1;
}

.lang-caret {
    color: var(--muted);
    font-size: 0.75rem;
}

.lang-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 160px;
    padding: 8px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 16, 30, 0.96);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: 0.2s ease;
}

.lang-switcher.open .lang-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.lang-option {
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.lang-option:hover,
.lang-option.active {
    background: rgba(255, 255, 255, 0.08);
}

/* ── Language System ─────────────────────────────────── */
[data-lang] {
    display: none;
}

[data-lang].is-visible {
    display: initial;
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    transition: 0.25s ease;
    cursor: pointer;
}

.btn.nav-toggle {
    display: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    box-shadow: 0 0 30px var(--glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(90, 178, 255, 0.42);
}

.btn-secondary {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* ── Hero ────────────────────────────────────────────── */
.hero {
    padding: 92px 0 72px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: #cfe2ff;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

h1 {
    font-size: clamp(2.6rem, 6vw, 4.8rem);
    line-height: 1.05;
    margin-bottom: 18px;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 10%, #75d1ff 48%, #8a70ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: var(--muted);
    max-width: 680px;
    font-size: 1.04rem;
}

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

.hero-card {
    position: relative;
    padding: 8px 0 8px 18px;
    min-height: 460px;
    overflow: hidden;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 6% auto auto 8%;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(90, 178, 255, 0.12), transparent 68%);
    filter: blur(18px);
}

.hero-card::after {
    content: "";
    position: absolute;
    right: -20px;
    bottom: -10px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(122, 92, 255, 0.16), transparent 70%);
    filter: blur(20px);
}

.hero-visual {
    position: relative;
    z-index: 1;
    min-height: 424px;
    height: 100%;
    border-radius: 40px;
    padding: 8px 10px 10px;
    background: transparent;
}

.hero-visual-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    padding: 0 18px;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(12, 26, 50, 0.42);
    border: 1px solid rgba(136, 188, 255, 0.12);
    backdrop-filter: blur(10px);
    color: #d7e7ff;
    font-size: 0.83rem;
}

.hero-chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7dd3fc;
    box-shadow: 0 0 14px rgba(125, 211, 252, 0.8);
}

.hero-metrics {
    position: absolute;
    right: 6px;
    bottom: 18px;
    display: grid;
    gap: 10px;
    width: min(180px, 34%);
}

.hero-metric {
    padding: 12px 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(8, 20, 39, 0.52), rgba(8, 18, 34, 0.38));
    border: 1px solid rgba(136, 188, 255, 0.1);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.hero-metric strong {
    display: block;
    margin-bottom: 4px;
    color: #eef4ff;
    font-size: 1rem;
}

.hero-metric span {
    color: var(--muted);
    font-size: 0.82rem;
}

/* ── Code Window ─────────────────────────────────────── */
.code-window {
    position: relative;
    z-index: 1;
    background: rgba(4, 10, 20, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 18px;
}

.dots {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
}

.code-line {
    display: flex;
    gap: 14px;
    color: #c7dbf7;
    font-family: Consolas, monospace;
    font-size: 0.94rem;
    margin: 8px 0;
}

.code-line .num {
    color: rgba(255, 255, 255, 0.28);
    width: 18px;
    text-align: right;
    user-select: none;
}

/* ── Sections (shared) ───────────────────────────────── */
section {
    padding: 84px 0;
}

.section-head {
    max-width: 760px;
    margin-bottom: 50px;
}

.section-head h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 12px;
}

.section-head p {
    color: var(--muted);
}

.section-head-center {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 50px;
}

.section-alt {
    background: rgba(255, 255, 255, 0.012);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

/* ── Grid Layouts ────────────────────────────────────── */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

/* ── Cards (shared base) ─────────────────────────────── */
.card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 26px;
    backdrop-filter: blur(10px);
    transition: 0.25s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(90, 178, 255, 0.3);
    box-shadow: 0 16px 40px rgba(6, 17, 32, 0.38);
}

.icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    background: linear-gradient(135deg, rgba(90, 178, 255, 0.18), rgba(122, 92, 255, 0.18));
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1.3rem;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.card .sub {
    color: #8fd4ff;
    font-size: 0.92rem;
    margin-bottom: 10px;
}

.card p {
    color: var(--muted);
    font-size: 0.96rem;
}

/* ── Pain Points Section ─────────────────────────────── */
.pain-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.pain-card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--primary);
    border-radius: 24px;
    padding: 28px;
    backdrop-filter: blur(10px);
    transition: 0.25s ease;
}

.pain-card:hover {
    transform: translateY(-4px);
    border-left-color: var(--primary-2);
    box-shadow: 0 16px 40px rgba(6, 17, 32, 0.38);
}

.pain-card .icon {
    margin-bottom: 14px;
}

.pain-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.pain-card p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.pain-impact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(122, 92, 255, 0.1);
    border: 1px solid rgba(122, 92, 255, 0.2);
    color: #b5a0ff;
    font-size: 0.82rem;
    font-weight: 600;
}

/* ── Solutions Section ───────────────────────────────── */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 22px;
}

.solutions-grid .card {
    grid-column: span 2;
}

.solutions-grid .card:nth-child(4) {
    grid-column: 2 / span 2;
}

.solutions-grid .card:nth-child(5) {
    grid-column: 4 / span 2;
}

.solution-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: rgba(90, 178, 255, 0.1);
    color: var(--primary);
    border: 1px solid rgba(90, 178, 255, 0.18);
    letter-spacing: 0.03em;
}

.solution-feature-list {
    margin: 14px 0 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.solution-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

.solution-feature-list li::before {
    content: "▸";
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Platform Modules Section ────────────────────────── */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.module-item {
    padding: 22px 16px;
    border-radius: 20px;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    transition: 0.22s ease;
    backdrop-filter: blur(8px);
}

.module-item:hover {
    border-color: rgba(90, 178, 255, 0.28);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(6, 17, 32, 0.32);
    background: rgba(13, 24, 43, 0.9);
}

.module-emoji {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 10px;
}

.module-name {
    display: block;
    font-size: 0.92rem;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 2px;
}

.module-name-en {
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
}

/* ── Why Us Section ──────────────────────────────────── */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.why-card {
    text-align: center;
    padding: 36px 20px;
    border-radius: 24px;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    transition: 0.25s ease;
}

.why-card:hover {
    transform: translateY(-5px);
    border-color: rgba(90, 178, 255, 0.3);
    box-shadow: 0 16px 40px rgba(6, 17, 32, 0.38);
}

.why-stat {
    display: block;
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.why-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.why-card p {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* ── Process Section ─────────────────────────────────── */
.process-wrap {
    position: relative;
}

.process-track {
    position: absolute;
    top: 36px;
    left: calc(12.5% + 18px);
    right: calc(12.5% + 18px);
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    opacity: 0.22;
    z-index: 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    position: relative;
    z-index: 1;
}

.process-step {
    text-align: center;
}

.process-num {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 22px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 0 34px var(--glow);
    position: relative;
    z-index: 1;
}

.process-step h3 {
    font-size: 1.08rem;
    margin-bottom: 10px;
}

.process-step p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ── CTA Banner Section ──────────────────────────────── */
.cta-banner {
    padding: 90px 0;
    text-align: center;
    background:
        radial-gradient(circle at 30% 50%, rgba(90, 178, 255, 0.08), transparent 40%),
        radial-gradient(circle at 70% 50%, rgba(122, 92, 255, 0.08), transparent 40%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.cta-banner h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.cta-banner .cta-sub {
    color: var(--muted);
    max-width: 520px;
    margin: 0 auto 36px;
    font-size: 1.05rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

/* ── Portfolio Section ───────────────────────────────── */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.portfolio-more {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

.portfolio-more[hidden] {
    display: none;
}

.project-card {
    overflow: hidden;
    padding: 0;
}

.project-card[data-case] {
    cursor: pointer;
}

.project-thumb {
    height: 210px;
    background:
        linear-gradient(135deg, rgba(90, 178, 255, 0.25), rgba(122, 92, 255, 0.18)),
        linear-gradient(180deg, #0b1830, #08111f);
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}

.project-thumb.has-cover::before,
.project-thumb.has-cover::after {
    opacity: 0;
}

.project-thumb-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(7, 17, 31, 0.06), rgba(7, 17, 31, 0.14)),
        linear-gradient(180deg, rgba(6, 14, 26, 0), rgba(6, 14, 26, 0.2));
}

.project-thumb::before,
.project-thumb::after {
    content: "";
    position: absolute;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.project-thumb::before {
    width: 76%;
    height: 62%;
    top: 18px;
    left: 18px;
}

.project-thumb::after {
    width: 42%;
    height: 24%;
    bottom: 18px;
    right: 18px;
}

.project-content {
    padding: 24px;
}

.project-content h3 {
    margin-bottom: 8px;
}

.project-content .sub {
    margin-bottom: 12px;
}

.project-cta {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d8e7ff;
    font-size: 0.92rem;
    font-weight: 600;
}

.project-cta::after {
    content: "→";
    color: #8fd4ff;
}

/* ── Portfolio Modal ─────────────────────────────────── */
.portfolio-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(2, 7, 16, 0.72);
    backdrop-filter: blur(16px);
    opacity: 0;
    pointer-events: none;
    transition: 0.22s ease;
}

.portfolio-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.portfolio-dialog {
    width: min(1040px, 100%);
    max-height: min(88vh, 820px);
    overflow: auto;
    background: linear-gradient(180deg, rgba(10, 20, 37, 0.96), rgba(4, 12, 25, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
    padding: 22px;
}

.portfolio-modal-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.portfolio-modal-copy h3 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 8px;
}

.portfolio-modal-description {
    max-width: 720px;
    color: var(--muted);
}

.portfolio-modal-description p {
    margin: 0 0 16px;
}

.portfolio-modal-description p:last-child {
    margin-bottom: 0;
}

.portfolio-modal-kicker {
    display: inline-block;
    margin-bottom: 14px;
    color: #8fd4ff;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.portfolio-modal-section-title {
    margin: 8px 0 12px;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 700;
}

.portfolio-feature-list {
    margin: 0 0 16px 20px;
    padding: 0;
}

.portfolio-feature-list li {
    margin-bottom: 10px;
    color: var(--muted);
}

.portfolio-feature-list li::marker {
    color: #8fd4ff;
}

.portfolio-close {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: #eef4ff;
    cursor: pointer;
    font: inherit;
    font-size: 1.25rem;
    flex: 0 0 auto;
}

.portfolio-close:hover {
    background: rgba(255, 255, 255, 0.08);
}

.portfolio-stage {
    height: min(56vh, 520px);
    min-height: 320px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    position: relative;
    background:
        radial-gradient(circle at 20% 20%, rgba(90, 178, 255, 0.18), transparent 28%),
        linear-gradient(135deg, #10213d, #0a1530 45%, #151d49 100%);
}

.portfolio-stage-visual {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.portfolio-stage-visual::before,
.portfolio-stage-visual::after {
    content: "";
    position: absolute;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.portfolio-stage-visual::before {
    width: 68%;
    height: 56%;
    top: 9%;
    left: 8%;
}

.portfolio-stage-visual::after {
    width: 30%;
    height: 18%;
    right: 9%;
    bottom: 12%;
}

.portfolio-stage-label {
    position: absolute;
    left: 22px;
    bottom: 22px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(5, 14, 28, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #eef4ff;
    font-weight: 600;
}

.portfolio-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 18px;
}

.portfolio-thumb {
    min-height: 108px;
    padding: 0;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    position: relative;
}

.portfolio-thumb.is-active {
    border-color: rgba(90, 178, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(90, 178, 255, 0.12);
}

.portfolio-thumb-visual {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.portfolio-thumb-label {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(5, 14, 28, 0.78);
    color: #eef4ff;
    font-size: 0.82rem;
    text-align: left;
}

/* ── Contact Section ─────────────────────────────────── */
.contact-wrap {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 22px;
}

.contact-box,
.form-box {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 28px;
}

.contact-box p,
.form-box p {
    color: var(--muted);
}

.form-box {
    position: relative;
    overflow: hidden;
}

.form-box::before {
    content: "";
    position: absolute;
    inset: -40% -10% auto auto;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(90, 178, 255, 0.14), transparent 70%);
    pointer-events: none;
}

.contact-list {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.contact-item {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.info-stack {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 18px;
    margin-top: 22px;
}

.info-card {
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.info-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
}

.info-card p {
    font-size: 0.95rem;
}

.mini-steps {
    display: grid;
    gap: 12px;
}

.mini-step {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    align-items: start;
}

.mini-step-num {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 0 24px rgba(90, 178, 255, 0.18);
}

.mini-step p {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.93rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #d7e7ff;
    font-size: 0.9rem;
}

/* ── Footer ──────────────────────────────────────────── */
.footer {
    padding: 28px 0 50px;
    color: #7f94b0;
    text-align: center;
}

/* ── Canvas ──────────────────────────────────────────── */
#ai-network {
    width: 100%;
    height: 374px;
    display: block;
    border-radius: 34px;
    background:
        radial-gradient(circle at 22% 18%, rgba(37, 99, 235, 0.12), transparent 20%),
        radial-gradient(circle at 82% 84%, rgba(124, 58, 237, 0.16), transparent 24%),
        linear-gradient(180deg, rgba(3, 11, 24, 0.35), rgba(3, 11, 24, 0.08));
    border: 0;
    box-shadow: inset 0 0 54px rgba(80, 120, 255, 0.08);
}

/* ── Light Theme Overrides ───────────────────────────── */
html[data-theme="light"] .nav,
html[data-theme="light"] .lang-trigger,
html[data-theme="light"] .lang-menu,
html[data-theme="light"] .btn-secondary,
html[data-theme="light"] .hero-chip,
html[data-theme="light"] .hero-metric,
html[data-theme="light"] .card,
html[data-theme="light"] .pain-card,
html[data-theme="light"] .module-item,
html[data-theme="light"] .why-card,
html[data-theme="light"] .contact-box,
html[data-theme="light"] .form-box,
html[data-theme="light"] .portfolio-dialog,
html[data-theme="light"] .contact-item,
html[data-theme="light"] .info-card,
html[data-theme="light"] .project-thumb-overlay,
html[data-theme="light"] .portfolio-thumb-label,
html[data-theme="light"] .portfolio-stage-label {
    border-color: rgba(16, 36, 61, 0.08);
}

html[data-theme="light"] .nav {
    background: linear-gradient(180deg, rgba(211, 223, 240, 0.94), rgba(201, 215, 235, 0.9));
    border-bottom-color: transparent;
}

html[data-theme="light"] .lang-trigger,
html[data-theme="light"] .btn-secondary {
    background: rgba(255, 255, 255, 0.62);
    color: var(--text);
}

html[data-theme="light"] .lang-menu,
html[data-theme="light"] .portfolio-dialog {
    background: rgba(250, 252, 255, 0.96);
}

html[data-theme="light"] .hero-card,
html[data-theme="light"] .hero-visual,
html[data-theme="light"] .card,
html[data-theme="light"] .pain-card,
html[data-theme="light"] .module-item,
html[data-theme="light"] .why-card,
html[data-theme="light"] .contact-box,
html[data-theme="light"] .form-box {
    box-shadow: 0 20px 50px rgba(117, 146, 189, 0.14);
}

html[data-theme="light"] .hero-card {
    padding-left: 0;
}

html[data-theme="light"] .eyebrow {
    background: rgba(255, 255, 255, 0.82);
    color: #4f6b8f;
    border-color: rgba(37, 118, 255, 0.14);
    box-shadow: 0 10px 24px rgba(37, 118, 255, 0.06);
}

html[data-theme="light"] h1 {
    color: #112847;
}

html[data-theme="light"] .gradient-text {
    background: linear-gradient(135deg, #86d9ff 0%, #3fb0ff 42%, #6f72ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

html[data-theme="light"] .hero p {
    color: #5c7190;
}

html[data-theme="light"] .hero-card::before {
    inset: 2% auto auto 2%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(37, 118, 255, 0.14), transparent 68%);
    filter: blur(28px);
}

html[data-theme="light"] .hero-card::after {
    right: 4%;
    bottom: 0;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(111, 114, 255, 0.14), transparent 72%);
    filter: blur(30px);
}

html[data-theme="light"] .hero-visual {
    background: transparent;
    box-shadow: none;
}

html[data-theme="light"] .hero-chip {
    background: rgba(255, 255, 255, 0.88);
    color: #7390b2;
    border-color: rgba(37, 118, 255, 0.1);
    box-shadow: 0 10px 20px rgba(81, 108, 148, 0.08);
}

html[data-theme="light"] .hero-metric {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(37, 118, 255, 0.08);
    box-shadow: 0 16px 34px rgba(81, 108, 148, 0.12);
}

html[data-theme="light"] .hero-metric strong {
    color: #29415f;
}

html[data-theme="light"] .hero-metric span {
    color: #647b99;
}

html[data-theme="light"] .hero-chip,
html[data-theme="light"] .hero-metric,
html[data-theme="light"] .contact-item,
html[data-theme="light"] .info-card {
    background: rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] .section-head p,
html[data-theme="light"] .card p,
html[data-theme="light"] .pain-card p,
html[data-theme="light"] .why-card p,
html[data-theme="light"] .process-step p,
html[data-theme="light"] .contact-box p,
html[data-theme="light"] .form-box p,
html[data-theme="light"] .mini-step p,
html[data-theme="light"] .hero-metric span {
    color: #5b7190;
}

html[data-theme="light"] .card h3,
html[data-theme="light"] .pain-card h3,
html[data-theme="light"] .why-card h3,
html[data-theme="light"] .process-step h3,
html[data-theme="light"] .contact-box h3,
html[data-theme="light"] .form-box h3,
html[data-theme="light"] .info-card strong,
html[data-theme="light"] .mini-step strong,
html[data-theme="light"] .contact-item strong {
    color: #16314f;
}

html[data-theme="light"] .card .sub,
html[data-theme="light"] .project-cta,
html[data-theme="light"] .tag {
    color: #2e7ddd;
}

html[data-theme="light"] .project-cta::after {
    color: #2e7ddd;
}

html[data-theme="light"] .contact-item,
html[data-theme="light"] .info-card {
    color: #3f5878;
}

html[data-theme="light"] .tag {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(37, 118, 255, 0.08);
}

html[data-theme="light"] .mini-step-num {
    box-shadow: 0 10px 20px rgba(37, 118, 255, 0.16);
}

html[data-theme="light"] .project-thumb-overlay {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.08)),
        linear-gradient(180deg, rgba(12, 31, 55, 0), rgba(12, 31, 55, 0.12));
}

html[data-theme="light"] #ai-network,
html[data-theme="light"] .portfolio-stage {
    border-color: rgba(16, 36, 61, 0.08);
    box-shadow: inset 0 0 54px rgba(37, 118, 255, 0.08);
}

html[data-theme="light"] #ai-network {
    background:
        radial-gradient(circle at 22% 18%, rgba(37, 118, 255, 0.1), transparent 18%),
        radial-gradient(circle at 82% 84%, rgba(111, 114, 255, 0.1), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(236, 243, 255, 0.18));
    border: 0;
    box-shadow: inset 0 0 72px rgba(37, 118, 255, 0.04);
}

html[data-theme="light"] .portfolio-modal {
    background: rgba(222, 233, 248, 0.58);
}

html[data-theme="light"] .section-alt {
    background: rgba(37, 118, 255, 0.03);
    border-top-color: rgba(37, 118, 255, 0.08);
    border-bottom-color: rgba(37, 118, 255, 0.08);
}

html[data-theme="light"] .cta-banner {
    background:
        radial-gradient(circle at 30% 50%, rgba(37, 118, 255, 0.06), transparent 40%),
        radial-gradient(circle at 70% 50%, rgba(93, 124, 255, 0.06), transparent 40%);
}

html[data-theme="light"] .module-name {
    color: #16314f;
}

html[data-theme="light"] .module-name-en {
    color: #5b7190;
}

html[data-theme="light"] .pain-impact {
    background: rgba(93, 124, 255, 0.08);
    border-color: rgba(93, 124, 255, 0.15);
    color: #5d7cff;
}

html[data-theme="light"] .solution-tag {
    background: rgba(37, 118, 255, 0.08);
    border-color: rgba(37, 118, 255, 0.15);
    color: #2576ff;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 980px) {
    .nav {
        overflow: visible;
    }

    .nav-inner {
        flex-wrap: wrap;
        position: relative;
    }

    .btn.nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .nav-links,
    .nav-actions {
        display: none;
    }

    .nav.is-mobile-open .nav-links,
    .nav.is-mobile-open .nav-actions {
        display: flex;
    }

    .nav.is-mobile-open .nav-links {
        width: 100%;
        flex-direction: column;
        gap: 14px;
        padding: 18px 0 0;
        font-size: 1rem;
    }

    .nav.is-mobile-open .nav-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px 0 4px;
    }

    .nav-actions {
        justify-content: flex-start;
    }

    .nav-actions > .btn,
    .nav-actions > .lang-switcher,
    .nav-actions > .theme-toggle {
        width: 100%;
    }

    .nav-actions > .theme-toggle {
        border-radius: 18px;
    }

    .lang-trigger {
        width: 100%;
    }

    .lang-menu {
        position: static;
        margin-top: 10px;
        transform: none;
        display: none;
        opacity: 1;
        pointer-events: auto;
    }

    .lang-switcher.open .lang-menu {
        display: block;
    }

    /* Responsive grids */
    .hero-grid,
    .contact-wrap,
    .grid-3,
    .grid-4,
    .grid-2,
    .portfolio-grid,
    .pain-grid,
    .why-grid,
    .process-steps {
        grid-template-columns: 1fr;
    }

    /* Solutions grid override */
    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .solutions-grid .card,
    .solutions-grid .card:nth-child(4),
    .solutions-grid .card:nth-child(5) {
        grid-column: 1 / -1;
    }

    /* Modules: 2 columns on tablet */
    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        padding-top: 72px;
    }

    .hero-visual-top {
        flex-wrap: wrap;
    }

    .hero-metrics {
        position: static;
        width: 100%;
        margin-top: 12px;
    }

    #ai-network {
        height: 320px;
    }

    .portfolio-modal-top {
        align-items: flex-start;
    }

    .portfolio-thumbs {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-track {
        display: none;
    }
}

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

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}
