:root {
    --bg: #081018;
    --bg-deep: #04070c;
    --surface: rgba(12, 20, 30, 0.74);
    --surface-strong: rgba(18, 28, 41, 0.92);
    --surface-soft: rgba(255, 255, 255, 0.04);
    --line: rgba(255, 255, 255, 0.11);
    --line-strong: rgba(226, 190, 123, 0.34);
    --text: #f6f2ea;
    --muted: #a8b3c2;
    --gold: #e2be7b;
    --gold-soft: #f3d7a7;
    --ice: #9bc8ff;
    --ok: #78f1c9;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --x: 50%;
    --y: 50%;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Vazirmatn", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 18% 12%, rgba(226, 190, 123, 0.16), transparent 34%),
        radial-gradient(circle at 82% 18%, rgba(103, 158, 222, 0.17), transparent 28%),
        linear-gradient(180deg, #0b121a 0%, #081018 48%, #05080d 100%);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(420px circle at var(--x) var(--y), rgba(255, 226, 173, 0.08), transparent 62%);
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.ambient {
    position: fixed;
    border-radius: 999px;
    filter: blur(110px);
    z-index: -2;
    pointer-events: none;
}

.ambient-a {
    width: 460px;
    height: 460px;
    top: -140px;
    left: -100px;
    background: rgba(226, 190, 123, 0.18);
    animation: drift 16s ease-in-out infinite;
}

.ambient-b {
    width: 360px;
    height: 360px;
    right: -100px;
    bottom: 12%;
    background: rgba(109, 167, 235, 0.18);
    animation: drift 19s ease-in-out infinite reverse;
}

.mesh {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle at center, black 38%, transparent 80%);
}

.container {
    width: min(1200px, calc(100% - 2.4rem));
    margin-inline: auto;
}

.section {
    padding: 5rem 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
    background: rgba(5, 9, 14, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
}

.nav-shell {
    position: relative;
    min-height: 80px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.brand img {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.26rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.lang-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 34px;
    padding: 0 0.75rem;
    border-radius: 999px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    transition: background 160ms ease, color 160ms ease;
}

.lang-link:hover,
.lang-link:focus-visible {
    color: var(--text);
    outline: none;
}

.lang-link.is-active {
    background: rgba(226, 190, 123, 0.14);
    color: var(--gold-soft);
}

.main-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 500;
    padding: 0.58rem 0.82rem;
    border-radius: 999px;
    transition: color 160ms ease, background 160ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    outline: none;
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 999px;
    transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.78rem 1.18rem;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-soft));
    color: #1b1105;
    box-shadow: 0 18px 34px rgba(226, 190, 123, 0.22);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--line);
    color: var(--text);
}

.hero {
    padding-top: 3.4rem;
}

.hero-grid,
.experience-grid,
.launch-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

.hero-grid {
    grid-template-columns: 1.02fr 0.98fr;
}

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

.launch-grid {
    align-items: stretch;
}

.eyebrow,
.architecture-kicker,
.panel-kicker {
    margin: 0 0 1rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.75rem;
    font-weight: 700;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.08;
}

h1 {
    font-size: clamp(2.6rem, 5.8vw, 5rem);
    max-width: 11ch;
}

h2 {
    font-size: clamp(1.9rem, 3.8vw, 3.1rem);
}

h3 {
    font-size: 1.22rem;
}

p {
    color: var(--muted);
    line-height: 1.8;
}

.hero-text {
    margin-top: 1.2rem;
    max-width: 62ch;
}

.hero-text strong {
    color: var(--text);
}

.hero-pills,
.architecture-points,
.launch-links,
.launch-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.hero-pills {
    margin-top: 1.45rem;
}

.hero-pills span,
.architecture-points span {
    padding: 0.55rem 0.82rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #e8edf7;
    font-size: 0.86rem;
}

.hero-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

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

