@import url("https://font.emtech.cc/css/TaipeiSansTC");

/* ===== Design Tokens ===== */
:root {
    --black: #000000;
    --white: #FFFFFF;
    --off-white: #F7F6F2;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #E5E5E5;
    --gray-300: #D4D4D4;
    --gray-400: #A3A3A3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --green: #22C55E;
    --red: #EF4444;
    --font-heading: 'Space Grotesk', 'TaipeiSansTC', 'Noto Sans TC', sans-serif;
    --font-body: 'Public Sans', 'Noto Sans TC', -apple-system, sans-serif;
    --font-mono: 'Space Mono', 'SF Mono', 'Fira Code', monospace;
    --font-heading-active: var(--font-heading);
    --font-body-active: var(--font-body);
    --letter-spacing-body: 0;
    --heading-letter-spacing: -0.02em;
    --font-size-body: 16px;
    --hero-title-size: clamp(3rem, 5.8vw, 6rem);
    --hero-title-size-lg: clamp(3rem, 8vw, 5.1rem);
    --hero-title-size-md: clamp(2.25rem, 12vw, 3.5rem);
    --hero-title-size-sm: clamp(2rem, 11vw, 2.6rem);
    --hero-label-size: 24px;
    --hero-label-size-md: 15px;
    --hero-label-size-sm: 14px;
    --hero-intro-size: 16px;
    --hero-intro-size-md: 17px;
    --hero-intro-size-sm: 15px;
    --hero-description-size: 18px;
    --hero-description-size-md: 15px;
    --line-height-body: 1.6;
    --hero-title-letter-spacing: -0.035em;
    --hero-title-line-height: 1.0;
    --hero-title-line-height-mobile: 0.98;
    --hero-label-letter-spacing: -0.01em;
    --hero-label-line-height: 1.25;
    --hero-intro-letter-spacing: 0;
    --hero-intro-line-height: 1.4;
    --hero-description-line-height: 1.7;
    --hero-label-weight: 300;
    --hero-intro-weight: 500;
}

/* ===== Language Typographic Controls ===== */
html.lang-zh,
body.lang-zh {
    --font-heading-active: 'TaipeiSansTC', 'Space Grotesk', sans-serif;
    --font-body-active: 'Noto Sans TC', 'Public Sans', -apple-system, sans-serif;
    --letter-spacing-body: 0.012em;
    --heading-letter-spacing: 0.015em;
    --font-size-body: 15px;
    --hero-title-size: clamp(2.6rem, 4vw, 5rem);
    --hero-title-size-lg: clamp(2.45rem, 6.6vw, 4.3rem);
    --hero-title-size-md: clamp(2rem, 9.4vw, 3rem);
    --hero-title-size-sm: clamp(1.8rem, 9.8vw, 2.3rem);
    --hero-label-size: 20px;
    --hero-label-size-md: 14px;
    --hero-label-size-sm: 13px;
    --hero-intro-size: 16px;
    --hero-intro-size-md: 15px;
    --hero-intro-size-sm: 14px;
    --hero-description-size: 17px;
    --hero-description-size-md: 14px;
    --line-height-body: 1.75;
    --hero-title-letter-spacing: 0.14em;
    --hero-title-line-height: 1.12;
    --hero-title-line-height-mobile: 1.08;
    --hero-label-letter-spacing: 0.12em;
    --hero-label-line-height: 1.35;
    --hero-intro-letter-spacing: 0.06em;
    --hero-intro-line-height: 1.5;
    --hero-description-line-height: 1.85;
    --hero-label-weight: 600;
    --hero-intro-weight: 600;
}

html.lang-en,
body.lang-en {
    --font-heading-active: 'Space Grotesk', 'TaipeiSansTC', 'Noto Sans TC', sans-serif;
    --font-body-active: 'Public Sans', 'Noto Sans TC', -apple-system, sans-serif;
    --letter-spacing-body: 0;
    --heading-letter-spacing: -0.02em;
    --font-size-body: 16px;
    --hero-title-size: clamp(3rem, 5.8vw, 6rem);
    --hero-title-size-lg: clamp(3rem, 8vw, 5.1rem);
    --hero-title-size-md: clamp(2.25rem, 12vw, 3.5rem);
    --hero-title-size-sm: clamp(2rem, 11vw, 2.6rem);
    --hero-label-size: 24px;
    --hero-label-size-md: 15px;
    --hero-label-size-sm: 14px;
    --hero-intro-size: 16px;
    --hero-intro-size-md: 17px;
    --hero-intro-size-sm: 15px;
    --hero-description-size: 18px;
    --hero-description-size-md: 15px;
    --line-height-body: 1.6;
    --hero-title-letter-spacing: -0.035em;
    --hero-title-line-height: 1.0;
    --hero-title-line-height-mobile: 0.98;
    --hero-label-letter-spacing: -0.01em;
    --hero-label-line-height: 1.2;
    --hero-intro-letter-spacing: 0.01em;
    --hero-intro-line-height: 1.35;
    --hero-description-line-height: 1.7;
    --hero-label-weight: 300;
    --hero-intro-weight: 500;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body-active, var(--font-body));
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
    letter-spacing: var(--letter-spacing-body);
    color: var(--gray-900);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: var(--black);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading-active, var(--font-heading));
    font-weight: 700;
    letter-spacing: var(--heading-letter-spacing);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.btn-primary:hover {
    background: var(--gray-800);
    border-color: var(--gray-300);
    color: var(--white);
    opacity: 1;
}

.btn-secondary {
    background: var(--white);
    color: var(--black);
    border-color: var(--black);
}

.btn-secondary:hover {
    background: var(--gray-100);
    color: var(--black);
    opacity: 1;
}

