/* ===========================================================
   VYZONEK — editorial/engineered landing system
   Brand: navy #0B1E3D + orange #FA5A0A, executed with restraint.
   Display: Fraunces (gravitas) · Body: Inter · Utility: IBM Plex Mono
   Signature: hex-lattice diagram derived from the VZ mark.
   =========================================================== */

:root {
  --void: #060d1a;
  --ink: #0b1e3d;
  --ink-soft: #12294f;
  --paper: #f5f2ec;
  --ember: #fa5a0a;
  --ember-soft: #ff8a4d;
  --steel: #8894ac;
  --steel-dim: #5c6a86;
  --hairline: rgba(245, 242, 236, 0.14);
  --hairline-strong: rgba(245, 242, 236, 0.28);
  --surface: rgba(245, 242, 236, 0.03);
  --surface-hover: rgba(245, 242, 236, 0.055);

  --maxw: 1200px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: hidden; }

body.home {
  margin: 0;
  font-family: var(--font-body);
  color: var(--steel);
  line-height: 1.65;
  background-color: var(--void);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.home h1, .home h2, .home h3 { font-family: var(--font-display); color: var(--paper); margin: 0; line-height: 1.05; letter-spacing: -0.01em; font-weight: 600; }
.home a { text-decoration: none; }
.home img, .home svg { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--ember); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 0; }

/* ---------- Mono label / tag system ---------- */
.tag {
  font-family: var(--font-mono); font-size: 0.76rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember-soft);
  display: inline-flex; align-items: center; gap: 10px;
}
.tag::before { content: ""; width: 22px; height: 1px; background: var(--ember); }
.tag--center { justify-content: center; }
.tag--center::before { display: none; }
.tag--center::after { content: ""; width: 22px; height: 1px; background: var(--ember); order: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-mono); font-weight: 500; font-size: 0.92rem; letter-spacing: 0.02em;
  padding: 15px 28px; border-radius: 2px; cursor: pointer; border: 1px solid transparent;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}
.btn__arrow { transition: transform .18s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--primary { background: var(--ember); color: var(--void); font-weight: 600; }
.btn--primary:hover { background: var(--ember-soft); text-decoration: none; }
.btn--ghost { background: transparent; border-color: var(--hairline-strong); color: var(--paper); }
.btn--ghost:hover { border-color: var(--ember); color: var(--ember-soft); text-decoration: none; }
.btn--sm { padding: 10px 18px; font-size: 0.82rem; }
.btn:focus-visible { outline: 2px solid var(--ember-soft); outline-offset: 3px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 13, 26, 0.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 16px; }
.brand { display: inline-flex; align-items: center; color: var(--paper); }
.brand__logo { height: 52px; width: auto; display: block; }
.nav__links { display: none; gap: 34px; }
.nav__links a {
  font-family: var(--font-mono); color: var(--steel); font-weight: 500; font-size: 0.82rem;
  letter-spacing: 0.06em; text-transform: uppercase; transition: color .2s;
}
.nav__links a:hover { color: var(--paper); text-decoration: none; }

/* ---------- Section scaffolding ---------- */
.section { padding: 108px 0; position: relative; border-top: 1px solid var(--hairline); }
.section:first-of-type { border-top: none; }
.section__head { max-width: 640px; margin: 0 0 56px; }
.section__head.is-center { max-width: 620px; margin-left: auto; margin-right: auto; text-align: center; }
.section__head .tag { margin-bottom: 22px; }
.section__head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.section__head p { color: var(--steel); font-size: 1.06rem; margin: 16px 0 0; max-width: 520px; }
.section__head.is-center p { margin-left: auto; margin-right: auto; }
.grad { color: var(--ember); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 76px 0 96px; overflow: hidden; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center; }
.hero__copy .tag { margin-bottom: 28px; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.4rem); font-weight: 600; letter-spacing: -0.02em; }
.hero h1 em { font-style: italic; color: var(--ember); font-weight: 500; }
.hero__sub { font-size: clamp(1.05rem, 1.8vw, 1.2rem); color: var(--steel); max-width: 480px; margin: 26px 0 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero__rule { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; gap: 8px 28px; }
.hero__rule a { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em; color: var(--steel-dim); transition: color .2s; }
.hero__rule a:hover { color: var(--ember-soft); text-decoration: none; }

/* Hex-lattice signature diagram */
.hero__lattice { position: relative; }
.lattice { width: 100%; height: auto; overflow: visible; }
.lattice__line {
  fill: none; stroke: var(--hairline-strong); stroke-width: 1.5;
  stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw 1.1s ease forwards .3s;
}
.lattice__hex { fill: none; stroke: var(--paper); stroke-width: 2.5; opacity: 0; animation: pop .5s ease forwards; transform-origin: center; transform-box: fill-box; }
.lattice__hex--core { fill: var(--ember); stroke: var(--ember); animation-delay: .1s; }
.lattice__hex--a { animation-delay: .55s; }
.lattice__hex--b { animation-delay: .7s; }
.lattice__hex--c { animation-delay: .85s; }
.lattice__dot { fill: var(--ember); opacity: 0; animation: pop .4s ease forwards; transform-origin: center; transform-box: fill-box; }
.lattice__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; fill: var(--steel); opacity: 0; animation: fadein .5s ease forwards 1.05s; }
.lattice__core-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; fill: var(--void); font-weight: 600; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }
@keyframes fadein { to { opacity: 1; } }

