/* The public site's composition: large type, generous bands, one dark moment, depth from layered
   illustration and product shots. Loaded after site.css. Colour comes from the --sx variables, so dark
   mode keeps working. */
.sx {
  --sx-band: #ffffff;
  --sx-orange-soft: #fff4ea;
}
[data-theme='dark'] .sx {
  --sx-band: #18191d;
  --sx-orange-soft: #2a2119;
}
.sx h1,
.sx h2 {
  font-weight: 700;
}
.sx .sx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--sx-accent-ink);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
[dir='rtl'] .sx .sx-eyebrow {
  letter-spacing: 0;
  font-size: 15px;
}
.sx .sx-eyebrow::before {
  content: '';
  inline-size: 34px;
  block-size: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--sx-orange), var(--sx-peach), var(--sx-orange));
  background-size: 200% 100%;
  animation: sx-sweep 3.2s linear infinite;
}
@keyframes sx-sweep {
  to {
    background-position: -200% 0;
  }
}
.sx-section {
  padding-block: clamp(64px, 8vw, 112px);
}
.sx-section:nth-of-type(even) {
  background: var(--sx-band);
}
.sx-head h2,
.sx-trust h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.2;
}
[dir='rtl'] .sx-head h2,
[dir='rtl'] .sx-trust h2 {
  line-height: 1.35;
}
.sx-head p {
  max-inline-size: 640px;
  font-size: 17.5px;
}

/* Cards lift with a thin orange edge. */
.sx-card,
.sx-solution,
.sx-industry {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--sx-line);
  border-radius: 22px;
  background: var(--sx-surface);
  box-shadow:
    0 1px 2px rgb(15 23 42 / 5%),
    0 18px 40px -28px rgb(15 23 42 / 30%);
  transition:
    transform 0.35s var(--sx-ease),
    box-shadow 0.35s var(--sx-ease),
    border-color 0.35s var(--sx-ease);
}
.sx-card:hover,
.sx-industry:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--sx-orange) 45%, var(--sx-line));
  box-shadow:
    0 2px 4px rgb(15 23 42 / 6%),
    0 30px 60px -30px rgb(255 121 0 / 45%);
}
.sx-auth.sx-card:hover,
.sx-form.sx-card:hover,
.sx-next.sx-card:hover {
  transform: none;
}

/* Home hero */
.sx-hero {
  padding-block: calc(var(--sx-header) + clamp(32px, 4vw, 56px)) clamp(56px, 7vw, 96px);
}
.sx-hero .sx-shell.sx-hero-grid,
.sx-hero-grid {
  width: min(1320px, 100%);
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.2fr);
  gap: clamp(24px, 3vw, 48px);
}
.sx-hero h1 {
  font-size: clamp(42px, 5.4vw, 76px);
  line-height: 1.08;
}
[dir='rtl'] .sx-hero h1 {
  line-height: 1.28;
}
.sx-hero-visual {
  position: relative;
  min-block-size: clamp(340px, 42vw, 560px);
}
.sx-hero-plant {
  position: absolute;
  inset-block-start: -6%;
  inset-inline: -4%;
}
.sx-hero-visual .sx-frame,
[dir='rtl'] .sx-hero-visual .sx-frame {
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  inline-size: 58%;
  border-radius: 14px;
  transform: perspective(1400px) rotateY(9deg) rotateX(4deg);
  box-shadow: 0 40px 70px -28px rgb(23 32 51 / 55%);
}
[dir='ltr'] .sx-hero-visual .sx-frame {
  transform: perspective(1400px) rotateY(-9deg) rotateX(4deg);
}
.sx-hero-visual .sx-float-a {
  inset: auto;
  inset-block-end: 30%;
  inset-inline-end: 0;
}
.sx-hero-visual .sx-float-b {
  inset: auto;
  inset-block-end: 4%;
  inset-inline-end: 0;
}
.sx-float {
  animation: sx-drift 7s ease-in-out infinite;
}
.sx-float-b {
  animation-delay: -3s;
}
@keyframes sx-drift {
  50% {
    transform: translateY(-8px);
  }
}