.btn-outline {
    background: transparent;
    color: var(--black);
    border-color: var(--gray-300);
}

.btn-outline:hover {
    border-color: var(--black);
    opacity: 1;
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 18px 56px;
    font-size: 15px;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 24px;
    background: transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: none;
    margin: 0;
    padding-left: 32px;
    padding-right: 32px;
}

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

.logo-img {
    height: 32px;
    width: auto;
    max-width: none;
    display: block;
    transition: var(--transition);
}

.navbar.scrolled .logo-img {
    filter: none;
}

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

.logo-text {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--black);
    letter-spacing: -0.03em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: clamp(28px, 4vw, 56px);
}

.nav-links a {
    color: #0f172a;
    font-weight: 500;
    font-size: 14px;
    font-family: var(--font-body);
    transition: var(--transition);
    text-decoration: none;
}

.nav-links li:first-child a {
    color: var(--black);
}

.nav-links a:hover {
    color: #020617;
    opacity: 1;
}

.nav-links a.btn-primary,
.nav-links a.btn-primary:hover {
    color: var(--white);
}

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

.lang-switch-item {
    display: flex;
    align-items: center;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px;
    border: 1px solid rgba(15, 23, 42, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
}

.lang-btn {
    border: none;
    background: transparent;
    color: #000000;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    border-radius: 999px;
    padding: 8px 10px;
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn:hover {
    background: rgba(15, 23, 42, 0.08);
}

.lang-btn.active {
    background: #000000;
    color: var(--white);
}

.nav-cta .btn {
    padding: 11px 22px;
    font-size: 12px;
    border-radius: 6px;
}

.navbar .btn-outline {
    border-color: rgba(15, 23, 42, 0.24);
    color: #000000;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #000000;
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    padding: 170px 0 110px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background: var(--gray);
}

.hero::before {
    content: none;
}

.hero::after {
    content: 'none';
}

.hero-wave-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: #9b9b9b4b;
}

.hero .container {
    display: grid;
    grid-template-columns: minmax(380px, 560px) 1fr 56px;
    gap: 42px;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: var(--hero-title-size);
    font-weight: 700;
    color: #ffffff;
    line-height: var(--hero-title-line-height);
    margin-bottom: 24px;
    letter-spacing: var(--hero-title-letter-spacing);
    width: auto;
    white-space: nowrap;
}

.hero-content {
    grid-column: 1;
    justify-self: start;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-label {
    font-family: var(--font-heading-active, var(--font-heading));
    font-size: var(--hero-label-size);
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: var(--hero-label-letter-spacing);
    font-weight: var(--hero-label-weight);
    line-height: var(--hero-label-line-height);
    display: block;
    width: fit-content;
    max-width: 100%;
    padding: 0;
    background: transparent;
    border: none;
    mix-blend-mode: difference;
}

.hero-topline {
    width: min(100%, 500px);
    height: 2px;
    background: var(--black);
    margin-bottom: 22px;
}

.hero-intro {
    font-family: var(--font-heading-active, var(--font-heading));
    font-size: var(--hero-intro-size);
    color: #ffffff;
    margin-bottom: 26px;
    font-weight: var(--hero-intro-weight);
    letter-spacing: var(--hero-intro-letter-spacing);
    line-height: var(--hero-intro-line-height);
    display: block;
    width: fit-content;
    max-width: 100%;
    padding: 0;
    background: transparent;
    border: none;
    mix-blend-mode: difference;
}

@supports not (mix-blend-mode: difference) {

    .hero-label,
    .hero-intro {
        color: var(--gray-100);
    }
}

.hero-description {
    font-size: var(--hero-description-size);
    color: var(--off-white);
    margin-bottom: 42px;
    line-height: var(--hero-description-line-height);
    max-width: 1000px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 0;
}

.hero-follow {
    grid-column: 3;
    justify-self: end;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--white);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f57;
}

.dot.yellow {
    background: #febc2e;
}

.dot.green {
    background: #28c840;
}

.hero .btn-primary {
    box-shadow: 0 16px 24px rgba(0, 0, 0, 0.2);
}

.hero .btn-secondary {
    border-color: var(--black);
    background: var(--white);
}

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

.hero .btn {
    padding: 12px 28px;
}

/* ===== Section Styles ===== */
section {
    padding: 120px 0;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--gray-500);
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: block;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--black);
    text-align: center;
    margin-bottom: 24px;
    letter-spacing: -0.04em;
    line-height: 1.1;
    background: linear-gradient(180deg, var(--black) 0%, var(--gray-600) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 20px;
    color: var(--gray-500);
    text-align: center;
    margin-bottom: 72px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 500;
}

/* ===== Problem Section ===== */
.problems {
    background: var(--white);
    border-top: 1px solid var(--gray-200);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--gray-200);
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--gray-200);
}

.problem-card {
    padding: 40px;
    background: var(--white);
    transition: var(--transition);
}

.problem-card:hover {
    background: var(--gray-50);
}

.problem-icon {
    font-size: 24px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.problem-card h3 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 12px;
    line-height: 1.5;
}

.problem-need {
    font-size: 14px;
    color: var(--gray-500);
    font-weight: 500;
    font-family: var(--font-mono);
}

/* ===== Why Choose RIVO Section ===== */
.why-rivo {
    background: var(--gray-900);
    position: relative;
    overflow: hidden;
}

.why-rivo::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.why-rivo::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -60px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.why-rivo .section-label {
    color: var(--green);
}

.why-rivo-title {
    background: linear-gradient(180deg, #FFFFFF 0%, #A3A3A3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.why-rivo-subtitle {
    color: var(--gray-400);
}

.why-rivo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.why-rivo-card {
    padding: 36px 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.why-rivo-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.why-rivo-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(34, 197, 94, 0.3);
    transform: translateY(-2px);
}

.why-rivo-card:hover::before {
    opacity: 1;
}

.why-rivo-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--green);
}

