/* ============================================================
   Qalam FX — plugin introduction page
   ============================================================ */
:root {
  --bg: #0b1220;
  --surface: #121c2e;
  --surface-2: #1a2740;
  --surface-3: #223252;
  --line: rgba(201, 162, 39, 0.16);
  --line-soft: rgba(139, 150, 168, 0.14);

  --gold: #c9a227;
  --gold-bright: #e4c55c;
  --gold-dim: #7a621c;

  --text: #eef1f6;
  --text-muted: #8b96a8;
  --text-faint: rgba(139, 150, 168, 0.6);

  --success: #5fae82;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  /* Arabic body/UI copy on this page uses Noto Sans Arabic, matching
     the font used inside the plugin itself (see screenshots) and the
     font DaVinci Resolve renders the animated titles/cursor with. */
  --font-arabic: 'Noto Sans Arabic', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --font-ui: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

::selection {
  background: rgba(201, 162, 39, 0.35);
  color: var(--text);
}

body {
  background-image:
    radial-gradient(900px 380px at 8% -8%, rgba(201, 162, 39, 0.09), transparent 55%),
    radial-gradient(700px 340px at 100% 4%, rgba(34, 50, 82, 0.55), transparent 55%);
}

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 20px 40px;
}

a {
  color: inherit;
}

/* ---------- Top nav / breadcrumb ---------- */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 34px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.top-nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.01em;
}

.top-nav .brand img {
  width: 22px;
  height: 22px;
}

.top-nav .crumb-sep {
  color: var(--text-faint);
}

.top-nav .crumb-current {
  color: var(--text-muted);
}

.top-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-nav .nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.top-nav .nav-links a:hover {
  color: var(--gold-bright);
}

@media (max-width: 640px) {
  .top-nav .nav-links {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 32px;
}

.eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
}

.hero-stage {
  position: relative;
  isolation: isolate;
  text-align: center;
}

.hero-glow {
  position: absolute;
  inset: -46px -24px;
  background: radial-gradient(ellipse at center, rgba(201, 162, 39, 0.24), transparent 65%);
  filter: blur(34px);
  z-index: -1;
  pointer-events: none;
  animation: hero-glow-pulse 7.5s ease-in-out infinite;
}

@keyframes hero-glow-pulse {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-glow {
    animation: none;
    opacity: 0.7;
  }
}

.hero-title {
  position: relative;
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  line-height: 1.5;
  letter-spacing: 0.002em;
  margin: 0 0 14px;
  color: var(--gold-bright);
  text-align: center;
  direction: rtl;
  unicode-bidi: plaintext;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.35));
}

.hero-subtitle {
  font-family: var(--font-ui);
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 22px;
}

.hero-subtitle strong {
  color: var(--text);
  font-weight: 600;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 26px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 6px 13px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}

.badge.badge-gold {
  border-color: rgba(201, 162, 39, 0.35);
  color: var(--gold-bright);
}

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

.btn-primary-lg {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: var(--bg);
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px 26px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 18px -6px rgba(201, 162, 39, 0.5);
  transition: filter 0.15s var(--ease), transform 0.08s var(--ease), box-shadow 0.15s var(--ease);
}

.btn-primary-lg:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -8px rgba(201, 162, 39, 0.6);
}

.btn-primary-lg:active {
  transform: translateY(1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 13px 24px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.15s var(--ease), transform 0.08s var(--ease), color 0.15s var(--ease);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  transform: translateY(-1px);
}

.btn-outline-sm {
  padding: 9px 16px;
  font-size: 13px;
}

/* ---------- Section scaffolding ---------- */
.section {
  margin-bottom: 44px;
}

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

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 8px;
}

.section-title {
  font-family: var(--font-ui);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}

.section-desc {
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0;
}

/* ---------- Panels (shared with the web tool) ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.panel:hover {
  border-color: rgba(201, 162, 39, 0.28);
}

/* ---------- Demo video panel ---------- */
.demo-panel {
  padding: 0;
  overflow: hidden;
}

.demo-frame {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
}

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

.demo-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
}

.demo-caption .chip-icon {
  color: var(--gold);
}

/* ---------- Tab switcher (mirrors the plugin's own Kashida / Typewriter tabs) ---------- */
.tab-switch {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.tab-switch .btn-chip {
  flex: 1;
  justify-content: center;
  padding: 12px 16px;
  font-size: 13px;
}

.btn-chip {
  background: var(--surface-3);
  color: var(--text);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
  white-space: nowrap;
}

.btn-chip:hover {
  border-color: var(--gold-dim);
}

.btn-chip.is-active {
  background: var(--gold-dim);
  border-color: var(--gold);
}

.chip-icon {
  font-size: 13px;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
  animation: panel-rise 0.4s var(--ease) both;
}

@keyframes panel-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

@media (prefers-reduced-motion: reduce) {
  .tab-panel.is-active {
    animation: none;
  }
}

/* ---------- Screenshot showcase ---------- */
.shot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 860px) {
  .shot-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.shot-figure {
  margin: 0;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.shot-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--line-soft);
  background: #000;
}

