:root {
  --bg-0: #07111f;
  --bg-1: #0d1a2d;
  --bg-2: #13243e;
  --panel: rgba(13, 26, 45, 0.82);
  --panel-soft: rgba(255, 255, 255, 0.05);
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(148, 163, 184, 0.28);
  --text: #ecf4ff;
  --muted: #9fb2cc;
  --accent: #40bfff;
  --accent-strong: #0ea5e9;
  --accent-warm: #ffb761;
  --success: #8ef0c7;
  --shadow: 0 28px 70px -24px rgba(0, 0, 0, 0.55);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --font-brand: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-base);
  background:
    radial-gradient(circle at 0% 0%, rgba(64, 191, 255, 0.15), transparent 24%),
    radial-gradient(circle at 100% 0%, rgba(255, 183, 97, 0.12), transparent 20%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 46%, #08101c 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

main,
section,
article,
nav,
header,
footer {
  display: block;
}

a {
  color: inherit;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.top-strip {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  background: rgba(7, 17, 31, 0.82);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.top-strip-inner {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-copy {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

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

.site-nav {
  padding: 18px 0 8px;
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-radius: 999px;
  background: rgba(10, 21, 37, 0.66);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #10213b, #091220);
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 28px rgba(64, 191, 255, 0.18);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
}

.brand-mark::before {
  inset: 9px;
  border-radius: 14px;
  border: 2px solid rgba(140, 210, 255, 0.76);
}

.brand-mark::after {
  width: 16px;
  height: 16px;
  left: 16px;
  top: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff2d1, var(--accent-warm));
  box-shadow: 0 0 18px rgba(255, 183, 97, 0.34);
}

.brand-copy strong {
  display: block;
  margin: 0;
  font-family: var(--font-brand);
  font-size: 22px;
  letter-spacing: -0.03em;
}

.brand-copy span {
  display: block;
  margin-top: 4px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.site-nav-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.nav-links a {
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  border-color: var(--line);
  background: var(--panel-soft);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.language-switcher-list,
.translation-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.language-chip,
.translation-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  text-decoration: none;
  transition: 0.2s ease;
}

.language-chip:hover,
.language-chip:focus-visible,
.translation-chip:hover,
.translation-chip:focus-visible {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
}

.language-chip.active,
.translation-chip.active {
  color: #04101c;
  border-color: transparent;
  background: linear-gradient(135deg, #9ee6ff, var(--accent));
  box-shadow: 0 18px 34px -24px rgba(64, 191, 255, 0.9);
}

.language-chip {
  width: 42px;
  padding: 0;
}

.language-chip-flag {
  font-size: 18px;
  line-height: 1;
}

.language-chip-code,
.translation-code {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.translation-panel {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.translation-copy {
  max-width: 360px;
}

.translation-copy strong {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.translation-copy span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.translation-links {
  justify-content: flex-end;
}

.translation-chip {
  min-height: 38px;
  padding: 0 14px;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.hero {
  padding: 44px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 28px;
  align-items: center;
}

.hero-copy,
.hero-visual,
.info-card,
.article-card,
.faq-item,
.cta-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.hero-copy,
.hero-visual {
  padding: 28px;
  border-radius: var(--radius-xl);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.82fr);
  gap: 28px;
  align-items: stretch;
}

.hero-panel-main,
.hero-inline-media {
  min-width: 0;
}

.hero-panel-main {
  display: flex;
  flex-direction: column;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.24em;
}

.hero-copy h1,
.section-head h2,
.article-card h2,
.faq-item h3,
.cta-panel h2 {
  margin: 0;
  font-family: var(--font-brand);
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  font-size: clamp(40px, 6vw, 66px);
  line-height: 0.98;
}

.hero-copy p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions,
.hero-points,
.meta-list,
.quick-links,
.card-grid,
.article-grid,
.faq-grid,
.cta-actions,
.screenshot-grid,
.preset-grid {
  display: grid;
}

.hero-actions {
  margin-top: 24px;
  grid-template-columns: repeat(2, max-content);
  gap: 12px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.2s ease;
}

.button-link.primary {
  color: #04101c;
  background: linear-gradient(135deg, #9ee6ff, var(--accent));
}

.button-link.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}

.button-link:hover,
.button-link:focus-visible {
  transform: translateY(-2px);
}

.hero-points {
  margin-top: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.point-chip {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: var(--muted);
  font-size: 14px;
}

.point-chip strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.hero-visual figure,
.shot-card figure {
  margin: 0;
}

.hero-inline-media {
  display: flex;
  align-items: center;
  align-self: stretch;
}

.hero-inline-media figure {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 14px;
  border-radius: calc(var(--radius-xl) - 6px);
  border: 1px solid rgba(148, 163, 184, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    linear-gradient(145deg, rgba(9, 18, 32, 0.76), rgba(14, 28, 48, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-visual img,
.shot-card img {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-inline-media img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-caption,
.shot-card figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.hero-media-meta {
  margin-top: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section {
  padding: 28px 0;
}

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

.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.section-head p,
.article-card p,
.faq-item p,
.cta-panel p,
.info-card p,
.preset-card p {
  color: var(--muted);
  line-height: 1.65;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.info-card,
.preset-card,
.shot-card {
  padding: 22px;
  border-radius: var(--radius-lg);
}

.info-card h3,
.preset-card h3,
.shot-card h3 {
  margin: 0;
  font-size: 20px;
}

.meta-list,
.quick-links {
  gap: 10px;
  margin-top: 14px;
}

.meta-list span,
.quick-links a {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--muted);
  text-decoration: none;
}

.quick-links a:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.screenshot-grid,
.article-grid,
.preset-grid,
.faq-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.shot-card,
.article-card,
.faq-item,
.cta-panel {
  border-radius: var(--radius-lg);
}

.article-card,
.faq-item,
.cta-panel {
  padding: 24px;
}

.article-card h2,
.cta-panel h2 {
  font-size: 30px;
}

.article-card ul,
.faq-item ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.faq-item h3 {
  font-size: 21px;
}

.preset-card strong {
  color: var(--success);
}

.cta-panel {
  text-align: center;
}

.cta-actions {
  grid-template-columns: repeat(2, max-content);
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.footer {
  padding: 26px 0 46px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

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

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

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

@media (max-width: 980px) {
  .site-nav-inner,
  .footer-inner {
    border-radius: 26px;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-grid,
  .card-grid,
  .screenshot-grid,
  .article-grid,
  .preset-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .cta-actions {
    grid-template-columns: 1fr;
  }

  .hero-points {
    grid-template-columns: 1fr;
  }

  .site-nav-tools,
  .translation-panel,
  .translation-links {
    width: 100%;
  }

  .site-nav-tools,
  .translation-panel {
    justify-content: flex-start;
  }

  .translation-panel {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 20px, 1180px);
  }

  .top-strip-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 0;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-copy,
  .hero-visual,
  .info-card,
  .article-card,
  .faq-item,
  .shot-card,
  .preset-card,
  .cta-panel {
    padding: 20px;
  }

  .hero-panel {
    gap: 20px;
  }

  .hero-inline-media figure {
    padding: 10px;
  }

  .hero-inline-media img {
    min-height: 0;
  }

  .hero-media-meta {
    grid-template-columns: 1fr;
  }

  .language-switcher {
    width: 100%;
    justify-content: center;
    border-radius: 24px;
  }
}

html[dir="rtl"] body {
  direction: rtl;
}

html[dir="rtl"] .top-strip-inner,
html[dir="rtl"] .site-nav-inner,
html[dir="rtl"] .footer-inner {
  flex-direction: row-reverse;
}

html[dir="rtl"] .brand {
  flex-direction: row-reverse;
}

html[dir="rtl"] .nav-links,
html[dir="rtl"] .footer-links,
html[dir="rtl"] .meta-list,
html[dir="rtl"] .quick-links,
html[dir="rtl"] .translation-links {
  justify-content: flex-start;
}

html[dir="rtl"] .hero-copy,
html[dir="rtl"] .hero-visual,
html[dir="rtl"] .section-head,
html[dir="rtl"] .info-card,
html[dir="rtl"] .article-card,
html[dir="rtl"] .faq-item,
html[dir="rtl"] .footer,
html[dir="rtl"] .top-copy,
html[dir="rtl"] .translation-panel {
  text-align: right;
}

html[dir="rtl"] .article-card ul,
html[dir="rtl"] .faq-item ul {
  padding-left: 0;
  padding-right: 18px;
}

html[dir="rtl"] .hero-panel {
  direction: rtl;
}

html[dir="rtl"] .site-nav-tools,
html[dir="rtl"] .language-switcher {
  flex-direction: row-reverse;
}

@media (max-width: 980px) {
  html[dir="rtl"] .site-nav-inner,
  html[dir="rtl"] .footer-inner {
    align-items: flex-end;
  }
}

.section-tight {
  padding-top: 12px;
}

.intro-panel {
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(17, 34, 58, 0.92), rgba(10, 21, 37, 0.82));
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.intro-panel h2 {
  margin: 0;
  font-family: var(--font-brand);
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
}

.intro-panel p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.keyword-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 720px) {
  .intro-panel {
    padding: 20px;
  }
}
html[dir="rtl"] .intro-panel {
  text-align: right;
}

html[dir="rtl"] .keyword-list {
  justify-content: flex-start;
}
