@font-face {
  font-family: 'Rudaw';
  src: url('fonts/rudawregular2.woff') format('woff'), url('fonts/rudawregular2.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
:root {
  --blue: #1d5fe5; --blue2: #3b82f6; --blue-deep: #1740b8;
  --orange: #f26322; --orange2: #fb8043;
  --ink: #0b1220; --slate: #1e293b; --muted: #6b7a90; --line: #e8edf3;
  --bg: #f6f9fc; --card: #ffffff;
  --grad-orange: linear-gradient(135deg, #fb8043 0%, #f26322 100%);
  --grad-blue: linear-gradient(135deg, #3b82f6 0%, #1d5fe5 55%, #1740b8 100%);
  --shadow: 0 18px 40px rgba(13, 30, 80, .10);
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Rudaw', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.65; overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
section { scroll-margin-top: 76px; }

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(255,255,255,.72); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand img { height: 30px; width: auto; display: block; }
.nav-links { display: flex; gap: clamp(14px, 2vw, 28px); font-weight: 600; color: var(--muted); }
.nav-links a { position: relative; padding: 4px 0; transition: color .15s; }
.nav-links a:hover { color: var(--blue); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; gap: 6px; background: #eef3f8; padding: 4px; border-radius: 999px; }
.lang-switch button { padding: 6px 12px; border: none; background: transparent; border-radius: 999px; cursor: pointer; font-family: inherit; font-weight: 700; font-size: 13px; color: var(--slate); transition: all .15s; }
.lang-switch button.active { background: #fff; color: var(--blue); box-shadow: 0 2px 6px rgba(0,0,0,.08); }

.menu-btn { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; align-items: center; justify-content: center; background: #eef3f8; border: none; border-radius: 12px; cursor: pointer; }
.menu-btn span { width: 20px; height: 2px; background: var(--slate); border-radius: 2px; transition: all .25s; }
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  position: sticky; top: 64px; z-index: 90; background: #fff; border-bottom: 1px solid var(--line);
  padding: 8px clamp(16px,4vw,40px); max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease;
}
.mobile-menu.open { max-height: 320px; padding: 14px clamp(16px,4vw,40px); }
.mobile-menu a { padding: 12px 8px; font-weight: 700; color: var(--slate); border-radius: 10px; }
.mobile-menu a:hover { background: #f1f5f9; }

/* ===== HERO ===== */
.hero {
  position: relative; text-align: center; overflow: hidden;
  padding: clamp(64px, 9vw, 120px) clamp(18px,5vw,40px) clamp(64px,9vw,104px);
  background:
    radial-gradient(760px 420px at 50% -8%, rgba(29,95,229,.16), transparent 62%),
    radial-gradient(620px 380px at 88% 2%, rgba(242,99,34,.07), transparent 60%),
    linear-gradient(180deg, #eaf1ff 0%, var(--bg) 72%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: radial-gradient(rgba(29,95,229,.06) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 0%, #000 0%, transparent 75%);
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.hero-logo { height: clamp(54px, 9vw, 84px); width: auto; margin-bottom: 22px; }
.pill { display: inline-block; max-width: 560px; padding: 8px 18px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.5; color: var(--blue); box-shadow: 0 4px 14px rgba(0,0,0,.05); margin-bottom: 22px; }
.hero h1 { font-size: clamp(34px, 6vw, 60px); font-weight: 900; letter-spacing: -.02em; line-height: 1.12; }
.grad { background: var(--grad-blue); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .sub { font-size: clamp(16px, 2.4vw, 20px); color: var(--muted); max-width: 600px; margin: 18px auto 30px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.trial-note { color: var(--muted); font-size: 14px; margin-top: 18px; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: inherit; font-weight: 800; cursor: pointer; border: none; border-radius: 14px; transition: transform .15s, box-shadow .15s, filter .15s; }
.btn.primary { padding: 15px 30px; font-size: 17px; color: #fff; background: var(--grad-orange); box-shadow: 0 12px 26px rgba(242,99,34,.34); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(242,99,34,.46); }
.btn.primary.big { padding: 17px 42px; font-size: 19px; }
.btn.ghost { padding: 15px 26px; font-size: 17px; color: var(--blue-deep); background: #fff; border: 1px solid #cdd9ff; }
.btn.ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--blue2); }

/* ===== FEATURES ===== */
.features { max-width: 1120px; margin: 0 auto; padding: clamp(50px,8vw,80px) clamp(18px,5vw,40px); }
.features h2, .contact h2 { text-align: center; font-size: clamp(26px,4vw,36px); font-weight: 900; margin-bottom: clamp(28px,4vw,44px); letter-spacing: -.01em; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px; text-align: center; transition: transform .18s, box-shadow .18s, border-color .18s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #c3d4ff; }
.card .ic { font-size: 40px; margin-bottom: 14px; }
.card h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* ===== SYSTEMS ===== */
.systems { max-width: 1120px; margin: 0 auto; padding: clamp(50px,8vw,80px) clamp(18px,5vw,40px); text-align: center; }
.systems h2 { font-size: clamp(26px,4vw,36px); font-weight: 900; margin-bottom: 8px; letter-spacing: -.01em; }
.systems-sub { color: var(--muted); margin-bottom: clamp(28px,4vw,40px); font-size: 16px; }
.sys-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 320px)); gap: 20px; justify-content: center; }
.sys-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 34px 26px; text-align: center; transition: transform .18s, box-shadow .18s, border-color .18s; }
.sys-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #c3d4ff; }
.sys-ic { font-size: 50px; margin-bottom: 14px; }
.sys-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.sys-card p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.sys-link { display: inline-block; color: var(--blue); font-weight: 800; }

/* ===== ARTICLE (Wikipedia-style) ===== */
.article {
  padding: clamp(28px,5vw,56px) clamp(18px,5vw,40px) clamp(40px,6vw,72px);
  background:
    radial-gradient(900px 440px at 72% -8%, rgba(29,95,229,.14), transparent 60%),
    radial-gradient(620px 360px at 12% 4%, rgba(242,99,34,.06), transparent 60%),
    linear-gradient(180deg, #eaf1ff 0%, var(--bg) 64%);
}
.article-wrap { display: flex; gap: 36px; align-items: flex-start; max-width: 1180px; margin: 0 auto; }
.infobox { flex: 0 0 290px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; text-align: center; position: sticky; top: 84px; box-shadow: var(--shadow); }
.infobox-logo { width: 100%; max-width: 200px; height: auto; display: block; margin: 4px auto 18px; }
.infobox-dl { width: 100%; justify-content: center; margin-bottom: 16px; }
.infobox-facts { text-align: start; display: flex; flex-direction: column; gap: 11px; border-top: 1px solid var(--line); padding-top: 14px; font-size: 14px; font-weight: 600; color: var(--slate); }
.infobox-facts div { display: flex; align-items: center; gap: 8px; }
.article-body { flex: 1; min-width: 0; }
.article-body h1 { font-size: clamp(26px,4vw,38px); font-weight: 900; letter-spacing: -.01em; margin-bottom: 10px; }
.article-body .lead { font-size: 18px; color: var(--slate); font-weight: 600; margin-bottom: 14px; }
.article-body h2 { font-size: 24px; font-weight: 800; margin: 28px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.article-body h3 { font-size: 18px; font-weight: 800; margin: 18px 0 4px; color: var(--blue-deep); }
.article-body p { color: var(--muted); margin-bottom: 8px; }
@media (max-width: 820px) {
  .article-wrap { flex-direction: column; }
  .infobox { position: static; flex: none; width: 100%; max-width: 360px; margin: 0 auto; }
}

/* ===== SCREENSHOTS ===== */
.shots { max-width: 1000px; margin: 0 auto; padding: clamp(20px,4vw,40px) clamp(18px,5vw,40px) clamp(30px,5vw,56px); display: flex; flex-direction: column; gap: 22px; }
.shots-title { text-align: center; font-size: clamp(24px,4vw,32px); font-weight: 900; margin-bottom: 6px; }
.shots img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); display: block; }

/* ===== DOWNLOAD ===== */
.download { padding: clamp(50px,8vw,80px) clamp(18px,5vw,40px); }
.dl-card { max-width: 720px; margin: 0 auto; text-align: center; padding: clamp(36px,6vw,56px) clamp(24px,5vw,48px); border-radius: 28px; color: #fff; background: linear-gradient(135deg, #0b1220 0%, #1740b8 100%); position: relative; overflow: hidden; box-shadow: 0 24px 50px rgba(11,25,80,.30); }
.dl-logo { height: 34px; width: auto; background: #fff; padding: 10px 18px; border-radius: 14px; margin-bottom: 18px; box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.dl-card h2 { font-size: clamp(24px,4vw,34px); font-weight: 900; }
.dl-sub { color: #b6c6ff; margin: 8px 0 26px; font-size: 16px; }
.dl-card .trial-note { color: #9fb0e0; max-width: 460px; margin: 20px auto 0; }

/* ===== CONTACT ===== */
.contact { text-align: center; padding: clamp(50px,8vw,80px) clamp(18px,5vw,40px) clamp(60px,9vw,96px); }
.contact > p { color: var(--muted); margin-bottom: 26px; font-size: 16px; }
.wa-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.wa { display: inline-flex; align-items: center; gap: 9px; padding: 13px 24px; background: #25D366; color: #fff; border-radius: 999px; font-weight: 800; font-size: 16px; box-shadow: 0 10px 22px rgba(37,211,102,.28); transition: transform .15s; }
.wa:hover { transform: translateY(-2px); }

footer { text-align: center; padding: 28px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }

/* ===== REVEAL ANIMATION ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ===== ICONS (colorful symbol tiles) ===== */
.card .ic { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 16px; box-shadow: 0 8px 18px rgba(2,6,23,.12); }
.card .ic svg { width: 32px; height: 32px; color: #fff; }
.grid .card:nth-child(1) .ic { background: linear-gradient(135deg,#22c55e,#16a34a); }
.grid .card:nth-child(2) .ic { background: linear-gradient(135deg,#3b82f6,#1d4ed8); }
.grid .card:nth-child(3) .ic { background: linear-gradient(135deg,#a78bfa,#7c3aed); }
.grid .card:nth-child(4) .ic { background: linear-gradient(135deg,#fb923c,#f26322); }
.grid .card:nth-child(5) .ic { background: linear-gradient(135deg,#22d3ee,#0ea5a4); }
.grid .card:nth-child(6) .ic { background: linear-gradient(135deg,#f472b6,#db2777); }

.sys-ic { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 16px; background: linear-gradient(135deg,#3b82f6,#1d4ed8); box-shadow: 0 10px 22px rgba(29,78,216,.28); }
.sys-ic svg { width: 38px; height: 38px; color: #fff; }

.infobox-facts .fic { display: inline-flex; align-items: center; }
.infobox-facts .fic svg { width: 18px; height: 18px; }
.infobox-facts div:nth-child(1) .fic { color: #1d4ed8; }
.infobox-facts div:nth-child(2) .fic { color: #f26322; }
.infobox-facts div:nth-child(3) .fic { color: #16a34a; }
.infobox-facts div:nth-child(4) .fic { color: #0ea5a4; }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-btn { display: flex; }
  .mobile-menu { display: flex; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .lang-switch button { padding: 6px 9px; font-size: 12px; }
  .grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .brand img { height: 26px; }
}
