/* =========================================================
   JW Holdings LLC - website styles
   Visual system matched to acetheverbal.com
   ========================================================= */

:root {
  --bg: #001b2b;
  --bg-2: #031522;
  --surface: #073349;
  --surface-2: #052a3d;
  --ink: #f8fbff;
  --ink-soft: #bfd0d8;
  --muted: #86a7b4;
  --line: #195b70;
  --primary: #13a6b4;
  --primary-soft: #0b4655;
  --gold: #ffc928;
  --gold-soft: #47390a;
  --green: #22c77a;
  --green-ink: #032016;
  --coral: #ff6b6b;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  --wrap: min(1180px, calc(100% - 36px));
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "DM Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }

[id] { scroll-margin-top: 96px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 14px; top: -64px;
  z-index: 80;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--green);
  color: var(--green-ink);
  font-weight: 900;
  text-decoration: none;
  transition: top 0.16s ease;
}
.skip-link:focus { top: 14px; }

/* ---------- layout + shared ---------- */
.section { padding: 84px 0; }
.section.alt {
  background: var(--bg-2);
  border-block: 1px solid rgba(25, 91, 112, 0.62);
}
.section-inner { width: var(--wrap); margin: 0 auto; }

.eyebrow {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3, .display {
  margin: 0;
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: 0;
}

.section-head { max-width: 760px; margin-bottom: 42px; }
.section-head h2 {
  margin-top: 12px;
  font-size: clamp(32px, 4.8vw, 56px);
  line-height: 1;
}
.section-head p, .lede {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(25, 91, 112, 0.74);
  background: rgba(0, 27, 43, 0.92);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.nav-wrap {
  width: var(--wrap);
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}
.brand img {
  width: 44px; height: 44px;
  flex: 0 0 auto;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.brand-text strong {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-weight: 900;
  font-size: 17px;
  line-height: 1;
  color: var(--ink);
}
.brand-text > span {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface);
}

.nav-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.menu-button {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
}
.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 18px; height: 2px;
  border-radius: 999px;
  background: currentColor;
}
.menu-bars { position: relative; margin: 0 auto; }
.menu-bars::before,
.menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }

/* ---------- buttons ---------- */
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 1.5px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button.primary {
  color: var(--green-ink);
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 12px 24px rgba(34, 199, 122, 0.20);
}
.button.gold {
  color: #091b20;
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 12px 24px rgba(255, 201, 40, 0.18);
}
.button.secondary {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}
.button.secondary:hover { background: var(--surface-2); border-color: var(--primary); }
.button.big { min-height: 56px; padding: 0 28px; font-size: 16px; }
.button.block { width: 100%; }
.button:disabled,
.button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(25, 91, 112, 0.55);
  background:
    radial-gradient(840px 520px at 84% -8%, rgba(19, 166, 180, 0.30), transparent 60%),
    radial-gradient(680px 560px at 4% 112%, rgba(34, 199, 122, 0.16), transparent 58%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.hero-inner { width: var(--wrap); margin: 0 auto; padding: 124px 0 72px; }
.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
}
.hero-copy { width: min(680px, 100%); }
.hero-copy h1 {
  margin-top: 16px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.94;
}
.hero-copy p {
  margin: 22px 0 0;
  max-width: 600px;
  color: var(--ink-soft);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 600;
  line-height: 1.5;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-art {
  position: relative;
  width: 300px; height: 300px;
  flex: 0 0 auto;
}
.hero-art img {
  position: absolute;
  width: 160px; height: 160px;
  border-radius: 30px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-art img:nth-child(1) { top: 22px; left: 0; transform: rotate(-9deg); }
.hero-art img:nth-child(2) { bottom: 18px; right: 0; transform: rotate(8deg); }

.hero-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 52px;
}
.metric {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 51, 73, 0.9);
  box-shadow: var(--shadow);
}
.metric strong {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-weight: 900;
  color: var(--gold);
  font-size: 36px;
  line-height: 1;
}
.metric span {
  display: block;
  margin-top: 9px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

/* ---------- page hero (about / contact) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(25, 91, 112, 0.55);
  background:
    radial-gradient(720px 420px at 86% -12%, rgba(19, 166, 180, 0.26), transparent 62%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.page-hero-inner { width: var(--wrap); margin: 0 auto; padding: 108px 0 68px; }
.page-hero-copy { max-width: 780px; }
.page-hero h1 {
  margin-top: 14px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.96;
}
.page-hero .lede { font-size: clamp(17px, 2vw, 20px); }

/* ---------- cards ---------- */
.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 26px;
}
.card-hover { transition: transform 0.14s ease, border-color 0.14s ease; }
.card-hover:hover { transform: translateY(-3px); border-color: var(--primary); }
.card-title { font-size: 24px; line-height: 1.12; }