.why-rivo-icon svg {
    width: 28px;
    height: 28px;
}

.why-rivo-card h3 {
    font-family: var(--font-heading-active, var(--font-heading));
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.why-rivo-card p {
    font-size: 14px;
    color: var(--gray-400);
    line-height: 1.6;
    margin: 0;
}

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

@media (max-width: 768px) {
    .why-rivo-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .why-rivo-card {
        padding: 28px 24px;
    }
}

/* ===== Solution Section ===== */
.solution {
    background: var(--off-white);
}

.solution-grid {
    display: grid;
    grid-template-columns: 0.9fr auto 1.25fr;
    gap: 40px;
    align-items: center;
    max-width: 1160px;
    margin: 0 auto;
}

.solution-card {
    padding: 0;
    background: transparent;
    border: none;
    transition: var(--transition);
}

/* Terminal Mockup */
.terminal-mockup {
    background: var(--gray-900);
    overflow: hidden;
    border: 1px solid var(--gray-800);
    min-height: 300px;
}

.terminal-header {
    display: flex;
    gap: 8px;
    padding: 14px 16px;
    background: var(--black);
    align-items: center;
}

.terminal-body {
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 2;
    color: var(--gray-300);
}

.terminal-body .prompt {
    color: var(--green);
}

.terminal-body .command {
    color: var(--white);
}

.terminal-body .output {
    color: var(--green);
}

.terminal-body .cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--green);
    animation: blink 1s infinite;
    vertical-align: text-bottom;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Arrow */
.solution-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--gray-400);
    font-weight: 300;
}

/* Browser Mockup */
.browser-mockup {
    background: var(--white);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    min-height: 300px;
}

.browser-header {
    display: flex;
    gap: 8px;
    padding: 14px 16px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    align-items: center;
}

.browser-url {
    flex: 1;
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: 4px 12px;
    font-size: 12px;
    color: var(--gray-500);
    margin-left: 8px;
    font-family: var(--font-mono);
}

.browser-content {
    padding: 0;
}

.inline-demo-video-frame {
    position: relative;
    aspect-ratio: 1728 / 1072;
    background: var(--black);
    border-top: 1px solid var(--gray-200);
    overflow: hidden;
}

.inline-demo-video-frame video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
}

/* Feature Pills */
.feature-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 64px;
}

.feature-pill {
    padding: 8px 20px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    font-size: 13px;
    color: var(--gray-600);
    font-weight: 500;
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
}

.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    margin: 12px 0 0;
    padding: 6px 12px;
    border: 1px solid #f59e0b;
    color: #92400e;
    background: #fffbeb;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ===== Features Grid Section ===== */
.features {
    background: var(--white);
    border-top: 1px solid var(--gray-200);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--gray-200);
    border: 1px solid var(--gray-200);
}

.feature-card {
    padding: 48px 36px;
    background: var(--white);
    transition: var(--transition);
    cursor: default;
}

.feature-card:hover {
    background: var(--gray-50);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 20px;
    display: block;
    filter: grayscale(100%);
    opacity: 0.8;
}

.feature-card:hover .feature-icon {
    filter: grayscale(0%);
    opacity: 1;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ===== Comparison Section ===== */
.comparison {
    background: var(--off-white);
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin-bottom: 64px;
    border: 1px solid var(--gray-200);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    font-size: 15px;
}

.comparison-table th,
.comparison-table td {
    padding: 18px 24px;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}

.comparison-table thead th {
    background: var(--gray-50);
    color: var(--gray-500);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.comparison-table thead th.highlight-col {
    background: var(--black);
    color: var(--white);
}

.comparison-table td.highlight-col {
    background: var(--gray-50);
    color: var(--black);
    font-weight: 700;
}

.comparison-table td.row-label {
    text-align: left;
    font-weight: 600;
    color: var(--gray-600);
    font-family: var(--font-mono);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-table td.no-feature {
    color: var(--red);
}

.comparison-table td.has-feature {
    color: var(--green);
    font-weight: 700;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.fit-checklist {
    text-align: center;
}

.fit-checklist h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 32px;
}

.fit-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.fit-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
}

.fit-item::before {
    content: '\2713';
    color: var(--black);
    font-weight: 700;
}

/* ===== Pricing Section ===== */
.pricing {
    background: var(--white);
    border-top: 1px solid var(--gray-200);
}

#pricing .container {
    max-width: 1380px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    align-items: stretch;
    margin-bottom: 48px;
    border: 1px solid var(--gray-200);
}

.pricing-grid.four-col {
    grid-template-columns: repeat(4, 1fr);
}

.pricing-grid.five-col {
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    border: none;
}

.pricing-carousel-nav {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 8px 0 20px;
}

.pricing-nav-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--black);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
}

.pricing-nav-btn:hover {
    border-color: var(--black);
}

.pricing-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.pricing-carousel-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gray-300);
    border: none;
    padding: 0;
    cursor: pointer;
}

.pricing-dot.active {
    background: var(--black);
}

.pricing-addons {
    margin-top: 48px;
    text-align: center;
}

.pricing-addons h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--black);
}

.addons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.addon-item {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: var(--gray-50);
    border-radius: 8px;
    border: 1px solid var(--gray-200);
}

.addon-name {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.addon-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--black);
}

.pricing-academic {
    margin-top: 48px;
    margin-bottom: 32px;
}

.academic-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 40px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    color: var(--white);
}

.academic-info h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--white);
}

.academic-info p {
    color: var(--gray-400);
    margin: 0;
}

.academic-price {
    text-align: right;
}