/* Module rail */
.sx-rail {
  border-block: 1px solid var(--sx-line);
  background: var(--sx-band);
}
.sx-rail-list {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.sx-rail-list a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px 8px;
  color: var(--sx-text);
  font-size: 14.5px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-inline-end: 1px solid var(--sx-line);
  transition:
    background 0.25s,
    color 0.25s;
}
.sx-rail-list li:last-child a {
  border-inline-end: 0;
}
.sx-rail-list a:hover {
  background: var(--sx-orange-soft);
  color: var(--sx-accent-ink);
}
.sx-rail-list .sx-icon {
  inline-size: 24px;
  block-size: 24px;
  color: var(--sx-orange);
}

/* Industries */
.sx-industry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.sx .sx-industry {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 20px 20px;
  color: var(--sx-text);
  text-decoration: none;
}
.sx-industry-art {
  display: block;
  margin-inline: -20px;
  padding: 20px 20px 12px;
  background: linear-gradient(180deg, var(--sx-orange-soft), transparent);
}
.sx-industry-art .sx-art {
  block-size: 170px;
}
.sx-industry strong {
  font-size: 19px;
}
.sx-industry > span:not(.sx-industry-art) {
  flex: 1;
  color: var(--sx-muted);
  font-size: 14.5px;
  line-height: 1.7;
}
.sx-industry em {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sx-accent-ink);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
}

/* Inner page heroes */
.sx-intro.sx-page-hero,
.sx-intro.sx-404 {
  padding-block: calc(var(--sx-header) + clamp(28px, 4vw, 56px)) clamp(36px, 5vw, 64px);
}
.sx-page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}
.sx-intro h1 {
  font-size: clamp(36px, 4.6vw, 62px);
}
.sx-page-hero-art {
  max-inline-size: 560px;
  justify-self: center;
  inline-size: 100%;
}
.sx-page-hero-art .sx-art {
  max-block-size: 380px;
}
.sx-404-num {
  margin: 0;
  background: linear-gradient(120deg, var(--sx-orange), var(--sx-peach));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(72px, 11vw, 140px);
  font-weight: 800;
  line-height: 1;
}

/* Features */
.sx-features-detailed {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.sx-features-detailed .sx-feature {
  padding-block-start: 0;
}
.sx-feature-art {
  margin: 0 calc(-1 * clamp(20px, 2.4vw, 28px)) 18px;
  padding: 18px 30px 10px;
  background: linear-gradient(180deg, var(--sx-orange-soft), transparent);
}
.sx-feature-art .sx-art {
  block-size: 190px;
}

/* Solutions alternate picture and text */
.sx-solutions {
  gap: 22px;
}
.sx-solution {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr);
  grid-template-areas: 'art head' 'art body';
  align-items: start;
  gap: 8px 28px;
  padding: 26px;
}
.sx-solution:nth-child(even) {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr);
  grid-template-areas: 'head art' 'body art';
}
.sx-solution-art {
  grid-area: art;
  align-self: center;
  padding: 18px;
  border-radius: 18px;
  background: var(--sx-orange-soft);
}
.sx-solution header {
  grid-area: head;
}
.sx-solution-body {
  grid-area: body;
}

/* Pillars and principles get more room */
.sx-pillars {
  gap: 20px;
}
.sx-principle-num {
  font-size: 34px;
  font-weight: 800;
  color: var(--sx-orange);
}

/* About mission */
.sx .sx-mission {
  padding: clamp(28px, 4vw, 56px);
  border-radius: 28px;
}
.sx-mission p {
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 600;
  line-height: 1.5;
}

/* Contact */
.sx-next-art {
  margin: -8px -8px 16px;
  padding: 14px 24px;
  border-radius: 16px;
  background: var(--sx-orange-soft);
}

/* Sign-in: words and plant on one side, the card on the other */
.sx-login.sx-dark {
  padding-block: calc(var(--sx-header) + 24px) 56px;
}
.sx-login-art {
  max-inline-size: 460px;
  margin-block-start: 22px;
}
.sx-login .sx-login-grid {
  width: min(1240px, 100%);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.8fr);
  align-items: start;
}
.sx-login h1 {
  font-size: clamp(32px, 3.8vw, 50px);
}
.sx-auth.sx-card {
  border-radius: 24px;
  box-shadow: 0 40px 80px -36px rgb(23 32 51 / 40%);
}
.sx-auth::before {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  block-size: 4px;
  background: linear-gradient(90deg, var(--sx-orange), var(--sx-peach));
}

