/* AlSalam Company — company homepage (index.html). The product page keeps styles.css. */
:root {
  --ink: #07111c;
  --ink-2: #0b1a29;
  --ink-3: #102438;
  --line-dark: rgba(255, 255, 255, 0.09);
  --teal: #0d7377;
  --teal-bright: #14a3a8;
  --teal-glow: #2dd4cf;
  --teal-mist: #e6f3f3;
  --gold: #b8952e;
  --gold-soft: #e0c77c;
  --canvas: #f3f5f8;
  --surface: #ffffff;
  --slate: #5b6b7c;
  --slate-light: #9fb0c0;
  --mist: #dde4ea;
  --text: #07111c;
  --radius: 16px;
  --radius-lg: 24px;
  --nav-h: 72px;
  --max: 1180px;
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--canvas);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0; }
p { margin: 0; }

.skip {
  position: absolute; inset-inline-start: 12px; top: -48px; z-index: 80;
  background: var(--teal); color: #fff; padding: 8px 14px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }

/* ——— Buttons ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 12px;
  font-weight: 600; font-size: 15px; border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 24px -10px rgba(13, 115, 119, .7); }
.btn-primary:hover { background: #0f868b; }
.btn-ghost { border-color: rgba(255, 255, 255, .22); color: #fff; background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .45); }
.btn-outline { border-color: var(--mist); color: var(--ink); background: var(--surface); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 16px; }
.btn svg { flex-shrink: 0; }
[dir="rtl"] .btn .arrow { transform: scaleX(-1); }

/* ——— Nav ——— */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(7, 17, 28, .72); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-dark); color: #fff;
  transition: background .25s ease;
}
.nav.scrolled { background: rgba(7, 17, 28, .94); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name strong { font-size: 17px; font-weight: 700; }
.brand-name span { font-size: 12px; color: var(--teal-glow); }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 10px; font-size: 15px;
  color: rgba(255, 255, 255, .78); transition: color .2s, background .2s;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav-links-cta { display: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  display: flex; background: rgba(255, 255, 255, .07); border-radius: 10px; padding: 3px;
  border: 1px solid var(--line-dark);
}
.lang-toggle button {
  border: 0; background: transparent; color: rgba(255, 255, 255, .7);
  font: 600 13px var(--font); min-width: 36px; height: 32px; border-radius: 8px; cursor: pointer;
}
.lang-toggle button.active { background: #fff; color: var(--ink); }
.nav-cta { min-height: 42px; padding: 0 18px; }
.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-dark);
  background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.menu-btn span { width: 18px; height: 2px; background: #fff; border-radius: 2px; }

@media (max-width: 1020px) {
  .menu-btn { display: flex; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed; top: var(--nav-h); inset-inline: 0; flex-direction: column; gap: 2px;
    background: var(--ink); padding: 12px 16px 20px; border-bottom: 1px solid var(--line-dark);
    transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-links a { padding: 12px; font-size: 16px; }
  .nav-links-cta { display: block; margin-top: 8px; }
  .nav-links-cta .btn { width: 100%; color: #fff; }
}

/* ——— Hero ——— */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(20, 163, 168, .28), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(184, 149, 46, .14), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  padding: calc(var(--nav-h) + 72px) 0 96px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero-grid > *, .about-grid > * { min-width: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(45, 212, 207, .35); background: rgba(45, 212, 207, .08);
  color: var(--teal-glow); font-size: 14px; font-weight: 600;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal-glow); box-shadow: 0 0 12px var(--teal-glow); }
.hero h1 { font-size: clamp(36px, 5.4vw, 64px); font-weight: 700; margin: 22px 0 18px; letter-spacing: -.01em; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--teal-glow), var(--gold-soft));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: 18px; color: rgba(255, 255, 255, .74); max-width: 580px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.code-card {
  position: relative; border-radius: 20px; border: 1px solid var(--line-dark);
  background: linear-gradient(180deg, rgba(16, 36, 56, .9), rgba(7, 17, 28, .9));
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .06);
  overflow: hidden; direction: ltr; text-align: left;
}
.code-bar { display: flex; align-items: center; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--line-dark); }
.code-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3b4c; }
.code-bar i:nth-child(1) { background: #ff5f57; } .code-bar i:nth-child(2) { background: #febc2e; } .code-bar i:nth-child(3) { background: #28c840; }
.code-bar span { margin-inline-start: 10px; font: 12px ui-monospace, Consolas, monospace; color: var(--slate-light); }
.code-body { padding: 20px 22px 24px; font: 13.5px/1.9 ui-monospace, "Cascadia Code", Consolas, monospace; color: #c9d6e2; white-space: pre; overflow-x: auto; }
.code-body .k { color: #ff7ab2; } .code-body .s { color: var(--gold-soft); } .code-body .f { color: var(--teal-glow); } .code-body .c { color: #5f7487; }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .96); color: var(--ink); font-size: 13px; font-weight: 600;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55);
}
.float-chip b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--teal-mist); color: var(--teal); }
.hero-visual { position: relative; }
.chip-a { bottom: -22px; inset-inline-start: -18px; }
.chip-b { top: -20px; inset-inline-end: -14px; }