.shot-figure figcaption {
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
  line-height: 1.6;
}

.shot-figure figcaption strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.feature-card:hover {
  border-color: rgba(201, 162, 39, 0.3);
  transform: translateY(-2px);
}

.feature-card .feature-icon {
  font-size: 20px;
  margin-bottom: 10px;
  display: block;
}

.feature-card h3 {
  font-family: var(--font-ui);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--gold-bright);
  margin: 0 0 8px;
}

.feature-card p {
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Preset / spec table ---------- */
.preset-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}

.preset-label-spaced {
  margin-top: 22px;
}

.spec-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
}

table.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 12.5px;
  min-width: 560px;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}

.spec-table thead th {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  background: var(--surface-2);
}

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

.spec-table tbody tr:hover {
  background: var(--surface-2);
}

/* ---------- Install steps ---------- */
.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step-item {
  counter-increment: step;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}

.step-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.step-item:first-child {
  padding-top: 0;
}

.step-item::before {
  content: counter(step);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  background: var(--surface-2);
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-body h3 {
  font-family: var(--font-ui);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  margin: 4px 0 8px;
}

.step-body p {
  font-family: var(--font-ui);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.step-body p:last-child {
  margin-bottom: 0;
}

code {
  font-family: var(--font-mono);
  background: var(--surface-3);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 12.5px;
  color: var(--gold-bright);
  direction: ltr;
  unicode-bidi: isolate;
}

.path-block {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 4px 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  direction: ltr;
  overflow-x: auto;
}

.path-block .os-label {
  display: inline-block;
  min-width: 74px;
  color: var(--gold);
}

/* ---------- Usage list ---------- */
.usage-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.usage-list li {
  position: relative;
  padding-inline-start: 22px;
  font-family: var(--font-ui);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-muted);
}

.usage-list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.usage-list strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Node graph note ---------- */
.node-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-top: 18px;
}

.node-note .chip-icon {
  font-size: 17px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 1px;
}

.node-note p {
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

.node-note code {
  font-size: 11.5px;
}

/* ---------- FAQ / accordion ---------- */
.panel-faq {
  padding: 6px 20px;
}

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

.faq-item:last-child {
  border-bottom: none;
}

.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  text-align: start;
  padding: 16px 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-q:hover {
  color: var(--gold-bright);
}

.faq-q .faq-icon {
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 16px;
  transition: transform 0.2s var(--ease);
  flex-shrink: 0;
}

.faq-item.is-open .faq-q .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s var(--ease);
}

.faq-item.is-open .faq-a {
  max-height: 220px;
}

.faq-a p {
  font-family: var(--font-ui);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0;
  padding: 0 4px 18px;
}

/* ---------- Bottom CTA ---------- */
.cta-panel {
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
}

.cta-panel h2 {
  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}

.cta-panel p {
  font-family: var(--font-ui);
  font-size: 13.5px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 22px;
  line-height: 1.7;
}

/* ---------- Footer (shared) ---------- */
.site-footer {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  color: var(--text-faint);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px 32px;
  margin-bottom: 18px;
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
  max-width: 520px;
}

.footer-tagline {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-tagline img {
  flex-shrink: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 11.5px;
  flex-wrap: wrap;
}

.footer-links a {
  position: relative;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  padding-bottom: 3px;
  transition: color 0.2s var(--ease);
}

.footer-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: right 0.25s var(--ease);
}

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

.footer-links a:hover::after {
  right: 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 24px;
  padding-top: 16px;
  font-size: 11px;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}

.footer-bottom a:hover {
  color: var(--gold-bright);
}

@media (max-width: 640px) {
  .footer-brand {
    flex-direction: column;
    gap: 6px;
  }

  .footer-links {
    gap: 16px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* ---------- Focus states (keyboard accessibility) ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.faq-q:focus-visible {
  outline-offset: -2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .step-item {
    grid-template-columns: 32px 1fr;
  }

  .step-item::before {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .page {
    padding: 28px 14px 26px;
  }

  .panel {
    padding: 18px;
  }

  .hero-glow {
    inset: -30px -12px;
    filter: blur(24px);
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary-lg,
  .btn-outline {
    justify-content: center;
  }

  .tab-switch {
    flex-direction: column;
  }
}

/* Unauthorized Copying Warning (shared with the web tool) */
#ays_tooltip {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: scale(0.96);
}

#ays_tooltip.is-visible {
  opacity: 1;
  transform: scale(1);
}

#ays_tooltip_block {
  max-width: min(90vw, 500px);
  padding: 18px 28px;
  border-radius: 12px;
  background: rgba(20, 20, 20, 0.96);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
  font-size: 15px;
  line-height: 1.5;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#ays_tooltip_block p {
  margin: 0;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  #ays_tooltip {
    transition: none;
  }
}

/*--------------------------------------------------------------
# by: Gamal Nabih |  1LineArt Studio | https://1lineart.com
--------------------------------------------------------------*/