.price-tag {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

.price-note {
    font-size: 0.9rem;
    color: var(--gray-400);
}

.pricing-card {
    position: relative;
    padding: 36px 24px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    min-height: 740px;
    overflow: hidden;
    transition: var(--transition);
}

.pricing-card:last-child {
    border-right: 1px solid var(--gray-200);
}

.pricing-card:hover {
    background: var(--gray-50);
}

.pricing-card.featured {
    background: var(--black);
    color: var(--white);
    z-index: 1;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.pricing-card.featured:hover {
    background: var(--gray-900);
}

.pricing-card.featured h3 {
    color: var(--white);
}

.pricing-card.featured .amount {
    color: var(--white);
}

.pricing-card.featured .currency,
.pricing-card.featured .period {
    color: var(--gray-400);
}

.pricing-card.featured .pricing-features li {
    color: var(--gray-300);
    border-bottom-color: var(--gray-800);
}

.pricing-card.featured .pricing-features li::before {
    color: var(--green);
}

.pricing-card.featured .btn-outline {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.pricing-card.featured .btn-outline:hover {
    background: var(--gray-200);
}

.pricing-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: var(--green);
    color: var(--black);
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.pricing-card.featured {
    padding-top: 72px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 24px;
}

.pricing-header h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 16px;
}

.pricing-onetime {
    text-align: center;
    padding: 16px;
    margin-bottom: 32px;
    background: var(--gray-800);
    color: var(--gray-300);
    font-weight: 500;
    font-size: 14px;
    font-family: var(--font-mono);
}

.pricing-onetime small {
    font-weight: 400;
    opacity: 0.7;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
    flex-wrap: nowrap;
}

.currency {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-500);
    white-space: nowrap;
}

.amount {
    font-family: var(--font-heading);
    font-size: clamp(38px, 2.6vw, 52px);
    font-weight: 700;
    color: var(--black);
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.period {
    font-size: 16px;
    color: var(--gray-500);
    white-space: nowrap;
}

.pricing-features {
    flex: 1;
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.5;
}

.pricing-features li::before {
    content: '\2713';
    margin-right: 0;
    flex-shrink: 0;
    color: var(--black);
    font-weight: 700;
}

.pricing-features li:last-child {
    border-bottom: none;
}

#pricing .btn-block {
    margin-top: auto;
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    letter-spacing: 1px;
}

.pricing-note {
    text-align: center;
    font-size: 15px;
    color: var(--gray-500);
}

.pricing-note a {
    color: var(--black);
    font-weight: 600;
    text-decoration: underline;
}

/* ===== Testimonials Section ===== */
.testimonials {
    background: var(--off-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    padding: 40px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: var(--black);
}

.testimonial-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.testimonial-card blockquote {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 28px;
    font-style: normal;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
    font-family: var(--font-heading);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info strong {
    color: var(--black);
    font-size: 15px;
}

.author-info span {
    color: var(--gray-500);
    font-size: 13px;
}

/* ===== FAQ Section ===== */
.faq {
    background: var(--white);
    border-top: 1px solid var(--gray-200);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--gray-200);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 0;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-body);
}

.faq-question:hover {
    opacity: 0.7;
}

.faq-question h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
    line-height: 1.4;
    flex: 1;
    margin-right: 16px;
}

.faq-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--gray-400);
    transition: var(--transition);
    flex-shrink: 0;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--black);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding-bottom: 28px;
    font-size: 16px;
    color: var(--gray-500);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* ===== CTA Section ===== */
.cta-banner {
    background: var(--black);
    color: var(--white);
    text-align: center;
}

.cta-banner .section-label {
    color: var(--gray-500);
}

.cta-banner .section-title {
    color: var(--white);
}

.cta-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 0, 0, 0.1);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 32px;
}

.cta-offer-list {
    font-size: 16px;
    color: var(--gray-400);
    margin-bottom: 40px;
    line-height: 2.2;
}

.cta-offer-list .check {
    color: var(--gray-300);
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.cta-buttons .btn-primary {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.cta-buttons .btn-primary:hover {
    background: var(--gray-200);
    border-color: var(--gray-200);
    color: var(--black);
}

.cta-buttons .btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--gray-600);
    padding: 14px 36px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.cta-buttons .btn-ghost:hover {
    border-color: var(--white);
    color: var(--white);
    opacity: 1;
}

.cta-countdown {
    margin-top: 24px;
    font-size: 13px;
    color: var(--gray-600);
    font-family: var(--font-mono);
}

/* ===== Contact Section ===== */
.contact {
    background: var(--white);
    border-top: 1px solid var(--gray-200);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    gap: 16px;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    color: var(--black);
    flex-shrink: 0;
}

.contact-item h4 {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-500);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item a,
.contact-item span {
    color: var(--gray-700);
    font-size: 15px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    font-size: 16px;
    font-family: var(--font-body);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    color: var(--black);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--black);
    background: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== Topology Data Flow ===== */
.topo-wrap {
    margin: 48px 0;
    background: white;
    border-radius: 16px;
    padding: 48px 32px 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.data-flow-title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--black);
}

.data-flow-subtitle {
    text-align: center;
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 36px;
}

/* --- Tabs --- */
.topo-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.topo-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 22px;
    border: 1.5px solid #e5e5e5;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-body);
    gap: 3px;
}

.topo-tab:hover {
    border-color: #555;
    background: #fafafa;
}

.topo-tab.topo-tab-active {
    border-color: #000;
    background: #000;
    color: #fff;
}

.topo-tab-name {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1px;
}