.metric-card,
.capability-card,
.glass-panel,
.launch-card,
.architecture-shell {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.metric-card {
    padding: 1rem;
    border-radius: var(--radius-md);
}

.metric-card strong {
    display: block;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    color: var(--text);
}

.metric-card span {
    display: block;
    margin-top: 0.3rem;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.hero-visual {
    position: relative;
    perspective: 1100px;
}

.hero-badge,
.chat-state,
.composer-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(226, 190, 123, 0.22);
    background: rgba(226, 190, 123, 0.1);
    color: var(--gold-soft);
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-badge {
    position: absolute;
    top: -0.6rem;
    right: 1.1rem;
    z-index: 3;
}

.device-shell {
    position: relative;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
        linear-gradient(160deg, rgba(13, 20, 29, 0.96), rgba(7, 11, 17, 0.98));
    box-shadow: 0 38px 100px rgba(0, 0, 0, 0.46);
    overflow: hidden;
    transform-style: preserve-3d;
}

.device-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.12), transparent 36%, transparent 62%, rgba(226, 190, 123, 0.1));
    pointer-events: none;
}

.shell-topbar {
    min-height: 62px;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.shell-topbar span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.shell-topbar p {
    margin-left: 0.5rem;
    color: #d6deea;
    font-size: 0.92rem;
}

.shell-body {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 520px;
}

.shell-sidebar {
    padding: 1.15rem;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
}

.sidebar-profile img {
    width: 44px;
    height: 44px;
    border-radius: 14px;
}

.sidebar-profile strong,
.side-contact strong,
.chat-head strong {
    display: block;
    color: var(--text);
    font-size: 0.95rem;
}

.sidebar-profile span,
.side-contact span,
.chat-head span {
    color: var(--muted);
    font-size: 0.82rem;
}

.sidebar-list {
    margin-top: 1rem;
    display: grid;
    gap: 0.7rem;
}

.side-contact {
    padding: 0.9rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
}

.side-contact.is-active {
    border-color: rgba(226, 190, 123, 0.22);
    background: rgba(226, 190, 123, 0.09);
}

.shell-chat {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-head,
.composer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.chat-flow {
    margin-top: auto;
    display: grid;
    gap: 0.85rem;
}

.bubble {
    max-width: 82%;
    padding: 1rem 1.05rem;
    border-radius: 22px;
    position: relative;
}

.bubble p,
.bubble span {
    color: #eff4fc;
}

.bubble-in {
    justify-self: start;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.bubble-out {
    justify-self: end;
    background: linear-gradient(145deg, rgba(226, 190, 123, 0.22), rgba(117, 164, 221, 0.18));
    border: 1px solid rgba(226, 190, 123, 0.2);
}

.bubble-mini {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.bubble-label {
    display: block;
    margin-bottom: 0.35rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.composer-bar {
    min-height: 58px;
    padding: 0.9rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.composer-action {
    min-height: 36px;
    padding-inline: 0.85rem;
}

.float-card {
    position: absolute;
    width: min(240px, 48%);
    padding: 1rem 1.1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 14, 21, 0.82);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
}

.float-card p {
    color: var(--gold);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.float-card strong {
    display: block;
    margin-top: 0.4rem;
    line-height: 1.55;
}

.float-card-a {
    left: -1rem;
    bottom: 6.5rem;
}

.float-card-b {
    right: -1rem;
    bottom: 1.6rem;
}

.section-head {
    max-width: 72ch;
    margin-bottom: 2rem;
}

.section-head h2 {
    margin-bottom: 1rem;
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.capability-card,
.security-card,
.glass-panel,
.launch-card {
    padding: 1.3rem;
    border-radius: var(--radius-lg);
}

.launch-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.security-card {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.security-card-primary {
    border-color: rgba(226, 190, 123, 0.24);
    background:
        linear-gradient(180deg, rgba(226, 190, 123, 0.1), rgba(255, 255, 255, 0.03)),
        linear-gradient(145deg, rgba(14, 21, 31, 0.96), rgba(10, 16, 23, 0.94));
}

.security-label {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0.35rem 0.72rem;
    border-radius: 999px;
    margin-bottom: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--gold-soft);
    font-size: 0.78rem;
    font-weight: 700;
}

.security-card h3 {
    margin-bottom: 0.7rem;
}

.security-list {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--muted);
}

.security-list li + li {
    margin-top: 0.62rem;
}

.security-note {
    margin-top: 1rem;
    padding: 1rem 1.15rem;
    border-radius: 18px;
    border: 1px solid rgba(226, 190, 123, 0.2);
    background: rgba(226, 190, 123, 0.08);
    color: #eadfca;
    line-height: 1.8;
}

.security-note strong {
    color: var(--text);
}

.capability-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    margin-bottom: 1rem;
    color: #211303;
    font-size: 0.82rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold), var(--gold-soft));
}

.capability-card h3 {
    margin-bottom: 0.7rem;
}

.signal-list {
    margin-top: 1.4rem;
    display: grid;
    gap: 1rem;
}

.signal-list article {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.signal-list article:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.signal-list strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--text);
    font-size: 1rem;
}

.experience-panels {
    display: grid;
    gap: 1rem;
}

.accent-panel {
    border-color: rgba(226, 190, 123, 0.24);
    background:
        linear-gradient(180deg, rgba(226, 190, 123, 0.1), rgba(255, 255, 255, 0.03)),
        linear-gradient(145deg, rgba(14, 21, 31, 0.96), rgba(10, 16, 23, 0.94));
}

.architecture-shell {
    padding: 1rem;
    border-radius: var(--radius-xl);
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1rem;
}

.architecture-nav {
    display: grid;
    gap: 0.75rem;
}

.architecture-tab {
    min-height: 64px;
    text-align: left;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.architecture-tab:hover,
.architecture-tab:focus-visible {
    transform: translateY(-1px);
    color: var(--text);
    outline: none;
}

.architecture-tab.is-active {
    color: var(--text);
    border-color: var(--line-strong);
    background: linear-gradient(145deg, rgba(226, 190, 123, 0.14), rgba(255, 255, 255, 0.04));
}

.architecture-panel {
    padding: 1.4rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.architecture-panel h3 {
    max-width: 24ch;
    margin-bottom: 0.9rem;
    font-size: clamp(1.4rem, 2.7vw, 2.25rem);
}

.architecture-points {
    margin-top: 1.25rem;
}

.architecture-stats {
    margin-top: 1.4rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.architecture-stats article {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.architecture-stats p {
    font-size: 0.84rem;
}

.architecture-stats strong {
    display: block;
    margin-top: 0.4rem;
    color: var(--text);
    line-height: 1.45;
}

.launch-card h2 {
    margin-bottom: 0.85rem;
}

.launch-links,
.launch-actions {
    margin-top: 1.35rem;
}

.launch-card .launch-links,
.launch-card .launch-actions {
    margin-top: auto;
}

.launch-link {
    flex: 1;
    min-width: 220px;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    transition: transform 160ms ease, border-color 160ms ease;
}

.launch-link:hover,
.launch-link:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(226, 190, 123, 0.24);
    outline: none;
}

.launch-link span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
}

.launch-link strong {
    display: block;
    margin-top: 0.35rem;
    color: var(--text);
    font-size: 1.05rem;
}

.launch-notes {
    margin: 1.25rem 0 0;
    padding-left: 1.2rem;
    color: var(--muted);
}

.launch-notes li + li {
    margin-top: 0.7rem;
}

.site-footer {
    padding: 1.3rem 0 2.2rem;
}

.footer-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-shell strong {
    display: block;
    margin-bottom: 0.3rem;
}

.footer-shell a {
    color: var(--gold-soft);
    text-decoration: none;
}

.smart-login-page {
    min-height: 100vh;
}

.smart-login-main {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1.2rem;
}

.smart-login-card {
    width: min(560px, 100%);
    padding: 2rem;
    border-radius: 30px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    text-align: center;
}

.smart-login-brand {
    justify-content: center;
    margin-bottom: 1.5rem;
}

.smart-login-orbit {
    position: relative;
    width: 94px;
    height: 94px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    border: 1px solid rgba(226, 190, 123, 0.16);
    background: radial-gradient(circle at center, rgba(226, 190, 123, 0.16), rgba(255, 255, 255, 0.02));
}

.smart-login-orbit span {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid transparent;
    border-top-color: rgba(226, 190, 123, 0.65);
    animation: smart-login-spin 1.8s linear infinite;
}

.smart-login-orbit span:nth-child(2) {
    inset: 8px;
    border-top-color: rgba(155, 200, 255, 0.7);
    animation-duration: 1.35s;
    animation-direction: reverse;
}

.smart-login-orbit span:nth-child(3) {
    inset: 18px;
    border-top-color: rgba(255, 255, 255, 0.58);
    animation-duration: 1.05s;
}

.smart-login-card h1 {
    max-width: none;
    font-size: clamp(2rem, 4vw, 3rem);
}

.smart-login-text {
    margin-top: 1rem;
}

.smart-login-status {
    margin-top: 1.5rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.smart-login-status strong,
.smart-login-status span {
    display: block;
}

.smart-login-status strong {
    color: var(--text);
    margin-bottom: 0.35rem;
}

.smart-login-status span {
    color: var(--gold-soft);
    word-break: break-word;
}

.smart-login-actions {
    margin-top: 1.4rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.smart-login-note {
    margin-top: 1rem;
    font-size: 0.92rem;
}

@keyframes smart-login-spin {
    to {
        transform: rotate(360deg);
    }
}

body[dir="rtl"] {
    text-align: right;
}

body[dir="rtl"] .nav-shell,
body[dir="rtl"] .hero-actions,
body[dir="rtl"] .hero-pills,
body[dir="rtl"] .launch-links,
body[dir="rtl"] .launch-actions,
body[dir="rtl"] .footer-shell {
    direction: rtl;
}

body[dir="rtl"] .main-nav {
    margin-left: 0;
    margin-right: auto;
}

body[dir="rtl"] .shell-topbar p {
    margin-left: 0;
    margin-right: 0.5rem;
}

body[dir="rtl"] .shell-body {
    grid-template-columns: 1fr 220px;
}

body[dir="rtl"] .shell-sidebar {
    border-right: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

body[dir="rtl"] .bubble-in {
    justify-self: end;
}

body[dir="rtl"] .bubble-out {
    justify-self: start;
}

body[dir="rtl"] .architecture-tab,
body[dir="rtl"] .launch-link,
body[dir="rtl"] .security-list,
body[dir="rtl"] .launch-notes {
    text-align: right;
}

body[dir="rtl"] .smart-login-card {
    text-align: right;
}

body[dir="rtl"] .smart-login-brand,
body[dir="rtl"] .smart-login-actions {
    justify-content: center;
}

body[dir="rtl"] .security-list,
body[dir="rtl"] .launch-notes {
    padding-left: 0;
    padding-right: 1.15rem;
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes drift {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(18px, 24px, 0) scale(1.08);
    }
}

@media (max-width: 1080px) {
    .hero-grid,
    .experience-grid,
    .launch-grid,
    .architecture-shell,
    .capability-grid,
    .security-grid {
        grid-template-columns: 1fr;
    }

    .shell-body {
        grid-template-columns: 1fr;
    }

    .shell-sidebar {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .float-card-a {
        left: 1rem;
    }

    .float-card-b {
        right: 1rem;
    }
}

@media (max-width: 860px) {
    .main-nav {
        position: absolute;
        top: calc(100% + 0.7rem);
        left: 1.2rem;
        right: 1.2rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 0.85rem;
        border-radius: 22px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(7, 12, 18, 0.96);
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 0.8rem 0.9rem;
    }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .nav-cta {
        display: none;
    }
}

@media (max-width: 720px) {
    .section {
        padding: 4rem 0;
    }

    .hero {
        padding-top: 2rem;
    }

    h1 {
        max-width: none;
    }

    .hero-metrics,
    .architecture-stats {
        grid-template-columns: 1fr;
    }

    .float-card {
        position: static;
        width: 100%;
        margin-top: 1rem;
    }

    .device-shell {
        border-radius: 28px;
    }

    .shell-chat,
    .shell-sidebar,
    .architecture-panel,
    .capability-card,
    .glass-panel,
    .launch-card {
        padding: 1.05rem;
    }

    .footer-shell {
        flex-direction: column;
        align-items: flex-start;
    }

    body[dir="rtl"] .shell-body {
        grid-template-columns: 1fr;
    }

    body[dir="rtl"] .shell-sidebar {
        border-left: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
}
