/* ==========================================================================
   OPTINEX FINTECH SEO AGENCY PAGE STYLES
   ========================================================================== */

:root {
  --fintech-gold: #BFA181;
  --fintech-gold-light: rgba(191, 161, 129, 0.15);
  --fintech-gold-border: rgba(191, 161, 129, 0.3);
  --fintech-bg: #0D0D0D;
  --fintech-surface: #141414;
  --fintech-surface-light: #1A1A1A;
  --fintech-border: rgba(255, 255, 255, 0.08);
  --fintech-white: #FAFAFA;
  --fintech-muted: rgba(250, 250, 250, 0.65);
  --fintech-serif: 'Playfair Display', Georgia, serif;
  --fintech-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --fintech-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

.fintech-page {
  color: var(--fintech-white);
  font-family: var(--fintech-sans);
  background-color: var(--fintech-bg);
  line-height: 1.6;
}

.fintech-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .fintech-container {
    padding: 0 2.5rem;
  }
}

.fintech-sec {
  padding: 5rem 0;
  border-top: 1px solid var(--fintech-border);
}

@media (min-width: 992px) {
  .fintech-sec {
    padding: 7rem 0;
  }
}

.fintech-bg-surface {
  background-color: var(--fintech-surface);
}

/* Typography Helpers */
.fintech-eyebrow {
  display: block;
  font-family: var(--fintech-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fintech-gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.fintech-h2 {
  font-family: var(--fintech-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--fintech-white);
  margin: 0 0 1.5rem 0;
}

.fintech-lead {
  font-size: 1.125rem;
  color: var(--fintech-muted);
  font-weight: 300;
  line-height: 1.7;
  max-width: 48rem;
  margin-bottom: 2.5rem;
}

/* Section 01: Hero */
.fintech-hero {
  padding: 8rem 0 5rem 0;
  position: relative;
}

@media (min-width: 992px) {
  .fintech-hero {
    padding: 10rem 0 6rem 0;
  }
}

.fintech-hero-h1 {
  font-family: var(--fintech-serif);
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--fintech-white);
  margin-bottom: 1.75rem;
}

.fintech-hero-p {
  font-size: 1.2rem;
  color: var(--fintech-muted);
  font-weight: 300;
  line-height: 1.75;
  max-width: 52rem;
  margin-bottom: 2.5rem;
}

.fintech-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.fintech-btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background-color: var(--fintech-gold);
  color: #000;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.fintech-btn-gold:hover {
  background-color: #d4b595;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(191, 161, 129, 0.25);
}

.fintech-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background-color: transparent;
  border: 1px solid var(--fintech-border);
  color: var(--fintech-white);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.fintech-btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.03);
}

.fintech-scope-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--fintech-border);
}

.fintech-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  background: var(--fintech-surface);
  border: 1px solid var(--fintech-border);
  border-radius: 4px;
  font-family: var(--fintech-mono);
  font-size: 0.75rem;
  color: var(--fintech-muted);
}

/* Section 02: Applicability Strip */
.fintech-applicability-strip {
  padding: 2.5rem 0;
  background-color: var(--fintech-surface);
  border-top: 1px solid var(--fintech-border);
  border-bottom: 1px solid var(--fintech-border);
}

.fintech-applicability-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.fintech-applicability-label {
  font-family: var(--fintech-mono);
  font-size: 0.75rem;
  color: var(--fintech-gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
}

.fintech-segments-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.fintech-segment-badge {
  padding: 0.4rem 1rem;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--fintech-white);
  font-weight: 500;
}

/* Section 03: Direct Definition Box */
.fintech-def-box {
  background-color: var(--fintech-surface);
  border: 1px solid var(--fintech-gold-border);
  padding: 3rem 2.5rem;
  border-radius: 4px;
  margin-top: 2rem;
  position: relative;
}

.fintech-def-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--fintech-white);
  font-weight: 300;
  margin-bottom: 2rem;
}

.fintech-def-contrast {
  padding-top: 1.75rem;
  border-top: 1px solid var(--fintech-border);
  font-size: 1rem;
  color: var(--fintech-muted);
  line-height: 1.7;
}

