:root {
  color-scheme: dark;
  --background: #07111e;
  --surface: #101d2b;
  --surface-strong: #17283a;
  --text: #f4f7f9;
  --muted: #aebbc7;
  --accent: #e9bd59;
  --blue: #3187d9;
  --border: rgba(255, 255, 255, .12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 80% 0, #163354 0, transparent 34rem), var(--background); color: var(--text); }
a { color: inherit; }
.site-header, main, footer { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.site-header { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header nav { display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; gap: 10px; align-items: center; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.brand span { color: var(--accent); font-size: 1.5rem; }
.language-link { color: var(--muted); text-underline-offset: 4px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 10px; background: var(--blue); color: white; text-decoration: none; font-weight: 750; }
.button--quiet { background: var(--surface-strong); border: 1px solid var(--border); }
.hero { min-height: 560px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 56px; padding-block: 70px 86px; }
.hero > * { min-width: 0; }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: .09em; font-size: .8rem; }
h1 { margin: 0; max-width: 17ch; overflow-wrap: anywhere; font-size: clamp(2.7rem, 6vw, 5rem); line-height: .98; letter-spacing: -.055em; }
.lead { max-width: 62ch; margin: 25px 0 32px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.6; }
.widget-preview { aspect-ratio: 740 / 380; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid rgba(49, 135, 217, .7); border-radius: 22px; background: linear-gradient(145deg, #213b55, #111b26); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.widget-preview div { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.widget-preview small, .widget-preview span { color: var(--muted); }
.widget-preview strong { font-size: clamp(1.6rem, 4vw, 2.7rem); }
.features { padding: 72px 0; border-top: 1px solid var(--border); }
.features h2, .languages h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.features ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0; list-style: none; }
.features li { min-height: 140px; padding: 25px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); font-weight: 700; line-height: 1.5; }
.languages { padding: 36px 0 80px; }
.language-links { display: flex; flex-wrap: wrap; gap: 10px; }
.language-links a, .language-grid a { display: block; padding: 11px 14px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); text-decoration: none; }
footer { padding: 30px 0 45px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); border-top: 1px solid var(--border); }
.language-page, .not-found { min-height: 100vh; display: grid; align-content: center; justify-items: start; gap: 20px; padding-block: 48px; }
.language-card { width: min(760px, 100%); padding: clamp(28px, 6vw, 62px); border: 1px solid var(--border); border-radius: 24px; background: rgba(16,29,43,.94); }
.language-card h1, .not-found h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); }
.language-card > p:not(.eyebrow), .not-found > p { color: var(--muted); font-size: 1.1rem; }
.language-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 20px 0 0; list-style: none; }
.error-code { margin: 12px 0 -10px; color: var(--accent) !important; font-weight: 900; letter-spacing: .12em; }
.breadcrumbs { display: flex; gap: 10px; padding-top: 38px; color: var(--muted); font-size: .92rem; }
.content-page { max-width: 920px; padding: 58px 0 100px; }
.content-page > header { margin-bottom: 42px; }
.content-page h1 { max-width: 18ch; }
.content-page h2 { margin-top: 54px; font-size: clamp(1.6rem, 3vw, 2.35rem); letter-spacing: -.025em; }
.content-page section > p, .disclaimer { max-width: 75ch; color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
.signal-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0; list-style: none; }
.signal-list li { padding: 18px; border: 1px solid rgba(49,135,217,.5); border-radius: 12px; background: rgba(23,40,58,.72); }
.feature-list { display: grid; gap: 10px; padding-inline-start: 20px; line-height: 1.6; }
.related { margin: 60px 0 34px; padding-top: 8px; border-top: 1px solid var(--border); }
.disclaimer { margin-top: 48px; padding: 18px 20px; border-inline-start: 3px solid var(--accent); background: var(--surface); }
.live-demo { margin-top: 56px; }
.live-demo iframe { display: block; width: min(740px, 100%); aspect-ratio: 740 / 380; height: auto; border: 0; border-radius: 18px; background: #09121b; }
.live-demo details { max-width: 740px; margin-top: 14px; }
.live-demo summary { cursor: pointer; color: var(--muted); }
.live-demo code { display: block; overflow-wrap: anywhere; margin-top: 10px; padding: 14px; border-radius: 10px; background: #050b12; color: #d6e5f2; }
.gizmo-showcase { padding: 76px 0 90px; border-top: 1px solid var(--border); }
.showcase-heading { max-width: 760px; margin-bottom: 34px; }
.showcase-heading h2 { max-width: 16ch; margin: 0; font-size: clamp(2rem, 4.8vw, 4rem); line-height: 1.03; letter-spacing: -.045em; }
.showcase-heading > p:last-child { color: var(--muted); font-size: 1.08rem; line-height: 1.7; }
.showcase-card { overflow: hidden; margin-top: 18px; padding: clamp(20px, 4vw, 34px); border: 1px solid var(--border); border-radius: 24px; background: linear-gradient(145deg, rgba(23,40,58,.96), rgba(10,20,31,.98)); box-shadow: 0 24px 68px rgba(0,0,0,.22); }
.showcase-copy { display: grid; grid-template-columns: 46px 1fr; align-items: start; gap: 14px; margin-bottom: 24px; }
.showcase-copy h3 { margin: 2px 0 8px; font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
.showcase-copy p { max-width: 72ch; margin: 0; color: var(--muted); line-height: 1.6; }
.showcase-number { display: grid; place-items: center; width: 42px; height: 30px; border: 1px solid rgba(233,189,89,.5); border-radius: 999px; color: var(--accent); font-size: .74rem; font-weight: 900; letter-spacing: .08em; }
.gizmo-shell-window { overflow: hidden; min-height: 430px; border: 1px solid rgba(107,177,232,.32); border-radius: 18px; background: #08111d; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.gizmo-shell-chrome { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 16px; border-bottom: 1px solid rgba(255,255,255,.09); background: #202b35; color: #c4ced7; font-size: .8rem; }
.gizmo-shell-logo { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--blue); color: white; font-weight: 900; }
.gizmo-shell-status { margin-inline-start: auto; color: #7bd3a1; }
.gizmo-shell-toolbar { display: grid; grid-template-columns: minmax(330px, 1.45fr) minmax(280px, .75fr); align-items: stretch; gap: 12px; padding: 12px; border-bottom: 3px solid #0968bc; background: #30363b; }
.gizmo-session-stats { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 8px; }
.gizmo-session-chip { min-width: 0; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 0 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 7px; background: #282e33; color: #f5f6f7; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gizmo-session-chip b { font-size: 1.05rem; }
.gizmo-session-coin { color: #f0c648; }
.gizmo-shell-desktop { min-height: 318px; padding: 24px; background: radial-gradient(circle at 80% 10%, rgba(49,135,217,.21), transparent 33%), linear-gradient(145deg, #09131e, #0c1b2b); }
.gizmo-shell-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 28px; color: rgba(255,255,255,.7); font-size: .82rem; font-weight: 800; }
.gizmo-shell-brand span { color: var(--accent); font-size: 1.25rem; }
.compact-salah { width: min(560px, 100%); min-height: 72px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; padding: 12px 15px; border: 1px solid rgba(233,189,89,.42); border-radius: 12px; background: rgba(30,40,48,.96); color: white; text-align: start; box-shadow: 0 12px 34px rgba(0,0,0,.26); cursor: pointer; transition: border-color .2s ease, transform .2s ease, background .2s ease; }
.compact-salah:hover { transform: translateY(-2px); border-color: var(--accent); background: #27333d; }
.compact-salah__moon { color: var(--accent); font-size: 1.7rem; }
.compact-salah__copy, .compact-salah__value { display: grid; gap: 4px; min-width: 0; }
.compact-salah__copy strong, .compact-salah__value strong { overflow-wrap: anywhere; }
.compact-salah__copy small, .compact-salah__value small { color: #aebbc7; }
.compact-salah__value { text-align: end; }
.gizmo-shell-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: min(660px, 100%); margin-top: 25px; }
.gizmo-shell-tiles span { height: 62px; border: 1px solid rgba(255,255,255,.06); border-radius: 10px; background: rgba(255,255,255,.035); }
.gizmo-schedule-dialog { width: min(820px, calc(100% - 24px)); padding: 40px; border: 1px solid rgba(255,255,255,.14); border-radius: 24px; background: #101820; color: white; box-shadow: 0 30px 100px rgba(0,0,0,.7); }
.gizmo-schedule-dialog::backdrop { background: rgba(2,7,12,.78); backdrop-filter: blur(8px); }
.gizmo-schedule-dialog iframe, .gizmo-opened-window iframe, .gizmo-news-window iframe { display: block; width: 100%; max-width: 740px; aspect-ratio: 740 / 380; height: auto; border: 0; background: #09121b; }
.gizmo-schedule-dialog iframe { margin-inline: auto; border-radius: 16px; }
.dialog-close { position: absolute; inset-block-start: 8px; inset-inline-end: 10px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: rgba(255,255,255,.08); color: #d9e1e8; font-size: 1.4rem; cursor: pointer; }
.gizmo-opened-window, .gizmo-news-window { width: min(794px, 100%); overflow: hidden; margin-inline: auto; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: #07111e; box-shadow: 0 22px 54px rgba(0,0,0,.35); }
.gizmo-window-titlebar, .gizmo-news-ribbon { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 14px; background: #27333d; color: #cbd5dd; font-size: .78rem; }
.gizmo-opened-window iframe, .gizmo-news-window iframe { margin-inline: auto; }
.gizmo-manager-path { display: flex; align-items: center; gap: 10px; width: fit-content; margin: 0 auto 18px; padding: 10px 14px; border: 1px solid rgba(49,135,217,.45); border-radius: 999px; background: rgba(49,135,217,.12); color: #cfe8ff; font-size: .88rem; }
.news-demo-layout { display: grid; gap: 22px; }
.gizmo-news-ribbon { background: linear-gradient(90deg, #40acd3, #3187d9); color: white; }
.news-code-card { overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: #050b12; }
.news-code-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 16px; border-bottom: 1px solid rgba(255,255,255,.08); background: #101b26; }
.news-code-heading > div { display: grid; gap: 5px; }
.news-code-heading small { max-width: 68ch; color: var(--muted); line-height: 1.45; }
.news-code-heading button { flex: none; min-height: 38px; padding: 0 14px; border: 1px solid rgba(233,189,89,.5); border-radius: 9px; background: rgba(233,189,89,.1); color: #f7d985; font-weight: 800; cursor: pointer; }
.news-code-heading button[data-copied="true"] { border-color: #78d5a0; color: #9be3b9; }
.news-code-card textarea { display: block; width: 100%; min-height: 118px; resize: vertical; padding: 18px; border: 0; outline: 0; background: #050b12; color: #d6e5f2; font: .82rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; direction: ltr; text-align: left; }
.city-directory { margin-top: 58px; }
.city-group { margin-top: 30px; }
.city-group h3 { color: var(--muted); }
.next-city-salah { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px; border: 1px solid rgba(49,135,217,.72); border-radius: 15px; background: #18314a; }
.next-city-salah strong { font-size: clamp(1.3rem, 4vw, 2rem); }
.city-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 24px 0; list-style: none; }
.city-times li { display: flex; justify-content: space-between; gap: 15px; padding: 16px; border-radius: 11px; background: var(--surface-strong); }
.calculation-details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--border); }
.calculation-details div { padding: 15px; background: var(--surface); }
.calculation-details dt { color: var(--muted); font-size: .85rem; }
.calculation-details dd { margin: 5px 0 0; font-weight: 750; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

@media (max-width: 760px) {
  .site-header { align-items: flex-start; padding-block: 20px; }
  .site-header nav { flex-direction: column; align-items: flex-end; gap: 10px; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-block: 55px; }
  .widget-preview div { flex-wrap: wrap; }
  .features ul, .language-grid { grid-template-columns: 1fr; }
  .signal-list { grid-template-columns: 1fr; }
  .city-times, .calculation-details { grid-template-columns: 1fr; }
  .gizmo-showcase { padding-block: 58px; }
  .showcase-card { border-radius: 18px; }
  .gizmo-shell-toolbar { grid-template-columns: 1fr; padding: 10px; }
  .gizmo-session-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gizmo-session-chip { min-height: 44px; padding-inline: 6px; }
  .gizmo-shell-desktop { padding: 17px; }
  .gizmo-shell-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compact-salah { grid-template-columns: auto 1fr; }
  .compact-salah__value { grid-column: 2; text-align: start; }
  .gizmo-schedule-dialog { padding: 40px 10px 14px; }
  .news-code-heading { align-items: flex-start; flex-direction: column; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
