/* theme.css — Modern Luxury Fintech, Institutional Trust, Crisp & Light */
:root {
  /* Brand colors */
  --brand-1: #20b2aa;        /* Persian Turquoise / Light Sea Green */
  --brand-1-hover: #199c95;
  --brand-2: #003a5c;        /* Deep Royal Navy */
  --brand-2-light: #005282;

  /* Derived contrast tokens (WCAG AA compliant) */
  --brand-1-ink:    #0a656d;  /* 5.2:1 on light */
  --brand-1-wash:   #eef9fb;  /* 6% turquoise tint */
  --brand-1-border: #bce5ea;
  --brand-2-ink:    #00263d;
  --brand-2-wash:   #f0f5f9;
  --brand-2-border: #cbdce8;

  /* Gold accents for precious assets & gold funds */
  --gold-ink:    #825d19;
  --gold-wash:   #fdfaf3;
  --gold-border: #f1e2c4;

  /* Neutral ramp — clean, crisp, premium paper */
  --n-0:   #ffffff;
  --n-50:  #f8fafc;
  --n-100: #f1f5f9;
  --n-200: #e2e8f0;
  --n-300: #cbd5e1;
  --n-400: #94a3b8;
  --n-500: #64748b;
  --n-600: #475569;
  --n-700: #334155;
  --n-800: #1e293b;
  --n-900: #0f172a;

  /* Semantic */
  --success: #0d825f;
  --success-wash: #ecfdf5;
  --success-border: #a7f3d0;
  --warning: #9a6300;
  --danger:  #b91c1c;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 6px -1px rgba(15, 23, 42, 0.06), 0 1px 3px -1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(0, 58, 92, 0.06), 0 4px 10px -2px rgba(0, 58, 92, 0.03);
  --shadow-lg: 0 20px 40px -10px rgba(0, 58, 92, 0.08), 0 8px 16px -4px rgba(0, 58, 92, 0.04);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --surface-bg: #f8fafc;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
}

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

html {
  font-size: 16px;
  background-color: var(--surface-bg);
  color: var(--n-800);
  scroll-behavior: smooth;
  font-synthesis: none;
}

body {
  margin: 0;
  padding: 0;
  direction: rtl;
  text-align: start;
  line-height: 1.8;
  background-color: var(--surface-bg);
  color: var(--n-800);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, p {
  margin-block-start: 0;
}

h1 {
  font-size: 34px;
  line-height: 1.35;
  font-weight: 800;
  color: var(--brand-2-ink);
  margin-block-end: 18px;
  letter-spacing: -0.015em;
}

@media (min-width: 900px) {
  h1 {
    font-size: 40px;
  }
}

h2 {
  font-size: 24px;
  line-height: 1.38;
  font-weight: 700;
  color: var(--brand-2);
  margin-block-end: 14px;
}

h3 {
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--n-900);
  margin-block-end: 10px;
}

p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--n-700);
  margin-block-end: 18px;
  max-width: 68ch;
}

.text-muted {
  color: var(--n-500);
  font-size: 14px;
  line-height: 1.7;
}

/* Header — Crisp, White & Transparent Navbar */
.site-header {
  background-color: #ffffff;
  color: var(--n-900);
  padding-block: 16px;
  border-block-end: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.header-container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--brand-2);
}

.firouzeh-brand-logo {
  height: 32px;
  width: auto;
}

.brand-title {
  font-size: 21px;
  font-weight: 800;
  color: var(--brand-2);
  letter-spacing: -0.01em;
}

.brand-badge {
  font-size: 12px;
  font-weight: 700;
  background-color: var(--brand-1-wash);
  color: var(--brand-1-ink);
  padding-inline: 10px;
  padding-block: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--brand-1-border);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: var(--n-700);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding-inline: 14px;
  padding-block: 8px;
  border-radius: var(--radius-sm);
  transition: all 160ms ease-out;
}

.nav-link:hover {
  color: var(--brand-1-ink);
  background-color: var(--brand-1-wash);
}

/* Main Container */
.main-wrapper {
  flex: 1;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
  padding-block: 40px;
  width: 100%;
}

/* Breadcrumbs */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--n-500);
  margin-block-end: 24px;
}

.breadcrumb-nav a {
  color: var(--brand-1-ink);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb-nav a:hover {
  text-decoration: underline;
}

/* Hero Section */
.hero-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px -4px rgba(0, 58, 92, 0.05), 0 4px 12px -2px rgba(0, 58, 92, 0.02);
  padding: 36px;
  margin-block-end: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-1) 0%, #199c95 50%, var(--brand-2) 100%);
}

