/* Cynor — draft public site. Palette follows the company profile PDF. */
:root {
  --navy: #0b1f36;
  --navy-2: #13304f;
  --navy-3: #1d4a73;
  --blue: #2a6a9b;
  --gold: #c9a043;
  --gold-soft: #f5ecd6;
  --gold-line: #e6d4a6;
  --ink: #0b1f36;
  --muted: #5b6b7c;
  --line: #e1e6ec;
  --soft: #f1f4f8;
  --white: #ffffff;
  --green: #2e7d4f;
  --green-soft: #eaf4ee;
  --red: #b23a2e;
  --red-soft: #f9ece9;
  --radius: 18px;
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); line-height: 1.18; margin-bottom: 24px; font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.7rem); line-height: 1.3; margin-bottom: 14px; font-weight: 700; }
h3 { font-size: 1.2rem; line-height: 1.45; margin-bottom: 8px; font-weight: 700; }
.hl { color: var(--gold); }
.container { width: min(calc(100% - 32px), var(--content)); margin-inline: auto; }

.eyebrow { display: inline-block; color: var(--gold); font-size: .88rem; font-weight: 700; margin-bottom: 8px; }
.lead { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 780px; margin-bottom: 0; }
.section { padding: 88px 0; }
.section.alt { background: var(--soft); }
.section-heading { margin-bottom: 40px; max-width: 820px; }