/* ---------- app feature rows ---------- */
.app-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.94fr);
  gap: 40px;
  align-items: center;
}
.app-feature + .app-feature { margin-top: 32px; }
.app-feature.reverse .app-media { order: -1; }

.app-info { min-width: 0; }
.app-info h3 { font-size: clamp(26px, 3.3vw, 36px); line-height: 1.07; }
.app-info > .eyebrow + h3 { margin-top: 8px; }
.app-info p {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.6;
}

.app-head { display: flex; align-items: center; gap: 18px; }
.app-head img {
  width: 84px; height: 84px;
  flex: 0 0 auto;
  border-radius: 19px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.app-head .eyebrow { margin-bottom: 4px; }

.app-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.app-media { min-width: 0; }
.device {
  display: grid;
  place-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #021926;
  box-shadow: var(--shadow);
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.device img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 430px;
  border-radius: 10px;
  border: 1px solid rgba(25, 91, 112, 0.6);
}
.device.tall img { max-height: 540px; }

.feature-link { display: block; text-decoration: none; }
.feature-link:hover .device,
.feature-link:focus-visible .device {
  transform: translateY(-4px);
  border-color: var(--primary);
}

/* ---------- grids + value cards ---------- */
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }

.value-card { height: 100%; }
.value-card .num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 800;
  font-size: 14px;
  color: var(--primary);
  letter-spacing: 0.06em;
}
.value-card h3 { margin-top: 14px; font-size: 22px; line-height: 1.14; }
.value-card p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.6;
}

/* ---------- prose ---------- */
.prose p {
  color: var(--ink-soft);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.7;
  max-width: 760px;
}
.prose p + p { margin-top: 18px; }

/* ---------- mini app row ---------- */
.mini-apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.mini-app {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  text-decoration: none;
}
.mini-app img {
  width: 64px; height: 64px;
  flex: 0 0 auto;
  border-radius: 15px;
  border: 1px solid var(--line);
}
.mini-app-text strong {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-weight: 900;
  font-size: 19px;
  color: var(--ink);
}
.mini-app-text span {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

/* ---------- CTA ---------- */
.cta-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(620px 320px at 50% -30%, rgba(19, 166, 180, 0.26), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow);
  padding: 58px 32px;
  text-align: center;
}
.cta-card h2 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.04; }
.cta-card p {
  margin: 14px auto 0;
  max-width: 560px;
  color: var(--ink-soft);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.55;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 26px;
}

/* ---------- contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.62fr);
  gap: 22px;
  align-items: start;
}
.form-intro {
  margin: 10px 0 22px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}
.form-grid { display: grid; gap: 18px; }
.botcheck-field { display: none; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 800; font-size: 14px; color: var(--ink); }
.field .req { color: var(--coral); }
.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 15px;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(19, 166, 180, 0.28);
}
.field textarea { min-height: 158px; resize: vertical; }

.form-note {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(34, 199, 122, 0.6);
  border-radius: 8px;
  background: rgba(34, 199, 122, 0.12);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}
.form-note.is-error {
  border-color: rgba(255, 107, 107, 0.6);
  background: rgba(255, 107, 107, 0.13);
}
.form-foot {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.info-card + .info-card { margin-top: 16px; }
.info-card h3 { font-size: 20px; line-height: 1.15; }
.info-card p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.6;
}
/* ---------- footer ---------- */
.footer {
  padding: 52px 0 40px;
  border-top: 1px solid var(--line);
  background: #001421;
}
.footer-grid {
  width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 32px;
}
.footer-brand p {
  margin: 14px 0 0;
  max-width: 330px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.65;
}
.footer-h {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  word-break: break-word;
}
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  width: var(--wrap);
  margin: 30px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(25, 91, 112, 0.5);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .menu-button { display: inline-grid; place-items: center; }
  .nav-actions .button { display: none; }
  .nav-links {
    position: absolute;
    left: 12px; right: 12px; top: 100%;
    margin-top: 1px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg-2);
    box-shadow: var(--shadow);
  }
  .nav-links[data-open="true"] { display: flex; }
  .hero-top { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .app-feature,
  .app-feature.reverse { grid-template-columns: 1fr; }
  .app-feature .app-media,
  .app-feature.reverse .app-media { order: -1; }
  .grid.two,
  .grid.three { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .mini-apps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  :root { --wrap: min(1180px, calc(100% - 24px)); }
  .hero-inner { padding: 104px 0 60px; }
  .hero-copy h1 { font-size: clamp(38px, 9vw, 58px); }
  .page-hero h1 { font-size: clamp(34px, 8vw, 52px); }
  .hero-strip { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .cta-card { padding: 46px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .hero-actions .button,
  .cta-actions .button,
  .app-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
