/* ApexBreak — standalone marketing site.
   Design system taken from the brand manual (V1, 2026):
     Apex Black #0E1116 · Break Blue #0092C8 · Paper #F4F5F3 · Grey #8A8D86
     Sora (ExtraBold titles, Regular body) · IBM Plex Mono (labels and data)
   The 45° cut of the symbol is the recurring graphic device — it appears on
   the hero panel, the featured plan and the section rules.
   No build step, no framework. */

:root {
  --ink: #0e1116;
  --ink-2: #171c24;
  --ink-3: #232a34;
  --blue: #0092c8;
  --blue-dark: #007aa8;
  --blue-soft: rgba(0, 146, 200, 0.10);
  --paper: #f4f5f3;
  --white: #ffffff;
  --grey: #8a8d86;
  --text: #0e1116;
  --muted: #5e6469;
  --border: rgba(14, 17, 22, 0.12);
  --border-soft: rgba(14, 17, 22, 0.08);
  --radius: 14px;          /* 8% of the block, per the manual */
  --shadow-sm: 0 1px 2px rgba(14, 17, 22, 0.04), 0 8px 24px rgba(14, 17, 22, 0.06);
  --shadow-md: 0 2px 6px rgba(14, 17, 22, 0.06), 0 26px 56px rgba(14, 17, 22, 0.12);
  --maxw: 1180px;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--ink);
}

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--blue); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- Brand mark ---------- */

.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo__mark { width: 38px; height: 38px; flex: none; border-radius: 8px; }
.logo__word {
  font-size: 22px; letter-spacing: -0.045em; line-height: 1;
  color: var(--ink); white-space: nowrap;
}
.logo__word b { font-weight: 800; }
.logo__word i { font-style: normal; font-weight: 200; }
.logo--light .logo__word { color: var(--paper); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid transparent; border-radius: 9px;
  font: inherit; font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  padding: 13px 22px; cursor: pointer; white-space: nowrap;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--ink-2); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(14, 17, 22, 0.03); }
.btn--onDark { background: transparent; color: var(--paper); border-color: rgba(244, 245, 243, 0.28); }
.btn--onDark:hover { background: rgba(244, 245, 243, 0.10); border-color: rgba(244, 245, 243, 0.5); }
.btn--sm { padding: 10px 17px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */

.header {
  position: sticky; top: 0; z-index: 90;
  background: var(--ink);
  border-bottom: 1px solid rgba(244, 245, 243, 0.10);
}
.header__inner { display: flex; align-items: center; gap: 22px; height: 74px; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a {
  font-size: 15px; font-weight: 400; color: rgba(244, 245, 243, 0.72);
  padding: 8px 13px; border-radius: 8px; transition: color .15s, background .15s;
}
.nav a:hover { color: var(--paper); background: rgba(244, 245, 243, 0.08); }
.nav__cta { display: none; } /* only in the mobile drawer */

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

.lang { display: inline-flex; border: 1px solid rgba(244, 245, 243, 0.22); border-radius: 8px; padding: 2px; }
.lang button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.06em;
  color: rgba(244, 245, 243, 0.65); padding: 5px 10px; border-radius: 6px; transition: all .15s;
}
.lang button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }

.burger {
  display: none; appearance: none; background: transparent; cursor: pointer;
  border: 1px solid rgba(244, 245, 243, 0.22); border-radius: 8px; padding: 9px 10px;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--paper); border-radius: 2px; }
.burger span + span { margin-top: 4px; }

/* ---------- Mono label (the manual's section marker) ---------- */