.topo-tab-badge {
    font-size: 10px;
    opacity: 0.55;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* --- SVG canvas --- */
/* --- Modern Horizontal Architecture Styles --- */
.topo-wrap {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.topo-arch-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    padding: 40px 20px;
    gap: 40px;
}

/* Background SVG for Connections */
.topo-svg-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Architecture Tiers */
.arch-tier {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    z-index: 2;
    flex: 1;
}

.arch-tier-edge {
    align-items: flex-start;
}

.arch-tier-mid {
    align-items: center;
}

.arch-tier-cloud {
    align-items: flex-end;
}

/* Premium Component Cards */
.arch-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    max-width: 280px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.arch-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.arch-card-hero {
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.card-desc {
    font-size: 13px;
    color: #999;
    line-height: 1.5;
}

.card-tag {
    display: inline-block;
    font-size: 10px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 12px;
    text-transform: uppercase;
    font-weight: 700;
}

/* SVG Path Pulsing */
.arch-path {
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 2;
    fill: none;
}

.arch-pulse {
    stroke: var(--primary-color);
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 10 30;
    animation: signal-dash 3s linear infinite;
}

@keyframes signal-dash {
    to {
        stroke-dashoffset: -40;
    }
}

/* Responsive Stacking */
@media (max-width: 991px) {
    .topo-arch-container {
        flex-direction: column;
        gap: 60px;
    }

    .arch-tier {
        width: 100%;
        align-items: center;
    }

    .topo-svg-bg {
        display: none;
    }
}

/* Edge labels */
.edge-lbl {
    font-family: var(--font-mono);
    font-size: 10px;
    fill: #888;
    text-anchor: middle;
}

/* Scenario annotations */
.topo-anno {
    font-family: var(--font-mono);
    font-size: 10px;
    fill: #aaa;
    text-anchor: start;
}

/* --- Info card --- */
.topo-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
    padding: 18px 24px;
    border: 1.5px solid #e5e5e5;
    border-radius: 10px;
}

.topo-info-badge {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 14px;
    border: 1.5px solid #000;
    border-radius: 100px;
    white-space: nowrap;
    color: #000;
}

.topo-info p {
    font-size: 14px;
    color: var(--gray-500);
    flex: 1;
    margin: 0;
    line-height: 1.65;
}

.topo-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.topo-tags span {
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 3px 10px;
    background: transparent;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
    .topo-wrap {
        padding: 32px 20px 28px;
    }

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

    .topo-tab {
        flex-direction: row;
        justify-content: space-between;
    }

    .topo-info {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== Footer ===== */
.footer {
    background: var(--black);
    color: var(--gray-500);
    padding: 64px 0 32px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 80px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 280px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand .logo-text {
    color: var(--white);
    font-size: 24px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--gray-500);
}

.footer-social {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.footer-social a {
    color: var(--gray-500);
    font-size: 14px;
    font-family: var(--font-mono);
}

.footer-social a:hover {
    color: var(--white);
    opacity: 1;
}

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

.footer-column h4 {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-400);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-column a,
.footer-column span {
    color: var(--gray-500);
    font-size: 14px;
}

.footer-column a:hover {
    color: var(--white);
    opacity: 1;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--gray-800);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.footer-bottom p {
    color: var(--gray-600);
}

.footer-bottom a {
    color: var(--gray-600);
}

.footer-bottom a:hover {
    color: var(--white);
    opacity: 1;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-made {
    margin-top: 4px;
    font-size: 12px;
    color: var(--gray-700);
}

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

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.stagger-child {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-child.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero {
        padding: 154px 0 98px;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hero-content {
        grid-column: 1;
        max-width: 560px;
        margin-left: 0;
        margin-right: auto;
    }

    .hero-content h1 {
        font-size: var(--hero-title-size-lg);
    }

    .hero-follow {
        display: none;
    }

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

    .solution-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .solution-arrow {
        transform: rotate(90deg);
    }

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

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

    .pricing-carousel-nav {
        display: flex;
    }

    .pricing-grid,
    .pricing-grid.four-col,
    .pricing-grid.five-col {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        border: none;
        padding: 0 4px 8px;
    }

    .pricing-grid::-webkit-scrollbar {
        display: none;
    }

    .pricing-card {
        flex: 0 0 clamp(300px, 68vw, 420px);
        min-width: clamp(300px, 68vw, 420px);
        min-height: auto;
        padding: 32px 22px;
        border: 1px solid var(--gray-200);
        scroll-snap-align: center;
    }

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

    .pricing-card {
        border-right: 1px solid var(--gray-200);
        border-bottom: 1px solid var(--gray-200);
    }

    .pricing-card.featured {
        border-bottom: 1px solid var(--gray-200);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 82px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(10px);
        padding: 32px;
        margin-left: 0;
        gap: 16px;
        border-bottom: 1px solid var(--gray-200);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .lang-switch-item {
        width: 100%;
        justify-content: flex-start;
    }

    .lang-switch {
        margin-top: 4px;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: 132px 0 72px;
        min-height: 88vh;
    }

    .hero-content {
        margin-left: 0;
        max-width: 100%;
    }

    .hero-topline {
        max-width: 360px;
        margin-bottom: 16px;
    }

    .hero-label {
        font-size: var(--hero-label-size-md);
    }

    .hero-intro {
        font-size: var(--hero-intro-size-md);
        margin-bottom: 20px;
    }

    .hero-content h1 {
        font-size: var(--hero-title-size-md);
        line-height: var(--hero-title-line-height-mobile);
        white-space: normal;
    }

    .hero-description {
        font-size: var(--hero-description-size-md);
        margin-bottom: 28px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero .btn {
        width: 100%;
        max-width: 280px;
    }

    section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 32px;
    }

    .section-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .problems-grid,
    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .problems-grid {
        background: transparent;
        border: none;
        gap: 0;
    }

    .problem-card {
        border-bottom: 1px solid var(--gray-200);
    }

    .features-grid {
        background: transparent;
        border: none;
        gap: 0;
    }

    .feature-card {
        border-bottom: 1px solid var(--gray-200);
    }

    .pricing-grid,
    .pricing-grid.four-col,
    .pricing-grid.five-col {
        padding-left: 0;
        padding-right: 0;
    }

    .addons-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        flex: 0 0 86vw;
        min-width: 86vw;
        margin-bottom: 0;
    }

    .comparison-table {
        font-size: 13px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px 14px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .academic-banner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .academic-price {
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .amount {
        font-size: 36px;
    }

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

    .feature-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 8px;
    }

    .cta-buttons .btn-primary {
        width: 100%;
        max-width: 320px;
    }

}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero-content h1 {
        font-size: var(--hero-title-size-sm);
    }

    .hero-label {
        font-size: var(--hero-label-size-sm);
    }

    .hero-intro {
        font-size: var(--hero-intro-size-sm);
    }

    .pricing-card {
        padding: 36px 24px;
    }

    .comparison-table-wrapper {
        margin-left: -20px;
        margin-right: -20px;
    }
}

/* ===== Data Flow Toggle ===== */
.flow-toggle-container {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.flow-toggle-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-heading);
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
    outline: none;
}

.flow-toggle-btn:hover {
    border-color: var(--gray-500);
    color: var(--black);
}

.flow-toggle-btn.active {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.flow-arrow.long-arrow {
    flex-grow: 2;
}

/* Adjust flow row for hidden sections */
.flow-section {
    display: block;
}

/* ===== New Data Flow Schematic ===== */
/* (old schematic styles removed — replaced by .topo-* above) */

/* ===== Integration Architecture Section ===== */
.integration-section {
    margin: 48px 0;
    background: white;
    border-radius: 16px;
    padding: 64px 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.integration-section .section-title {
    margin-bottom: 16px;
}

.integration-section .section-subtitle {
    margin-bottom: 56px;
}

/* Architecture Diagram */
.arch-diagram {
    display: grid;
    grid-template-columns: 1fr 80px 1.2fr 80px 1fr;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto 64px;
    position: relative;
    align-items: start;
}

.arch-column {
    position: relative;
    padding: 0 24px;
}

.arch-column-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.arch-column-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gray-400);
    margin-bottom: 4px;
}

.arch-column-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
}

/* Source Nodes */
.arch-node {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 0;
    transition: all 0.3s ease;
    position: relative;
}

.arch-node:hover {
    border-color: var(--gray-400);
    transform: translateX(4px);
}

.arch-node-source {
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
    gap: 0 16px;
}

.arch-node-icon {
    grid-row: 1 / 3;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
}

.arch-node-icon svg {
    width: 28px;
    height: 28px;
}

.arch-node-content h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    margin: 0 0 4px 0;
}

.arch-node-content p {
    font-size: 12px;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.4;
}

.arch-node-tag {
    grid-column: 2;
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: 3px;
    margin-top: 8px;
    width: fit-content;
}

/* Combined Sources Node */
.arch-node-sources-combined {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 0;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    min-height: 380px;
    /* Match NodeWare/Center height */
}

.arch-node-sources-combined:hover {
    border-color: var(--gray-400);
}

.arch-source-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
    gap: 0 16px;
    padding: 24px;
    flex: 1;
    align-content: center;
}

.arch-source-item .arch-node-icon {
    grid-row: 1 / 3;
}

.arch-source-item .arch-node-tag {
    grid-column: 2;
}

.arch-source-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 0 24px;
    flex-shrink: 0;
}

/* Primary Node (NodeWare) */
.arch-node-primary {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
    padding: 32px 24px;
    text-align: center;
    margin-bottom: 24px;
}

.arch-node-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.arch-node-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.arch-node-icon-large {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: var(--white);
}

.arch-node-icon-large svg {
    width: 100%;
    height: 100%;
}

.arch-node-primary h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--white);
}

