/* =========================================================
   ArcVertex — marketing site (index, about, 404)
   ========================================================= */

/* ---------- Skip link (a11y) ---------- */
.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 200;
  transform: translateY(-120%);
  padding: .6rem 1rem;
  background: var(--accent);
  color: #1a1306;
  font-weight: 600;
  font-size: .9rem;
  border-radius: 0 0 8px 0;
  transition: transform .2s var(--ease);
}
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Self-hosted fonts (local .woff2, no CDN) ---------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink:        #0c1116;
  --ink-soft:   #1a2230;
  --paper:      #fbfaf8;
  --paper-2:    #f4f2ee;
  --line:       #e6e2da;
  --text:       #1c2330;
  --muted:      #5c6470;
  --accent:     #c89b3c;   /* warm amber — clarity */
  --accent-2:   #e7b955;
  --radius:     18px;
  --shadow:     0 1px 2px rgba(12,17,22,.04), 0 12px 30px -12px rgba(12,17,22,.18);
  --maxw:       1140px;
  --ease:       cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  background: var(--accent);
  color: #1a1306;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: 0 8px 20px -10px rgba(200,155,60,.8);
}
.btn:hover { transform: translateY(-2px); background: var(--accent-2); }
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.btn--ghost:focus-visible {
  outline-color: var(--paper);
}
.btn--small { padding: .55rem 1.05rem; font-size: .9rem; }
.btn--large { padding: 1.05rem 2rem; font-size: 1.05rem; }
.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255,255,255,.28);
  box-shadow: none;
}
.btn--ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .74rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 1.1rem;
}
.eyebrow--muted { color: var(--muted); }
.eyebrow--light { color: var(--accent-2); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(12px);
  background: rgba(12,17,22,.72);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: .01em;
  color: rgba(251,250,248,.78);
}
.brand__badge {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(200, 155, 60, .14);
  flex-shrink: 0;
}
.brand__mark {
  height: 26px;
  width: auto;
  display: block;
}
.brand__name { font-size: 1.05rem; }
.nav__links { display: flex; gap: 1.6rem; }
.nav__links a {
  color: rgba(251,250,248,.78);
  font-size: .92rem;
  font-weight: 500;
  transition: color .2s var(--ease);
}
.nav__links a:hover { color: var(--paper); }
.nav__right { display: flex; align-items: center; gap: 1.6rem; }
.nav__short { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(200,155,60,.22), transparent 60%),
    radial-gradient(900px 500px at 10% 10%, rgba(80,120,160,.14), transparent 55%),
    linear-gradient(180deg, #0c1116 0%, #121823 100%);
  color: var(--paper);
  overflow: hidden;
  padding: clamp(4.5rem, 11vh, 9rem) 0 clamp(4rem, 8vh, 6.5rem);
}
.hero__inner { position: relative; z-index: 2; max-width: 880px; margin-inline: auto; text-align: center; }
.hero__title {
  font-size: clamp(2.4rem, 5.6vw, 4rem);
  font-weight: 500;
}
.accent {
  background: linear-gradient(120deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  padding-right: .12em;
}
.hero__lede {
  margin-top: 1.6rem;
  margin-inline: auto;
  max-width: 620px;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: rgba(251,250,248,.78);
}
.hero__cta {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .9rem;
}
.hero__glow {
  position: absolute;
  width: 620px; height: 620px;
  right: -160px; top: -180px;
  background: radial-gradient(circle, rgba(200,155,60,.35), transparent 62%);
  filter: blur(20px);
  z-index: 1;
}

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 9vw, 7rem) 0; }
.section--alt { background: var(--paper-2); }
.section__head {
  max-width: 680px;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}
.section__title {
  font-size: clamp(2rem, 4.2vw, 3rem);
}
.section__sub {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.06rem;
}
.section__head .btn { margin-top: 1.75rem; }

/* ---------- Grids ---------- */
.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
.grid--problems {
  grid-template-columns: repeat(4, 1fr);
}
.grid--solutions {
  grid-template-columns: repeat(3, 1fr);
}

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.7rem;
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(200,155,60,.5);
  box-shadow: 0 1px 2px rgba(12,17,22,.04), 0 22px 40px -16px rgba(12,17,22,.26);
}
.card h3 {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 1.04rem;
  letter-spacing: -0.01em;
  margin-bottom: .5rem;
}
.card p { color: var(--muted); font-size: .94rem; }

.card__index {
  display: inline-block;
  font-family: "Fraunces", serif;
  font-size: .95rem;
  color: var(--accent);
  margin-bottom: 1.1rem;
  letter-spacing: .04em;
}
.card--solution { text-align: left; }
.card__icon {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(200,155,60,.14);
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 1.1rem;
}