.kicker {
  display: block;
  font-family: var(--mono); font-size: 12.5px; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey);
}
.kicker b { font-weight: 400; color: var(--blue); }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: rgba(244, 245, 243, 0.74);
  padding: 88px 0 104px;
}
/* Break Blue diagonal, echoing the symbol's lower-right cut */
.hero::before {
  content: ""; position: absolute; right: -6%; bottom: -32%;
  width: 62vw; height: 62vw; max-width: 900px; max-height: 900px;
  background: linear-gradient(135deg, transparent 49.9%, rgba(0, 146, 200, 0.16) 50%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 245, 243, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 245, 243, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(720px 460px at 30% 24%, #000, transparent 76%);
  -webkit-mask-image: radial-gradient(720px 460px at 30% 24%, #000, transparent 76%);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.hero .kicker { color: rgba(244, 245, 243, 0.55); margin-bottom: 22px; }
.hero .kicker b { color: var(--blue); }
.hero h1 { font-size: clamp(36px, 4.5vw, 58px); color: var(--paper); }
.hero h1 .accent { color: var(--blue); }
.hero__lead { margin-top: 22px; font-size: 18px; color: rgba(244, 245, 243, 0.7); max-width: 38em; }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero__stats { margin-top: 46px; display: flex; flex-wrap: wrap; gap: 18px 44px; }
.hero__stat strong {
  display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.04em; color: var(--paper);
}
.hero__stat span {
  display: block; max-width: 22ch; margin-top: 4px;
  font-family: var(--mono); font-size: 12px; line-height: 1.5;
  letter-spacing: 0.03em; color: rgba(244, 245, 243, 0.5);
}

/* Hero panel — the three layers we cover */
.stack {
  position: relative;
  background: var(--ink-2);
  border: 1px solid rgba(244, 245, 243, 0.10);
  border-radius: var(--radius); padding: 10px;
  overflow: hidden;
}
.stack::after {
  content: ""; position: absolute; right: 0; bottom: 0;
  border-style: solid; border-width: 0 0 46px 46px;
  border-color: transparent transparent var(--blue) transparent;
}
.stack__row { display: flex; align-items: flex-start; gap: 14px; padding: 17px; border-radius: 10px; }
.stack__row + .stack__row { border-top: 1px solid rgba(244, 245, 243, 0.08); border-radius: 0; }
.stack__ico {
  flex: none; width: 40px; height: 40px; border-radius: 9px;
  display: grid; place-items: center; color: var(--paper);
  background: rgba(244, 245, 243, 0.07); border: 1px solid rgba(244, 245, 243, 0.1);
}
.stack__row:nth-child(3) .stack__ico { background: rgba(0, 146, 200, 0.22); border-color: rgba(0, 146, 200, 0.35); color: #7fd6f2; }
.stack__row h3 { font-size: 15.5px; color: var(--paper); font-weight: 700; letter-spacing: -0.02em; }
.stack__row p { font-size: 13.5px; color: rgba(244, 245, 243, 0.55); margin-top: 3px; line-height: 1.5; }
.stack__foot {
  margin: 6px 7px 7px; padding: 15px 10px 6px;
  border-top: 1px dashed rgba(244, 245, 243, 0.16);
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; line-height: 1.5;
  color: rgba(244, 245, 243, 0.6);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); flex: none; box-shadow: 0 0 0 4px rgba(0, 146, 200, 0.2); }

/* ---------- Trust strip ---------- */

.trust { background: var(--ink); border-top: 1px solid rgba(244, 245, 243, 0.1); }
.trust__inner { display: flex; align-items: center; gap: 12px 26px; flex-wrap: wrap; padding: 20px 0; }
.trust__label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(244, 245, 243, 0.42); }
.trust__items { display: flex; flex-wrap: wrap; gap: 8px 9px; }
.trust__items li {
  font-size: 13.5px; color: rgba(244, 245, 243, 0.8);
  border: 1px solid rgba(244, 245, 243, 0.16); border-radius: 7px; padding: 6px 13px;
}

/* ---------- Section scaffolding ---------- */

.section { padding: 96px 0; }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--dark { background: var(--ink); color: rgba(244, 245, 243, 0.7); }
.section--dark h2, .section--dark h3 { color: var(--paper); }
.section--dark .kicker { color: rgba(244, 245, 243, 0.45); }

/* Manual-style rule under the mono label */
.section__head { margin-bottom: 50px; }
.section__head .kicker { padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.section--dark .section__head .kicker { border-color: rgba(244, 245, 243, 0.16); }
.section__head h2 { font-size: clamp(28px, 3.2vw, 40px); margin-top: 24px; max-width: 18ch; }
.section__head p { margin-top: 18px; font-size: 17px; color: var(--muted); max-width: 62ch; }
.section--dark .section__head p { color: rgba(244, 245, 243, 0.62); }

.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Cards ---------- */

.card {
  position: relative; overflow: hidden;
  background: var(--white); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 28px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card::after {
  content: ""; position: absolute; right: 0; bottom: 0;
  border-style: solid; border-width: 0 0 26px 26px;
  border-color: transparent transparent var(--paper) transparent;
  transition: border-bottom-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border); }
.card:hover::after { border-bottom-color: var(--blue); }
.card h3 { font-size: 20px; }
.card p { margin-top: 11px; color: var(--muted); font-size: 15px; }

.card__ico {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  color: var(--paper); background: var(--ink); margin-bottom: 18px;
}

.ticks { margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--border-soft); display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 24px; font-size: 14.5px; color: var(--text); line-height: 1.5; }
.ticks li::before {
  content: ""; position: absolute; left: 1px; top: 6px; width: 13px; height: 8px;
  border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}

/* Services — dense grid with hairline separators */
.svc {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border-soft); border: 1px solid var(--border-soft);
  border-radius: var(--radius); overflow: hidden;
}
.svc__item { background: var(--white); padding: 30px 26px; transition: background .2s ease; }
.svc__item:hover { background: #fafbfa; }
.svc__ico { color: var(--blue); }
.svc__item h3 { font-size: 17px; margin-top: 16px; }
.svc__item p { margin-top: 9px; font-size: 14.5px; color: var(--muted); }

/* ---------- Solutions ---------- */

.sol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sol__item {
  position: relative; overflow: hidden;
  background: var(--white); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 28px;
}
.sol__num { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.14em; color: var(--blue); }
.sol__item h3 { font-size: 20px; margin-top: 12px; }
.sol__item > p { margin-top: 11px; color: var(--muted); font-size: 15px; }

/* ---------- Method ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding-top: 32px; }
.step::before {
  content: ""; position: absolute; top: 13px; left: 0; right: -24px; height: 1px;
  background: rgba(244, 245, 243, 0.18);
}
.step:last-child::before { right: 0; }
.step__num {
  position: absolute; top: 0; left: 0;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.1em; color: var(--blue);
  background: var(--ink); padding-right: 10px;
}
.step h3 { font-size: 18px; margin-bottom: 10px; }
.step p { font-size: 14.5px; color: rgba(244, 245, 243, 0.62); }

/* ---------- Plans ---------- */

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.plan {
  position: relative; overflow: hidden;
  background: var(--white); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 30px;
}
.plan--featured { border-color: var(--ink); box-shadow: var(--shadow-md); }
.plan--featured::after {
  content: ""; position: absolute; right: 0; bottom: 0;
  border-style: solid; border-width: 0 0 42px 42px;
  border-color: transparent transparent var(--blue) transparent;
}
.plan__tag {
  display: inline-block; margin-bottom: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; background: var(--blue); padding: 5px 10px; border-radius: 6px;
}
.plan h3 { font-size: 24px; }
.plan__tagline { margin-top: 9px; color: var(--muted); font-size: 14.5px; min-height: 44px; }
.plan__cta { margin-top: 24px; }
.plans__note {
  margin-top: 26px; font-family: var(--mono); font-size: 12.5px; line-height: 1.7;
  letter-spacing: 0.02em; color: var(--grey); text-align: center;
}

/* ---------- Why ---------- */

.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 44px; }
.why__item { padding-top: 20px; border-top: 1px solid var(--border); }
.why__item h3 { font-size: 17.5px; }
.why__item p { margin-top: 9px; font-size: 14.5px; color: var(--muted); }

/* ---------- FAQ ---------- */

.faq { max-width: 880px; }
.faq__item { border-bottom: 1px solid var(--border-soft); }
.faq__q {
  width: 100%; appearance: none; background: transparent; border: 0; cursor: pointer;
  font: inherit; font-size: 17.5px; font-weight: 600; color: var(--ink); letter-spacing: -0.025em;
  text-align: left; padding: 22px 46px 22px 0; position: relative;
}
.faq__q:hover { color: var(--blue); }
.faq__q::after,
.faq__q::before {
  content: ""; position: absolute; right: 8px; top: 50%; background: var(--blue);
  transition: transform .22s ease, opacity .22s ease;
}
.faq__q::before { width: 14px; height: 2px; margin-top: -1px; }
.faq__q::after { width: 2px; height: 14px; margin: -7px 6px 0 0; }
.faq__item.is-open .faq__q::after { transform: rotate(90deg); opacity: 0; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a p { padding-bottom: 24px; color: var(--muted); font-size: 15.5px; max-width: 66em; }

/* ---------- Contact ---------- */

.contact__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: start; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--grey);
}
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; color: var(--text);
  background: var(--white); border: 1px solid var(--border); border-radius: 9px;
  padding: 12px 14px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 116px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft);
}
.consent { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 11px; font-size: 13.5px; color: var(--muted); }
.consent input { width: 17px; height: 17px; margin-top: 3px; flex: none; accent-color: var(--blue); }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form__msg { font-size: 14px; font-weight: 500; }
.form__msg.is-ok { color: #0b7a52; }
.form__msg.is-err { color: #c02626; }
.hp { position: absolute; left: -9999px; }

.aside {
  position: relative; overflow: hidden;
  background: var(--ink); color: rgba(244, 245, 243, 0.68);
  border-radius: var(--radius); padding: 30px;
}
.aside::after {
  content: ""; position: absolute; right: 0; bottom: 0;
  border-style: solid; border-width: 0 0 40px 40px;
  border-color: transparent transparent var(--blue) transparent;
}
.aside h3 { font-size: 17px; color: var(--paper); }
.aside ol { margin: 20px 0 0; padding: 0; list-style: none; counter-reset: nxt; display: grid; gap: 15px; }
.aside ol li { position: relative; padding-left: 34px; font-size: 14.5px; counter-increment: nxt; }
.aside ol li::before {
  content: "0" counter(nxt); position: absolute; left: 0; top: 1px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--blue);
}
.aside__contact {
  margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(244, 245, 243, 0.14);
  display: grid; gap: 8px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.01em;
}
.aside__contact a { color: var(--paper); }
.aside__contact a:hover { color: var(--blue); }
.aside__contact span { color: rgba(244, 245, 243, 0.5); }

/* ---------- Footer ---------- */

.footer { background: var(--ink); color: rgba(244, 245, 243, 0.6); padding: 66px 0 28px; font-size: 14.5px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 40px; }
.footer__tagline { margin-top: 18px; max-width: 30ch; color: rgba(244, 245, 243, 0.55); }
.footer h4 {
  font-family: var(--mono); font-size: 11.5px; font-weight: 400; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(244, 245, 243, 0.4); margin-bottom: 16px;
}
.footer li + li { margin-top: 9px; }
.footer a:hover { color: var(--paper); }
.footer__bottom {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(244, 245, 243, 0.12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.03em; color: rgba(244, 245, 243, 0.42);
}

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .grid--3, .svc, .sol, .plans, .why { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .step:nth-child(2n)::before { right: 0; }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 74px 0 auto; z-index: 80;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--ink-2); border-bottom: 1px solid rgba(244, 245, 243, 0.14);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
    padding: 12px 20px 18px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 8px; font-size: 16px; }
  .nav .nav__cta { display: inline-flex; margin-top: 12px; padding: 13px 22px; color: #fff; }
  .nav .nav__cta:hover { background: var(--blue-dark); }
  .burger { display: block; order: 3; }
  .header__inner { gap: 12px; }
  .header__side { margin-left: auto; }
  .header__side .btn { display: none; }
  .logo__word { font-size: 20px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding: 66px 0; }
  .hero { padding: 60px 0 72px; }
  .grid--3, .svc, .sol, .plans, .why, .steps, .form, .footer__grid { grid-template-columns: 1fr; }
  .step::before { display: none; }
  .hero__stats { gap: 20px 32px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .section__head h2 { max-width: none; }
  .footer__grid { gap: 30px; }
}