/* ---------- Index list (Products) ---------- */
.index-list { border-top: 1px solid var(--hairline); }
.index-item {
  display: grid; grid-template-columns: 1fr; gap: 18px;
  padding: 40px 0; border-bottom: 1px solid var(--hairline);
  transition: padding-left .25s ease;
}
.index-item__num { font-family: var(--font-mono); color: var(--steel-dim); font-size: 0.85rem; letter-spacing: 0.06em; }
.index-item__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px 20px; }
.index-item__name { font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.3rem); color: var(--paper); font-weight: 600; }
.index-item__domain { font-family: var(--font-mono); font-size: 0.86rem; color: var(--ember-soft); }
.index-item__desc { color: var(--steel); max-width: 620px; margin: 4px 0 0; }
.index-item__link {
  font-family: var(--font-mono); font-size: 0.86rem; font-weight: 500; letter-spacing: 0.04em;
  color: var(--paper); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}
.index-item__link .arrow { transition: transform .2s ease; }
.index-item:hover { padding-left: 12px; }
.index-item:hover .index-item__link .arrow { transform: translateX(4px); }
.index-item:hover .index-item__link { color: var(--ember-soft); }
.index-item:last-child { border-bottom: none; }

@media (min-width: 640px) {
  .index-item { grid-template-columns: 64px 1fr auto; align-items: start; }
  .index-item__link { align-self: start; margin-top: 8px; }
}

/* ---------- Principles list (Why us) ---------- */
.principles { border-top: 1px solid var(--hairline); }
.principle {
  display: grid; grid-template-columns: 1fr; gap: 6px;
  padding: 34px 0; border-bottom: 1px solid var(--hairline);
}
.principle__letter { font-family: var(--font-display); font-style: italic; font-size: 1.6rem; color: var(--ember); }
.principle h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.15rem; color: var(--paper); letter-spacing: -0.005em; }
.principle p { color: var(--steel); margin: 0; max-width: 560px; }
.principle:last-child { border-bottom: none; }

@media (min-width: 640px) {
  .principle { grid-template-columns: 60px 220px 1fr; align-items: baseline; gap: 20px; }
}

/* ---------- Process steps (real sequence — numbering justified) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--hairline); border-left: 1px solid var(--hairline); }
.step { padding: 34px 30px; border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.step__n { font-family: var(--font-mono); color: var(--ember-soft); font-size: 0.82rem; letter-spacing: 0.06em; display: block; margin-bottom: 18px; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--steel); margin: 0; }

@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Testimonials ---------- */
.quotes-feature { border-top: 1px solid var(--hairline); padding-top: 52px; }
.quote-feature { max-width: 760px; }
.quote-feature p { font-family: var(--font-display); font-style: italic; font-size: clamp(1.35rem, 3vw, 1.85rem); color: var(--paper); line-height: 1.4; margin: 0; }
.quote-feature figcaption { font-family: var(--font-mono); font-size: 0.82rem; color: var(--steel-dim); margin-top: 22px; letter-spacing: 0.03em; }
.quote-feature figcaption strong { color: var(--ember-soft); font-weight: 500; }

.quotes-minor { margin-top: 52px; padding-top: 44px; border-top: 1px solid var(--hairline); display: grid; grid-template-columns: 1fr; gap: 30px; }
.quote-minor p { color: var(--paper); font-size: 1rem; margin: 0 0 14px; }
.quote-minor figcaption { font-family: var(--font-mono); font-size: 0.78rem; color: var(--steel-dim); }
.quote-minor figcaption strong { color: var(--steel); font-weight: 500; }

@media (min-width: 768px) {
  .quotes-minor { grid-template-columns: 1fr 1fr; }
}

/* ---------- CTA ---------- */
.cta-panel { border-top: 1px solid var(--hairline); padding-top: 64px; display: flex; flex-direction: column; gap: 26px; }
.cta-panel h2 { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 640px; }
.cta-panel p { color: var(--steel); font-size: 1.08rem; max-width: 420px; margin: 0; }
.cta-panel__row { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 10px; }
.cta-panel__email { font-family: var(--font-mono); color: var(--steel-dim); font-size: 0.9rem; }
.cta-panel__email a { color: var(--paper); }
.cta-panel__email a:hover { color: var(--ember-soft); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--hairline); padding: 64px 0 40px; background: var(--void); }
.footer__top { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; padding-bottom: 44px; border-bottom: 1px solid var(--hairline); }
.footer__brand-logo { height: 46px; width: auto; display: block; }
.footer__tag { color: var(--steel-dim); max-width: 300px; margin: 14px 0 0; font-size: 0.92rem; }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; width: 100%; }
.footer__col h4 { font-family: var(--font-mono); color: var(--steel-dim); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 16px; font-weight: 500; }
.footer__col a { display: block; color: var(--steel); font-size: 0.92rem; padding: 5px 0; }
.footer__col a:hover { color: var(--ember-soft); text-decoration: none; }
.footer__bottom { display: flex; flex-direction: column; gap: 10px; padding-top: 30px; color: var(--steel-dim); font-size: 0.84rem; font-family: var(--font-mono); }
.footer__bottom a { color: var(--ember-soft); }
.footer__org { font-size: 0.76rem; opacity: 0.8; max-width: 720px; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .quotes-minor { gap: 30px; }
  .footer__cols { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 768px) {
  .nav__links { display: flex; }
  .footer__top { flex-direction: row; justify-content: space-between; align-items: flex-end; }
}
@media (min-width: 980px) {
  .hero__inner { grid-template-columns: 1.15fr 0.85fr; gap: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lattice__line, .lattice__hex, .lattice__dot, .lattice__label { animation: none; opacity: 1; stroke-dashoffset: 0; }
  .btn:hover .btn__arrow, .index-item:hover .index-item__link .arrow { transform: none; }
}