/* Buttons */
.btn {
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 24px; border-radius: 999px; font-weight: 700; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 10px 24px rgba(201,160,67,.28); }
.btn-gold:hover { background: #d4ad55; }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--white); border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { background: rgba(255,255,255,.14); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand-logo { height: 46px; width: auto; }
.nav { display: flex; gap: 22px; font-size: .92rem; font-weight: 600; }
.nav a:hover { color: var(--gold); }
.header-cta { min-height: 42px; padding: 0 20px; font-size: .92rem; }
.menu-button { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--soft); position: relative; cursor: pointer; }
.menu-button span, .menu-button::before, .menu-button::after { content: ""; position: absolute; right: 12px; left: 12px; height: 2px; background: var(--navy); transition: .25s; }
.menu-button::before { top: 14px; } .menu-button span { top: 21px; } .menu-button::after { top: 28px; }
.menu-open .menu-button::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-button span { opacity: 0; }
.menu-open .menu-button::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  background: var(--navy); color: var(--white); position: relative; overflow: hidden; isolation: isolate; padding-bottom: 64px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
}
.hero::after { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; border-radius: 50%; background: rgba(42,106,155,.28); filter: blur(60px); left: -180px; bottom: -220px; }
.hero-inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; padding: 96px 0 56px; }
.hero .eyebrow { color: var(--gold); }
.hero .lead { color: #c9d4df; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.logo-card { background: var(--white); border-radius: 26px; padding: 30px 34px; box-shadow: 0 30px 70px rgba(0,0,0,.35); max-width: 380px; margin-inline: auto; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); border-radius: var(--radius); padding: 20px 24px; }
.stat b { display: block; color: var(--gold); font-size: 1.9rem; line-height: 1.2; }
.stat span { color: #c9d4df; font-size: .92rem; }

/* Generic cards */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-4 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.section.alt .card { border-color: transparent; }
.card-tag { display: block; color: var(--gold); font-size: .85rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--muted); margin-bottom: 0; font-size: .95rem; }
.card-link { display: inline-block; margin-top: 14px; color: var(--navy-3); font-weight: 700; font-size: .9rem; }
.card-link:hover { color: var(--gold); }

/* Operating model equation */
.equation { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: stretch; }
.eq-card { border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.eq-0 { background: var(--white); }
.eq-1 { background: var(--navy); color: var(--white); border-color: var(--navy); }
.eq-2 { background: var(--gold-soft); border-color: var(--gold-line); }
.eq-sub { color: var(--muted); font-size: .92rem; }
.eq-1 .eq-sub { color: #b8c6d4; }
.math-symbol { display: grid; place-items: center; color: var(--gold); font-size: 2.2rem; font-weight: 700; }
.dots { list-style: none; padding: 0; margin: 0; }
.dots li { position: relative; padding-inline-start: 18px; font-size: .95rem; }
.dots li::before { content: ""; position: absolute; inset-inline-start: 0; top: .75em; width: 7px; height: 7px; border-radius: 2px; background: var(--gold); }

/* Steps */
.steps { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.steps-5 { grid-template-columns: repeat(5, 1fr); }
.step { position: relative; padding-top: 34px; margin-top: 16px; }
.step-no { position: absolute; top: -16px; inset-inline-start: 22px; background: var(--navy); color: var(--gold); font-weight: 700; font-size: .9rem; padding: 4px 14px; border-radius: 999px; }
.steps-5 .step { text-align: center; }
.steps-5 .step-no { inset-inline-start: 50%; transform: translateX(50%); }

/* Return cycle */
.cycle { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; }
.cycle-ring { width: 170px; height: 170px; border-radius: 50%; background: var(--navy); border: 8px solid var(--gold); display: grid; place-content: center; text-align: center; color: var(--white); }
.cycle-ring b { color: var(--gold); font-size: 3.4rem; line-height: 1; }
.cycle-bar { display: flex; border-radius: 16px; overflow: hidden; min-height: 130px; }
.cycle-seg { padding: 18px 20px; color: var(--white); display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.cycle-seg b { font-size: 1.1rem; }
.cycle-seg span { font-size: .9rem; color: rgba(255,255,255,.85); line-height: 1.6; }
.seg-0 { background: var(--blue); } .seg-1 { background: var(--navy-3); } .seg-2 { background: var(--navy); }

/* Roles */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.role { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.role-dark { background: var(--navy); color: var(--white); border-color: var(--navy); }
.role-tag { color: var(--gold); font-weight: 700; font-size: .9rem; }
.role h3 { font-size: 1.5rem; margin-bottom: 14px; }
.numbered { list-style: none; padding: 0; margin: 0; }
.numbered li { display: flex; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.role-dark .numbered li { border-color: rgba(255,255,255,.14); }
.numbered b { color: var(--gold); font-size: .9rem; min-width: 22px; }

/* Governance */
.gov { border-radius: var(--radius); padding: 30px; border: 1px solid; }
.gov-yes { background: var(--green-soft); border-color: #cfe6d7; }
.gov-no { background: var(--red-soft); border-color: #f0d3cd; }
.gov-yes h3 { color: var(--green); } .gov-no h3 { color: var(--red); }
.gov ul { list-style: none; padding: 0; margin: 0; }
.gov li { padding: 7px 0; display: flex; gap: 10px; }
.gov-yes i { color: var(--green); font-style: normal; } .gov-no i { color: var(--red); font-style: normal; }

/* Readiness checker */
.checker { display: grid; grid-template-columns: .7fr 1.3fr; gap: 24px; }
.checker-score { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.score-ring { width: 160px; height: 160px; border-radius: 50%; display: grid; place-items: center; position: relative; background: conic-gradient(var(--gold) 0deg, rgba(255,255,255,.12) 0deg); transition: background .3s; }
.score-ring::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--navy); }
.score-num { position: relative; font-size: 3rem; font-weight: 700; line-height: 1; }
.score-num small { display: block; font-size: .8rem; color: #b8c6d4; margin-top: 8px; }
.score-message { margin: 20px 0 0; color: #c9d4df; }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.check { display: flex; align-items: center; gap: 12px; text-align: start; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; font-weight: 600; color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s; }
.check:hover { border-color: var(--gold); }
.check .box { flex: none; width: 24px; height: 24px; border: 2px solid var(--gold); border-radius: 7px; display: grid; place-items: center; }
.check[aria-pressed="true"] { background: var(--gold-soft); border-color: var(--gold); }
.check[aria-pressed="true"] .box { background: var(--gold); }
.check[aria-pressed="true"] .box::after { content: "✓"; color: var(--navy); font-size: .85rem; font-weight: 700; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 920px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
.section.alt .faq details { border-color: transparent; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

.footnote { color: var(--muted); font-size: .9rem; margin: 26px 0 0; }
.footnote-box { background: var(--gold-soft); border: 1px solid var(--gold-line); color: #6b5520; border-radius: 14px; padding: 18px 22px; }

/* CTA */
.cta-section { padding: 88px 0 0; }
.cta-card { background: var(--navy); color: var(--white); border-radius: 24px; padding: 54px; display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: center; position: relative; overflow: hidden; isolation: isolate; }
.cta-card::before { content: ""; position: absolute; z-index: -1; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,.06); left: -90px; top: -110px; }
.cta-card p { color: #c9d4df; margin-bottom: 0; }
.cta-actions { display: flex; flex-direction: column; gap: 10px; min-width: 230px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 20px; align-items: start; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-card small { display: block; color: var(--muted); font-size: .85rem; }
.contact-card b { font-size: 1.05rem; word-break: break-word; }
a.contact-card:hover { box-shadow: 0 10px 30px rgba(11,31,54,.08); }
.contact-form { position: relative; }
.contact-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 14px; }
.contact-form input, .contact-form textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { color: var(--muted); font-size: .85rem; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.alert { border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-size: .92rem; }
.alert-ok { background: var(--green-soft); color: var(--green); }
.alert-err { background: var(--red-soft); color: var(--red); }

/* Footer */
.site-footer { background: #071526; color: #9fb0c2; padding: 30px 0; font-size: .88rem; margin-top: 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 700; }
.footer-brand img { width: 32px; height: 34px; object-fit: contain; background: var(--white); border-radius: 8px; padding: 3px; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1080px) {
  .nav, .header-cta { display: none; }
  .menu-button { display: block; }
  .nav.open { display: flex; position: fixed; inset: 76px 0 0; z-index: 60; background: var(--white); flex-direction: column; padding: 20px 16px; gap: 0; font-size: 1.05rem; overflow-y: auto; }
  .nav.open a { padding: 16px 4px; border-bottom: 1px solid var(--line); }
  .steps-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .section { padding: 64px 0; }
  .hero-inner { grid-template-columns: 1fr; padding: 56px 0 40px; gap: 32px; }
  .hero-logo { display: none; }
  .stats, .cards, .cards-4, .cards-2, .grid-2, .checker, .contact-grid, .steps { grid-template-columns: 1fr; }
  .steps-5 { grid-template-columns: 1fr 1fr; }
  .equation { grid-template-columns: 1fr; }
  .math-symbol { font-size: 1.8rem; line-height: 1; }
  .cycle { grid-template-columns: 1fr; justify-items: center; }
  .cycle-bar { flex-direction: column; width: 100%; }
  .cycle-seg { flex-basis: auto !important; }
  .cta-card { grid-template-columns: 1fr; padding: 34px 24px; }
  .cta-actions { min-width: 0; }
  .contact-cards, .form-row { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .steps-5 { grid-template-columns: 1fr; }
  .brand-logo { height: 40px; }
}
