/* ===== SimplChek marketing site ===== */
:root {
  --brand-green: #00973A;
  --brand-green-d: #007a30;
  --brand-blue: #1f7fb8;
  --brand-orange: #f7823b;   /* secondary accent, from the product illustrations */
  --brand-navy: #12356b;     /* dark band bg, matches the product-shot background */
  --brand-grad: linear-gradient(135deg, #1f7fb8 0%, #3f9d4f 55%, #8cc63f 100%);
  --ink: #0f1722;
  --ink-soft: #45525f;
  --muted: #6b7785;
  --line: #e5e9ee;
  --bg: #ffffff;
  --bg-alt: #f5f8fa;
  --bg-dark: #0f1722;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 34, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 34, 0.14);
  --maxw: 1140px;
  --font: 'Inter', 'Noto Sans Arabic', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans SC', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; line-height: 1; cursor: pointer;
  padding: 12px 20px; border-radius: 10px; border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand-green); color: #fff; }
.btn-primary:hover { background: var(--brand-green-d); box-shadow: 0 8px 20px rgba(0,151,58,.28); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand-green); color: var(--brand-green); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { color: var(--brand-green); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-sm { padding: 9px 14px; font-size: 14px; }
.btn-block { width: 100%; }

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand-green); margin-bottom: 14px;
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand-logo { height: 26px; width: auto; }
.footer-logo { height: 24px; filter: brightness(0) invert(1); opacity: .9; }
.main-nav { display: flex; gap: 26px; margin-inline-start: 12px; }
.main-nav a { font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.main-nav a:hover { color: var(--brand-green); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }

/* Language switcher */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); border-radius: 9px;
  padding: 8px 10px; font: inherit; font-size: 14px; font-weight: 500; color: var(--ink-soft);
}
.lang-btn:hover { border-color: var(--brand-green); color: var(--brand-green); }
.lang-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px);
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); list-style: none; padding: 6px; min-width: 200px;
  max-height: 70vh; overflow-y: auto; z-index: 60;
}
.lang-menu li {
  padding: 9px 12px; border-radius: 8px; cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: flex-start; gap: 11px;
}
.lang-menu li:hover { background: var(--bg-alt); }
.lang-menu li[aria-selected="true"] { color: var(--brand-green); font-weight: 600; background: var(--bg-alt); }
.lang-menu li .native { color: inherit; font-size: 14px; }
/* flags (flag-icons) */
.lang-menu li .fi { width: 22px; height: 16px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.lang-flag.fi { width: 22px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }

/* simplcubed AI header button */
.btn-cubed { background: var(--brand-grad); color: #fff; box-shadow: 0 4px 14px rgba(31,127,184,.25); }
.btn-cubed:hover { filter: brightness(1.05); box-shadow: 0 8px 22px rgba(31,127,184,.34); }
.btn-cubed svg { opacity: .95; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ===== Hero ===== */
.hero { padding: 72px 0 64px; background: radial-gradient(1200px 500px at 70% -10%, rgba(63,157,79,.10), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(34px, 5vw, 54px); line-height: 1.08; font-weight: 800; letter-spacing: -.02em;
  margin-bottom: 18px;
}
/* Rotating headline word ("A SIMPL way of doing <word>") */
.rotate-word {
  display: inline-block;
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: transform .36s ease, opacity .36s ease;
  will-change: transform, opacity;
}
.rotate-word.rotate-out  { transform: translateY(-0.55em); opacity: 0; }
.rotate-word.rotate-prep { transform: translateY(0.55em);  opacity: 0; transition: none; }
@media (prefers-reduced-motion: reduce) {
  .rotate-word, .rotate-word.rotate-out, .rotate-word.rotate-prep { transition: none; transform: none; opacity: 1; }
}
.hero .lead { font-size: 19px; color: var(--ink-soft); max-width: 540px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* App store badges (official images) */
.app-badges { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.app-badge { display: inline-flex; transition: transform .12s ease, filter .12s ease; }
.app-badge img { height: 48px; width: auto; display: block; }
.app-badge:hover { transform: translateY(-2px); filter: drop-shadow(0 8px 16px rgba(15,23,34,.18)); }

/* Hero product shot (real app multiscreen) */
.hero-art { display: flex; justify-content: center; }
.hero-shot {
  position: relative; border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-lg); line-height: 0;
  border: 1px solid rgba(15,23,34,.06);
}
.hero-shot img { width: 100%; height: auto; display: block; }
.hero-shot::after {
  content: ""; position: absolute; inset: 0; border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); pointer-events: none;
}

/* ===== Stats ===== */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 34px 24px; text-align: center; }
.stat strong { display: block; font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.stat span { font-size: 14px; color: var(--muted); }

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.section-head p { font-size: 18px; color: var(--ink-soft); margin-top: 12px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card-ico { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; font-size: 26px; border-radius: 12px; background: linear-gradient(135deg, rgba(31,127,184,.12), rgba(140,198,63,.18)); margin-bottom: 16px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 15px; }

/* simplcubed AI featured card */
.cubed-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: 22px; padding: 28px 32px; border-radius: var(--radius);
  background: linear-gradient(120deg, #0f1722 0%, #16324a 60%, #1f5a3a 100%);
  color: #fff; transition: transform .15s ease, box-shadow .15s ease;
}
.cubed-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cubed-card-main { display: flex; align-items: center; gap: 20px; }
.cubed-ico { background: rgba(255,255,255,.12); color: #8cc63f; font-size: 24px; }
.cubed-card h3 { font-size: 21px; margin-bottom: 6px; color: #fff; }
.cubed-card p { color: #c8d2db; font-size: 15px; max-width: 640px; }
.cubed-cta {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: #fff; color: #0f1722; font-weight: 600; font-size: 15px;
  padding: 12px 20px; border-radius: 10px; flex: none;
}
.cubed-card:hover .cubed-cta { background: #8cc63f; }

/* Steps (illustrated) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step { text-align: center; padding: 8px; }
.step-art { position: relative; width: 168px; height: 168px; margin: 0 auto 20px; }
.step-art img { width: 100%; height: 100%; object-fit: contain; }
.step-num {
  position: absolute; inset-inline-start: 50%; transform: translateX(-50%); bottom: -6px;
  width: 40px; height: 40px; border-radius: 50%; background: var(--brand-grad); color: #fff;
  font-weight: 800; font-size: 17px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(31,127,184,.3); border: 3px solid #fff;
}
html[dir="rtl"] .step-num { transform: translateX(50%); }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 15px; }

/* Industries icon grid */
.ind-grid { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.ind-tile {
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  padding: 24px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.ind-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.ind-tile img { width: 52px; height: 52px; object-fit: contain; }
.ind-tile span { font-size: 14px; font-weight: 500; color: var(--ink-soft); }

/* Integrations dark */
.section-dark { background: var(--bg-dark); color: #fff; }
.section-dark .eyebrow { color: #8cc63f; }
.integ-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.integ-grid h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; line-height: 1.15; }
.integ-grid p { color: #b9c2cc; font-size: 17px; margin-bottom: 26px; }
.integ-list { list-style: none; display: grid; gap: 14px; }
.integ-list li { position: relative; padding-inline-start: 32px; color: #d6dde3; }
.integ-list li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 0; width: 22px; height: 22px; background: var(--brand-green); color: #fff; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; position: relative; }
.plan-featured { border-color: var(--brand-green); box-shadow: 0 14px 40px rgba(0,151,58,.16); }
.plan-badge { position: absolute; top: -13px; inset-inline-start: 28px; background: var(--brand-green); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.plan h3 { font-size: 20px; margin-bottom: 12px; }
.price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 6px; }
.price .amt { font-size: 38px; font-weight: 800; letter-spacing: -.02em; }
.price .per { color: var(--muted); font-size: 15px; }
.plan-for { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.plan ul { list-style: none; display: grid; gap: 11px; margin-bottom: 24px; }
.plan ul li { position: relative; padding-inline-start: 26px; font-size: 15px; color: var(--ink-soft); }
.plan ul li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--brand-green); font-weight: 700; }

/* CTA band */
.cta-band { background: var(--brand-grad); color: #fff; padding: 76px 0; text-align: center; }
.cta-inner h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 12px; }
.cta-inner p { font-size: 19px; opacity: .92; margin-bottom: 28px; }
.cta-inner .hero-cta { justify-content: center; }
.cta-band .btn-primary { background: #fff; color: var(--brand-green); }
.cta-band .btn-primary:hover { background: #f0f0f0; }

/* Footer */
.site-footer { background: var(--bg-dark); color: #c4ccd4; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand p { margin-top: 14px; font-size: 14px; color: #8c97a2; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 14px; letter-spacing: .03em; }
.footer-col a { display: block; font-size: 14px; color: #9aa5af; margin-bottom: 9px; }
.footer-col a:hover { color: #fff; }
.footer-col .btn { margin-bottom: 10px; }
.footer-col .btn-ghost { color: #c4ccd4; border: 1px solid rgba(255,255,255,.2); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; font-size: 13px; color: #76828d; }

/* ===== RTL ===== */
html[dir="rtl"] .main-nav,
html[dir="rtl"] .header-actions { direction: rtl; }
html[dir="rtl"] .hero .lead { margin-inline-end: auto; }
html[dir="rtl"] body { font-family: 'Noto Sans Arabic', var(--font); }
html[dir="rtl"] .cubed-cta svg { transform: scaleX(-1); }

/* ===== Responsive ===== */
@media (max-width: 920px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { order: -1; }
  .integ-grid { grid-template-columns: 1fr; gap: 36px; }
  .cards, .steps, .plans { grid-template-columns: 1fr; }
  .ind-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-actions .btn-ghost { display: none; }
  .main-nav.open {
    display: flex; flex-direction: column; position: absolute; top: 68px; inset-inline: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 16px 24px; gap: 14px;
  }
}
@media (max-width: 520px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  #langLabel { display: none; }
}
