@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap");

:root {
  --font-display: "Vazirmatn", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Vazirmatn", ui-sans-serif, system-ui, sans-serif;
  --radius: 0.5rem;
  --radius-xl: 1rem;
  --shadow-nav: 0 10px 30px -12px rgba(15, 15, 25, 0.18);
}

[data-theme="light"],
:root[data-theme="system"] {
  color-scheme: light;
  --surface: #ffffff;
  --surface-muted: #f8f8fb;
  --surface-hover: #f1f1f5;
  --surface-strong: #e6e6ee;
  --line: #e6e6ee;
  --line-strong: #d4d4de;
  --ink: #111118;
  --ink-muted: #3a3a48;
  --ink-subtle: #5c5c6e;
  --ink-faint: #7a7a8c;
  --ink-dim: #9a9aab;
  --brand: #c2185b;
  --brand-hover: #a9144e;
  --brand-solid: #c2185b;
  --brand-solid-hover: #a9144e;
  --brand-subtle: #fce7f0;
  --brand-subtle-ink: #9d174d;
  --wordmark: #c2185b;
  --space-deep: #1a0812;
  --space-mid: #3a1028;
  --space-nebula: rgba(194, 24, 91, 0.28);
  --card: #ffffff;
  --search-bg: #ffffff;
  --overlay: rgba(10, 8, 16, 0.5);
  --tag-bg: #fce7f0;
  --tag-ink: #9d174d;
  --footer-ink: rgba(255, 255, 255, 0.9);
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    color-scheme: dark;
    --surface: #15151e;
    --surface-muted: #101017;
    --surface-hover: #1f1f2b;
    --surface-strong: #2a2a3a;
    --line: #2c2c3c;
    --line-strong: #3c3c50;
    --ink: #f1f1f6;
    --ink-muted: #c4c4d2;
    --ink-subtle: #a6a6b8;
    --ink-faint: #8b8b9d;
    --ink-dim: #858597;
    --brand: #f472b6;
    --brand-hover: #f9a8d4;
    --brand-solid: #db2777;
    --brand-solid-hover: #e11d74;
    --brand-subtle: #3b1024;
    --brand-subtle-ink: #f9a8d4;
    --wordmark: #ffffff;
    --space-deep: #0b0508;
    --space-mid: #1d0b14;
    --space-nebula: rgba(219, 39, 119, 0.22);
    --card: #15151e;
    --search-bg: #15151e;
    --overlay: rgba(0, 0, 0, 0.62);
    --tag-bg: #3b1024;
    --tag-ink: #f9a8d4;
    --footer-ink: rgba(255, 255, 255, 0.9);
  }
}

[data-theme="dark"] {
  color-scheme: dark;
  --surface: #15151e;
  --surface-muted: #101017;
  --surface-hover: #1f1f2b;
  --surface-strong: #2a2a3a;
  --line: #2c2c3c;
  --line-strong: #3c3c50;
  --ink: #f1f1f6;
  --ink-muted: #c4c4d2;
  --ink-subtle: #a6a6b8;
  --ink-faint: #8b8b9d;
  --ink-dim: #858597;
  --brand: #f472b6;
  --brand-hover: #f9a8d4;
  --brand-solid: #db2777;
  --brand-solid-hover: #e11d74;
  --brand-subtle: #3b1024;
  --brand-subtle-ink: #f9a8d4;
  --wordmark: #ffffff;
  --space-deep: #0b0508;
  --space-mid: #1d0b14;
  --space-nebula: rgba(219, 39, 119, 0.22);
  --card: #15151e;
  --search-bg: #15151e;
  --overlay: rgba(0, 0, 0, 0.62);
  --tag-bg: #3b1024;
  --tag-ink: #f9a8d4;
  --footer-ink: rgba(255, 255, 255, 0.9);
}

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

html,
body {
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

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

button,
input {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

body.cursor-on,
body.cursor-on * {
  cursor: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.35;
}

.title {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
}

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  padding: 1rem 1.5rem;
}

@media (min-width: 768px) {
  .nav {
    padding: 1.25rem 2rem;
  }
}

@media (min-width: 1280px) {
  .nav {
    padding: 1.25rem 4rem;
  }
}

.nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 1rem;
  box-shadow: var(--shadow-nav);
}

@media (min-width: 768px) {
  .nav-inner {
    padding: 0.6rem 1.15rem;
  }
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--wordmark);
}

.logo:hover {
  opacity: 0.82;
}

.logo-mark,
.logo-mark-img {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  object-fit: contain;
}