@media (min-width: 960px) {
  .hero-card {
    grid-template-columns: 1.15fr 0.85fr;
    padding: 48px;
  }
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--brand-1-wash) 0%, #f0fdfa 100%);
  color: var(--brand-1-ink);
  border: 1px solid var(--brand-1-border);
  padding-inline: 16px;
  padding-block: 7px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  margin-block-end: 20px;
  box-shadow: 0 1px 3px rgba(32, 178, 170, 0.08);
}

.hero-stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-block-start: 26px;
  border-block-start: 1px solid var(--border-color);
  margin-block-start: 32px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #ffffff 0%, var(--n-50) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px 14px;
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 58, 92, 0.05);
}

.stat-val {
  font-size: 26px;
  font-weight: 800;
  color: var(--brand-2);
  line-height: 1.25;
  display: inline-block;
  unicode-bidi: isolate;
}

.stat-lbl {
  font-size: 13px;
  font-weight: 600;
  color: var(--n-600);
  margin-block-start: 4px;
}

/* Stepper Box (The Gate) */
.lead-form-box {
  background: #ffffff;
  border: 1px solid rgba(188, 229, 234, 0.9);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 16px 36px -6px rgba(0, 58, 92, 0.08), 0 0 0 1px rgba(32, 178, 170, 0.15);
  position: relative;
}

.stepper-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-end: 18px;
  border-block-end: 1px solid var(--border-color);
  padding-block-end: 12px;
}

.stepper-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--brand-2-ink);
}

.stepper-progress {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-1-ink);
  background-color: var(--brand-1-wash);
  padding-inline: 10px;
  padding-block: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--brand-1-border);
}

.step-panel {
  display: none;
}

.step-panel.active {
  display: block;
}

.form-label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--n-900);
  margin-block-end: 8px;
}

.radio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-block-end: 20px;
}

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

.radio-tile {
  position: relative;
  border: 1.5px solid var(--border-color);
  background-color: var(--n-50);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 60px;
  user-select: none;
}

.radio-tile:hover {
  border-color: var(--brand-1-border);
  background-color: var(--brand-1-wash);
  transform: translateY(-1px);
}

.radio-tile input[type="radio"] {
  accent-color: var(--brand-1);
  margin: 0;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  order: 2;
}

.tile-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  order: 1;
  text-align: start;
}

.tile-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--n-900);
  line-height: 1.4;
}

.tile-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--n-500);
  line-height: 1.4;
}

.radio-tile.selected {
  border-color: var(--brand-1);
  background-color: var(--brand-1-wash);
  box-shadow: 0 0 0 1px var(--brand-1);
}

.radio-tile.selected .tile-title {
  color: var(--brand-1-ink);
  font-weight: 800;
}

.radio-tile.selected .tile-sub {
  color: var(--brand-1-ink);
  opacity: 0.85;
}

.trust-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-block-start: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--n-600);
}

.dot-sep {
  color: var(--brand-1);
}

.security-guarantee {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-block-start: 14px;
  font-size: 12.5px;
  color: var(--n-500);
  line-height: 1.5;
}

.security-guarantee svg {
  width: 16px;
  height: 16px;
  color: var(--brand-1-ink);
  flex-shrink: 0;
}

.input-field {
  width: 100%;
  min-height: 50px;
  font-size: 17px;
  padding-inline: 16px;
  padding-block: 12px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--n-900);
  margin-block-end: 14px;
  direction: ltr;
  text-align: end;
  letter-spacing: 0.05em;
  transition: border-color 160ms ease;
}

.input-field:focus-visible {
  outline: 2px solid var(--brand-1);
  outline-offset: 2px;
  border-color: var(--brand-1);
}

.input-field::placeholder {
  color: var(--n-400);
  text-align: end;
  letter-spacing: normal;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding-inline: 24px;
  padding-block: 12px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 160ms ease-out;
  min-width: 130px;
}

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

.btn:focus-visible {
  outline: 2px solid var(--brand-1);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--brand-1);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(32, 178, 170, 0.25);
}

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

.btn-brand-2 {
  background-color: var(--brand-2);
  color: #ffffff;
}

.btn-brand-2:hover {
  background-color: var(--brand-2-light);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--n-700);
  border: 1.5px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--n-50);
  border-color: var(--n-300);
}

.btn-block {
  width: 100%;
}

.button-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-block-start: 18px;
}

/* Sections & Luxury Cards */
.section-wrapper {
  margin-block-end: 52px;
}

.section-head {
  margin-block-end: 24px;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

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

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

.feature-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms ease-out;
  position: relative;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -4px rgba(0, 58, 92, 0.07);
  border-color: rgba(32, 178, 170, 0.4);
}

