/* RawLogix marketing site. Plain CSS, no build step.
   Dark graphite theme taken from the ERP login screen
   (rawlogix-erp/src/app/(auth)/_components/auth-shell.tsx): #141416 ground,
   a faint isometric cube grid, a copper glow and a steel glow. */

:root {
  --copper: #e8915a;
  --copper-hi: #f2a876;
  --copper-tint: rgba(232, 145, 90, 0.13);
  --copper-line: rgba(232, 145, 90, 0.34);

  --ground: #141416;
  --surface: #1c1c20;
  --surface-2: #232328;
  --line: #2e2e34;
  --line-hi: #46464e;

  --ink: #f5f3f0;
  --slate: #c4bfb9;
  --faint: #928d87;

  --ok: #7fd3a0;
  --ok-tint: rgba(127, 211, 160, 0.14);

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 24px 60px rgba(0, 0, 0, 0.45);
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Isometric cube-edge grid, same geometry as the login screen (56 x 32.33). */
  --raster: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='32.33'%3E%3Cpath d='M0 16.17 28 0l28 16.17M0 16.17l28 16.16 28-16.16' stroke='%23fff' stroke-opacity='.07' stroke-width='.8' fill='none'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
  background: var(--ground);
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--ground) var(--raster);
  color: var(--ink);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

/* Copper glow top left, steel glow further down on the right. */
body::before,
body::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}

body::before {
  top: -22rem;
  left: -20rem;
  width: 56rem;
  height: 56rem;
  background: radial-gradient(circle, rgba(232, 145, 90, 0.26), transparent 65%);
}

body::after {
  top: 26rem;
  right: -22rem;
  width: 46rem;
  height: 46rem;
  background: radial-gradient(circle, rgba(163, 170, 180, 0.13), transparent 65%);
}

body > * {
  position: relative;
  z-index: 1;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--copper);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--copper-hi);
}

:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 5.2vw, 3.75rem);
  font-weight: 750;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 720;
}

h3 {
  font-size: 1.12rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--surface-2);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 100;
}

.skip:focus {
  left: 0.5rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 20, 22, 0.78);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 720;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand svg,
.brand img {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand span b {
  color: var(--copper);
  font-weight: inherit;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav a:not(.btn) {
  color: var(--slate);
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 550;
}

.nav a:not(.btn):hover {
  color: var(--ink);
}

@media (max-width: 820px) {
  .nav a:not(.btn) {
    display: none;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 620;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--copper);
  color: var(--ground);
}

.btn-primary:hover {
  background: var(--copper-hi);
  color: var(--ground);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-hi);
  color: var(--ink);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: #5e5e68;
  color: var(--ink);
}

.btn-sm {
  padding: 0.5rem 0.95rem;
  font-size: 0.93rem;
}

/* Hero */

.hero {
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

@media (max-width: 940px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1.1rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--copper-line);
  border-radius: 999px;
  background: var(--copper-tint);
  color: var(--copper);
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.hero h1 em {
  font-style: normal;
  color: var(--copper);
}

.lead {
  margin-top: 1.3rem;
  max-width: 34rem;
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  color: var(--slate);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--faint);
  font-size: 0.93rem;
}

.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-facts li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--copper);
}

/* Product mock (illustration built in HTML, not a screenshot) */

.mock {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-hi);
  border-radius: 18px;
  box-shadow: var(--shadow), 0 18px 60px rgba(232, 145, 90, 0.12);
  overflow: hidden;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.1rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  color: var(--slate);
  font-size: 0.82rem;
}

.mock-bar i {
  display: flex;
  gap: 5px;
}