/* Section 04 & 06 Cards Grid */
.fintech-cards-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.fintech-cards-grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .fintech-cards-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .fintech-cards-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.fintech-card {
  background-color: var(--fintech-surface);
  border: 1px solid var(--fintech-border);
  padding: 2.5rem 2rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.fintech-card:hover {
  border-color: var(--fintech-gold-border);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.fintech-card-title {
  font-family: var(--fintech-serif);
  font-size: 1.5rem;
  color: var(--fintech-white);
  margin: 0 0 1rem 0;
  font-weight: 400;
  line-height: 1.3;
}

.fintech-card-desc {
  font-size: 0.95rem;
  color: var(--fintech-muted);
  line-height: 1.65;
  font-weight: 300;
  margin: 0;
}

/* Section 05: Matrix Table */
.fintech-matrix-wrapper {
  overflow-x: auto;
  margin-top: 2.5rem;
  border: 1px solid var(--fintech-border);
  border-radius: 4px;
  background-color: var(--fintech-surface);
}

.fintech-matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 720px;
}

html[lang="ar"] .fintech-matrix-table {
  text-align: right;
}

.fintech-matrix-table th {
  background-color: rgba(255, 255, 255, 0.03);
  padding: 1.25rem 1.5rem;
  font-family: var(--fintech-mono);
  font-size: 0.75rem;
  color: var(--fintech-gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--fintech-border);
}

.fintech-matrix-table td {
  padding: 1.5rem;
  border-bottom: 1px solid var(--fintech-border);
  font-size: 0.95rem;
  vertical-align: top;
}

.fintech-matrix-table tr:last-child td {
  border-bottom: none;
}

.fintech-matrix-layer {
  font-family: var(--fintech-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fintech-white);
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: rgba(191, 161, 129, 0.1);
  border: 1px solid var(--fintech-gold-border);
  border-radius: 4px;
}

/* Section 08: Compliance Controls */
.fintech-disclaimer-box {
  background-color: rgba(191, 161, 129, 0.05);
  border-left: 3px solid var(--fintech-gold);
  padding: 1.5rem 2rem;
  margin-bottom: 3rem;
  border-radius: 0 4px 4px 0;
  font-size: 0.95rem;
  color: var(--fintech-muted);
}

html[lang="ar"] .fintech-disclaimer-box {
  border-left: none;
  border-right: 3px solid var(--fintech-gold);
  border-radius: 4px 0 0 4px;
}

/* Section 09: Operating Model Steps */
.fintech-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

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

.fintech-step-card {
  background-color: var(--fintech-surface);
  border: 1px solid var(--fintech-border);
  padding: 2.5rem 2rem;
  border-radius: 4px;
  position: relative;
}

.fintech-step-num {
  font-family: var(--fintech-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fintech-gold);
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
  display: block;
}

/* Section 10: Deliverables Checklist */
.fintech-checklist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

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

.fintech-check-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background-color: var(--fintech-surface);
  border: 1px solid var(--fintech-border);
  border-radius: 4px;
  font-size: 0.95rem;
  color: var(--fintech-white);
}

.fintech-check-icon {
  color: var(--fintech-gold);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
}

/* Section 11: Scorecard Grid */
.fintech-scorecard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

@media (min-width: 1200px) {
  .fintech-scorecard-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.fintech-score-card {
  background-color: var(--fintech-surface);
  border: 1px solid var(--fintech-border);
  padding: 2.25rem 1.75rem;
  border-radius: 4px;
  border-top: 3px solid var(--fintech-gold);
}

.fintech-score-title {
  font-family: var(--fintech-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fintech-gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* Section 14: Engagement Fit Split */
.fintech-fit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.fintech-fit-col {
  background-color: var(--fintech-surface);
  border: 1px solid var(--fintech-border);
  padding: 3rem 2.5rem;
  border-radius: 4px;
}

.fintech-fit-col.strong-fit {
  border-top: 3px solid #4E9F3D;
}

.fintech-fit-col.not-yet {
  border-top: 3px solid #D9534F;
}

.fintech-fit-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0 0;
}

.fintech-fit-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--fintech-muted);
  line-height: 1.6;
}

html[lang="ar"] .fintech-fit-list li {
  padding-left: 0;
  padding-right: 1.75rem;
}

.fintech-fit-list li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}

html[lang="ar"] .fintech-fit-list li::before {
  left: auto;
  right: 0;
}

.strong-fit .fintech-fit-list li::before {
  content: '✓';
  color: #4E9F3D;
}

.not-yet .fintech-fit-list li::before {
  content: '✕';
  color: #D9534F;
}

/* Section 15: FAQ Accordion */
.fintech-faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 900px;
  margin: 2.5rem auto 0 auto;
}

.fintech-faq-item {
  background-color: var(--fintech-surface);
  border: 1px solid var(--fintech-border);
  border-radius: 4px;
  overflow: hidden;
}

.fintech-faq-q {
  width: 100%;
  padding: 1.5rem 2rem;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--fintech-white);
  font-size: 1.1rem;
  font-weight: 500;
  font-family: var(--fintech-sans);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

html[lang="ar"] .fintech-faq-q {
  text-align: right;
}

.fintech-faq-icon {
  font-size: 1.25rem;
  color: var(--fintech-gold);
  transition: transform 0.3s ease;
}

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

.fintech-faq-a {
  padding: 0 2rem 1.5rem 2rem;
  font-size: 0.95rem;
  color: var(--fintech-muted);
  line-height: 1.7;
  display: none;
}

.fintech-faq-item.open .fintech-faq-a {
  display: block;
}

/* Section 16: Final Form */
.fintech-form-box {
  background-color: var(--fintech-surface);
  border: 1px solid var(--fintech-border);
  padding: 3.5rem 2.5rem;
  border-radius: 4px;
  max-width: 800px;
  margin: 3rem auto 0 auto;
}

.fintech-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.fintech-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fintech-field.full-width {
  grid-column: 1 / -1;
}

.fintech-label {
  font-family: var(--fintech-mono);
  font-size: 0.75rem;
  color: var(--fintech-white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.fintech-input,
.fintech-select,
.fintech-textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  background-color: #0A0A0A;
  border: 1px solid var(--fintech-border);
  border-radius: 4px;
  color: var(--fintech-white);
  font-family: var(--fintech-sans);
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}

.fintech-input:focus,
.fintech-select:focus,
.fintech-textarea:focus {
  outline: none;
  border-color: var(--fintech-gold);
}

.fintech-consent {
  font-size: 0.8rem;
  color: rgba(250, 250, 250, 0.4);
  line-height: 1.5;
  margin-top: 1.5rem;
  grid-column: 1 / -1;
}

.fintech-consent a {
  color: var(--fintech-gold);
  text-decoration: underline;
}
