/* ==========================================================================
   RoGy Technologies — design system
   Brand navy #1E2E69 sampled from the official logo (assets/img/brand/rogy-logo.png).
   ========================================================================== */

:root {
  /* Brand — all derived from the official logo navy, same hue family */
  --navy: #1e2e69;
  --navy-900: #070d1e;
  --navy-850: #0a1430;
  --navy-800: #122048;
  --navy-700: #1e2e69;
  --navy-600: #2a3f86;
  --navy-500: #3a52a4;
  --navy-300: #8e9bc7;
  --navy-100: #dfe3f2;

  --ink: #101318;
  --ink-70: #44495a;
  --gray: #6b7280;
  --gray-soft: #8b92a3;
  --line: #e7e9f1;
  --line-soft: #f0f2f7;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --lavender: #f0effa;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --shell: 1240px;
  --gutter: 32px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11" 1, "ss01" 1;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 1.06;
  color: var(--ink);
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--navy-700); color: #fff; }

:focus-visible {
  outline: 2px solid var(--navy-600);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--navy-700);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- layout ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--wide { max-width: 1480px; }
.shell--narrow { max-width: 920px; }

.section { padding-block: clamp(76px, 9vw, 132px); }
.section--tight { padding-block: clamp(56px, 6vw, 88px); }
.section--soft { background: var(--bg-soft); }
.section--lavender { background: var(--lavender); }
.section--dark { background: var(--navy-900); color: #fff; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

/* ---------- type ---------- */
.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy-600);
  margin-bottom: 22px;
}
.section--dark .eyebrow,
.hero .eyebrow { color: #9fb2e8; }

.display {
  font-size: clamp(33px, 6.1vw, 76px);
  letter-spacing: -0.038em;
  line-height: 1.02;
}
.h1 { font-size: clamp(31px, 5.2vw, 64px); letter-spacing: -0.036em; }
.h2 { font-size: clamp(26px, 3.5vw, 46px); letter-spacing: -0.032em; }
.h3 { font-size: clamp(21px, 1.7vw, 25px); letter-spacing: -0.021em; line-height: 1.25; }
.h4 { font-size: 18px; letter-spacing: -0.014em; line-height: 1.3; }

.lede {
  font-size: clamp(18px, 1.45vw, 21px);
  line-height: 1.55;
  color: var(--ink-70);
  max-width: 62ch;
}
.section--dark .lede, .hero .lede { color: #b9c3dd; }

.muted { color: var(--gray); }
.small { font-size: 15px; line-height: 1.6; }
.tiny { font-size: 13px; line-height: 1.6; }

.measure { max-width: 46ch; }
.measure-wide { max-width: 60ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.012em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.22s var(--ease), color 0.22s var(--ease),
    border-color 0.22s var(--ease), transform 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 15px; height: 15px; flex: none; transition: transform 0.22s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary { background: var(--navy-700); color: #fff; box-shadow: 0 8px 24px -12px rgba(30, 46, 105, 0.7); }
.btn--primary:hover { background: var(--navy-600); box-shadow: 0 14px 32px -14px rgba(30, 46, 105, 0.8); }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #f1f3f9; }

.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.6); }

.btn--outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--outline:hover { border-color: var(--navy-300); background: var(--bg-soft); }

.btn--sm { padding: 11px 20px; font-size: 15px; }
.btn--lg { padding: 17px 34px; font-size: 17px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy-700);
  letter-spacing: -0.012em;
}
.link-arrow svg { width: 14px; height: 14px; transition: transform 0.22s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.section--dark .link-arrow { color: #9fb2e8; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}
.brand { flex: none; display: flex; align-items: center; }
.brand img { height: 30px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-70);
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.nav__link:hover, .nav__item:focus-within .nav__link { color: var(--ink); background: var(--line-soft); }
.nav__link[aria-current="page"] { color: var(--navy-700); font-weight: 600; }
.nav__link .chev { width: 10px; height: 10px; opacity: 0.55; transition: transform 0.2s var(--ease); }
.nav__item:hover .chev, .nav__item:focus-within .chev { transform: rotate(180deg); }

.nav__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 290px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 28px 60px -26px rgba(16, 19, 24, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.nav__item:hover .nav__panel,
.nav__item:focus-within .nav__panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav__panel a {
  display: block;
  padding: 11px 14px;
  border-radius: 13px;
  transition: background 0.16s var(--ease);
}
.nav__panel a:hover { background: var(--bg-soft); }
.nav__panel strong { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.012em; }
.nav__panel span { display: block; font-size: 13.5px; color: var(--gray); line-height: 1.45; margin-top: 2px; }

.header__actions { flex: none; display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gray);
  background: #fff;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease), background 0.18s var(--ease);
}
.lang-toggle strong { color: var(--navy-700); font-weight: 700; }
.lang-toggle__sep { opacity: 0.4; }
.lang-toggle:hover { border-color: var(--navy-300); background: var(--bg-soft); }
.lang-toggle--block {
  display: none;
  width: 100%;
  justify-content: center;
  margin-top: 14px;
  padding: 15px 20px;
  font-size: 15px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span {
  position: relative;
  display: block;
  width: 17px;
  height: 1.6px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px;
  height: 1.6px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease);
}
.nav-toggle span::before { top: -5.5px; }
.nav-toggle span::after { top: 5.5px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 68px 0 0;
  z-index: 110;
  background: #fff;
  overflow-y: auto;
  padding: 18px var(--gutter) 48px;
}
.mobile-nav[data-open="true"] { display: block; }
.mobile-nav details { border-bottom: 1px solid var(--line-soft); }
.mobile-nav summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 2px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.018em;
  cursor: pointer;
  list-style: none;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary .chev { width: 12px; height: 12px; opacity: 0.5; transition: transform 0.2s var(--ease); }
.mobile-nav details[open] summary .chev { transform: rotate(180deg); }
.mobile-nav details > a,
.mobile-nav .mobile-nav__sub a { display: block; padding: 12px 2px; font-size: 16px; color: var(--ink-70); }
.mobile-nav__sub { padding-bottom: 12px; }
.mobile-nav > a:not(.btn) {
  display: block;
  padding: 18px 2px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.018em;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav .btn { width: 100%; justify-content: center; margin-top: 26px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(120% 90% at 50% -10%, #17295e 0%, rgba(10, 20, 48, 0) 62%),
    radial-gradient(70% 55% at 78% 22%, rgba(58, 82, 164, 0.5) 0%, rgba(10, 20, 48, 0) 70%),
    linear-gradient(176deg, #0a1430 0%, #070d1e 55%, #050a17 100%);
  color: #fff;
  overflow: hidden;
  padding-top: clamp(64px, 8vw, 104px);
}
.hero__arc {
  position: absolute;
  top: -16%;
  left: 50%;
  width: min(1700px, 150%);
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  opacity: 0.9;
}
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 3px 3px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 100%);
}
.hero__copy { text-align: center; max-width: 880px; margin-inline: auto; }
.hero h1 { color: #fff; }
.hero .lede { margin: 24px auto 0; max-width: 60ch; }
.hero .btn-row { justify-content: center; margin-top: 38px; }

/* --- product stage ------------------------------------------------------ */
.stage {
  position: relative;
  margin-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(40px, 6vw, 86px);
}
.stage__floor {
  position: absolute;
  left: 50%;
  bottom: clamp(44px, 6vw, 96px);
  width: min(1320px, 112%);
  height: 220px;
  transform: translateX(-50%);
  background: radial-gradient(58% 50% at 50% 48%, rgba(118, 152, 236, 0.34) 0%, rgba(10, 20, 48, 0) 72%);
  filter: blur(16px);
  pointer-events: none;
}
.stage__line {
  position: absolute;
  left: 50%;
  bottom: clamp(44px, 6vw, 96px);
  width: min(1100px, 96%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(143, 176, 255, 0) 0%, rgba(143, 176, 255, 0.4) 50%, rgba(143, 176, 255, 0) 100%);
  pointer-events: none;
}
.stage__row {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(6px, 1.8vw, 30px);
  max-width: 1240px;
  margin-inline: auto;
}

/* a single product on the stage.
   Sized by HEIGHT so the pieces keep believable relative proportions
   (a receipt printer really is about half the height of a counter terminal). */
.prod { position: relative; flex: none; display: flex; align-items: flex-end; }
.prod img { width: auto; height: 100%; }

.prod--kasa { height: clamp(176px, 23vw, 318px); z-index: 3; }
.prod--mini { height: clamp(124px, 16vw, 222px); z-index: 2; }
.prod--printer { height: clamp(96px, 12.6vw, 176px); }
.prod--scan { height: clamp(90px, 11.8vw, 163px); }
.prod--pay { height: clamp(70px, 9vw, 124px); }
.prod--cash { height: clamp(60px, 7.8vw, 108px); }


/* real FactE screenshot composited into a device screen */
.screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.screen__img {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  object-fit: cover;
  object-position: left top;
  border-radius: 1px;
}
.screen__glare {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  background: linear-gradient(104deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 26%, rgba(255, 255, 255, 0) 48%);
  pointer-events: none;
}

.stage__caption {
  margin-top: clamp(26px, 3.5vw, 44px);
  text-align: center;
  font-size: 13.5px;
  color: #8694bb;
  letter-spacing: 0.005em;
}
.stage__caption strong { color: #c9d3ec; font-weight: 600; }

/* ==========================================================================
   Pillars
   ========================================================================== */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.pillar { padding: 0 34px; border-left: 1px solid var(--line); }
.pillar:first-child { padding-left: 0; border-left: 0; }
.pillar:last-child { padding-right: 0; }
.pillar__icon { width: 30px; height: 30px; color: var(--navy-700); margin-bottom: 22px; }
.pillar h3 { font-size: 19px; letter-spacing: -0.018em; margin-bottom: 10px; }
.pillar p { font-size: 15.5px; line-height: 1.6; color: var(--gray); }
.pillar .link-arrow { font-size: 14.5px; margin-top: 16px; }

/* ==========================================================================
   FactE panel
   ========================================================================== */
.facte-panel {
  position: relative;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #f2f1fb 0%, #eef0fa 46%, #e7ebf8 100%);
  overflow: hidden;
  padding: clamp(40px, 5vw, 72px);
}
.facte-panel__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.facte-wordmark {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
}
.facte-wordmark img { height: 44px; width: auto; }

.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px; margin: 28px 0 34px; }
.checks li { display: flex; align-items: flex-start; gap: 10px; font-size: 15.5px; color: var(--ink-70); }
.checks svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--navy-700); }
.page-hero--dark .checks svg,
.section--dark .checks svg,
.hero .checks svg { color: #7fa0f0; }

/* device compositions used across the site */
.devices { position: relative; }
.devices__row { position: relative; display: flex; align-items: flex-end; justify-content: center; }

.laptop { position: relative; width: 100%; max-width: 820px; }
.laptop__body {
  position: relative;
  border-radius: 14px 14px 6px 6px;
  background: linear-gradient(180deg, #d9dde7 0%, #c3c9d8 100%);
  padding: 9px 9px 11px;
  box-shadow: 0 32px 60px -30px rgba(10, 20, 48, 0.55);
}
.laptop__screen {
  position: relative;
  border-radius: 7px;
  overflow: hidden;
  background: #0a1430;
  aspect-ratio: 1885 / 1039;
}
.laptop__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.laptop__base {
  position: relative;
  height: 13px;
  margin: 0 -7.5%;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, #cdd2de 0%, #aab2c4 60%, #98a1b6 100%);
  box-shadow: 0 16px 26px -16px rgba(10, 20, 48, 0.5);
}
.laptop__base::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 14%;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 0 0 6px 6px;
  background: #8e97ad;
}

.phone {
  position: relative;
  width: 196px;
  flex: none;
  border-radius: 28px;
  padding: 7px;
  background: linear-gradient(160deg, #2b3447 0%, #121825 100%);
  box-shadow: 0 26px 50px -24px rgba(10, 20, 48, 0.6);
}
.phone__screen {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 9 / 19.5;
}
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.phone::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  width: 46px;
  height: 7px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #0d1220;
  z-index: 2;
}
.phone--overlap { margin-left: -58px; margin-bottom: -18px; z-index: 3; }


/* ==========================================================================
   Business Apps (the FactÉ app store)
   Each app carries its own brand colour; #1E2E69 stays reserved for Core.
   ========================================================================== */
.apps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.app {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  transition: border-color 0.24s var(--ease), transform 0.24s var(--ease), box-shadow 0.24s var(--ease);
}
.app::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--app, var(--navy-700));
}
.app:hover { transform: translateY(-3px); box-shadow: 0 26px 44px -30px rgba(30, 46, 105, 0.45); }
.app__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--app, var(--navy-700)) 12%, #fff);
  color: var(--app, var(--navy-700));
}
.app__icon svg { width: 21px; height: 21px; }
.app h3 { font-size: 17px; letter-spacing: -0.016em; margin-bottom: 8px; }
.app p { font-size: 14.5px; line-height: 1.55; color: var(--gray); flex: 1; }
.app__state {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.app__state--live { background: #e8f4ec; color: #1d6b3d; }
.app__state--soon { background: var(--bg-soft); color: var(--gray); }


/* a full-width app row: identity on the left, real capabilities on the right */
.app-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr);
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(28px, 3.4vw, 42px) 0;
  border-top: 1px solid var(--line);
}
.app-row:last-of-type { border-bottom: 1px solid var(--line); }
.app-row__id { display: flex; flex-direction: column; align-items: flex-start; }
.app-row__id h3 { font-size: clamp(20px, 1.7vw, 24px); letter-spacing: -0.02em; margin-bottom: 10px; }
.app-row__id p { font-size: 15px; line-height: 1.6; color: var(--gray); }
.app-row .app__icon { width: 46px; height: 46px; }
.app-row .app__icon svg { width: 23px; height: 23px; }
.app-row .app__state { margin: 0 0 16px; }
.app-caps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 28px;
  align-content: start;
}
.app-caps li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-70);
}
.app-caps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--app, var(--navy-700));
}
@media (max-width: 1080px) {
  .app-caps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .app-row { grid-template-columns: 1fr; gap: 20px; }
  .app-caps { grid-template-columns: 1fr; }
}

