/* Digits Studio — Unified A-to-Z Design System (digits.css)
 * Preserves exact brand tokens:
 * #FFDA46 Signal Yellow · #06070B Obsidian · #292A32 Graphite
 * #FDFDFD Paper White · #EEEDF2 Quiet Grey · #B4A6ED Lilac
 */

@font-face {
  font-family: "EditorialSerif";
  src: url("/assets/fonts/PlayfairEditorial.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "EditorialInter";
  src: url("/assets/fonts/InterEditorial.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Alexandria";
  src: url("/assets/fonts/Alexandria.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --yellow: #FFDA46;
  --obsidian: #06070B;
  --graphite: #292A32;
  --paper: #FDFDFD;
  --white: #FFFFFF;
  --mist: #EEEDF2;
  --lilac: #B4A6ED;
  --ink: #0E1015;
  --muted: #6A6E79;
  --surface-dark: #101218;
  --surface-dark-2: #171A23;
  --border-dark: #24262F;
  --border-light: #E6E7EC;
  --serif: "EditorialSerif", Georgia, serif;
  --sans: "EditorialInter", system-ui, -apple-system, sans-serif;
  --arabic: "Alexandria", system-ui, sans-serif;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--obsidian);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[dir="rtl"] body {
  font-family: var(--arabic);
  line-height: 1.75;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 999;
  background: var(--yellow); color: var(--obsidian); padding: 10px 18px; border-radius: var(--radius-pill); font-weight: 700;
}
.skip:focus { left: 16px; }

.container { max-width: 1200px; margin: 0 auto; width: 100%; }

/* === Floating Pill Header === */
.site-header {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 100;
  padding: 0 clamp(14px, 3vw, 28px); pointer-events: none;
}
.nav-pill {
  pointer-events: auto; max-width: 1200px; margin: 0 auto;
  background: rgba(17, 18, 23, 0.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  padding: 10px 16px 10px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}
.nav-brand img { height: 32px; width: auto; }
.desktop-nav { display: flex; align-items: center; gap: 22px; }
.nav-link {
  color: rgba(255, 255, 255, 0.82); text-decoration: none;
  font-size: 13.5px; font-weight: 500; transition: color 0.15s;
}
.nav-link:hover, .nav-link.is-active { color: var(--yellow); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  color: rgba(255, 255, 255, 0.82); text-decoration: none; font-size: 13px;
  font-weight: 600; padding: 6px 10px; border-radius: var(--radius-pill);
}
.lang-switch:hover { color: var(--yellow); }
.menu-btn {
  display: none; background: rgba(255,255,255,0.1); color: #fff;
  border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius-pill);
  padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.mobile-drawer {
  pointer-events: auto; max-width: 1200px; margin: 10px auto 0;
  background: rgba(11, 13, 19, 0.98); backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 20px;
  padding: 16px; display: flex; flex-direction: column; gap: 6px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55);
}
.mobile-drawer[hidden] { display: none; }
.mobile-drawer a {
  display: flex; align-items: center; min-height: 46px; padding: 0 14px;
  border-radius: 12px; color: rgba(255,255,255,0.9); text-decoration: none; font-size: 16px; font-weight: 500;
}
.mobile-drawer a.cta-mobile {
  background: var(--yellow); color: var(--obsidian); font-weight: 700; justify-content: center; margin-top: 6px;
}

/* === Buttons & Pills === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; font-family: inherit;
  transition: transform 0.18s ease, opacity 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 8px 16px; font-size: 12.5px; }
.btn-yellow { background: var(--yellow); color: var(--obsidian); }
.btn-dark { background: var(--obsidian); color: var(--white); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.24); }
.btn-ghost-dark { background: transparent; color: var(--obsidian); border-color: rgba(6,7,11,0.24); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  padding: 6px 13px; border-radius: var(--radius-pill); margin-bottom: 18px;
}
.eyebrow-dark { background: rgba(255,218,70,0.12); color: var(--yellow); border: 1px solid rgba(255,218,70,0.28); }
.eyebrow-light { background: var(--obsidian); color: var(--yellow); }

/* === Surface Bands === */
.band { padding: 88px clamp(20px, 5vw, 72px); }
.band-obsidian { background: var(--obsidian); color: var(--white); }
.band-paper { background: var(--paper); color: var(--ink); }
.band-mist { background: var(--mist); color: var(--ink); }
.band-yellow { background: var(--yellow); color: var(--obsidian); }

.h1-display {
  font-family: var(--serif); font-size: clamp(44px, 6.8vw, 84px);
  line-height: 0.96; letter-spacing: -0.045em; font-weight: 600; margin-bottom: 20px;
}
.h2-display {
  font-family: var(--serif); font-size: clamp(32px, 4.5vw, 54px);
  line-height: 1.04; letter-spacing: -0.035em; font-weight: 600; margin-bottom: 14px;
}
html[dir="rtl"] .h1-display, html[dir="rtl"] .h2-display, html[dir="rtl"] .card h3 {
  font-family: var(--arabic); letter-spacing: -0.015em; line-height: 1.15;
}
.lead { font-size: clamp(16px, 1.7vw, 19px); opacity: 0.8; max-width: 640px; }

/* === Hero === */
.hero {
  background: var(--obsidian); color: var(--white);
  padding: 148px clamp(20px, 5vw, 72px) 84px;
  position: relative; overflow: hidden; border-bottom: 1px solid var(--border-dark);
}
.hero::before {
  content: ""; position: absolute; top: -140px; right: -100px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255,218,70,0.16) 0%, rgba(255,218,70,0) 70%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 44px; align-items: center; position: relative; z-index: 1; }
.hero-title em { color: var(--yellow); font-style: italic; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-card {
  background: var(--surface-dark); border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 16px;
}
.hero-card-visual {
  background: radial-gradient(circle at 50% 60%, rgba(255,218,70,0.14), rgba(6,7,11,0.4));
  border-radius: 14px; padding: 14px; display: grid; place-items: center;
}
.hero-card-visual img { max-width: 220px; }

/* === Trusted Strip === */
.trusted-strip {
  background: var(--obsidian); border-bottom: 1px solid var(--border-dark);
  padding: 22px clamp(20px, 5vw, 72px);
}
.trusted-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px;
}
.trusted-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--yellow); }
.trusted-logos { display: flex; flex-wrap: wrap; gap: 20px 32px; font-family: var(--serif); font-size: 18px; font-weight: 600; color: #fff; }
.trusted-logos a { text-decoration: none; opacity: 0.84; transition: opacity 0.15s, color 0.15s; }
.trusted-logos a:hover { opacity: 1; color: var(--yellow); }

/* === Embedded Live Interactive Demo Switcher === */
.demo-switcher-shell {
  margin-top: 32px; background: var(--surface-dark); border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg); overflow: hidden;
}
.demo-switcher-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 20px; background: #0B0D13; border-bottom: 1px solid var(--border-dark);
}
.demo-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-tab {
  background: var(--surface-dark-2); color: rgba(255,255,255,0.78);
  border: 1px solid var(--border-dark); border-radius: var(--radius-pill);
  padding: 8px 16px; font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.demo-tab.is-active { background: var(--yellow); color: var(--obsidian); border-color: var(--yellow); }
.demo-frame-wrap { position: relative; width: 100%; height: 540px; background: #06070B; }
.demo-frame-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* === Grids & Cards === */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }

.card {
  border-radius: var(--radius-md); padding: 28px; border: 1px solid var(--border-light); background: var(--white);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.band-obsidian .card { background: var(--surface-dark); border-color: var(--border-dark); color: var(--white); }
.band-yellow .card { background: rgba(255,255,255,0.58); border-color: rgba(6,7,11,0.14); color: var(--obsidian); }
.card:hover { transform: translateY(-3px); border-color: var(--yellow); }
.card h3 { font-family: var(--serif); font-size: 23px; letter-spacing: -0.02em; margin-bottom: 10px; }
.card p { font-size: 14.5px; opacity: 0.82; }

/* === Work Filter & Cards === */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; }
.filter-btn {
  padding: 8px 16px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 600;
  border: 1px solid var(--border-light); background: var(--white); color: var(--ink); cursor: pointer; font-family: inherit;
}
.filter-btn[aria-pressed="true"] { background: var(--obsidian); color: var(--yellow); border-color: var(--obsidian); }
.project-card {
  border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-light); background: var(--white);
  display: flex; flex-direction: column;
}
.project-thumb { overflow: hidden; aspect-ratio: 16/10; background: var(--mist); }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.project-card:hover .project-thumb img { transform: scale(1.03); }
.project-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; justify-content: space-between; }
.project-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 600; }
.project-links { display: flex; gap: 14px; font-size: 13px; font-weight: 700; margin-top: 8px; }
.project-links a { text-decoration: none; border-bottom: 2px solid var(--yellow); padding-bottom: 2px; }

