:root {
    --blue: #6a3ce0;
    --blue-dark: #5c31d6;
    --blue-deep: #3f1f9e;
    --blue-light: #f3eeff;
    --blue-pale: #faf7ff;
    /* Accessible accent for text/icons on light surfaces (5.4:1+ on --blue-light) */
    --accent: #5a2fc4;
    /* Button/tab fills that carry white text (5.1:1+) */
    --accent-btn: #6a3ce0;
    --accent-btn-dark: #5a2fc4;
    --navy: #171226;
    --text: #5c5570;
    --white: #ffffff;
    --border: #ece5fb;
    --green: #0a6b4f;
    --radius: 20px;
    --shadow-sm: 0 8px 30px #17122614;
    --shadow-lg: 0 25px 65px #1712261f;
}

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

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

body {
    font-family: 'Vazirmatn', sans-serif;
    color: var(--navy);
    background: white;
    line-height: 1.9;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

.container { width: min(1160px, 90%); margin: auto; }

/* HEADER */
header {
    height: 78px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.86);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
}

.navbar { height: 100%; display: flex; justify-content: space-between; align-items: center; }

.brand { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; }

.brand-icon {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    background: linear-gradient(140deg, var(--accent-btn), var(--accent-btn-dark));
    color: white;
    border-radius: 13px;
    font-size: 22px;
    box-shadow: 0 8px 20px #17122626;
}
.brand-icon svg { width: 22px; height: 22px; fill: currentColor; }

.brand-name { color: var(--navy); }
.brand-name span { color: var(--blue); }

.nav-links { display: flex; align-items: center; gap: 26px; font-size: 13px; color: var(--text); }
.nav-links a { position: relative; transition: color .2s; }
.nav-links a::after {
    content: ""; position: absolute; right: 0; left: 0; bottom: -6px;
    height: 2px; border-radius: 2px; background: var(--blue);
    transform: scaleX(0); transform-origin: right; transition: transform .25s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
    background: var(--accent-btn);
    color: white;
    padding: 10px 22px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    transition: .25s;
    box-shadow: 0 8px 20px #17122626;
}
.nav-cta:hover { background: var(--blue-dark); transform: translateY(-2px); }

.menu-btn { display: none; background: none; border: 0; color: var(--navy); font-size: 26px; }