.logo-mark-img.light {
  display: none;
}

.footer-credit a {
  color: #fff;
  font-weight: 700;
}

.footer-credit a:hover {
  text-decoration: underline;
}

.lang-toggle {
  display: none;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  height: 34px;
}

.lang-toggle button {
  padding: 0 0.7rem;
  height: 100%;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--ink-subtle);
}

.lang-toggle button.is-active {
  background: var(--brand-solid);
  color: #fff;
}

@media (min-width: 1024px) {
  .lang-toggle {
    display: inline-flex;
  }
}

.icon-btn.lion-link svg,
.icon-btn.lion-link img {
  width: 22px;
  height: 22px;
}

.logo-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.logo-badge {
  position: absolute;
  inset-inline-end: 0;
  bottom: -0.7rem;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid var(--surface);
  background: var(--brand-solid);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  padding: 2px 6px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.15rem;
}

.nav-links a {
  font-size: 1rem;
  color: color-mix(in srgb, var(--ink) 90%, transparent);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
  .nav-left {
    gap: 1.5rem;
  }
}

.icon-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  color: var(--brand);
}

.icon-btn:hover {
  background: var(--surface-hover);
  color: var(--brand-hover);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

@media (min-width: 1024px) {
  .icon-btn {
    display: inline-flex;
  }
}

.theme-wrap {
  position: relative;
  display: none;
}

@media (min-width: 1024px) {
  .theme-wrap {
    display: block;
  }
}

.theme-panel {
  display: none;
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 0.45rem);
  width: 11.4rem;
  padding: 0.45rem 0.45rem 0.5rem;
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line));
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 1rem;
  box-shadow:
    0 18px 40px -20px rgba(194, 24, 91, 0.45),
    0 0 0 1px color-mix(in srgb, var(--brand) 8%, transparent);
  z-index: 50;
}

.theme-wrap.open .theme-panel {
  display: block;
}

.theme-panel p {
  padding: 0.1rem 0.3rem 0.4rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.theme-choices {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.3rem;
}

.theme-option {
  width: auto;
  min-height: 3.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  padding: 0.4rem 0.15rem 0.35rem;
  border-radius: 0.7rem;
  border: 1px solid transparent;
  color: var(--ink-subtle);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.2;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.theme-option svg {
  width: 15px;
  height: 15px;
}

.theme-option:hover {
  background: var(--surface-hover);
  color: var(--ink);
  transform: translateY(-1px);
}

.theme-option.is-active {
  background: var(--brand-solid);
  border-color: var(--brand-solid);
  color: #fff;
  box-shadow: 0 8px 16px -10px var(--brand-solid);
}

.btn-open {
  display: none;
  margin-inline-start: 0.35rem;
  white-space: nowrap;
  border-radius: 0.75rem;
  background: var(--brand-solid);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  box-shadow: 0 10px 20px -12px color-mix(in srgb, var(--brand-solid) 80%, #000);
}

.btn-open:hover {
  background: var(--brand-solid-hover);
}

@media (min-width: 1024px) {
  .btn-open {
    display: inline-flex;
    align-items: center;
  }
}

@media (min-width: 1280px) {
  .btn-open {
    padding: 0.7rem 1.4rem;
    font-size: 1rem;
  }
}

.burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  color: var(--ink);
}

.burger:hover {
  background: var(--surface-hover);
}

@media (min-width: 1024px) {
  .burger {
    display: none;
  }
}

.mobile-menu {
  display: none;
  max-width: 80rem;
  margin: 0.6rem auto 0;
  padding: 0.75rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 1rem;
  box-shadow: var(--shadow-nav);
}

.mobile-menu.open {
  display: grid;
  gap: 0.25rem;
}

.mobile-menu a,
.mobile-menu button.menu-link {
  display: block;
  width: 100%;
  text-align: start;
  padding: 0.7rem 0.85rem;
  border-radius: 0.6rem;
  color: var(--ink);
}

.mobile-menu a:hover,
.mobile-menu button.menu-link:hover {
  background: var(--surface-hover);
}

.mobile-cta {
  margin-top: 0.4rem;
  text-align: center;
  border-radius: 0.75rem;
  background: var(--brand-solid);
  color: #fff !important;
  font-weight: 600;
}

.page {
  min-height: 100vh;
  padding: 11rem 1.5rem 4rem;
}

@media (min-width: 768px) {
  .page {
    padding: 13.5rem 3rem 4rem;
  }
}

@media (min-width: 1024px) {
  .page {
    padding: 13.5rem 4rem 4rem;
  }
}

.wrap {
  max-width: 64rem;
  margin: 0 auto;
}

.blog-head {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2.4rem;
}

@media (min-width: 1024px) {
  .blog-head {
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: end;
  }
}

.blog-head h1 {
  font-size: 2.25rem;
  color: var(--ink);
}

@media (min-width: 768px) {
  .blog-head h1 {
    font-size: 3rem;
  }
}

.blog-head .lede {
  margin-top: 1.15rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink-subtle);
  max-width: 40rem;
}

.feeds {
  border: 1px solid var(--line);
  background: var(--surface-muted);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
}

.feeds h2 {
  font-size: 0.875rem;
  font-weight: 600;
}

.feeds-list {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feeds a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
}

.feeds a:hover {
  color: var(--brand-hover);
}

.feeds svg {
  width: 16px;
  height: 16px;
}

.toolbar {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .toolbar {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
}

.search {
  display: flex;
  min-height: 3.5rem;
  align-items: stretch;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--search-bg);
  padding: 0.35rem;
  box-shadow: 0 18px 40px -24px rgba(17, 17, 24, 0.35);
}

.search:focus-within {
  border-color: var(--line-strong);
}

.search-icon {
  display: flex;
  align-items: center;
  padding: 0 0.7rem 0 0.75rem;
  color: var(--brand);
}

.search-icon svg {
  width: 20px;
  height: 20px;
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-weight: 500;
  font-size: 1rem;
}

.search input::placeholder {
  color: var(--ink-dim);
}

.search button {
  min-width: 6rem;
  border-radius: var(--radius);
  background: var(--brand-solid);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0 1.2rem;
}

.search button:hover {
  background: var(--brand-solid-hover);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 1024px) {
  .tags {
    justify-content: flex-end;
  }
}

.tag {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
}

.tag:hover {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  color: var(--brand);
}

.tag.is-active {
  background: var(--brand-solid);
  border-color: var(--brand-solid);
  color: #fff;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 1.4rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 1.85rem;
  }
}

.grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  transition: border-color 0.15s ease;
}

.card:hover {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
}

.card.hidden {
  display: none;
}

.card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-muted);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.card:hover .card-image img {
  transform: scale(1.03);
}

.card-body {
  padding: 1.2rem 1.25rem 1.3rem;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  color: var(--ink-faint);
}

.chip {
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--tag-ink);
  font-weight: 500;
  padding: 0.22rem 0.6rem;
}

.chip.product {
  background: #fff4d6;
  color: #92400e;
}

.chip.engineering {
  background: #e8f0ff;
  color: #1e3a8a;
}

[data-theme="dark"] .chip.product {
  background: #3a2a10;
  color: #fbbf24;
}

[data-theme="dark"] .chip.engineering {
  background: #152038;
  color: #93c5fd;
}

@media (prefers-color-scheme: dark) {
  [data-theme="system"] .chip.product {
    background: #3a2a10;
    color: #fbbf24;
  }
  [data-theme="system"] .chip.engineering {
    background: #152038;
    color: #93c5fd;
  }
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  transition: color 0.15s ease;
}

.card:hover h3 {
  color: var(--brand);
}

.card p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--ink-subtle);
}

.read-more {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
}

.read-more svg {
  width: 14px;
  height: 14px;
}

.empty {
  display: none;
  grid-column: 1 / -1;
  padding: 3rem 1rem;
  text-align: center;
  color: var(--ink-subtle);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.empty.show {
  display: block;
}

.article {
  max-width: 48rem;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.6rem;
  color: var(--brand);
  font-weight: 600;
  font-size: 0.95rem;
}

.back:hover {
  color: var(--brand-hover);
}

.article h1 {
  font-size: 2.1rem;
  margin: 0.8rem 0 1rem;
}

@media (min-width: 768px) {
  .article h1 {
    font-size: 2.75rem;
  }
}

.article-hero {
  margin: 1.6rem 0 2rem;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--line);
}

.article-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.prose {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-muted);
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1.15rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin: 2.2rem 0 0.8rem;
}

.prose h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 650;
  color: var(--ink);
  margin: 1.6rem 0 0.55rem;
}

.prose a {
  color: var(--brand);
  font-weight: 600;
}

.prose a:hover {
  text-decoration: underline;
}

.prose ul,
.prose ol {
  padding-inline-start: 1.25rem;
}

.prose li {
  margin: 0.35rem 0;
}

.prose blockquote {
  margin: 1.4rem 0;
  padding: 0.2rem 1rem 0.2rem 0;
  border-inline-start: 3px solid var(--brand-solid);
  color: var(--ink);
}

