:root {
  --ink: #f3f6ff;
  --muted: #a6b6d0;
  --night: #070e1b;
  --panel: #101a2b;
  --line: #263650;
  --blue: #3569ff;
  --accent: #82a7ff;
  --light: #f0f4fa;
  --dark: #101b31;
  color-scheme: dark;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  scroll-behavior: smooth;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.62;
}
img {
  display: block;
}
p {
  margin: 0 0 1em;
}
h1,
h2,
h3 {
  line-height: 1.11;
  margin: 0 0 0.55em;
  letter-spacing: -0.04em;
}
h1 {
  font-size: clamp(2.75rem, 5.2vw, 5.15rem);
  font-weight: 740;
}
h2 {
  font-size: clamp(1.95rem, 3.5vw, 3.2rem);
}
h3 {
  font-size: 1.26rem;
  letter-spacing: -0.025em;
}
p {
  color: var(--muted);
}
em {
  font-style: normal;
  color: var(--accent);
}
:focus-visible {
  outline: 3px solid #9ebaff;
  outline-offset: 4px;
}
.wrap {
  width: min(1220px, calc(100% - 92px));
  margin: auto;
}
.section {
  padding: 83px 0;
}
section[id],
article[id] {
  scroll-margin-top: 90px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -70px;
  z-index: 20;
  background: white;
  color: black;
  padding: 8px 16px;
}
.skip:focus {
  top: 8px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #080f1df5;
  border-bottom: 1px solid #223048;
  backdrop-filter: blur(12px);
}
.header-row,
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: 0.08em;
}
.brand small {
  display: block;
  color: #9db3db;
  font-size: 0.62rem;
  letter-spacing: 0.31em;
  margin-top: 5px;
}
.header-row nav,
.footer-row > div {
  display: flex;
  gap: 25px;
  align-items: center;
}
.header-row nav a,
.footer-row a:not(.brand) {
  color: #bdc9df;
  font-size: 0.9rem;
  font-weight: 600;
}
.header-row nav a:hover,
.footer-row a:hover {
  color: white;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 11px 19px;
  color: white;
  font-weight: 680;
  min-height: 46px;
  background: transparent;
  white-space: normal;
}
.button.primary {
  background: #2856e7;
  border-color: #486fff;
}
.button.primary:not(:disabled):hover {
  background: #1644dc;
}
.button.outlined {
  border-color: #405271;
  color: #e9f0ff;
  background: #101c3066;
}
.button.outlined:hover {
  border-color: #88a5ed;
}
.button.small {
  font-size: 0.87rem;
  padding: 7px 13px;
  min-height: 38px;
}
.nav-toggle {
  display: none;
}
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(
    ellipse at 79% 44%,
    #142c61 0%,
    #0b1631 41%,
    #080f1e 75%
  );
}
.hero-grid {
  position: relative;
  min-height: 530px;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 75px 0 85px;
  width: min(710px, 115%);
}
.hero-copy p {
  font-size: clamp(1.04rem, 1.65vw, 1.25rem);
  max-width: 490px;
  margin-bottom: 28px;
}
.kicker {
  font-size: 0.81rem;
  font-weight: 740;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9ab8ff;
  margin-bottom: 18px;
}
.kicker span,
.art-note span {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #5d8bff;
  vertical-align: middle;
  margin-right: 9px;
  border-radius: 50%;
  box-shadow: 0 0 12px #5589ff;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-art {
  position: absolute;
  width: 56%;
  height: 100%;
  right: -9%;
  top: 0;
  pointer-events: none;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 22%,
    #000 92%,
    transparent
  );
}
.hero-art canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.art-note {
  font-size: 0.64rem;
  letter-spacing: 0.19em;
  position: absolute;
  right: 19%;
  bottom: 12%;
  color: #a3b8e1;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 36px;
  margin-bottom: 27px;
}
.section-head h2 {
  margin-bottom: 0;
}
.section-head p {
  max-width: 390px;
  margin-bottom: 4px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.cards article {
  border: 1px solid var(--line);
  background: var(--panel);
  min-width: 0;
  border-radius: 11px;
}
.service-grid article {
  padding: 23px 24px;
}
.cards article p:last-child {
  margin-bottom: 0;
}
.icon {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  background: #172e59;
  border: 1px solid #284b87;
  border-radius: 8px;
  color: #9cbbff;
  font-size: 1rem;
  font-weight: 740;
  margin-bottom: 15px;
}
.about {
  background: var(--light);
  color: var(--dark);
  color-scheme: light;
}
.about .kicker {
  color: #204ec4;
}
.about p,
.contact p {
  color: #475873;
}
.about-grid,
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 8vw, 115px);
  align-items: center;
}
.about-grid p:last-child {
  margin-bottom: 0;
}
.venture-banner {
  height: 119px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  background:
    repeating-linear-gradient(135deg, #ffffff15 0 1px, transparent 1px 16px),
    radial-gradient(ellipse at 50% 15%, #2162c8, #0d2041);
}
.venture-banner.yard {
  background:
    repeating-linear-gradient(135deg, #ffffff13 0 1px, transparent 1px 16px),
    radial-gradient(ellipse at 50% 15%, #116956, #0b302c);
}
.venture-banner.store {
  background:
    repeating-linear-gradient(135deg, #ffffff13 0 1px, transparent 1px 16px),
    radial-gradient(ellipse at 50% 15%, #614cc3, #261c52);
}
.venture-mark {
  font-size: 2.15rem;
  font-weight: 780;
  display: grid;
  place-items: center;
  line-height: 1;
  width: 65px;
  height: 65px;
  background: #081429a0;
  border: 1px solid #ffffff53;
  border-radius: 14px;
}
.venture-copy {
  padding: 21px;
}
.venture-copy a,
.text-button {
  color: #acc3ff;
  font-weight: 670;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.label {
  color: var(--accent);
  font-weight: 730;
  letter-spacing: 0.07em;
  font-size: 0.79rem;
}
.assistant-section h2 {
  max-width: 450px;
}
.assistant-card {
  background: #fff;
  border: 1px solid #cbd7ec;
  border-radius: 13px;
  padding: 23px;
  box-shadow: 0 12px 36px #172b5510;
}
.assistant-top {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 15px;
}
.assistant-top .icon {
  margin: 0;
}
.assistant-top small {
  display: block;
  color: #465779;
}
.assistant-card p {
  background: #e9eff9;
  padding: 12px 14px;
  border-radius: 8px;
}
.text-button {
  border: 0;
  padding: 0;
  background: none;
  color: #204ec4;
}
.contact {
  color: var(--ink);
  align-items: start;
}
.contact p {
  color: var(--muted);
}
label {
  display: block;
  font-size: 0.92rem;
  font-weight: 620;
  margin: 0 0 12px;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  margin: 4px 0 0;
  border: 1px solid #425676;
  border-radius: 6px;
  padding: 9px 10px;
  background: #101c2f;
  color: var(--ink);
}
textarea {
  resize: vertical;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-status {
  margin: 10px 0 0;
  min-height: 1.5em;
  font-size: 0.9rem;
}
footer {
  border-top: 1px solid var(--line);
  padding: 12px 0;
  color: var(--muted);
}
.footer-row small {
  white-space: nowrap;
}
dialog {
  width: min(460px, calc(100% - 24px));
  max-height: calc(100% - 26px);
  padding: 22px;
  background: #111c30;
  color: var(--ink);
  border: 1px solid #465e87;
  border-radius: 13px;
  box-shadow: 0 20px 90px #0008;
}
dialog::backdrop {
  background: #030915c9;
}
.chat-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}
.chat-header h2 {
  margin: 0.2em 0 0.35em;
}
.chat-header form {
  margin: 0;
}
#chat-log {
  max-height: 280px;
  overflow: auto;
}
#chat-log p {
  white-space: pre-wrap;
  background: #1c2d4c;
  border-radius: 8px;
  padding: 10px 12px;
  color: #e0e9fc;
  overflow-wrap: anywhere;
}
#chat-form button {
  margin-top: 9px;
}
@media (max-width: 980px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .header-row,
  .header-row nav {
    gap: 15px;
  }
  .hero-art {
    right: -11%;
    width: 61%;
  }
  .section {
    padding: 64px 0;
  }
  .footer-row {
    flex-wrap: wrap;
    padding: 14px 0;
  }
  .footer-row > div {
    gap: 15px;
  }
}
@media (max-width: 870px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .header-row {
    min-height: 67px;
    gap: 9px;
  }
  .brand {
    font-size: 0.76rem;
    gap: 7px;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  .nav-toggle {
    display: block;
    margin-left: auto;
    border: 1px solid var(--line);
    background: var(--panel);
    color: white;
    border-radius: 6px;
    padding: 6px 9px;
    font-size: 0.85rem;
  }
  .header-row .portal-link {
    font-size: 0.74rem;
    padding: 6px 8px;
    min-height: 34px;
  }
  .header-row nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #111d31;
    padding: 15px 18px;
    flex-wrap: wrap;
  }
  .header-row nav.open {
    display: flex;
  }
  .hero-grid {
    min-height: 0;
    display: block;
  }
  .hero-copy {
    width: 100%;
    padding: 54px 0 49px;
  }
  .hero-copy p {
    max-width: 440px;
  }
  .hero-art {
    width: 100%;
    right: -39%;
    opacity: 0.36;
  }
  .art-note {
    display: none;
  }
  .section-head {
    display: block;
  }
  .section-head p {
    margin: 12px 0 0;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .about-grid,
  .contact {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .section {
    padding: 49px 0;
  }
}
@media (max-width: 475px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .hero-art {
    right: -32%;
    opacity: 0.26;
  }
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .footer-row > div {
    width: 100%;
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
}

@media (max-width: 365px) {
  .header-row {
    gap: 5px;
  }
  .header-row .brand {
    font-size: 0.68rem;
    gap: 5px;
  }
  .header-row .brand img {
    width: 29px;
    height: 29px;
  }
}

/* J2 professional AI assistant */
.j2-chat-dialog {
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
}
.j2-chat-log {
    max-height: 42vh;
    overflow-y: auto;
    padding: 12px;
}
.j2-chat-message {
    padding: 12px 15px;
    margin: 10px 0;
    border-radius: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
    color: #f1f5f9;
}
.j2-chat-user {
    background: #244ac5;
    margin-left: 12%;
}
.j2-chat-assistant {
    background: #1c2c46;
    border: 1px solid #334765;
    margin-right: 5%;
}
.j2-chat-label {
    display: block;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 7px;
    color: #c1d4ff;
}
.j2-chat-content {
    white-space: pre-wrap;
}
.j2-chat-error {
    background: #542b36;
}
.j2-chat-loading {
    background: #1c2c46;
    animation: j2-pulse 1.2s infinite;
}
@keyframes j2-pulse {
    50% { opacity: .45; }
}
@media (prefers-reduced-motion: reduce) {
    .j2-chat-loading { animation: none; }
}
@media (max-width: 600px) {
    .j2-chat-user { margin-left: 5%; }
    .j2-chat-assistant { margin-right: 0; }
    .j2-chat-message { font-size: 14px; }
}


/* J2 MOBILE OPTIMIZATION V1 */

@media (max-width: 768px) {

    html {
        -webkit-text-size-adjust: 100%;
    }

    body {
        overflow-wrap: anywhere;
    }

    img, video, canvas {
        max-width: 100%;
    }

    input, textarea, select {
        max-width: 100%;
        min-width: 0;
        font-size: 16px !important;
        box-sizing: border-box;
    }

    button, .button {
        min-height: 44px;
        white-space: normal;
    }

    h1 {
        font-size: clamp(28px, 7vw, 40px) !important;
        line-height: 1.15;
    }

    h2 {
        overflow-wrap: anywhere;
    }

    form, section, article {
        min-width: 0;
    }

    table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
    }

    pre {
        max-width: 100%;
        overflow-x: auto;
    }

    footer {
        flex-wrap: wrap;
    }

    dialog {
        box-sizing: border-box;
        max-width: calc(100% - 24px);
        max-height: 90vh;
        max-height: 90dvh;
        overflow-y: auto;
    }

    #chat-log {
        max-height: 40vh;
        max-height: 40dvh;
        overflow-y: auto;
    }

}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }
}