.mock-bar i::before,
.mock-bar i::after,
.mock-bar i span {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.mock-body {
  padding: 1.25rem 1.25rem 1.4rem;
}

.mock-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.mock-head strong {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.mock-head code {
  font: 0.8rem var(--mono);
  color: var(--faint);
}

.weigh {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.weigh div {
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.weigh div.net {
  background: var(--copper-tint);
  border-color: var(--copper-line);
}

.weigh small {
  display: block;
  color: var(--faint);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.weigh b {
  font: 650 1.15rem var(--mono);
  font-variant-numeric: tabular-nums;
}

.weigh .net b {
  color: var(--copper);
}

.mock-rows {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}

.mock-rows li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
}

.mock-rows span {
  color: var(--faint);
}

.mock-rows b {
  font-weight: 600;
  text-align: right;
}

.mock-rows .pill {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: var(--ok-tint);
  color: var(--ok);
  font-size: 0.78rem;
  font-weight: 650;
}

.mock-note {
  margin-top: 0.6rem;
  color: var(--faint);
  font-size: 0.78rem;
  text-align: right;
}

/* Sections */

section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head p {
  margin-top: 1rem;
  color: var(--slate);
  font-size: 1.1rem;
}

.kicker {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--copper);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Light bands alternate with the dark ground. They only re-point the tokens,
   so every component inside adapts without its own light variant. */
.light {
  --copper: #b4531f;
  --copper-hi: #974417;
  --copper-tint: #fbefe6;
  --copper-line: #f1d6c2;

  --ground: #f5f5f3;
  --surface: #ffffff;
  --surface-2: #fafaf9;
  --line: #e7e5e0;
  --line-hi: #d5d1c9;

  --ink: #1c1917;
  --slate: #44403c;
  --faint: #6f6861;

  --ok: #2f7d4f;
  --ok-tint: #e6f3ea;

  background: var(--ground);
  color: var(--ink);
  color-scheme: light;
}

.light .btn-ghost {
  background: var(--surface);
}

.light .btn-ghost:hover {
  background: var(--surface-2);
  border-color: #bdb8af;
}

.light .card:hover {
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.06), 0 12px 32px rgba(28, 25, 23, 0.08);
  background: var(--surface);
}

.light .todo {
  background: #fff1c2;
  color: #6b4e00;
}

/* Dark bands further down get their own glow, like the hero. */
#module {
  background: radial-gradient(46rem 30rem at 100% 0%, rgba(163, 170, 180, 0.13), transparent 70%);
}

#plattform {
  background: radial-gradient(50rem 32rem at 0% 0%, rgba(232, 145, 90, 0.2), transparent 70%);
}

/* Flow: the material's path through the yard */

.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (max-width: 940px) {
  .flow {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .flow {
    grid-template-columns: 1fr;
  }
}

.flow li {
  position: relative;
  padding: 1.4rem 1.3rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: step;
}

.flow li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 0.9rem;
  color: var(--copper);
  font: 700 0.85rem var(--mono);
}

.flow p {
  margin-top: 0.45rem;
  color: var(--slate);
  font-size: 0.97rem;
}

/* Module grid */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 940px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.card {
  padding: 1.5rem 1.4rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s, background-color 0.15s;
}

.card:hover {
  border-color: var(--line-hi);
  background: var(--surface-2);
}

.card svg {
  width: 26px;
  height: 26px;
  margin-bottom: 1rem;
  color: var(--copper);
}

.card p {
  margin-top: 0.5rem;
  color: var(--slate);
  font-size: 0.98rem;
}

/* Two-column feature block */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.split p {
  margin-top: 1rem;
  color: var(--slate);
}

.checks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding: 1rem 0 1rem 2.2rem;
  border-top: 1px solid var(--line);
}

.checks li:last-child {
  border-bottom: 1px solid var(--line);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 1.35rem;
  width: 0.95rem;
  height: 0.5rem;
  border-left: 2.5px solid var(--copper);
  border-bottom: 2.5px solid var(--copper);
  transform: rotate(-45deg);
}

.checks b {
  display: block;
  font-weight: 650;
}

.checks span {
  color: var(--slate);
  font-size: 0.97rem;
}

/* Closing band */

.cta {
  text-align: center;
}

.cta .box {
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
  border: 1px solid var(--line-hi);
  border-radius: 22px;
  background:
    radial-gradient(620px 280px at 50% 0%, rgba(232, 145, 90, 0.3), transparent 70%),
    var(--surface);
}

.cta p {
  max-width: 36rem;
  margin: 1rem auto 0;
  color: var(--slate);
  font-size: 1.1rem;
}

.cta .cta-row {
  justify-content: center;
}

/* Footer */

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.93rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.site-footer a {
  color: var(--slate);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.elements {
  font: 0.8rem var(--mono);
  letter-spacing: 0.04em;
  color: var(--faint);
}

/* Legal pages */

.legal {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem);
}

.legal .wrap {
  max-width: 46rem;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1.5rem;
}

.legal h2 {
  font-size: 1.3rem;
  margin: 2.2rem 0 0.6rem;
}

.legal p,
.legal ul {
  margin: 0 0 1rem;
  color: var(--slate);
}

.legal ul {
  padding-left: 1.2rem;
}

.todo {
  padding: 0.05rem 0.4rem;
  border-radius: 5px;
  background: rgba(255, 214, 90, 0.16);
  color: #ffd76a;
  font-weight: 600;
}

.notfound {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.notfound p {
  margin: 1rem 0 2rem;
  color: var(--slate);
}

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

  * {
    transition: none !important;
  }
}