.stats {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 72px;
  border: 1px solid var(--line-dark); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .03);
}
.stat { padding: 24px 22px; }
.stat + .stat { border-inline-start: 1px solid var(--line-dark); }
.stat strong { display: block; font-size: 34px; font-weight: 700; color: #fff; line-height: 1.2; }
.stat strong small { font-size: 20px; color: var(--teal-glow); }
.stat span { font-size: 14px; color: var(--slate-light); }

/* ——— Sections ——— */
.section { padding: 104px 0; }
.section-alt { background: var(--surface); }
.section-dark { background: var(--ink); color: #fff; }
.head { max-width: 720px; margin-bottom: 52px; }
.head.center { margin-inline: auto; text-align: center; }
.kicker { color: var(--teal); font-weight: 700; font-size: 14px; letter-spacing: .02em; margin-bottom: 10px; }
.section-dark .kicker { color: var(--teal-glow); }
.head h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; }
.lede { margin-top: 14px; font-size: 17px; color: var(--slate); }
.section-dark .lede { color: var(--slate-light); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-copy p + p { margin-top: 14px; }
.about-copy p { color: var(--slate); font-size: 17px; }
.about-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.about-points li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.about-points li::before {
  content: ""; flex-shrink: 0; margin-top: 6px; width: 20px; height: 20px; border-radius: 6px;
  background: var(--teal-mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d7377' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat;
}
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.value {
  padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--mist);
}
.value:nth-child(2) { transform: translateY(28px); }
.value:nth-child(4) { transform: translateY(28px); }
.value .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--teal-glow); margin-bottom: 16px; }
.value h3 { font-size: 18px; margin-bottom: 6px; }
.value p { font-size: 14.5px; color: var(--slate); }

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc {
  position: relative; padding: 30px 28px; border-radius: var(--radius-lg); background: var(--canvas);
  border: 1px solid transparent; transition: border-color .25s, transform .25s, background .25s;
}
.svc:hover { border-color: rgba(13, 115, 119, .35); background: #fff; transform: translateY(-3px); box-shadow: 0 24px 50px -30px rgba(7, 17, 28, .35); }
.svc .ic {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal), #0a5558); color: #fff; margin-bottom: 20px;
}
.svc h3 { font-size: 20px; margin-bottom: 8px; }
.svc p { color: var(--slate); font-size: 15px; }
.svc .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tag { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--mist); color: var(--ink-3); direction: ltr; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.member {
  position: relative; padding: 28px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2)); border: 1px solid var(--line-dark); overflow: hidden;
}
.member::after {
  content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%;
  inset-inline-end: -60px; top: -60px; background: radial-gradient(circle, rgba(45, 212, 207, .16), transparent 70%);
}
.member-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.avatar {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(45, 212, 207, .1); border: 1px solid rgba(45, 212, 207, .3); color: var(--teal-glow);
}
.exp { text-align: end; }
.exp strong { display: block; font-size: 30px; line-height: 1; color: var(--gold-soft); }
.exp span { font-size: 12px; color: var(--slate-light); }
.exp-badge span {
  display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  color: var(--gold-soft); background: rgba(224, 199, 124, .08); border: 1px solid rgba(224, 199, 124, .3);
}
.member h3 { font-size: 19px; margin-bottom: 6px; }
.member p { font-size: 14.5px; color: var(--slate-light); }
.member .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.member .tag { background: rgba(255, 255, 255, .05); border-color: var(--line-dark); color: #d6e1ea; }
.member.wide { grid-column: span 3; display: flex; align-items: center; gap: 24px; }
.member.wide .avatar { flex-shrink: 0; width: 64px; height: 64px; }
.member.wide .member-copy { flex: 1; }

/* Founder */
.founder {
  position: relative; display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center;
  padding: 28px; margin-bottom: 28px; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(135deg, var(--ink-3), var(--ink-2)); border: 1px solid var(--line-dark);
}
.founder::after {
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; pointer-events: none;
  inset-inline-end: -120px; bottom: -140px; background: radial-gradient(circle, rgba(224, 199, 124, .14), transparent 70%);
}
.founder-photo { margin: 0; position: relative; }
.founder-photo img {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 20%;
  border-radius: 20px; border: 1px solid rgba(224, 199, 124, .35);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .6);
}
.founder-copy { position: relative; z-index: 1; }
.founder-role {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--gold-soft);
  padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(224, 199, 124, .35); background: rgba(224, 199, 124, .08);
}
.founder-name { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.25; margin: 14px 0 12px; color: #fff; }
.founder-bio { font-size: 16px; line-height: 1.9; color: var(--slate-light); max-width: 60ch; }
.founder-quote {
  margin: 20px 0 0; padding-inline-start: 16px; border-inline-start: 3px solid var(--teal-glow);
  font-size: 16.5px; line-height: 1.8; color: #e3ebf2; font-weight: 600;
}
.founder-edu { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.founder-edu li {
  display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark);
}
.edu-degree { font-weight: 700; font-size: 14.5px; color: #fff; }
.edu-school { font-size: 13px; color: var(--slate-light); }

@media (max-width: 860px) {
  .founder { grid-template-columns: 1fr; gap: 24px; padding: 20px; }
  .founder-photo { max-width: 280px; margin-inline: auto; }
  .founder-copy { text-align: center; }
  .founder-quote { text-align: start; }
  .founder-edu { grid-template-columns: 1fr; text-align: start; }
}

.stack { margin-top: 56px; text-align: center; }
.stack p { color: var(--slate-light); font-size: 14px; margin-bottom: 16px; }
.stack-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.stack-row span {
  direction: ltr; padding: 8px 16px; border-radius: 10px; border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, .03); font-size: 14px; font-weight: 600; color: #e3ebf2;
}

/* Systems */
.sys-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sys {
  display: flex; flex-direction: column; border-radius: var(--radius-lg); background: #fff;
  border: 1px solid var(--mist); overflow: hidden; transition: transform .25s, box-shadow .25s;
}
.sys:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -36px rgba(7, 17, 28, .45); }
.sys-head { position: relative; padding: 28px 28px 24px; color: #fff; overflow: hidden; }
.sys-head::after {
  content: ""; position: absolute; inset-inline-end: -40px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.sys-pos .sys-head { background: linear-gradient(135deg, #0d7377, #07111c); }
.sys-clinic .sys-head { background: linear-gradient(135deg, #2b6cb0, #0b1a29); }
.sys-cafe .sys-head { background: linear-gradient(135deg, #a8742a, #1d140a); }
.sys-head .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .14); margin-bottom: 18px; }
.sys-head h3 { font-size: 22px; }
.sys-head p { margin-top: 4px; font-size: 14.5px; color: rgba(255, 255, 255, .78); }
.badge {
  position: absolute; top: 22px; inset-inline-end: 22px; z-index: 1; font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff;
}
.sys-body { padding: 24px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.sys-body ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.sys-body li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-3); }
.sys-body li::before { content: ""; flex-shrink: 0; margin-top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.sys-price { margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--mist); display: flex; align-items: baseline; gap: 6px; margin-bottom: 18px; }
.sys-price strong { font-size: 28px; }
.sys-price span { color: var(--slate); font-size: 14px; }
.sys-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sys-actions .btn { flex: 1; min-height: 46px; padding: 0 16px; }
.sys-note { text-align: center; margin-top: 28px; color: var(--slate); }

/* Apps */
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.app-card {
  display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: var(--radius);
  background: var(--canvas); border: 1px solid transparent; transition: border-color .2s, background .2s;
}
.app-card:hover { border-color: var(--mist); background: #fff; }
.app-icon { width: 64px; height: 64px; border-radius: 16px; flex-shrink: 0; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .35); }
.app-card h3 { font-size: 16px; margin-bottom: 2px; }
.app-card p { font-size: 13.5px; color: var(--slate); line-height: 1.6; }
.app-card .play { display: inline-flex; margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--teal); }
.apps-more { text-align: center; margin-top: 32px; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--mist); }
.step-num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--ink); color: var(--gold-soft); font-weight: 700; margin-bottom: 18px; direction: ltr;
}
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--slate); }

