:root {
  --xtra-navy: #0c1821;
  --xtra-petrol: #142732;
  --xtra-petrol-light: #1c3545;
  --xtra-blue: #0f7ae5;
  --xtra-cyan: #38b6d3;
  --xtra-green: #2e9e4b;
  --xtra-orange: #e86c1f;
  --bg-page: #ffffff;
  --bg-subtle: #f4f8fb;
  --bg-muted: #ebf2f7;
  --text-ink: #0f172a;
  --text-body: #334155;
  --text-secondary: #64748b;
  --border-light: #dce5ee;
  --border-dark: rgba(255, 255, 255, 0.12);
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 2px 8px rgba(12, 24, 33, 0.05);
  --shadow-md: 0 12px 32px rgba(12, 24, 33, 0.08);
  --shadow-win: 0 24px 60px rgba(7, 15, 22, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-ink);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Navbar */
.xtra-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--xtra-navy);
  border-bottom: 1px solid var(--border-dark);
  padding: 0.8rem 0;
}

.xtra-navbar .navbar-brand img {
  height: 30px;
  width: auto;
}

.brand-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: #cbeeff;
  background: rgba(56, 182, 211, 0.16);
  border: 1px solid rgba(56, 182, 211, 0.35);
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.xtra-nav-link {
  color: #d1dde6 !important;
  font-weight: 500;
  font-size: 0.94rem;
  padding: 0.45rem 0.85rem !important;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease, color 0.15s ease;
  text-decoration: none;
}

.xtra-nav-link:hover,
.xtra-nav-link.active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08);
}

/* Buttons */
.btn-xtra-primary {
  background-color: var(--xtra-blue);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--xtra-blue);
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease, transform 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-xtra-primary:hover {
  background-color: #0b63be;
  border-color: #0b63be;
  color: #ffffff !important;
}

.btn-xtra-outline-light {
  background-color: transparent;
  color: #ffffff !important;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-xtra-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: #ffffff;
}

.btn-xtra-outline-dark {
  background-color: #ffffff;
  color: var(--text-ink) !important;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid var(--border-light);
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, background-color 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-xtra-outline-dark:hover {
  border-color: var(--xtra-blue);
  color: var(--xtra-blue) !important;
  background-color: var(--bg-subtle);
}

/* Hero Section (Deep Petrol Slate matching authentic Xtra Desktop website) */
.hero-section {
  background-color: var(--xtra-navy);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  color: #ffffff;
  padding: 4.25rem 0 4.75rem;
  border-bottom: 1px solid var(--border-dark);
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--xtra-cyan);
  background: rgba(56, 182, 211, 0.12);
  border: 1px solid rgba(56, 182, 211, 0.3);
  padding: 0.28rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 1.1rem;
}

.hero-title {
  font-size: clamp(1.95rem, 3.3vw, 2.85rem);
  font-weight: 700;
  line-height: 1.28;
  margin-bottom: 1.15rem;
  color: #ffffff;
}

.hero-subtitle {
  font-size: 1.06rem;
  color: #cbd5e1;
  margin-bottom: 1.85rem;
  max-width: 620px;
  line-height: 1.75;
}

/* Authentic Windows Desktop Application Frame */
.win-desktop-frame {
  background: #e9eef4;
  border: 1px solid #475569;
  border-radius: 8px;
  box-shadow: var(--shadow-win);
  overflow: hidden;
  color: #1e293b;
  font-size: 0.84rem;
  user-select: none;
}

.win-titlebar {
  background: #1b3142;
  color: #f8fafc;
  padding: 0.42rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
}

.win-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: monospace;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.win-ribbon-tabs {
  background: #254156;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0.25rem 0.5rem 0;
  font-size: 0.76rem;
  overflow-x: auto;
}

.win-ribbon-tab {
  padding: 0.32rem 0.68rem;
  border-radius: 4px 4px 0 0;
  color: #cbd5e1;
  white-space: nowrap;
}

.win-ribbon-tab.active {
  background: #dce5ee;
  color: #0f172a;
  font-weight: 700;
}