/* three surfaces strip */
.surfaces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.surface { display: flex; gap: 16px; align-items: flex-start; }
.surface svg { width: 22px; height: 22px; flex: none; margin-top: 3px; color: var(--navy-700); }
.section--dark .surface svg, .hero .surface svg { color: #7fa0f0; }
.surface h3 { font-size: 16.5px; letter-spacing: -0.014em; margin-bottom: 5px; }
.surface p { font-size: 14.5px; line-height: 1.55; color: var(--gray); }
.section--dark .surface p { color: #a7b2cd; }

/* selected work */
.work__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, #f4f5fa 0%, #e9ecf6 100%);
  overflow: hidden;
}
.work__media img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1080px) {
  .apps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .apps { grid-template-columns: 1fr; }
  .surfaces { grid-template-columns: 1fr; gap: 26px; }
}

/* ==========================================================================
   Industry strip
   ========================================================================== */
.industries {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
}
.industry {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 26px 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  text-align: center;
  font-size: 14.5px;
  font-weight: 550;
  letter-spacing: -0.01em;
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.industry:hover {
  border-color: var(--navy-300);
  transform: translateY(-3px);
  box-shadow: 0 20px 36px -24px rgba(30, 46, 105, 0.45);
}
.industry svg { width: 26px; height: 26px; color: var(--navy-700); }

/* ==========================================================================
   Cards & grids
   ========================================================================== */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: border-color 0.24s var(--ease), transform 0.24s var(--ease), box-shadow 0.24s var(--ease);
}
.card h3 { margin-bottom: 10px; font-size: 20px; letter-spacing: -0.02em; }
.card p { font-size: 15.5px; line-height: 1.6; color: var(--gray); }
.card__icon { width: 28px; height: 28px; color: var(--navy-700); margin-bottom: 20px; }
a.card:hover, .card--hover:hover {
  border-color: var(--navy-300);
  transform: translateY(-3px);
  box-shadow: 0 26px 44px -30px rgba(30, 46, 105, 0.5);
}
.card .link-arrow { margin-top: 18px; font-size: 15px; }