.callout {
  display: block;
  margin: 1.4rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface-muted);
}

.callout strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ink);
}

.hero-simple {
  max-width: 44rem;
}

.hero-simple h1 {
  font-size: 2.5rem;
}

@media (min-width: 768px) {
  .hero-simple h1 {
    font-size: 3.4rem;
  }
}

.hero-simple p {
  margin-top: 1rem;
  font-size: 1.15rem;
  color: var(--ink-subtle);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  font-weight: 600;
  padding: 0.75rem 1.2rem;
}

.btn-primary {
  background: var(--brand-solid);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-solid-hover);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: var(--surface);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.feature-grid {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.feature {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.2rem 1.25rem;
  background: var(--surface-muted);
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.feature p {
  color: var(--ink-subtle);
  font-size: 0.95rem;
}

.footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 380px at 20% -10%, var(--space-nebula), transparent 60%),
    radial-gradient(700px 320px at 90% 10%, rgba(124, 77, 255, 0.16), transparent 55%),
    linear-gradient(180deg, var(--space-mid), var(--space-deep));
  color: #fff;
  padding: 4rem 1.5rem 2rem;
}

.footer::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 8% 18%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 22% 72%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1.5px 1.5px at 40% 30%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 58% 80%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 73% 22%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1.5px 1.5px at 88% 64%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 15% 48%, rgba(255, 255, 255, 0.25), transparent);
  opacity: 0.85;
}

.footer-inner {
  position: relative;
  max-width: 80rem;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  gap: 2.4rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1.1fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  color: #fff;
}

.footer-brand .logo-word {
  font-size: 1.6rem;
}

.footer-brand p {
  margin-top: 0.8rem;
  max-width: 18rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
  line-height: 1.8;
}

.footer h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.footer ul {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.footer li a,
.footer li button {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

.footer li a:hover,
.footer li button:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  position: relative;
  margin-top: 3rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

@media (min-width: 1024px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.theme-switch button {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
  font-weight: 700;
}

.theme-switch button svg {
  width: 13px;
  height: 13px;
}

.theme-switch button:hover {
  color: #fff;
}

.theme-switch button.is-active {
  background: #fff;
  color: var(--brand-solid);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay);
}

.modal-card {
  position: relative;
  width: min(760px, 100%);
  max-height: min(80vh, 720px);
  overflow: auto;
  background: var(--surface);
  color: var(--ink);
  border-radius: 1rem;
  border: 1px solid var(--line);
  padding: 1.4rem 1.3rem 1.5rem;
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.45);
}

.modal-card h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
}

.modal-card .hint {
  color: var(--ink-subtle);
  margin-bottom: 1.1rem;
  font-size: 0.95rem;
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}

@media (min-width: 640px) {
  .lang-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.lang {
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 2px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.9rem;
  text-align: center;
}

.lang:hover,
.lang.is-active {
  border-color: var(--brand);
  background: var(--surface-muted);
}

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

.lang .name {
  font-weight: 600;
  font-size: 0.875rem;
}

.lang .en {
  font-size: 0.75rem;
  color: var(--ink-faint);
}

.modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  color: var(--ink-subtle);
}

.modal-close:hover {
  background: var(--surface-hover);
  color: var(--ink);
}

body.modal-open {
  overflow: hidden;
}

.cursor-dot,
.cursor-ring {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: #fb7185;
  box-shadow: 0 0 16px #fb7185;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(251, 113, 133, 0.55);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

body.cursor-on a:hover ~ .cursor-ring,
body.is-pointer .cursor-ring {
  width: 56px;
  height: 56px;
  background: rgba(251, 113, 133, 0.08);
  border-color: rgba(251, 113, 133, 0.9);
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}

.site-toast {
  position: fixed;
  inset-inline: 0;
  bottom: 1.4rem;
  z-index: 220;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 1rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.site-toast.show {
  opacity: 1;
  transform: none;
}

.site-toast span {
  max-width: 28rem;
  background: #1a0812;
  color: #fff;
  border: 1px solid rgba(251, 113, 133, 0.45);
  box-shadow: 0 18px 40px -18px rgba(194, 24, 91, 0.7);
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.5;
}

[dir="rtl"] .read-more svg,
[dir="rtl"] .back-arrow {
  transform: scaleX(-1);
}

[dir="rtl"] .logo-word {
  letter-spacing: 0;
}

.theme-panel p {
  letter-spacing: 0.04em;
}
