/*
  4csoftware.io on the 4C night system: the same tokens, type (Sora) and
  elevation as 4C Odds and 4c-landing (web/src/styles/tokens.css), so the
  company page and its products read as one family.
*/
:root {
  --desk: #040509;
  --screen: #05060F;
  --screenTop: #141838;
  --card: #161A38;
  --chip: #1E2346;
  --border: #282E58;
  --hair: #222850;
  --outline: #666FB8;

  --ink: #EDEFFB;
  --sub: #C3C8E9;
  --mut: #9AA1C6;
  --accent: #C9CEF6;
  --accentDeep: #A8B0F8;
  --onAccent: #10132B;
  --up: #34D399;
  --down: #FF5C7A;
  --warn: #FACC15;

  --cardShadow: 0 2px 6px rgba(0, 0, 0, 0.45), 0 18px 40px -14px rgba(0, 0, 0, 0.65);
  --cardHi: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --glow: rgba(20, 24, 56, 0.9);

  --font: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --rad-lg: 22px;
  --rad-md: 16px;
  --rad-sm: 12px;
  --maxw: 1120px;
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { background: var(--screen); }
body {
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 620px at 50% -180px, var(--glow), transparent 70%),
    var(--screen);
}
::selection { background: rgba(168, 176, 248, 0.35); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
:focus { outline: none; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
:focus-visible { outline: 2px solid var(--outline); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mut); margin-bottom: 14px;
}
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; }
h2 { font-size: clamp(26px, 4.4vw, 40px); }
.sectionSub { color: var(--sub); font-size: clamp(15px, 1.8vw, 17px); max-width: 600px; margin-top: 14px; }
.section { padding: 84px 0; position: relative; }

