/* ==========================================================================
   Softelv AI — SEO & Marketing Pages Stylesheet
   Inherits design language of Amman limestone, brass, and ink from portal.css
   RTL-first · responsive · semantic typography · accessible
   ========================================================================== */

@import url("/portal.css?v=3");

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.seo-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Top Header ─────────────────────────────────────────── */
.seo-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(245, 242, 236, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background-color var(--d2) var(--ease);
}
:root[data-theme="dark"] .seo-header {
  background-color: rgba(14, 14, 16, 0.92);
}

.seo-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.seo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
}

.seo-brand img {
  border-radius: var(--r-sm);
}

.seo-brand span strong {
  color: var(--brass);
}

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

.seo-nav a {
  text-decoration: none;
  color: var(--text-2);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--d1);
}

.seo-nav a:hover,
.seo-nav a.active {
  color: var(--brass-strong);
}

.seo-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-lang {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--r-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  transition: all var(--d1);
}
.btn-lang:hover {
  border-color: var(--brass);
  color: var(--text);
}

.btn-console {
  background: var(--ink);
  color: var(--on-ink) !important;
  padding: 8px 18px;
  border-radius: var(--r-full);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity var(--d1);
}
.btn-console:hover {
  opacity: 0.88;
}

/* ── Hero & Page Headings ──────────────────────────────── */
.seo-hero {
  padding: 72px 0 48px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brass);
  background: var(--brass-soft);
  border: 1px solid var(--brass-line);
  padding: 4px 14px;
  border-radius: var(--r-full);
  margin-bottom: 18px;
}

.seo-title {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.seo-lead {
  font-size: 1.25rem;
  color: var(--text-2);
  max-width: 780px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

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

.btn-primary {
  background: var(--ink);
  color: var(--on-ink);
  padding: 12px 28px;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: var(--shadow-2);
  transition: transform var(--d1), opacity var(--d1);
}
.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 12px 26px;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--d1);
}
.btn-secondary:hover {
  border-color: var(--brass);
}

/* ── Section & Grids ───────────────────────────────────── */
.seo-section {
  padding: 60px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 12px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.seo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px;
  box-shadow: var(--shadow-1);
  transition: transform var(--d2), box-shadow var(--d2), border-color var(--d2);
}
.seo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--brass-line);
}

.card-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--r-full);
  margin-bottom: 14px;
}
.badge-fast { background: var(--green-soft); color: var(--green); }
.badge-reasoning { background: var(--amber-soft); color: var(--amber); }
.badge-code { background: var(--blue-soft); color: var(--blue); }
.badge-image { background: #F3E8FF; color: #7E22CE; }
.badge-so { background: #FEF3C7; color: #B45309; font-weight: 800; }

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-2);
  margin: 0 0 20px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
}

/* ── Code Box ──────────────────────────────────────────── */
.code-box {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--r-md);
  padding: 20px;
  color: var(--code-text);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  direction: ltr;
  text-align: left;
  overflow-x: auto;
  margin: 20px 0;
  box-shadow: var(--shadow-2);
}

.code-box pre {
  margin: 0;
}

.kw { color: var(--code-keyword); }
.str { color: var(--code-string); }
.fn { color: var(--code-fn); }
.num { color: var(--code-number); }
.cmt { color: var(--code-muted); font-style: italic; }

/* ── Pricing Table ─────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: var(--brass-fill);
  box-shadow: 0 0 0 1px var(--brass-fill), var(--shadow-2);
}

.price-val {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text);
  margin: 16px 0 6px;
}
.price-period {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 400;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  flex-grow: 1;
}
.price-features li {
  padding: 8px 0;
  font-size: 0.92rem;
  color: var(--text-2);
  border-bottom: 1px dashed var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.price-features li::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
}

/* ── FAQ Details ───────────────────────────────────────── */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 24px;
  transition: border-color var(--d1);
}
.faq-item[open] {
  border-color: var(--brass-line);
}

.faq-item summary {
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--brass);
}
.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  margin-top: 14px;
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* ── Footer ────────────────────────────────────────────── */
.seo-footer {
  border-top: 1px solid var(--border);
  background-color: var(--bg-tint);
  padding: 60px 0 40px;
  margin-top: 80px;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a {
  color: var(--text-2);
  text-decoration: none;
  transition: color var(--d1);
}
.footer-col a:hover {
  color: var(--brass);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 860px) {
  .seo-title { font-size: 2.1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .seo-nav { display: none; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; text-align: center; box-sizing: border-box; }
}