.card--flush { padding: 0; overflow: hidden; }
.card--flush .card__body { padding: 28px 32px 32px; }
.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(160deg, #f4f5fa 0%, #e9ecf6 100%);
  overflow: hidden;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }

/* product tile (hardware) */
.tile {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  transition: border-color 0.24s var(--ease), transform 0.24s var(--ease), box-shadow 0.24s var(--ease);
}
.tile:hover { border-color: var(--navy-300); transform: translateY(-3px); box-shadow: 0 26px 44px -30px rgba(30, 46, 105, 0.45); }
.tile__shot {
  display: grid;
  place-items: center;
  padding: 30px 26px 22px;
  min-height: 190px;
  background: linear-gradient(170deg, #fafbfe 0%, #eff1f8 100%);
}
.tile__shot img {
  width: auto;
  max-height: 140px;
  max-width: 86%;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(16, 24, 56, 0.16));
}
.tile__body { padding: 22px 26px 28px; }
.tile__body h3 { font-size: 18px; letter-spacing: -0.018em; margin-bottom: 6px; }
.tile__body p { font-size: 14.5px; line-height: 1.55; color: var(--gray); }
.tile__tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--lavender);
  color: var(--navy-700);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* split feature row */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 78px);
  align-items: center;
}
.split--reverse .split__media { order: -1; }