.card-icon-box {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brand-1-wash) 0%, #f0fdfa 100%);
  color: var(--brand-1-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-block-end: 20px;
  border: 1px solid var(--brand-1-border);
  box-shadow: 0 2px 6px rgba(32, 178, 170, 0.08);
}

/* Partner Merchants Strip with Crisp SVG Icons */
.merchant-showcase {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-block-end: 48px;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
}

.merchant-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-block-start: 22px;
}

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

@media (min-width: 960px) {
  .merchant-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.merchant-card {
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: var(--radius-sm);
  padding: 18px 14px;
  text-align: center;
  background-color: var(--n-50);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.merchant-card:hover {
  border-color: rgba(32, 178, 170, 0.5);
  background-color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px -4px rgba(0, 58, 92, 0.08);
}

.merchant-svg-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xs);
  background-color: var(--brand-1-wash);
  color: var(--brand-1-ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.merchant-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--n-900);
}

.merchant-cat {
  font-size: 12px;
  font-weight: 500;
  color: var(--n-500);
}

/* App Showcase Gallery with Realistic Frames */
.app-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-block-start: 24px;
}

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

.screenshot-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.screenshot-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.screenshot-img-box {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%);
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-block-end: 1px solid var(--border-color);
  min-height: 380px;
}

.screenshot-img {
  width: auto;
  max-width: 100%;
  max-height: 350px;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(18, 24, 32, 0.08), 0 1px 3px rgba(18, 24, 32, 0.05);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.screenshot-info {
  padding: 20px;
}

.screenshot-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-2);
  margin-block-end: 8px;
}

.screenshot-info p {
  font-size: 13px;
  color: var(--n-600);
  line-height: 1.75;
  margin-block-end: 0;
}

/* Luxury Instrument Page Elements */
.instrument-hero-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  margin-block-end: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

@media (min-width: 960px) {
  .instrument-hero-box {
    grid-template-columns: 1.15fr 0.85fr;
    padding: 44px;
  }
}

.instrument-badge-gold {
  background-color: var(--gold-wash);
  color: var(--gold-ink);
  border: 1px solid var(--gold-border);
  padding-inline: 14px;
  padding-block: 5px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-block-end: 16px;
}

.collateral-sim-card {
  background: var(--n-50);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-block: 22px;
}

.sim-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 10px;
  border-block-end: 1px dashed var(--border-color);
  font-size: 14px;
}

.sim-row:last-child {
  border-block-end: none;
  padding-block-end: 0;
}

.sim-row strong {
  font-size: 16px;
  color: var(--brand-2);
  font-weight: 700;
}

/* Table Directory */
.table-container {
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: start;
}

table.data-table th,
table.data-table td {
  padding-inline: 18px;
  padding-block: 14px;
  border-block-end: 1px solid var(--border-color);
}

table.data-table th {
  background-color: var(--n-50);
  font-weight: 700;
  color: var(--brand-2);
}

table.data-table tr:hover {
  background-color: var(--brand-1-wash);
}

.tag-badge {
  display: inline-flex;
  padding-inline: 10px;
  padding-block: 4px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
}

.tag-firouzeh {
  background-color: var(--brand-1-wash);
  color: var(--brand-1-ink);
  border: 1px solid var(--brand-1-border);
}

.tag-general {
  background-color: var(--n-100);
  color: var(--n-700);
  border: 1px solid var(--border-color);
}

/* FAQ Accordion */
.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-block-end: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.faq-trigger {
  width: 100%;
  text-align: start;
  background: none;
  border: none;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-2-ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  min-height: 52px;
}

.faq-trigger:focus-visible {
  outline: 2px solid var(--brand-1);
  outline-offset: -2px;
}

.faq-content {
  display: none;
  padding-inline: 20px;
  padding-block-end: 20px;
  color: var(--n-700);
  font-size: 15px;
  line-height: 1.8;
  border-block-start: 1px solid var(--border-color);
}

.faq-item.open .faq-content {
  display: block;
}

/* Alerts */
.alert-box {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-block-end: 18px;
  font-size: 14px;
  line-height: 1.75;
}

.alert-success {
  background-color: var(--success-wash);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.alert-danger {
  background-color: #fef2f2;
  color: var(--danger);
  border: 1px solid #fecaca;
}

/* Footer — Clean, Light & Institutional */
.site-footer {
  background-color: #ffffff;
  color: var(--n-700);
  padding-block: 36px;
  border-block-start: 1px solid var(--border-color);
  margin-block-start: auto;
}

.footer-container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
}

.footer-copy {
  color: var(--n-500);
  line-height: 1.75;
}

/* Crisp SVG Icons */
.icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