/* the eye mark: BrandEyePainter geometry, as on 4C Odds */
.eye {
  display: inline-block; position: relative; flex: 0 0 auto;
  width: var(--eyeSize, 22px); height: var(--eyeSize, 22px);
  border-radius: 50%; background: #fff; overflow: hidden;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}
.eye::before {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 69.3%; height: 69.3%; border-radius: 50%; background: #191D3C;
}
.eye::after {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 43%;
  background: #fff; border-bottom: max(1px, calc(var(--eyeSize, 22px) * 0.015)) solid #191D3C;
}

/* starfield, the 4c-landing recipe */
.stars {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  color: #fff; opacity: 0.4; background-repeat: no-repeat;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 26%, currentColor 99%, transparent),
    radial-gradient(1px 1px at 38% 16%, currentColor 99%, transparent),
    radial-gradient(1.5px 1.5px at 55% 68%, currentColor 99%, transparent),
    radial-gradient(1px 1px at 72% 34%, currentColor 99%, transparent),
    radial-gradient(1.2px 1.2px at 86% 12%, currentColor 99%, transparent),
    radial-gradient(1px 1px at 24% 82%, currentColor 99%, transparent),
    radial-gradient(1.3px 1.3px at 64% 88%, currentColor 99%, transparent);
  animation: twk 4.4s ease-in-out infinite;
}
.stars.s2 {
  background-image:
    radial-gradient(1px 1px at 18% 58%, currentColor 99%, transparent),
    radial-gradient(1.4px 1.4px at 44% 42%, currentColor 99%, transparent),
    radial-gradient(1px 1px at 78% 72%, currentColor 99%, transparent),
    radial-gradient(1.2px 1.2px at 92% 48%, currentColor 99%, transparent),
    radial-gradient(1px 1px at 8% 8%, currentColor 99%, transparent);
  animation-delay: 2.2s;
}
@keyframes twk { 0%, 100% { opacity: 0.12; } 50% { opacity: 0.55; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 13px 22px; border: 1px solid transparent;
  font-size: 14.5px; font-weight: 700; letter-spacing: 0.01em; white-space: nowrap; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-primary { background: var(--accent); color: var(--onAccent); box-shadow: 0 0 14px rgba(201, 206, 246, 0.3); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 20px rgba(201, 206, 246, 0.5); }
.btn-ghost { border-color: var(--border); color: var(--sub); background: rgba(22, 26, 56, 0.5); }
.btn-ghost:hover { border-color: var(--outline); color: var(--ink); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(4, 5, 9, 0.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(40, 46, 88, 0.6);
}
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.brand img { height: 26px; width: auto; }
.navLinks { display: flex; gap: 26px; margin-left: auto; font-size: 14px; font-weight: 600; color: var(--sub); }
.navLinks a:hover { color: var(--ink); }
.nav .btn { padding: 9px 16px; font-size: 13.5px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 72px; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(36px, 6.4vw, 64px); max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { color: var(--sub); font-size: clamp(16px, 2vw, 19px); max-width: 620px; margin-top: 22px; }
.ctaRow { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* ---------- stats (the hero's right half) ---------- */
.heroGrid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat {
  display: flex; flex-direction: column;
  padding: 24px 22px 20px; min-width: 0;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--rad-md);
  box-shadow: var(--cardShadow), var(--cardHi);
}
.stat .num {
  font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat .label { color: var(--mut); font-size: 13.5px; margin-top: 10px; line-height: 1.45; }
.stat .who { margin-top: auto; padding-top: 14px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accentDeep); }

/* ---------- products ---------- */
.products { display: grid; gap: 28px; margin-top: 44px; }
.product {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--rad-lg);
  box-shadow: var(--cardShadow), var(--cardHi); overflow: hidden;
}
.productBody { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; padding: 36px 36px 32px; }
.productHead { display: flex; align-items: center; gap: 12px; }
.productHead h3 { font-size: 28px; }
.productHead .mark4c { height: 34px; width: auto; }
.tag {
  display: inline-block; margin-top: 12px; padding: 4px 10px; border-radius: 999px;
  background: var(--chip); border: 1px solid var(--border);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
.product p { color: var(--sub); font-size: 15.5px; margin-top: 16px; max-width: 60ch; }
.product .btn { margin-top: 24px; }
.facts { display: grid; gap: 0; align-content: start; border-top: 1px solid var(--hair); }
.fact { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.fact b { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fact span { color: var(--mut); font-size: 13.5px; text-align: right; }
.shot {
  display: block; margin: 0 36px 36px; border-radius: var(--rad-md); overflow: hidden;
  border: 1px solid var(--border); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.75);
  transition: transform 0.25s, border-color 0.25s;
}
.shot:hover { transform: translateY(-3px); border-color: var(--outline); }
.shot img { width: 100%; height: auto; }

/* ---------- white label ---------- */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.split .sticky { position: sticky; top: 96px; }
.benefits { list-style: none; border-top: 1px solid var(--hair); }
.benefits li { padding: 22px 0; border-bottom: 1px solid var(--hair); display: grid; gap: 6px; }
.benefits h3 { font-size: 18px; letter-spacing: -0.01em; }
.benefits p { color: var(--sub); font-size: 15px; }

/* ---------- contact ---------- */
.contactCard {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--rad-lg);
  box-shadow: var(--cardShadow), var(--cardHi); padding: 44px; position: relative; overflow: hidden;
}
.contactCard > :not(.stars) { position: relative; z-index: 1; }
.contactCard .mail { display: inline-block; margin-top: 22px; font-weight: 700; color: var(--accent); border-bottom: 1px solid rgba(201, 206, 246, 0.35); }
.contactCard .mail:hover { border-bottom-color: var(--accent); }
.form { display: grid; gap: 12px; }
.c-input, .c-textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--rad-sm);
  background: var(--screen); border: 1px solid var(--border); color: var(--ink); font-size: 15px;
}
.c-input::placeholder, .c-textarea::placeholder { color: var(--mut); }
.c-input:focus, .c-textarea:focus { border-color: var(--outline); outline: none; }
.c-textarea { resize: vertical; min-height: 120px; }
.form .btn { justify-self: start; }
.error-input { border-color: var(--down) !important; }

/* main.js writes `.notification.alert.alert-<kind>` into #notification */
#notification { position: fixed; top: 76px; right: 16px; z-index: 100; display: grid; gap: 8px; }
.hidden { display: none !important; }
.notification {
  padding: 12px 16px; border-radius: var(--rad-sm); font-size: 14px; font-weight: 600;
  background: var(--chip); border: 1px solid var(--border); box-shadow: var(--cardShadow);
}
.alert-success { border-color: rgba(52, 211, 153, 0.6); color: var(--up); }
.alert-warning { border-color: rgba(250, 204, 21, 0.6); color: var(--warn); }
.alert-danger { border-color: rgba(255, 92, 122, 0.6); color: var(--down); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--hair); padding: 28px 0 40px; margin-top: 84px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; color: var(--mut); font-size: 13px; }
footer .brand { font-size: 14px; color: var(--sub); }
footer .brand img { height: 20px; }
footer a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .heroGrid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .productBody, .split, .contactCard { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .split .sticky { position: static; }
}
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .hero { padding: 64px 0 48px; }
  .navLinks { display: none; }
  .nav .btn { margin-left: auto; }
  .stat { padding: 18px 16px 16px; }
  .productBody { padding: 26px 22px 24px; }
  .shot { margin: 0 14px 14px; border-radius: var(--rad-sm); }
  .contactCard { padding: 28px 22px; }
  .fact b { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stars { animation: none; }
  .btn, .shot { transition: none; }
}