.shot-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 40px 70px -44px rgba(10, 20, 48, 0.55);
}
.shot-frame img { width: 100%; height: auto; }
.shot-frame--crop { aspect-ratio: 16 / 10; }
.shot-frame--crop img { height: 100%; object-fit: cover; object-position: top left; }

/* a screenshot shown at full section width — Apple-style, readable */
.shot-wide {
  position: relative;
  margin-top: clamp(30px, 4vw, 52px);
  border-radius: clamp(14px, 1.6vw, 22px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 50px 90px -52px rgba(10, 20, 48, 0.55);
}
.shot-wide img { width: 100%; height: auto; }
.shot-caption { margin-top: 16px; font-size: 14px; color: var(--gray-soft); text-align: center; }

/* numbered list */
.steps { counter-reset: step; display: grid; gap: 2px; }
.step {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n {
  counter-increment: step;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  color: var(--navy-300);
  padding-top: 4px;
}
.step__n::before { content: "0" counter(step); }
.step h3 { font-size: 19px; letter-spacing: -0.018em; margin-bottom: 7px; }
.step p { font-size: 15.5px; color: var(--gray); line-height: 1.6; max-width: 62ch; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.stat__n { font-size: clamp(38px, 4vw, 54px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--navy-700); }
.section--dark .stat__n { color: #fff; }
.stat__label { margin-top: 12px; font-size: 14.5px; color: var(--gray); }
.section--dark .stat__label { color: #a7b2cd; }

/* ==========================================================================
   Page hero (secondary pages)
   ========================================================================== */
.page-hero { position: relative; padding-block: clamp(62px, 7vw, 104px) clamp(42px, 5vw, 70px); }
.page-hero--soft { background: linear-gradient(180deg, #f7f8fc 0%, #ffffff 100%); }
.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.page-hero .lede { margin-top: 22px; }
.page-hero .btn-row { margin-top: 32px; }

.page-hero--dark {
  background:
    radial-gradient(90% 90% at 76% 10%, rgba(58, 82, 164, 0.5) 0%, rgba(10, 20, 48, 0) 68%),
    linear-gradient(170deg, #0a1430 0%, #070d1e 100%);
  color: #fff;
}
.page-hero--dark h1 { color: #fff; }
.page-hero--dark .lede { color: #b9c3dd; }
.page-hero--dark .eyebrow { color: #9fb2e8; }

.photo-hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: clamp(320px, 38vw, 460px);
  display: flex;
  align-items: center;
  isolation: isolate;
}
.photo-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.photo-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(7, 13, 30, 0.9) 0%, rgba(7, 13, 30, 0.72) 42%, rgba(7, 13, 30, 0.2) 100%);
}
.photo-hero__copy { padding: clamp(32px, 5vw, 62px); max-width: 620px; color: #fff; }
.photo-hero__copy h1, .photo-hero__copy h2 { color: #fff; }
.photo-hero__copy .lede { color: #cfd6e8; }

/* ==========================================================================
   Contact form
   ========================================================================== */
.form-card {
  padding: clamp(28px, 3.4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 36px 70px -48px rgba(10, 20, 48, 0.5);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.004em;
  color: var(--ink-70);
}
.field .req { color: #b4473f; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  font-size: 15.5px;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 13px;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field textarea { min-height: 136px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%236b7280' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px; padding-right: 42px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--navy-500);
  box-shadow: 0 0 0 3px rgba(58, 82, 164, 0.14);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #c2554c; background: #fdf6f5; }
.field__error { display: none; margin-top: 6px; font-size: 13px; color: #b4473f; }
.field__error[data-show="true"] { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }

.form-note { margin-top: 16px; font-size: 13px; color: var(--gray-soft); line-height: 1.6; }
.form-status {
  display: none;
  margin-bottom: 20px;
  padding: 15px 18px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.5;
}
.form-status[data-state="ok"] { display: block; background: #eef7f1; border: 1px solid #c7e3d2; color: #1d5c38; }
.form-status[data-state="error"] { display: block; background: #fdf3f2; border: 1px solid #efcbc7; color: #96352e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-list { display: grid; gap: 22px; margin-top: 34px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--navy-700); }
.contact-list strong { display: block; font-size: 15.5px; font-weight: 600; }
.contact-list span { font-size: 15px; color: var(--gray); }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  isolation: isolate;
  padding: clamp(48px, 6vw, 86px) clamp(32px, 5vw, 72px);
  text-align: center;
  color: #fff;
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(58, 82, 164, 0.55) 0%, rgba(10, 20, 48, 0) 70%),
    linear-gradient(165deg, #122048 0%, #070d1e 100%);
}
.cta-band h2 { color: #fff; }
.cta-band .lede { margin: 20px auto 0; color: #b9c3dd; }
.cta-band .btn-row { justify-content: center; margin-top: 34px; }
.cta-band__arc { position: absolute; inset: -40% -10% auto; z-index: -1; opacity: 0.55; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { padding-block: clamp(56px, 6vw, 84px) 36px; background: var(--navy-900); color: #96a1bd; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 38px;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.site-footer h4 {
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
}
.site-footer ul { display: grid; gap: 11px; }
.site-footer a { font-size: 14.5px; color: #96a1bd; transition: color 0.18s var(--ease); }
.site-footer a:hover { color: #fff; }
.site-footer__brand img { height: 30px; width: auto; filter: brightness(0) invert(1); }
.site-footer__brand p { margin-top: 18px; font-size: 14.5px; line-height: 1.65; max-width: 30ch; }
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: space-between;
  padding-top: 28px;
  font-size: 13.5px;
}
.site-footer__legal ul { display: flex; flex-wrap: wrap; gap: 10px 22px; }

/* ==========================================================================
   Motion
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-reveal][data-shown] { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.07s; }
[data-reveal-delay="2"] { transition-delay: 0.14s; }
[data-reveal-delay="3"] { transition-delay: 0.21s; }
[data-reveal-delay="4"] { transition-delay: 0.28s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .pillars { grid-template-columns: repeat(2, 1fr); gap: 36px 0; }
  .pillar { padding: 0 28px; }
  .pillar:nth-child(odd) { padding-left: 0; border-left: 0; }
  .industries { grid-template-columns: repeat(4, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 920px) {
  :root { --gutter: 22px; }
  .nav, .header__actions .btn, .header__actions .lang-toggle { display: none; }
  .lang-toggle--block { display: inline-flex; }
  .nav-toggle { display: inline-flex; }
  .header__actions { margin-left: auto; }
  .facte-panel__grid,
  .split,
  .page-hero__grid { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

  /* let long headlines find their own break points on a narrow screen */
  .hero h1 br, .page-hero h1 br, .photo-hero h1 br, .section h2 br { display: none; }

  /* keep the whole product stage inside the viewport */
  .stage__row { gap: 4px; }
  .prod--kasa { height: 148px; }
  .prod--mini { height: 104px; }
  .prod--printer { height: 62px; }
  .prod--scan { height: 66px; }
  .prod--pay { display: none; }
  .prod--cash { height: 48px; }
  .stage__caption { font-size: 12px; }
  .section { padding-block: 62px; }
  .pillars { grid-template-columns: 1fr; gap: 0; }
  .pillar { padding: 28px 0; border-left: 0; border-top: 1px solid var(--line); }
  .pillar:first-child { border-top: 0; padding-top: 0; }
  .pillar__icon { margin-bottom: 16px; }
  .industries { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .industry { padding: 20px 6px; font-size: 13px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 26px; text-align: left; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .site-footer__brand { grid-column: 1 / -1; }
  .btn-row .btn { flex: 1 1 auto; justify-content: center; }
  .hero .btn-row { flex-direction: column; }
  .phone--overlap { margin-left: -36px; }
  .phone { width: 128px; }
  .step { grid-template-columns: 40px 1fr; gap: 14px; }
}

/* careers: a role reuses the app-row frame, with the detail on the right */
.role__about {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-70);
  margin-bottom: 26px;
  max-width: 72ch;
}
.role__groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 36px; align-items: start; }
.role__label {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 12px;
}
.role-list { display: grid; gap: 9px; }
.role-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-70);
}
.role-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy-700);
}
@media (max-width: 1080px) { .role__groups { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .role__groups { grid-template-columns: 1fr; } }

/* social accounts in the footer — a row, so more can be added without a redesign.
   Scoped to .site-footer so it outranks `.site-footer ul { display: grid }`,
   which otherwise stacks the icons into a column. */
.site-footer .social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  transition: background 0.24s var(--ease), border-color 0.24s var(--ease);
}
.social a:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.45); }
.social svg { width: 18px; height: 18px; }