/* === Interactive Scope Estimator === */
.estimator-box {
  background: var(--surface-dark); border: 1px solid var(--border-dark); border-radius: var(--radius-lg);
  padding: 34px; color: var(--white); display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 28px; align-items: center;
}
.est-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 16px 0 20px; }
.est-opt {
  background: var(--surface-dark-2); border: 1px solid var(--border-dark); color: #fff;
  padding: 12px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 600; cursor: pointer; text-align: left; font-family: inherit;
}
.est-opt.is-selected { background: var(--yellow); color: var(--obsidian); border-color: var(--yellow); }
.est-checks { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13.5px; color: rgba(255,255,255,0.85); }
.est-summary { background: var(--obsidian); border: 1px solid var(--border-dark); border-radius: 16px; padding: 24px; }
.est-metric { margin: 12px 0; padding-bottom: 10px; border-bottom: 1px solid var(--border-dark); }
.est-metric span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.6); }
.est-metric strong { font-size: 22px; color: var(--yellow); }

/* === FAQ & Inquiry Form === */
.faq-item { border-bottom: 1px solid var(--border-light); padding: 18px 0; }
.faq-item summary { font-weight: 600; font-size: 16px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.faq-item p { margin-top: 10px; font-size: 14.5px; color: var(--muted); }

.inquiry-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.inquiry-form { background: var(--paper); color: var(--ink); border-radius: var(--radius-lg); padding: 32px; border: 1px solid rgba(6,7,11,0.12); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid #D5D7E0;
  font-family: inherit; font-size: 14px; background: #fff; color: var(--ink);
}
.choice-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-pills label {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--radius-pill);
  border: 1px solid #D5D7E0; font-size: 13px; font-weight: 600; cursor: pointer; margin: 0;
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* === Footer === */
.site-footer {
  background: var(--obsidian); color: rgba(255,255,255,0.75);
  border-top: 1px solid var(--border-dark); padding: 64px clamp(20px, 5vw, 72px) 40px;
}
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 28px; border-bottom: 1px solid var(--border-dark); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 16px 24px; padding: 24px 0; font-size: 13.5px; font-weight: 500; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--yellow); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12.5px; color: rgba(255,255,255,0.55); }

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .hero { padding-top: 112px; padding-bottom: 56px; }
  .hero-grid, .estimator-box, .inquiry-grid, .form-row-2 { grid-template-columns: 1fr; }
  .hero-card-visual img { max-width: 140px; }
  .demo-frame-wrap { height: 420px; }
  .band { padding: 64px clamp(18px, 5vw, 32px); }
}