.arch-node-desc {
    font-size: 13px;
    color: var(--gray-400);
    margin: 0 0 20px 0;
}

.arch-node-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.arch-node-features li {
    font-size: 12px;
    color: var(--gray-300);
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.arch-node-features li:last-child {
    border-bottom: none;
}

.arch-node-features li::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--green);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Alternative Node */
.arch-node-alt {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--gray-50);
    border: 1px dashed var(--gray-300);
    border-radius: 8px;
}

.arch-alt-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.arch-alt-content strong {
    display: block;
    font-size: 13px;
    color: var(--black);
    margin-bottom: 2px;
}

.arch-alt-content p {
    font-size: 11px;
    color: var(--gray-500);
    margin: 0;
}

/* Cloud Node */
.arch-node-cloud {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    border: 2px solid var(--black);
    padding: 32px 24px;
    text-align: center;
}

.arch-node-cloud:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.arch-badge-cloud {
    background: var(--black);
    color: var(--white);
}

.arch-node-cloud .arch-node-icon-large {
    color: var(--black);
}

.arch-node-cloud h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
    margin: 0 0 8px 0;
}

.arch-node-cloud .arch-node-desc {
    color: var(--gray-600);
}

.arch-node-cloud .arch-node-features li {
    color: var(--gray-600);
    border-bottom-color: var(--gray-200);
}

.arch-node-cloud .arch-node-features li::before {
    background: var(--black);
}

/* Deploy Options */
.arch-deploy-options {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: center;
}

.arch-deploy-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-right: 1px solid var(--gray-200);
    white-space: nowrap;
}

.arch-deploy-option:last-child {
    border-right: none;
}

.arch-deploy-option .deploy-label {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
}