/* HERO */
.hero {
    position: relative;
    padding: 92px 0 108px;
    background:
        radial-gradient(ellipse at 85% 15%, #f0e7ff 0%, transparent 42%),
        radial-gradient(ellipse at 8% 92%, #f6f1ff 0%, transparent 38%),
        white;
    overflow: hidden;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(#e3d9ff 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
    opacity: .55; pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: .96fr 1.04fr;
    gap: 55px;
    align-items: center;
    position: relative;
}

.hero-label {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--accent); background: var(--blue-light);
    border: 1px solid #e2d7ff;
    border-radius: 50px; padding: 7px 15px;
    font-size: 12px; font-weight: 600; margin-bottom: 22px;
}
.hero-label i {
    width: 7px; height: 7px; border-radius: 50%; background: var(--blue);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .4; }
}

.hero h1 {
    font-size: clamp(32px, 4vw, 49px);
    line-height: 1.65;
    font-weight: 800;
    letter-spacing: -.5px;
}
.hero h1 span { color: var(--blue); }

.hero-description {
    color: var(--text); font-size: 14px; line-height: 2.5;
    margin: 20px 0 28px; max-width: 490px;
}

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

.btn-primary, .btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    justify-content: center;
    padding: 12px 23px; border-radius: 12px;
    font-size: 13px; font-weight: 600; transition: .25s;
}
.btn-primary {
    background: var(--accent-btn); color: white; box-shadow: 0 10px 26px #17122626;
}
.btn-primary:hover { background: var(--accent-btn-dark); transform: translateY(-3px); box-shadow: 0 14px 32px #17122633; }
.btn-secondary { color: var(--accent); background: white; border: 1px solid #d9ccff; }
.btn-secondary:hover { background: var(--blue-light); transform: translateY(-3px); }

.hero-stats {
    display: flex; gap: 26px; flex-wrap: wrap;
    margin-top: 34px; padding-top: 26px;
    border-top: 1px solid var(--border);
}
.hero-stats div { display: flex; flex-direction: column; gap: 2px; }
.hero-stats b { font-size: 20px; font-weight: 800; color: var(--blue-dark); }
.hero-stats small { font-size: 11px; color: var(--text); }

/* HERO VISUAL */
.hero-visual { position: relative; min-width: 0; }

.hero-desktop {
    width: 100%; aspect-ratio: 16/10;
    border: 7px solid white;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #f3eeff;
    transition: transform .5s ease;
}
.hero-desktop img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-phone {
    position: absolute; left: -22px; bottom: -42px;
    width: 138px; height: 250px;
    border: 6px solid white;
    border-radius: 26px;
    overflow: hidden;
    background: #efe7ff;
    box-shadow: 0 18px 40px #1712262b;
    transition: transform .5s ease;
}
.hero-phone img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-bubble {
    position: absolute; right: -18px; top: 18px;
    background: white; padding: 12px 17px;
    border-radius: 14px; box-shadow: var(--shadow-sm);
    color: var(--blue-dark); font-size: 12px; font-weight: 600;
    display: flex; align-items: center; gap: 8px;
    animation: float 5s ease-in-out infinite;
}
.hero-bubble .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
@keyframes float {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}
/* COMMON SECTIONS */
section { padding: 92px 0; }

.section-head { text-align: center; max-width: 700px; margin: 0 auto 50px; }
.section-tag {
    display: inline-block;
    color: var(--accent); background: var(--blue-light);
    border: 1px solid #e2d7ff;
    font-size: 12px; font-weight: 700;
    padding: 5px 14px; border-radius: 40px;
    margin-bottom: 14px;
}
.section-head h2 { font-size: 30px; font-weight: 800; margin-bottom: 12px; letter-spacing: -.3px; }
.section-head p { font-size: 13px; color: var(--text); line-height: 2.3; }

/* CATEGORY */
.category-title { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; }
.category-title h3 { font-size: 19px; font-weight: 800; }
.category-title span {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    color: var(--accent); background: var(--blue-light);
    border-radius: 11px;
}
.category-title span svg { width: 20px; height: 20px; fill: currentColor; }

/* FEATURE CARDS */
.features { background: white; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 52px;
}

.feature-card {
    position: relative;
    border: 1px solid var(--border);
    background: white;
    border-radius: 18px;
    padding: 22px 22px 24px;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    overflow: hidden;
}
.feature-card::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 100% 0%, #f3eeff 0%, transparent 55%);
    opacity: 0; transition: opacity .3s; pointer-events: none;
}
.feature-card:hover { border-color: #c9b8ff; box-shadow: 0 14px 34px #17122612; transform: translateY(-5px); }
.feature-card:hover::after { opacity: 1; }

.feature-icon {
    width: 46px; height: 46px;
    border-radius: 13px;
    background: var(--blue-light);
    color: var(--accent);
    display: grid; place-items: center;
    font-size: 21px;
    margin-bottom: 15px;
    position: relative; z-index: 1;
}
.feature-icon svg { width: 24px; height: 24px; fill: currentColor; }

.feature-card h4 { font-size: 14px; margin-bottom: 8px; position: relative; z-index: 1; }
.feature-card p { font-size: 12px; color: var(--text); line-height: 2.1; position: relative; z-index: 1; }

/* STICKER CARDS — an animated Lottie sits above the copy.
   Sizes are set per context via --sticker-h so brand/advanced/platform
   cards stay compact while feature cards get the full show. */
.feature-card.has-sticker {
    display: flex;
    flex-direction: column;
    padding-top: 10px;
}
.sticker {
    --sticker-h: 132px;
    width: 100%;
    height: var(--sticker-h);
    margin: 0 auto 8px;
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    flex: none;
}
.sticker > svg:not(.sticker-fallback) {
    height: var(--sticker-h) !important;
    width: auto !important;
    max-width: 100%;
}
.sticker .sticker-fallback {
    width: calc(var(--sticker-h) * .55);
    height: calc(var(--sticker-h) * .55);
    fill: var(--accent);
    opacity: .9;
}
.sticker.is-loaded .sticker-fallback { display: none; }

.advanced-card .sticker { --sticker-h: 104px; margin-bottom: 6px; }
.platform-card .sticker { --sticker-h: 88px; margin: 0 auto 12px; }
.feature-card.has-sticker .sticker { --sticker-h: 132px; }

/* Brand mark (header + footer) — a compact animated logo */
.brand-icon.sticker {
    --sticker-h: 30px;
    width: 42px; height: 42px;
    margin: 0; flex: none;
    background: linear-gradient(140deg, var(--accent-btn), var(--accent-btn-dark));
    border-radius: 13px;
    box-shadow: 0 8px 20px #17122626;
}
.brand-icon.sticker > svg:not(.sticker-fallback) {
    height: 30px !important; width: 30px !important;
}
.brand-icon.sticker .sticker-fallback {
    width: 22px; height: 22px;
    fill: #fff;
    opacity: 1;
}

/* ADVANCED */
.advanced { background: linear-gradient(180deg, var(--blue-pale), #fbf9ff); }

.advanced-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.advanced-card {
    background: white;
    border: 1px solid #efe6ff;
    border-radius: 18px;
    padding: 24px;
    transition: transform .3s ease, box-shadow .3s ease;
    position: relative;
}
.advanced-card:hover { transform: translateY(-5px); box-shadow: 0 14px 34px #17122612; }
.advanced-card h4 { font-size: 14px; margin-bottom: 8px; }
.advanced-card p { font-size: 12px; color: var(--text); line-height: 2.1; }
.advanced-label {
    display: inline-block; margin-top: 12px;
    padding: 4px 11px; border-radius: 30px;
    background: #f3eeff; color: var(--accent);
    font-size: 10px; font-weight: 700;
}

/* INTEGRATION HIGHLIGHT */
.highlight { background: white; }
.highlight-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    align-items: center; gap: 60px;
}
.highlight-image {
    width: 100%; overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    background: var(--blue-pale);
}
.highlight-image img { display: block; width: 100%; height: auto; }

.highlight-text h2 { font-size: 29px; line-height: 1.75; margin-bottom: 16px; letter-spacing: -.3px; }
.highlight-text > p { color: var(--text); font-size: 13px; line-height: 2.3; margin-bottom: 22px; }

.highlight-list { display: grid; gap: 12px; }
.highlight-list div { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text); }
.tick {
    flex: none;
    width: 22px; height: 22px; border-radius: 50%;
    display: grid; place-items: center;
    background: #e5f7f0; color: var(--green);
    font-size: 12px; font-weight: 700;
}

/* PLATFORM */
.platform { background: linear-gradient(180deg, var(--blue-pale), white); }
.platform-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.platform-card {
    text-align: center; padding: 28px 15px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: white;
    transition: transform .3s ease, box-shadow .3s ease;
}
.platform-card:hover { transform: translateY(-5px); box-shadow: 0 14px 34px #17122612; }
.platform-card .feature-icon { margin: 0 auto 14px; width: 56px; height: 56px; }
.platform-card h4 { font-size: 14px; }
.platform-card p { font-size: 11px; color: var(--text); margin-top: 4px; }

/* GALLERY */
.gallery { background: white; }
.gallery-tabs {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 9px; margin-bottom: 28px;
}
.gallery-tab {
    background: white; border: 1px solid var(--border);
    color: var(--text); border-radius: 11px;
    padding: 10px 17px; font-size: 12px; font-weight: 600;
    transition: .2s;
}
.gallery-tab.active, .gallery-tab:hover {
    background: var(--accent-btn); border-color: var(--accent-btn); color: white;
    box-shadow: 0 8px 20px #17122624;
}
.gallery-window {
    max-width: 940px; margin: auto; padding: 12px;
    border: 1px solid var(--border); border-radius: 22px;
    box-shadow: 0 18px 50px #17122616;
    background: white;
}
.gallery-image {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #f3eeff;
    border-radius: 14px;
    transition: opacity .25s;
}
/* Landscape shots fill the window like before. Portrait (phone) shots are
   capped in height so they never take over the viewport on a real phone. */
.gallery-image[data-orientation="landscape"] {
    aspect-ratio: 16 / 9;
    max-height: none;
}
.gallery-image[data-orientation="portrait"] {
    width: auto;
    max-width: 100%;
    max-height: min(52vh, 420px);
    border-radius: 20px;
    border: 5px solid #fff;
    box-shadow: 0 14px 36px #17122622;
}
@media (max-width: 600px) {
    .gallery-image[data-orientation="portrait"] {
        max-height: min(58vh, 380px);
        border-width: 4px;
    }
}
.gallery-info {
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px 8px 5px; gap: 15px;
}
.gallery-info h3 { font-size: 14px; }
.gallery-info p { color: var(--text); font-size: 11px; }
.device-label {
    background: var(--blue-light); color: var(--accent);
    padding: 5px 12px; border-radius: 30px;
    font-size: 11px; font-weight: 600; white-space: nowrap;
}

/* WHY US + FAQ (sales) */
.why { background: white; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px 20px;
    background: linear-gradient(180deg, #fff, var(--blue-pale));
    transition: transform .3s ease, box-shadow .3s ease;
}
.why-card:hover { transform: translateY(-5px); box-shadow: 0 14px 34px #17122612; }
.why-card h3 { font-size: 15px; margin: 12px 0 8px; }
.why-card p { font-size: 12px; color: var(--text); line-height: 2.1; }
.why-num {
    width: 38px; height: 38px; border-radius: 11px;
    display: grid; place-items: center;
    background: var(--accent-btn); color: #fff;
    font-size: 14px; font-weight: 800;
}

.faq { background: var(--blue-pale); }
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq-item {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}
.faq-item summary {
    cursor: pointer; list-style: none;
    padding: 17px 18px; font-size: 14px; font-weight: 700;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    transition: background .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+"; color: var(--accent); font-size: 19px; font-weight: 400; flex: none;
    transition: transform .25s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { background: var(--blue-light); }
.faq-item p {
    padding: 0 18px 17px; font-size: 13px; color: var(--text); line-height: 2.15;
}

/* NUMBERS & PHONE — bidi-safe.
   Digits are weak-directionality runs: in RTL text a spaced group can
   reorder and a leading "+" can flip to the end. Isolate every number run
   and keep phone digits as one continuous LTR string. */
.ltr {
    direction: ltr;
    unicode-bidi: isolate;
}
.phone {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
    font-variant-numeric: tabular-nums;
    letter-spacing: .02em;
}

/* TECHNICAL ARTICLE LAYOUT (/technology/) */
.article { max-width: 800px; margin: 0 auto; }
.article h2 {
    font-size: 25px; line-height: 1.75; letter-spacing: -.3px;
    margin: 0 0 16px;
}
.article h3 { font-size: 17px; margin: 26px 0 12px; }
.article p {
    color: var(--text); font-size: 13.5px; line-height: 2.35;
    margin-bottom: 15px;
}
.article p strong { color: var(--navy); font-weight: 700; }
.article .lead {
    font-size: 15px; color: var(--navy); line-height: 2.3; font-weight: 500;
}
.article ul { margin: 6px 0 20px; padding: 0; list-style: none; display: grid; gap: 11px; }
.article li {
    position: relative; padding-right: 24px;
    color: var(--text); font-size: 13px; line-height: 2.15;
}
.article li::before {
    content: ""; position: absolute; right: 2px; top: 11px;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent-btn);
}
.article li b { color: var(--navy); }
.tech-section { padding: 58px 0; }
.tech-section + .tech-section { border-top: 1px solid var(--border); }
.tech-section:nth-child(even) { background: var(--blue-pale); }
.callout {
    border-right: 3px solid var(--accent-btn);
    background: var(--blue-light);
    border-radius: 12px;
    padding: 18px 20px;
    margin: 6px 0 20px;
}
.callout p { margin: 0; color: var(--navy); font-size: 13px; line-height: 2.2; }
.tech-hero { padding: 70px 0 20px; }

/* SCALE STATS BAND — the "strong numbers" strip under the hero */
.stats {
    background: linear-gradient(120deg, #140f26 0%, #2a1650 55%, #3a1c6e 100%);
    color: #fff;
    padding: 54px 0;
    position: relative;
    overflow: hidden;
}
.stats::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(#ffffff14 1.5px, transparent 1.5px);
    background-size: 22px 22px;
    pointer-events: none;
}
.stats-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}
.stat { text-align: center; padding: 6px 8px; }
.stat b {
    display: block;
    font-size: clamp(24px, 3.2vw, 38px);
    font-weight: 800;
    letter-spacing: -.5px;
    line-height: 1.25;
    color: #fff;
}
.stat .lbl {
    display: block;
    margin-top: 7px;
    font-size: 11.5px;
    line-height: 1.95;
    color: #b7a9d9;
}
.stat.is-cdn b {
    font-size: clamp(20px, 2.4vw, 28px);
    color: #c9b6ff;
}
.stat.is-cdn .lbl { color: #d3c7ee; }
.stats-note {
    position: relative;
    margin-top: 26px;
    text-align: center;
    font-size: 12px;
    color: #b7a9d9;
    line-height: 2.1;
}
.stats-note b { color: #fff; font-weight: 700; }

@media (max-width: 900px) {
    .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 22px 10px; }
}
@media (max-width: 600px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stats { padding: 42px 0; }
}

/* CUSTOMERS & ENGAGEMENT MODELS */
.customers { background: white; }
.models {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 10px; margin-bottom: 34px;
}
.model-chip {
    border: 1px solid var(--border);
    background: var(--blue-pale);
    border-radius: 40px;
    padding: 9px 18px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--navy);
}
.logo-row {
    display: flex; flex-wrap: wrap;
    justify-content: center; align-items: stretch;
    gap: 16px;
    margin-bottom: 22px;
}
.logo-plate {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px 26px;
    display: grid; place-items: center;
    min-width: 210px;
    box-shadow: var(--shadow-sm);
    transition: transform .3s ease, box-shadow .3s ease;
}
.logo-plate:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px #17122614;
}
.logo-plate img {
    display: block;
    max-height: 62px;
    max-width: 230px;
    width: auto; height: auto;
    object-fit: contain;
}
.name-row {
    display: flex; flex-wrap: wrap;
    justify-content: center; gap: 12px;
}
.name-plate {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 13px 22px;
    font-size: 13px; font-weight: 600;
    background: linear-gradient(180deg, #fff, var(--blue-pale));
    color: var(--navy);
}
.name-plate .sub {
    display: block;
    font-size: 10.5px; font-weight: 500;
    color: var(--text); margin-top: 3px;
}

/* DOCS CENTRE (/docs/) */
.crumb {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
    font-size: 12px; color: var(--text);
    padding: 26px 0 0;
}
.crumb a { color: var(--accent); }
.crumb a:hover { text-decoration: underline; }
.crumb .sep { opacity: .5; }
.crumb strong { color: var(--navy); font-weight: 700; }

.docs-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
a.doc-card {
    display: block;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    color: inherit;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
a.doc-card:hover {
    border-color: #c9b8ff;
    box-shadow: 0 14px 34px #17122612;
    transform: translateY(-5px);
}
a.doc-card .tag {
    display: inline-block;
    color: var(--accent); background: var(--blue-light);
    border-radius: 30px; padding: 3px 11px;
    font-size: 10.5px; font-weight: 700; margin-bottom: 11px;
}
a.doc-card h3 { font-size: 15px; line-height: 1.85; margin-bottom: 8px; }
a.doc-card p { font-size: 12px; color: var(--text); line-height: 2.05; }
a.doc-card .more {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 13px; color: var(--accent);
    font-size: 11.5px; font-weight: 700;
}

.related {
    margin-top: 30px; padding-top: 22px;
    border-top: 1px solid var(--border);
}
.related h3 { font-size: 14px; margin-bottom: 12px; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.related a {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--accent); font-size: 13px; font-weight: 600;
}
.related a:hover { text-decoration: underline; }

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

/* ARCHITECTURE TEASER (links to the technical page) */
.teaser {
    background: linear-gradient(180deg, var(--blue-pale), #fff);
}
.teaser .section-head { margin-bottom: 26px; }
.center-cta { text-align: center; }

/* CTA */
.cta { padding: 85px 0; }
.cta-box {
    position: relative; overflow: hidden; text-align: center;
    color: white; padding: 66px 25px; border-radius: 26px;
    background: linear-gradient(120deg, #3a1c6e, #5a2fc4 55%, #7b4dff);
    box-shadow: 0 25px 60px #1712262e;
}
.cta-box::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(#ffffff22 1.5px, transparent 1.5px);
    background-size: 22px 22px;
    opacity: .5;
}
.cta-box > * { position: relative; }
.cta-box h2 { font-size: 27px; margin-bottom: 12px; }
.cta-box p { font-size: 13px; color: #ffffff; margin-bottom: 26px; }
.cta-button {
    display: inline-block; padding: 13px 28px;
    background: white; color: var(--blue-dark);
    border-radius: 12px; font-size: 13px; font-weight: 700;
    transition: .25s;
}
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 12px 30px #0002; }

/* FOOTER */
footer { background: #171226; color: white; padding: 45px 0 20px; }
.footer-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 30px; }
.footer-description { font-size: 12px; color: #c3b8dd; margin-top: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; font-size: 12px; color: #e6dcff; }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid #ffffff1f; padding-top: 20px; text-align: center; font-size: 11px; color: #b9add4; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media(max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero-content-text { text-align: center; }
    .hero-description { margin-right: auto; margin-left: auto; }
    .hero-actions, .hero-stats { justify-content: center; }
    .hero-visual { max-width: 680px; margin: auto; width: 100%; }
    .feature-grid, .advanced-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .highlight-grid { grid-template-columns: 1fr; gap: 38px; }
    .platform-grid { grid-template-columns: repeat(2, 1fr); }
}

@media(max-width: 600px) {
    header { height: 68px; }
    .menu-btn { display: block; }
    .nav-cta { display: none; }
    .nav-links {
        display: none; position: absolute; top: 68px; right: 0; left: 0;
        background: white; padding: 20px 5%;
        flex-direction: column; align-items: flex-start; gap: 15px;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.open { display: flex; }
    .hero { padding: 62px 0 80px; }
    .hero h1 { font-size: 30px; }
    section { padding: 64px 0; }
    .section-head h2, .highlight-text h2 { font-size: 24px; }
    .feature-grid, .advanced-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .feature-card.has-sticker { flex-direction: row; align-items: center; gap: 12px; padding-top: 18px; }
    .feature-card.has-sticker .sticker {
        --sticker-h: 84px;
        width: 84px; height: 84px; margin: 0; flex: none;
    }
    .hero-phone { width: 96px; height: 172px; left: -6px; bottom: -26px; }
    .hero-bubble { right: -4px; font-size: 10px; }
    .platform-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-info { align-items: flex-start; flex-direction: column; }
    .cta-box { padding: 46px 18px; }
    .cta-box h2 { font-size: 22px; }
    .footer-top { flex-direction: column; }
}

@media(prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ===== VIBE PRODUCT SITE ===== */
:root { --brand-2: #7b4dff; }

.brand-logo {
    width: 42px; height: 42px;
    border-radius: 13px;
    display: block;
    object-fit: cover;
    box-shadow: 0 6px 16px #1712262e;
}

/* HERO ART */
.hero-visual { display: grid; place-items: center; min-height: 400px; }
.vibe-halo {
    position: absolute;
    width: min(82%, 430px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: conic-gradient(from 210deg, var(--brand-2), var(--blue), #171226, var(--brand-2));
    opacity: .18;
    filter: blur(22px);
}
.vibe-mark {
    position: relative;
    width: min(58%, 265px);
    height: auto;
    border-radius: 58px;
    box-shadow: 0 30px 70px #17122638;
    animation: float 7s ease-in-out infinite;
}
.hero-chip {
    position: absolute;
    display: inline-flex; align-items: center; gap: 7px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 9px 15px;
    font-size: 12px; font-weight: 700;
    color: var(--accent);
    box-shadow: 0 8px 24px #1712261a;
    white-space: nowrap;
}
.hero-chip::before {
    content: "";
    width: 7px; height: 7px; border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-2), var(--blue));
}
.chip-a { top: 9%; right: 1%; }
.chip-b { bottom: 19%; left: -1%; }
.chip-c { bottom: 4%; right: 12%; }

/* WORD-STATS */
.stat b.is-text {
    font-size: clamp(15px, 1.7vw, 20px);
    letter-spacing: 0;
    line-height: 1.6;
    padding-top: 6px;
}

/* TWO-UP PLATFORMS */
.platform-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 640px;
    margin-inline: auto;
}

/* DARK CITY SHOT */
.highlight-image { background: #120d20; }
.highlight-image img { border-radius: 16px; }

/* DARK GALLERY BAND */
.gallery { background: #120d20; }
.gallery .section-tag { background: #241a3d; color: #cdbaff; border-color: #38285c; }
.gallery .section-head h2 { color: #fff; }
.gallery .section-head p { color: #a99cc9; }
.gallery-tab { background: #1d1533; border-color: #33254f; color: #cbbff0; }
.gallery-tab.active, .gallery-tab:hover {
    background: var(--accent-btn); border-color: var(--accent-btn); color: #fff;
    box-shadow: 0 8px 24px #00000059;
}
.gallery-window { background: #1a1229; border-color: #2c2048; box-shadow: 0 22px 60px #00000073; }
.gallery-image { background: #0c0816; }
.gallery .gallery-image[data-orientation="portrait"] { border-color: #2c2048; box-shadow: none; }
.gallery-info h3 { color: #fff; }
.gallery-info p { color: #a99cc9; }
.device-label { background: #2a1d47; color: #d9c8ff; }

/* BLOCKCHAIN */
.blockchain { background: linear-gradient(180deg, var(--blue-pale), #fff); }
.chain-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 52px; align-items: center; }
.chain-visual {
    position: relative;
    min-height: 340px;
    border-radius: 24px;
    overflow: hidden;
    background: radial-gradient(circle at 72% 22%, #3a1c6e, #171226 62%);
    display: grid; place-items: center;
    box-shadow: 0 22px 55px #1712262e;
}
.chain-visual::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(#ffffff10 1.5px, transparent 1.5px);
    background-size: 22px 22px;
}
.chain-link { position: relative; display: grid; gap: 14px; width: min(78%, 320px); }
.chain-node {
    position: relative;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: #ffffff0f;
    border: 1px solid #ffffff1f;
    border-radius: 14px;
    padding: 13px 16px;
    color: #fff;
    font-size: 13px; font-weight: 600;
}
.chain-node small { color: #c8b6ff; font-size: 11px; font-weight: 500; }
.chain-node::after {
    content: ""; position: absolute; right: 50%; bottom: -15px;
    width: 1px; height: 14px; background: #ffffff2e;
}
.chain-node:last-child::after { display: none; }
.chain-badge {
    position: absolute; top: 16px; left: 16px;
    width: 44px; height: 44px; border-radius: 12px;
    box-shadow: 0 10px 24px #00000059;
}

/* ADVANCED ICON CARD */
.advanced-card .feature-icon { margin-bottom: 12px; }

/* readable small text */
.hero-stats small { font-size: 12px; }
.stat .lbl { font-size: 12px; }
.platform-card p { font-size: 12px; }
.gallery-info p { font-size: 12px; }
.device-label { font-size: 12px; }
.footer-bottom { font-size: 12px; }

@media(max-width: 900px) {
    .chain-grid { grid-template-columns: 1fr; gap: 34px; }
}
@media(max-width: 600px) {
    .hero-visual { min-height: 320px; }
    .hero-chip { font-size: 10px; padding: 7px 11px; }
    .chip-a { right: 0; }
    .chip-b { left: 0; }
    .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
}

/* ===== WHAT IS VIBE MESSENGER ===== */
.what { background: #fff; }
.about-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 52px;
    align-items: center;
}
.about-grid .article { margin: 0; max-width: none; }
.about-grid .article h2 { font-size: 30px; margin-bottom: 14px; }
.about-grid .article p { font-size: 13.5px; }

.vibe-phone {
    width: min(100%, 330px);
    margin: auto;
    padding: 10px;
    border-radius: 36px;
    background: #0f0a1e;
    border: 1px solid #2c2048;
    box-shadow: var(--shadow-lg);
}
.vp-screen {
    border-radius: 27px;
    overflow: hidden;
    background: #f7f4ff;
}
.vp-top {
    display: flex; align-items: center; gap: 10px;
    padding: 13px 14px;
    background: linear-gradient(120deg, var(--accent-btn), var(--brand-2));
    color: #fff;
    font-size: 12px; font-weight: 700;
}
.vp-top img { width: 26px; height: 26px; border-radius: 8px; }
.vp-body {
    display: flex; flex-direction: column; gap: 9px;
    padding: 18px 12px;
    min-height: 280px;
    background: linear-gradient(180deg, #f7f4ff, #fff);
}
.vp-msg {
    max-width: 80%;
    padding: 9px 12px;
    border-radius: 14px;
    font-size: 12px;
    line-height: 1.95;
}
.vp-msg.in {
    align-self: flex-start;
    background: #fff;
    border: 1px solid var(--border);
    border-bottom-right-radius: 4px;
    color: var(--navy);
}
.vp-msg.out {
    align-self: flex-end;
    background: linear-gradient(120deg, var(--accent-btn), #7b4dff);
    color: #fff;
    border-bottom-left-radius: 4px;
}
.vp-input {
    margin: 0 12px 14px;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: #6f6688;
    font-size: 12px;
}

/* ===== CITY SCENE ===== */
.scene-visual {
    position: relative;
    min-height: 340px;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(160deg, #1b1230, #2a1650);
    box-shadow: var(--shadow-lg);
}
.scene-ground {
    position: absolute;
    inset: auto -20% -35% -20%;
    height: 75%;
    background-color: #241542;
    background-image:
        linear-gradient(#ffffff12 1px, transparent 1px),
        linear-gradient(90deg, #ffffff12 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(420px) rotateX(58deg);
    transform-origin: top center;
}
.scene-avatar {
    position: absolute;
    left: 50%; bottom: 27%;
    width: 54px; height: 66px;
    margin-left: -27px;
    border-radius: 50% 50% 42% 42%;
    background: linear-gradient(180deg, #c4a6ff, var(--blue));
    box-shadow: 0 12px 26px #00000059;
}
.scene-avatar::before {
    content: "";
    position: absolute;
    left: 50%; top: -20px;
    width: 34px; height: 34px;
    margin-left: -17px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ecdfff, #c4a6ff);
}
.scene-place {
    position: absolute;
    background: #ffffff12;
    border: 1px solid #ffffff26;
    border-radius: 999px;
    padding: 9px 15px;
    color: #fff;
    font-size: 12px; font-weight: 600;
    backdrop-filter: blur(4px);
}
.scene-place.p1 { top: 16%; right: 11%; }
.scene-place.p2 { top: 36%; left: 10%; }
.scene-place.p3 { top: 10%; left: 36%; }

/* ===== DOWNLOAD ===== */
.download-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 26px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.download-card-main { display: flex; align-items: center; gap: 16px; }
.download-icon { width: 56px; height: 56px; border-radius: 15px; }
.download-card h3 { font-size: 16px; margin-bottom: 4px; }
.download-card p { font-size: 12px; color: var(--text); }
.note {
    max-width: 760px;
    margin: 18px auto 0;
    text-align: center;
    font-size: 12px;
    line-height: 2.1;
    color: var(--text);
}

@media(max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 38px; }
}
@media(max-width: 600px) {
    .download-card { flex-direction: column; align-items: stretch; text-align: center; }
    .download-card-main { flex-direction: column; }
}

/* ===== BLOG ===== */
.blog-teaser { background: #fff; }
a.doc-card .more svg {
    width: 16px; height: 16px;
    fill: currentColor;
}
.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 22px;
    font-size: 13px;
}
.compare-table th,
.compare-table td {
    border: 1px solid var(--border);
    padding: 10px 12px;
    text-align: right;
    line-height: 2;
}
.compare-table th {
    background: var(--blue-light);
    color: var(--navy);
    font-weight: 700;
}
.compare-table td { color: var(--text); }