/* Legal document with contents alongside */
.sx-legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  grid-template-areas: 'notice notice' 'toc doc';
  align-items: start;
  gap: 24px 40px;
  max-inline-size: 1080px;
}
.sx-legal-layout > .sx-notice {
  grid-area: notice;
  margin: 0;
}
.sx-legal-layout > .sx-legal-toc {
  grid-area: toc;
  position: sticky;
  inset-block-start: calc(var(--sx-header) + 16px);
  margin: 0;
}
.sx-legal-layout .sx-legal-toc ol {
  grid-template-columns: minmax(0, 1fr);
}
.sx-legal-layout > .sx-legal {
  grid-area: doc;
}

/* One dark moment, in both themes: the call to action */
.sx .sx-cta-card.sx-dark,
:root:not([data-theme='dark']) .sx .sx-cta-card.sx-dark {
  --sx-text: #ffffff;
  --sx-muted: #cbd5e1;
  --sx-accent-ink: #ffb27a;
  --sx-focus: #ffb27a;
  --sx-line: rgb(255 255 255 / 18%);
  overflow: hidden;
  border-radius: 28px;
  background: radial-gradient(70% 90% at 80% 0%, rgb(255 121 0 / 28%), transparent 60%), #171b26;
  color: #ffffff;
}
.sx-cta-card .sx-btn-ghost {
  border-color: rgb(255 255 255 / 30%);
  color: #ffffff;
}
.sx-cta-art {
  position: absolute;
  z-index: -1;
  inset-block-end: -18%;
  inset-inline-end: -4%;
  inline-size: min(520px, 55%);
  opacity: 0.2;
}
@media (max-width: 760px) {
  .sx-cta-art {
    display: none;
  }
}
:root:not([data-theme='dark']) .sx .sx-cta-card .sx-glow {
  display: none;
}

/* Footer anchors the page */
.sx .sx-footer {
  --sx-text: #f7f8fa;
  --sx-muted: #cbd5e1;
  --sx-line: rgb(255 255 255 / 12%);
  --sx-accent-ink: #ffb27a;
  background: #171b26;
  color: var(--sx-text);
}
.sx .sx-footer a:not(.sx-btn) {
  color: #e2e8f0;
}
.sx .sx-footer h2,
.sx .sx-footer strong {
  color: #ffffff;
}
.sx .sx-footer small,
.sx .sx-footer p {
  color: var(--sx-muted);
}

/* Story stage with a scene per step */
.sx-scene-art {
  display: block;
  inline-size: min(460px, 90%);
  margin-inline: auto;
}
.sx-scene-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.sx-scene-label .sx-scene-ring {
  inline-size: 40px;
  block-size: 40px;
  border-radius: 12px;
  box-shadow: none;
}
.sx-scene-label .sx-scene-ring .sx-icon {
  inline-size: 20px;
  block-size: 20px;
}
.sx-story-stage {
  block-size: min(480px, 66vh);
}

@media (max-width: 1100px) {
  .sx-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .sx-hero-visual {
    min-block-size: clamp(320px, 66vw, 620px);
  }
  .sx-industry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .sx-page-hero-grid,
  .sx-login .sx-login-grid,
  .sx-features-detailed {
    grid-template-columns: minmax(0, 1fr);
  }
  .sx-page-hero-art {
    max-inline-size: 420px;
  }
  .sx-rail-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .sx-solution,
  .sx-solution:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'art' 'head' 'body';
  }
  .sx-legal-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'notice' 'toc' 'doc';
  }
  .sx-legal-layout > .sx-legal-toc {
    position: static;
  }
}
@media (max-width: 560px) {
  .sx-industry-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .sx-rail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sx-hero-visual .sx-frame {
    inline-size: 72%;
  }
  .sx-hero-visual .sx-float-a {
    display: none;
  }
  .sx-login-art {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sx .sx-eyebrow::before,
  .sx-float {
    animation: none;
  }
}
html[data-motion='off'] .sx .sx-eyebrow::before,
html[data-motion='off'] .sx-float {
  animation: none;
}