/* ---------- Outcome ---------- */
.outcome {
  position: relative;
  background:
    radial-gradient(900px 500px at 80% 0%, rgba(200,155,60,.22), transparent 60%),
    linear-gradient(180deg, #121823 0%, #0c1116 100%);
  color: var(--paper);
  text-align: center;
  padding: clamp(5rem, 11vw, 8.5rem) 0;
  overflow: hidden;
}
.outcome__inner { max-width: 760px; margin-inline: auto; position: relative; z-index: 2; }
.outcome__title {
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  font-style: italic;
}
.outcome__title::after {
  content: "";
  display: block;
  width: 64px; height: 3px;
  margin: 1.4rem auto 0;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  border-radius: 999px;
}
.outcome__sub {
  margin-top: 1.6rem;
  color: rgba(251,250,248,.78);
  font-size: 1.12rem;
  max-width: 560px;
  margin-inline: auto;
}

/* ---------- CTA ---------- */
.cta { padding: clamp(4rem, 8vw, 6rem) 0; background: var(--paper-2); }
.cta--light { background: var(--paper); }
.cta__inner { text-align: center; max-width: 620px; margin-inline: auto; }
.cta__title { font-size: clamp(2rem, 4.5vw, 3rem); }
.cta__sub { margin-top: 1rem; color: var(--muted); font-size: 1.05rem; }
.cta .btn { margin-top: 2rem; }

/* ---------- Contact form ---------- */
.contact {
  margin-top: 2.25rem;
  text-align: left;
  display: grid;
  gap: 1rem;
}
.contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contact__field { display: flex; flex-direction: column; gap: .4rem; }
.contact__field label {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--muted);
}
.contact input[type="text"],
.contact input[type="email"],
.contact textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .8rem .95rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  resize: vertical;
}
.contact input:focus,
.contact textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,155,60,.18);
}
.contact__field-msg { min-height: 1rem; font-size: .78rem; color: #b4453a; }
.cf-turnstile { text-align: center; }
.contact__field.is-invalid input,
.contact__field.is-invalid textarea {
  border-color: #b4453a;
  box-shadow: 0 0 0 3px rgba(180,69,58,.14);
}
.contact__field.is-invalid .contact__field-msg::before { content: attr(data-error); }
.contact button[disabled] { opacity: .7; cursor: progress; }
.contact .btn { margin-top: .25rem; }
.contact__note { margin: .5rem 0 0; font-size: .8rem; color: var(--muted); text-align: center; }
.contact.is-submitted > :not(.contact__status) { display: none; }
.contact.is-submitted .contact__status { font-size: 1.15rem; padding: 1rem 0; }
.contact__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}
.contact__status {
  margin: 0;
  font-size: .95rem;
  font-weight: 600;
  text-align: center;
}
.contact__status[data-state="success"] { color: #2f7d52; }
.contact__status[data-state="error"]   { color: #b4453a; }
@media (max-width: 540px) {
  .contact__row { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.footer { background: #0a0e13; color: rgba(251,250,248,.7); padding: 2.6rem 0 2.2rem; }
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  text-align: center;
}
.brand--footer { color: var(--paper); margin-bottom: .4rem; }
.footer__note { font-size: .95rem; }
.footer__email { font-size: .9rem; }
.footer__email a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .2s var(--ease); }
.footer__email a:hover { color: var(--accent-2); }
.footer__address { font-size: .82rem; color: rgba(251,250,248,.45); font-style: normal; }
.footer__copy { font-size: .82rem; color: rgba(251,250,248,.45); }

/* ---------- Reveal animation ---------- */
/* Only hide content when scripting is enabled — the IntersectionObserver in
   script.js will reveal it. With JS off (or @media (scripting: none)), content
   stays fully visible so nothing is ever trapped at opacity:0. */
@media (scripting: enabled) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
  }
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid--problems { grid-template-columns: repeat(2, 1fr); }
  .grid--solutions { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .brand__name { display: none; }
  .nav__full { display: none; }
  .nav__short { display: inline; }
  .nav__links { gap: .85rem; font-size: .85rem; }
  .nav__right { gap: .9rem; }
  .grid--problems,
  .grid--solutions { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 auto; }
}

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

/* ---------- Our Process ---------- */
.process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 4rem);
}
.step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.step--reverse .step__text { order: 2; }
.step__text { max-width: 460px; }
.step__label {
  display: block;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: .8rem;
}
.step__title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.12;
  margin-bottom: .7rem;
}
.step__desc { color: var(--muted); font-size: 1.02rem; }