/* Contact */
.contact {
  position: relative; overflow: hidden; border-radius: 32px; color: #fff; padding: 64px;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(45, 212, 207, .25), transparent 60%),
    linear-gradient(135deg, var(--ink-3), var(--ink));
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center;
}
.contact h2 { font-size: clamp(28px, 3.4vw, 40px); }
.contact p { margin-top: 12px; color: rgba(255, 255, 255, .75); font-size: 17px; }
.contact-list { display: grid; gap: 12px; }
.contact-item {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line-dark); transition: background .2s, border-color .2s;
}
.contact-item:hover { background: rgba(255, 255, 255, .1); border-color: rgba(45, 212, 207, .4); }
.contact-item .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--teal); flex-shrink: 0; }
.social-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.social-pair .contact-item { min-width: 0; }
.social-pair b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-item > span:last-child { min-width: 0; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--line-dark); color: #fff; background: rgba(255, 255, 255, .04); transition: background .2s, border-color .2s;
}
.socials a:hover { background: var(--teal); border-color: var(--teal); }
.contact-item small { display: block; color: var(--slate-light); font-size: 13px; }
.contact-item b { font-size: 16px; }

/* Footer */
.footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding: 64px 0 28px; margin-top: 104px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer-about { font-size: 14.5px; max-width: 320px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.footer-col a:hover { color: var(--teal-glow); }
.footer-bottom {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-dark);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px;
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .svc, .sys { transition: none; }
}

/* ——— Responsive ——— */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 560px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .svc-grid, .team-grid, .sys-grid, .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .member.wide { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; padding: 48px 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .hero { padding: calc(var(--nav-h) + 48px) 0 64px; }
  .hero-lead { font-size: 16.5px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .stats { grid-template-columns: 1fr; margin-top: 56px; }
  .stat + .stat { border-inline-start: 0; border-top: 1px solid var(--line-dark); }
  .stat strong { font-size: 28px; }
  .code-body { font-size: 12px; padding: 16px; }
  .chip-a { inset-inline-start: 8px; } .chip-b { inset-inline-end: 8px; }
  .values { grid-template-columns: 1fr; }
  .value:nth-child(2), .value:nth-child(4) { transform: none; }
  .svc-grid, .team-grid, .sys-grid, .apps-grid, .steps { grid-template-columns: 1fr; }
  .member.wide { grid-column: auto; flex-direction: column; align-items: flex-start; }
  .contact { padding: 36px 22px; border-radius: 24px; }
  .social-pair { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-name span { display: none; }
}
