/* ==========================================================================
   Yacine TV — shared stylesheet
   Sunset orange + ink palette.
   ========================================================================== */

:root {
  --orange: #f97316;
  --orange-deep: #9a3412;
  --amber: #f59e0b;
  --ink: #1a0f06;
  --ink-soft: #2a1a0c;
  --cream: #fef3c7;
  --pink: #ec4899;
  --teal: #14b8a6;
  --text: #1c0f04;
  --text-soft: #5a3a1f;
  --muted: #998475;
  --bg: #fff8ef;
  --surface: #ffffff;
  --line: rgba(26, 15, 6, 0.08);
  --shadow-sm: 0 4px 12px rgba(26, 15, 6, 0.06);
  --shadow-md: 0 14px 40px rgba(26, 15, 6, 0.10);
  --shadow-lg: 0 24px 70px rgba(26, 15, 6, 0.20);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: 1120px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Display", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
[lang="ar"], .ar { font-family: -apple-system, "SF Arabic", "Geeza Pro", "Tahoma", "Cairo", sans-serif; direction: rtl; }
a { color: var(--ink); text-decoration: none; border-bottom: 1px dashed transparent; transition: border-color .2s ease, color .2s ease; }
a:hover { border-bottom-color: var(--orange); }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 239, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.01em; color: var(--ink); }
.nav__brand:hover { border-color: transparent; }
.nav__logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  display: grid; place-items: center; color: var(--cream); font-weight: 900;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.4);
}
.nav__links { display: flex; gap: 22px; align-items: center; }
.nav__links a { font-size: 14px; font-weight: 600; color: var(--text-soft); border: none; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { background: var(--ink); color: #fff !important; padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; border: none !important; }
.nav__cta:hover { background: var(--ink-soft); }
@media (max-width: 640px) { .nav__links a:not(.nav__cta) { display: none; } }

.hero {
  position: relative;
  background:
    radial-gradient(circle at 15% 0%, rgba(249, 115, 22, 0.28), transparent 50%),
    radial-gradient(circle at 90% 100%, rgba(245, 158, 11, 0.16), transparent 50%),
    linear-gradient(160deg, var(--ink), var(--ink-soft));
  color: #fff; overflow: hidden; padding: 90px 0 110px; isolation: isolate;
}
.hero::before { content: ""; position: absolute; border-radius: 50%; background: var(--orange); width: 480px; height: 480px; top: -160px; right: -160px; filter: blur(70px); opacity: 0.42; z-index: -1; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
@media (max-width: 880px) { .hero__grid { grid-template-columns: 1fr; gap: 48px; text-align: center; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(254, 243, 199, 0.18); border: 1px solid rgba(254, 243, 199, 0.4); color: var(--cream);
  padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.hero h1 { font-size: clamp(36px, 6vw, 60px); font-weight: 900; letter-spacing: -.02em; line-height: 1.05; margin: 22px 0 18px; }
.hero h1 .accent { background: linear-gradient(135deg, var(--orange), var(--cream)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 18px; color: rgba(255,255,255,.74); max-width: 540px; margin: 0 auto 32px; }
@media (min-width: 881px) { .hero p { margin-left: 0; } }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 880px) { .hero__actions { justify-content: center; } }

.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; padding: 14px 24px; border-radius: 14px; cursor: pointer; border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-1px); border-color: transparent; }
.btn:active { transform: translateY(0); }
.btn--primary { background: linear-gradient(135deg, var(--orange), var(--orange-deep)); color: #fff; box-shadow: 0 14px 30px rgba(249, 115, 22, 0.4); }
.btn--primary:hover { box-shadow: 0 18px 40px rgba(249, 115, 22, 0.55); }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.14); }
.btn--ghost:hover { background: rgba(255,255,255,.14); }
.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { background: var(--ink-soft); }

.phone {
  position: relative; width: 280px; aspect-ratio: 9/19; margin: 0 auto;
  border-radius: 38px; background: linear-gradient(180deg, #2a1a0c, #050200);
  padding: 12px; box-shadow: var(--shadow-lg), 0 0 0 8px rgba(255,255,255,0.04);
}
.phone__screen { position: relative; height: 100%; border-radius: 28px; background: linear-gradient(160deg, var(--ink), var(--orange-deep)); overflow: hidden; display: flex; flex-direction: column; }
.phone__notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 92px; height: 22px; background: #000; border-radius: 999px; z-index: 2; }
.phone__inner { padding: 44px 18px 18px; flex: 1; display: flex; flex-direction: column; gap: 14px; }
.phone__row { background: rgba(255,255,255,0.06); border-radius: 12px; padding: 12px; display: flex; align-items: center; gap: 10px; }
.phone__avatar { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; }
.phone__avatar.gk { background: var(--cream); color: var(--ink); }
.phone__avatar.def { background: var(--orange); }
.phone__avatar.mid { background: var(--amber); color: var(--ink); }
.phone__avatar.fwd { background: var(--pink); }
.phone__name { color: #fff; font-size: 12px; font-weight: 700; }
.phone__time { color: rgba(255,255,255,.55); font-size: 11px; font-family: ui-monospace, monospace; margin-left: auto; }
.phone__chip { font-size: 9px; font-weight: 800; color: #fff; background: var(--orange); padding: 3px 6px; border-radius: 6px; margin-left: auto; text-transform: uppercase; letter-spacing: .05em; }
.phone__hero { text-align: center; padding: 8px 0 4px; }
.phone__hero .clock { font-family: ui-monospace, monospace; font-size: 26px; font-weight: 900; color: #fff; }
.phone__hero .label { font-size: 10px; color: var(--cream); letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }

.section { padding: 90px 0; }
.section--soft { background: var(--surface); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section__kicker { font-size: 12px; font-weight: 800; color: var(--orange); letter-spacing: .14em; text-transform: uppercase; }
.section__title { font-size: clamp(28px, 4vw, 40px); font-weight: 900; letter-spacing: -.02em; margin: 12px 0 14px; color: var(--ink); }
.section__sub { font-size: 17px; color: var(--text-soft); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 880px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 26px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(249, 115, 22, .35); }
.feature__icon { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--orange), var(--orange-deep)); display: grid; place-items: center; color: #fff; font-size: 20px; margin-bottom: 16px; }
.feature h3 { font-size: 17px; font-weight: 800; margin: 0 0 8px; color: var(--ink); }
.feature p { font-size: 14px; color: var(--text-soft); margin: 0; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 36px; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; gap: 18px; padding: 28px; } }
.stat__num { font-size: clamp(28px, 4vw, 38px); font-weight: 900; background: linear-gradient(135deg, var(--orange), var(--cream)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.stat__label { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 6px; font-weight: 600; }

.cta { background: linear-gradient(135deg, var(--orange), var(--orange-deep)); border-radius: var(--radius-lg); padding: 60px 40px; text-align: center; color: #fff; position: relative; overflow: hidden; }
.cta h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 900; letter-spacing: -.02em; margin: 0 0 12px; }
.cta p { font-size: 16px; margin: 0 auto 28px; max-width: 520px; opacity: 0.92; }

.bilingual { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 48px; box-shadow: var(--shadow-sm); }
@media (max-width: 720px) { .bilingual { grid-template-columns: 1fr; padding: 28px; } }
.bilingual h3 { color: var(--ink); margin: 0 0 12px; font-size: 22px; font-weight: 800; }
.bilingual p { color: var(--text-soft); margin: 0 0 12px; }
.bilingual .ar { text-align: right; }

.footer { background: var(--ink); color: rgba(255,255,255,.6); padding: 48px 0 32px; font-size: 14px; }
.footer__inner { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; align-items: start; }
@media (max-width: 760px) { .footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .footer__inner { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { color: rgba(255,255,255,.6); border: none; }
.footer a:hover { color: var(--orange); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; }

.page { background: var(--bg); padding: 60px 0 90px; }
.page__hero { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.page__hero h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 900; letter-spacing: -.02em; margin: 8px 0 14px; color: var(--ink); }
.page__hero .meta { font-size: 13px; color: var(--muted); font-weight: 600; }
.page__hero p { font-size: 17px; color: var(--text-soft); }

.doc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 48px; max-width: 820px; margin: 0 auto; box-shadow: var(--shadow-sm); }
@media (max-width: 600px) { .doc { padding: 28px 22px; border-radius: 22px; } }
.doc h2 { font-size: 22px; font-weight: 800; margin: 36px 0 12px; color: var(--ink); }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 17px; font-weight: 800; margin: 24px 0 8px; color: var(--ink); }
.doc p, .doc li { font-size: 15.5px; color: var(--text-soft); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--ink); border-bottom-color: var(--orange); font-weight: 600; }

.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 4px 22px; transition: border-color .2s ease; }
.faq details[open] { border-color: rgba(249, 115, 22, .4); }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 16px; padding: 16px 0; color: var(--ink); display: flex; align-items: center; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 700; color: var(--orange); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 18px; color: var(--text-soft); font-size: 15px; }

.contact-card { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 36px; margin-top: 48px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; }
@media (max-width: 600px) { .contact-card { grid-template-columns: 1fr; } }
.contact-card h3 { margin: 0 0 6px; font-size: 20px; font-weight: 800; }
.contact-card p { margin: 0; color: rgba(255,255,255,.7); }

.notice {
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text-soft);
  margin: 24px 0;
}
.notice strong { color: var(--ink); }