.arch-deploy-option .deploy-tag {
    font-family: var(--font-mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-400);
}

.arch-deploy-option svg {
    color: var(--gray-500);
    flex-shrink: 0;
}

/* Connection Lines - Refined Design */
.arch-connections {
    display: none;
    /* Hide SVG connections, use CSS-based approach */
}


/* Refined Data Flow Arrows */
.arch-flow-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    min-width: 80px;
    align-self: center;
    margin-top: 240px;
}

.arch-flow-arrow .flow-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--gray-300) 15%,
            var(--gray-400) 50%,
            var(--gray-300) 85%,
            transparent 100%);
    position: relative;
    margin-bottom: 8px;
}

/* Starting dot */
.arch-flow-arrow .flow-line::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--gray-400);
    border-radius: 50%;
}

/* Arrow head */
.arch-flow-arrow .flow-line::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid var(--gray-400);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

.arch-flow-arrow .flow-label {
    font-family: var(--font-mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-400);
    white-space: nowrap;
    text-align: center;
}

/* Flow pulse animation */
@keyframes flow-pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.arch-flow-arrow .flow-line {
    animation: flow-pulse 2s ease-in-out infinite;
}

/* Flow arrow fade-in animation */
.arch-flow-arrow {
    opacity: 0;
    transform: scale(0.9);
}

.integration-section.visible .arch-flow-arrow {
    animation: flow-arrow-appear 0.5s ease forwards;
}

.integration-section.visible .arch-flow-left {
    animation-delay: 0.3s;
}

.integration-section.visible .arch-flow-right {
    animation-delay: 0.6s;
}

@keyframes flow-arrow-appear {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Column Alignment - All columns use same flex structure */
.arch-sources,
.arch-processing,
.arch-cloud {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0 20px;
}

.arch-sources .arch-column-header,
.arch-processing .arch-column-header,
.arch-cloud .arch-column-header {
    width: 100%;
}

/* Sources column - align nodes with processing node */
.arch-sources {
    padding-top: 0;
}

.arch-sources .arch-node {
    width: 100%;
    max-width: 320px;
}

/* Spacer to align with option tabs / deploy options */
.arch-spacer {
    height: 52px;
    /* Match option tabs height */
    margin-bottom: 20px;
    /* Match option tabs margin-bottom */
}

.arch-placeholder-tabs {
    height: 54px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    width: 100%;
    max-width: 320px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: var(--gray-50);
    box-sizing: border-box;
}

.arch-placeholder-tabs .placeholder-label {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
}

.arch-placeholder-tabs .placeholder-tag {
    font-family: var(--font-mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-400);
}

/* Add spacing wrapper to align source nodes with the main processing node */
.arch-sources .arch-nodes-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 16px;
}

/* Processing column nodes */
.arch-processing .arch-node-primary,
.arch-processing .arch-node-software {
    width: 100%;
    margin-bottom: 0;
}

/* Cloud column nodes */
.arch-cloud .arch-node-cloud {
    width: 100%;
    max-width: 320px;
}

.arch-cloud .arch-deploy-options {
    width: 100%;
    max-width: 320px;
    height: 54px;
    /* Match option tabs height */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 20px;
    /* Match option tabs margin-bottom */
    flex-wrap: nowrap;
    box-sizing: border-box;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: var(--gray-50);
    overflow: hidden;
}

/* Option Tabs for Processing Column */
.arch-option-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    width: 100%;
    max-width: 320px;
    height: 54px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
    background: var(--gray-50);
    box-sizing: border-box;
}

.arch-option-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 8px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.15s ease-out;
    position: relative;
}

.arch-option-tab:first-child {
    border-right: 1px solid var(--gray-200);
}

.arch-option-tab .tab-label {
    font-family: var(--font-heading);
    font-size: 13 px;
    font-weight: 600;
    color: var(--gray-500);
    transition: color 0.15s ease-out;
}

.arch-option-tab .tab-tag {
    font-family: var(--font-mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-400);
    transition: color 0.15s ease-out;
}

.arch-option-tab:hover .tab-label {
    color: var(--gray-700);
}

.arch-option-tab.active {
    background: var(--black);
}

.arch-option-tab.active .tab-label {
    color: var(--white);
}

.arch-option-tab.active .tab-tag {
    color: var(--gray-400);
}

/* Option Content */
.arch-option-content {
    display: none;
    width: 100%;
    max-width: 320px;
}

.arch-option-content.active {
    display: block;
}

@keyframes option-fade-in {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Software Node Styling */
.arch-node-software {
    background: var(--gray-800);
    border: 2px solid var(--gray-700);
    padding: 32px 24px;
    text-align: center;
    color: var(--white);
}

.arch-node-software:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.arch-node-software .arch-node-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.arch-node-software .arch-node-icon-large {
    width: 48px;
    height: 48px;
    color: var(--white);
    margin: 0 auto 16px;
}

.arch-node-software h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 8px 0;
}

.arch-node-software .arch-node-desc {
    font-size: 13px;
    color: var(--gray-400);
    margin: 0 0 20px 0;
}

.arch-node-software .arch-node-features li {
    font-size: 12px;
    color: var(--gray-300);
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.arch-node-software .arch-node-features li:last-child {
    border-bottom: none;
}

.arch-node-software .arch-node-features li::before {
    background: var(--green);
}

/* Deployment Scenarios */
.integration-scenarios {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--gray-200);
}

.scenarios-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--black);
    text-align: center;
    margin-bottom: 32px;
}

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.scenario-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 24px;
    transition: all 0.3s ease;
}

.scenario-card:hover {
    border-color: var(--black);
    background: var(--white);
}

.scenario-number {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--gray-400);
    margin-bottom: 12px;
}