.win-ribbon-bar {
  background: linear-gradient(180deg, #dce5ee 0%, #c8d6e5 100%);
  border-bottom: 1px solid #94a3b8;
  padding: 0.45rem 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.win-tool-btn {
  background: #ffffff;
  border: 1px solid #94a3b8;
  color: #0f172a;
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.12s ease;
}

.win-tool-btn:hover {
  border-color: var(--xtra-blue);
  background: #f0f7ff;
}

.win-tool-btn.active {
  background: var(--xtra-blue);
  border-color: #0856a8;
  color: #ffffff;
}

.win-workspace {
  background: #7c8791;
  padding: 0.75rem;
  min-height: 360px;
}

.win-inner-window {
  background: #eef3f8;
  border: 1px solid #475569;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.win-inner-header {
  background: linear-gradient(180deg, #acc4dc 0%, #8caac9 100%);
  color: #0f172a;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.32rem 0.65rem;
  border-bottom: 1px solid #64748b;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.win-inner-body {
  padding: 0.75rem;
}

.win-form-row {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  padding: 0.38rem 0.6rem;
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
}

.win-form-row.selected-handle {
  border: 1.5px solid #0f7ae5;
  background: #f0f8ff;
  position: relative;
}

.win-toolbox-item {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  padding: 0.32rem 0.55rem;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  cursor: pointer;
  transition: background-color 0.12s;
}

.win-toolbox-item:hover {
  background: #e0f2fe;
  border-color: #0f7ae5;
}

.win-status-bar {
  background: #d0dbe7;
  border-top: 1px solid #94a3b8;
  padding: 0.3rem 0.65rem;
  font-size: 0.73rem;
  color: #334155;
  display: flex;
  justify-content: space-between;
}

/* Editorial Content Sections (Crisp Light & Subtle Grey) */
.section-light {
  background-color: var(--bg-page);
  padding: 5rem 0;
  border-bottom: 1px solid var(--border-light);
}

.section-subtle {
  background-color: var(--bg-subtle);
  padding: 5rem 0;
  border-bottom: 1px solid var(--border-light);
}

.section-dark {
  background-color: var(--xtra-petrol);
  color: #ffffff;
  padding: 4.5rem 0;
}

.section-eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--xtra-blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: clamp(1.65rem, 2.6vw, 2.25rem);
  font-weight: 700;
  color: var(--text-ink);
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.section-desc {
  color: var(--text-body);
  font-size: 1.04rem;
  max-width: 680px;
}

/* Bento Feature Showcases */
.bento-block {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.bento-block-dark {
  background: var(--xtra-petrol);
  color: #ffffff;
  border: 1px solid var(--xtra-petrol-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  height: 100%;
}

.screenshot-showcase {
  background: var(--xtra-navy);
  border-radius: var(--radius-md);
  padding: 1rem;
  border: 1px solid var(--border-light);
}

.screenshot-showcase img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.spec-list li {
  position: relative;
  padding-inline-start: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-body);
  font-size: 0.96rem;
}

.spec-list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.55rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--xtra-blue);
}

/* Authentic Xtra Icon Grid (Using the 22 Original Xtra SVGs) */
.xtra-icon-tile {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  height: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.xtra-icon-tile:hover {
  border-color: var(--xtra-blue);
  box-shadow: var(--shadow-sm);
}

.xtra-svg-box {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 10px;
  background-color: var(--xtra-petrol);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px;
}

.xtra-svg-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Comparison Table */
.editorial-table-wrap {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.editorial-table {
  width: 100%;
  border-collapse: collapse;
}

.editorial-table th,
.editorial-table td {
  padding: 1.05rem 1.35rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
}

.editorial-table thead th {
  background: var(--xtra-navy);
  color: #ffffff;
  font-weight: 600;
}

.editorial-table .col-xtra {
  background: #f0f9ff;
  color: #0c4a6e;
  font-weight: 600;
}

/* FAQ */
.faq-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-ink);
  font-weight: 600;
  font-size: 1.02rem;
  padding: 1.1rem 1.35rem;
  text-align: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-answer {
  padding: 0 1.35rem 1.2rem;
  color: var(--text-body);
  border-top: 1px solid var(--bg-muted);
  padding-top: 0.9rem;
  font-size: 0.96rem;
}

/* Clients Grid */
.client-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: border-color 0.15s ease;
}

.client-card:hover {
  border-color: var(--xtra-blue);
}

.client-card img {
  max-height: 68px;
  max-width: 135px;
  object-fit: contain;
}

.client-card span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-ink);
}

.filter-pill {
  background: #ffffff;
  color: var(--text-body);
  border: 1px solid var(--border-light);
  padding: 0.42rem 0.95rem;
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.filter-pill.active,
.filter-pill:hover {
  background: var(--xtra-navy);
  color: #ffffff;
  border-color: var(--xtra-navy);
}

/* Footer */
.xtra-footer {
  background: var(--xtra-navy);
  color: #94a3b8;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-dark);
}

.xtra-footer a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.15s;
}

.xtra-footer a:hover {
  color: var(--xtra-cyan);
}