/* panels (dark) */
.panel {
  background: linear-gradient(180deg, #121823, #0c1116);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 44px -22px rgba(12,17,22,.45);
  color: #d6deeb;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
.panel__bar {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem .9rem;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.panel__bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.18); }
.panel__bar i:nth-child(1) { background: #e06c5a; }
.panel__bar i:nth-child(2) { background: #e0b44a; }
.panel__bar i:nth-child(3) { background: #6cc06c; }
.panel__bar span {
  margin-left: .55rem;
  font-size: .76rem;
  color: rgba(255,255,255,.5);
}
.panel__body { padding: 1.1rem 1.2rem; font-size: .86rem; line-height: 1.75; }

/* step 1: terminal checks */
.panel__term .term__run { color: var(--accent-2); margin: 0 0 .9rem; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.checks li { position: relative; padding-left: 1.5rem; color: #8b93a3; }
.checks li::before {
  content: "";
  position: absolute; left: 0; top: .5em;
  width: .8rem; height: .8rem; border-radius: 3px;
  background: rgba(255,255,255,.12);
}
.checks li.ok { color: #cbd2de; }
.checks li.ok::before { background: var(--accent); }
.checks li.off { color: #5f6675; text-decoration: line-through; }

/* step 2: code */
.code { margin: 0; white-space: pre; overflow-x: auto; color: #d6deeb; }
.code .k { color: #b39cff; }
.code .s { color: #9ece6a; }
.code .fn { color: var(--accent-2); }
.code .v { color: #e0a060; }

/* step 2: before/after compare */
.compare {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: .75rem;
  font-family: "Inter", sans-serif;
}
.compare__col {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  flex: 1 1 0;
  padding: .85rem .9rem;
  border-radius: 10px;
}
.compare__before { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); }
.compare__after  { background: rgba(200,155,60,.10); border: 1px solid rgba(200,155,60,.40); }
.compare__label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #7a828f;
}
.compare__after .compare__label { color: var(--accent-2); }
.compare__big {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  line-height: 1.1;
  color: #cbd2de;
}
.compare__after .compare__big { color: var(--paper); }
.compare__sub { font-size: .82rem; color: #7a828f; }
.compare__arrow { display: grid; place-items: center; color: var(--accent); font-size: 1.25rem; }
.panel__foot {
  padding: .65rem 1.2rem;
  font-family: "Inter", sans-serif;
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent-2);
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
}
.panel__hint {
  margin: 0;
  padding: .6rem 1.2rem 0;
  font-family: "Inter", sans-serif;
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #7a828f;
}

/* step 3: integration diagram */
.diagram { display: flex; align-items: center; justify-content: center; gap: .9rem; font-family: "Inter", sans-serif; }
.node {
  flex: 0 0 auto;
  padding: .9rem 1.1rem;
  border: 1px solid rgba(200,155,60,.45);
  border-radius: 12px;
  background: rgba(200,155,60,.10);
  color: var(--paper);
  font-size: .92rem;
  font-weight: 600;
}
.node__group { display: flex; flex-direction: column; align-items: center; gap: .4rem; flex: 0 0 auto; }
.node__group .node { align-self: stretch; text-align: center; }
.node__sub { font-size: .72rem; color: rgba(251,250,248,.55); font-weight: 500; }
.link { flex: 1 1 auto; height: 2px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: 999px; position: relative; }
.link::after {
  content: ""; position: absolute; right: -1px; top: 50%; transform: translateY(-50%);
  border: 5px solid transparent; border-left-color: var(--accent);
}

/* step 4: statuses */
.statuses { display: flex; flex-direction: column; gap: .65rem; font-family: "Inter", sans-serif; }
.status {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem .9rem;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
}
.status__name { color: #cbd2de; font-size: .9rem; font-weight: 500; }
.pill { font-size: .74rem; font-weight: 600; padding: .3rem .6rem; border-radius: 999px; white-space: nowrap; }
.pill--up { background: rgba(110,192,110,.16); color: #7fd17f; }
.pill--warn { background: rgba(224,180,74,.16); color: var(--accent-2); }
.pill--ok { background: rgba(110,192,110,.16); color: #7fd17f; }

@media (max-width: 820px) {
  .step { grid-template-columns: 1fr; }
  .step--reverse .step__text { order: 0; }
}

/* ---------- Booking modal (Zoom Scheduler) ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.is-open { display: block; }
.modal__overlay { position: absolute; inset: 0; background: rgba(12,17,22,.72); }
.modal__dialog {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(800px, 94vw); max-height: 92vh; background: #fff; border-radius: 14px;
  overflow: hidden; box-shadow: 0 24px 70px -12px rgba(0,0,0,.5);
}
.modal__close {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  width: 34px; height: 34px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.95); color: #1c2330; font-size: 20px; line-height: 1;
  cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.modal__close:hover { background: #fff; }
.modal__body { width: 100%; height: min(620px, 80vh); }
.modal__body iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
@media (max-width: 540px) {
  .modal__body { height: 80vh; }
}