.scenario-content h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
    margin: 0 0 8px 0;
}

.scenario-content p {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.scenario-flow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 10px;
}

.scenario-flow span {
    padding: 4px 8px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    color: var(--gray-700);
}

.scenario-flow .scenario-arrow {
    background: transparent;
    border: none;
    color: var(--gray-400);
    padding: 4px;
}

.scenario-flow .scenario-arrow::before {
    content: '\2192';
    margin-right: 4px;
}

/* Integration CTA */
.integration-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 48px;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .arch-diagram {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .arch-column {
        padding: 0;
    }

    .arch-sources .arch-nodes-wrapper {
        padding-top: 0;
    }

    .arch-spacer {
        display: none;
    }

    .arch-placeholder-tabs {
        display: none;
    }

    .arch-flow-arrow {
        width: 100%;
        min-width: unset;
        padding: 16px 0;
        margin-top: 0;
    }

    .arch-flow-arrow .flow-line {
        width: 2px;
        height: 40px;
        background: linear-gradient(180deg,
                transparent 0%,
                var(--gray-300) 15%,
                var(--gray-400) 50%,
                var(--gray-300) 85%,
                transparent 100%);
        margin-bottom: 0;
        margin-right: 12px;
    }

    .arch-flow-arrow .flow-line::before {
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }

    .arch-flow-arrow .flow-line::after {
        top: auto;
        bottom: -3px;
        left: 50%;
        right: auto;
        transform: translateX(-50%) rotate(90deg);
    }

    .arch-flow-arrow .flow-label {
        writing-mode: horizontal-tb;
    }

    .arch-flow-arrow {
        flex-direction: row;
        justify-content: center;
    }

    .arch-node:hover {
        transform: none;
    }

    .arch-node-primary:hover,
    .arch-node-cloud:hover,
    .arch-node-software:hover {
        transform: none;
    }

    .scenarios-grid {
        grid-template-columns: 1fr;
    }

    .integration-section {
        padding: 48px 24px;
    }
}

@media (max-width: 768px) {
    .integration-cta {
        flex-direction: column;
        align-items: center;
    }

    .integration-cta .btn {
        width: 100%;
        max-width: 280px;
    }

    .arch-processing .arch-node-primary,
    .arch-processing .arch-node-software {
        max-width: 100%;
    }

    .arch-option-tabs {
        max-width: 100%;
    }

    .arch-option-content {
        max-width: 100%;
    }
}

/* Animation: Fade in on scroll */
.arch-column {
    opacity: 0;
    transform: translateY(20px);
    animation: arch-fade-in 0.6s ease forwards;
}

.arch-sources {
    animation-delay: 0.1s;
}

.arch-processing {
    animation-delay: 0.3s;
}

.arch-cloud {
    animation-delay: 0.5s;
}

@keyframes arch-fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation: Node highlight on scroll */
.arch-node,
.arch-node-sources-combined {
    opacity: 0;
    transform: translateY(10px);
}

.integration-section.visible .arch-node,
.integration-section.visible .arch-node-sources-combined {
    animation: node-appear 0.4s ease forwards;
}

.integration-section.visible .arch-sources .arch-nodes-wrapper .arch-node-sources-combined {
    animation-delay: 0.15s;
}

/* Processing nodes - initial animation only, not on tab switch */
.integration-section.visible .arch-processing .arch-option-content .arch-node {
    animation: node-appear 0.4s ease forwards;
    animation-delay: 0.45s;
}

/* After initial load, disable animation for tab switching */
.integration-section.visible.animated .arch-processing .arch-option-content .arch-node {
    animation: none;
    opacity: 1;
    transform: none;
}

.integration-section.visible .arch-cloud .arch-deploy-options {
    animation-delay: 0.5s;
}

.integration-section.visible .arch-cloud .arch-node-cloud {
    animation-delay: 0.55s;
}

/* Option tabs animation */
.arch-option-tabs {
    opacity: 0;
    transform: translateY(10px);
}

.integration-section.visible .arch-option-tabs {
    animation: node-appear 0.4s ease forwards;
    animation-delay: 0.4s;
}

/* Nodes wrapper animation */
.arch-nodes-wrapper {
    opacity: 0;
    transform: translateY(10px);
}

.integration-section.visible .arch-nodes-wrapper {
    animation: node-appear 0.4s ease forwards;
    animation-delay: 0.1s;
}

/* Placeholder tabs animation */
.arch-placeholder-tabs {
    opacity: 0;
    transform: translateY(10px);
}

.integration-section.visible .arch-placeholder-tabs {
    animation: node-appear 0.4s ease forwards;
    animation-delay: 0.4s;
}

/* Deploy options animation */
.arch-deploy-options {
    opacity: 0;
    transform: translateY(10px);
}

.integration-section.visible .arch-deploy-options {
    animation: node-appear 0.4s ease forwards;
}

@keyframes node-appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scenario cards animation */
.scenario-card {
    opacity: 0;
    transform: translateY(15px);
}

.integration-section.visible .scenario-card {
    animation: scenario-appear 0.5s ease forwards;
}

.integration-section.visible .scenario-card:nth-child(1) {
    animation-delay: 0.7s;
}

.integration-section.visible .scenario-card:nth-child(2) {
    animation-delay: 0.8s;
}

.integration-section.visible .scenario-card:nth-child(3) {
    animation-delay: 0.9s;
}

@keyframes scenario-appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse animation for connection dots */
@keyframes dot-pulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

.arch-dot {
    animation: dot-pulse 1.5s ease-in-out infinite;
}

.arch-dot-1 {
    animation-delay: 0s;
}

.arch-dot-2 {
    animation-delay: 0.5s;
}

.arch-dot-3 {
    animation-delay: 1s;
}
