/* Rollshopmanager — static landing (standalone, not part of Smart Melt FE) */

:root {
  --red: #ff4d49;
  --ink: #1e1e1e;
  --muted: #5c5c5c;
  --line: #e6e6e6;
  --paper: #ffffff;
  --hero: #0c0c0c;
  --soft: #f5f5f5;
  --max: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Calibri, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.45;
  font-size: 16px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

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

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: var(--hero);
  color: #fff;
  overflow: hidden;
  padding: 4.5rem 0 4rem;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.heat-glow {
  position: absolute;
  width: 70%;
  height: 70%;
  top: -10%;
  right: -8%;
  background: radial-gradient(ellipse at center, rgba(255, 77, 73, 0.42) 0%, rgba(255, 100, 40, 0.16) 35%, transparent 70%);
  filter: blur(10px);
}

.heat-glow-sm {
  width: 50%;
  height: 50%;
  top: 10%;
  left: 25%;
  right: auto;
  opacity: 0.7;
}

.heat-haze {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 30% at 60% 40%, rgba(255, 140, 80, 0.08), transparent 60%),
    linear-gradient(180deg, #111 0%, #0c0c0c 55%, #080808 100%);
  opacity: 1;
}

.billet-lines {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 28px,
    rgba(255, 255, 255, 0.04) 28px,
    rgba(255, 255, 255, 0.04) 29px
  );
  mask-image: linear-gradient(90deg, transparent 0%, #000 40%, #000 100%);
}

.mill-silhouette {
  position: absolute;
  right: max(-4%, calc(50% - 560px));
  bottom: 6%;
  width: min(58vw, 620px);
  height: auto;
  opacity: 0.78;
  filter: drop-shadow(0 0 28px rgba(255, 77, 73, 0.18));
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 2.5rem;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding-bottom: 1.5rem;
  margin-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-copy {
  max-width: 34rem;
}

.smartmelt-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.powered {
  height: 18px;
  width: auto;
  object-fit: contain;
}

.hero-product {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(1.65rem, 4.2vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 18ch;
  margin-bottom: 1rem;
}

.hero-lead {
  color: #b8b8b8;
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 36rem;
  margin-bottom: 2rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: #e63e3a;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  border-color: #fff;
}

.family {
  color: #8a8a8a;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

/* —— Sections —— */
section {
  padding: 4.5rem 0;
  position: relative;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
  display: inline-block;
  position: relative;
}

.section-label::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  margin-top: 0.45rem;
  background: var(--red);
  transition: width 0.6s ease;
}

.reveal.is-visible .section-label::after {
  width: 2.5rem;
}

.section-title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
}

/* Problem */
.problem {
  background: var(--soft);
}

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

.problem-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  padding: 1.35rem 1.25rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.problem-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(30, 30, 30, 0.08);
}

.problem-card p {
  font-size: 0.98rem;
  color: var(--ink);
}

/* Loop */
.loop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: nowrap;
  padding: 1.25rem 1rem;
  background: var(--soft);
  border: 1px solid var(--line);
}

.loop-node {
  flex: 1;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  padding: 0.9rem 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.loop-node span {
  display: block;
  font-size: 0.7rem;
  color: var(--red);
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.loop-arrow {
  color: var(--red);
  font-weight: 700;
  font-size: 1.25rem;
  flex: 0 0 auto;
  opacity: 0.45;
}

/* Shots */
.shots {
  background: var(--ink);
  color: #fff;
}

.shots .section-label {
  color: #ff8a87;
}

.shots .section-title {
  color: #fff;
}

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

.shot-frame {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #2a2a2a;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  position: relative;
}

.shot-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 77, 73, 0.18) 50%,
    transparent 60%
  );
  transform: translateX(-120%);
  pointer-events: none;
}

.shot-frame:hover::after,
.shot-frame:focus-within::after {
  animation: scanSweep 0.85s ease;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.shot figcaption {
  margin-top: 0.65rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.shot figcaption em {
  font-style: normal;
  font-weight: 500;
  color: #9a9a9a;
  margin-left: 0.35rem;
}

/* Caps */
.caps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
}

.cap h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}

.cap h3 em {
  font-style: normal;
  color: var(--red);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-right: 0;
}

.cap ul {
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.cap li {
  position: relative;
  padding-left: 0.85rem;
  margin-top: 0.4rem;
}

.cap li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

.status-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.chip {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}

.sep {
  color: var(--red);
  font-weight: 700;
}

.chip-open {
  background: #fff7ed;
  color: #c2410c;
}

.chip-progress {
  background: #e0f2fe;
  color: #0369a1;
}

.chip-done {
  background: #f3f4f6;
  color: #4b5563;
}

.chip-ok {
  background: #dcfce7;
  color: #15803d;
}

/* Who */
.who {
  background: var(--soft);
}

.who-list {
  list-style: none;
  display: grid;
  gap: 1rem;
  max-width: 36rem;
}

.who-list li {
  font-size: 1.05rem;
  color: var(--muted);
}

.who-list strong {
  color: var(--ink);
}

/* Close */
.close {
  position: relative;
  background: var(--hero);
  color: #fff;
  text-align: center;
  padding: 5rem 0;
  overflow: hidden;
}

.close-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.close h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  max-width: 18ch;
  margin: 0 auto 1.75rem;
}

.close .cta-row {
  justify-content: center;
  margin-bottom: 1.5rem;
}

.close-contact {
  color: #9a9a9a;
  font-size: 0.9rem;
}

.close-contact a {
  color: #e0e0e0;
  text-decoration: none;
}

.close-contact a:hover {
  color: #fff;
}

/* Footer */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}

.site-footer img {
  height: 20px;
  width: auto;
}

.site-footer a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

/* —— Motion —— */
@media (prefers-reduced-motion: no-preference) {
  .heat-glow {
    animation: heatBreathe 7s ease-in-out infinite alternate;
  }

  .heat-haze {
    animation: hazeDrift 12s ease-in-out infinite alternate;
  }

  .billet-lines {
    animation: linesShift 18s linear infinite;
  }

  .roll-a {
    transform-origin: 390px 150px;
    animation: rollSpin 8s linear infinite;
  }

  .roll-b {
    transform-origin: 390px 250px;
    animation: rollSpin 8s linear infinite reverse;
  }

  .bar {
    animation: barPulse 3.5s ease-in-out infinite alternate;
  }

  .bar-glow {
    animation: barPulse 3.5s ease-in-out infinite alternate;
  }

  .spark {
    animation: sparkPop 2.4s ease-in-out infinite;
  }

  .s1 {
    animation-delay: 0s;
  }
  .s2 {
    animation-delay: 0.4s;
  }
  .s3 {
    animation-delay: 0.9s;
  }
  .s4 {
    animation-delay: 1.3s;
  }

  .hero-stagger {
    opacity: 0;
    animation: rise 0.75s ease forwards;
  }

  .hero-top.hero-stagger {
    animation-delay: 0.05s;
  }
  .hero-product.hero-stagger {
    animation-delay: 0.15s;
  }
  .hero h1.hero-stagger {
    animation-delay: 0.28s;
  }
  .hero-lead.hero-stagger {
    animation-delay: 0.4s;
  }
  .cta-row.hero-stagger {
    animation-delay: 0.52s;
  }
  .family.hero-stagger {
    animation-delay: 0.64s;
  }

  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s ease, transform 0.65s ease;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .reveal.is-visible .loop-live .loop-node {
    animation: nodePulse 5s ease-in-out infinite;
  }

  .reveal.is-visible .loop-live .loop-node[data-step='1'] {
    animation-delay: 0s;
  }
  .reveal.is-visible .loop-live .loop-node[data-step='2'] {
    animation-delay: 1s;
  }
  .reveal.is-visible .loop-live .loop-node[data-step='3'] {
    animation-delay: 2s;
  }
  .reveal.is-visible .loop-live .loop-node[data-step='4'] {
    animation-delay: 3s;
  }
  .reveal.is-visible .loop-live .loop-node[data-step='5'] {
    animation-delay: 4s;
  }

  .reveal.is-visible .loop-live .loop-arrow {
    animation: arrowFlash 5s ease-in-out infinite;
  }

  .reveal.is-visible .loop-live .loop-arrow:nth-of-type(2) {
    animation-delay: 0.5s;
  }
  .reveal.is-visible .loop-live .loop-arrow:nth-of-type(4) {
    animation-delay: 1.5s;
  }
  .reveal.is-visible .loop-live .loop-arrow:nth-of-type(6) {
    animation-delay: 2.5s;
  }
  .reveal.is-visible .loop-live .loop-arrow:nth-of-type(8) {
    animation-delay: 3.5s;
  }

  .reveal.is-visible .status-live .chip {
    animation: chipPulse 0.55s ease both;
  }

  .reveal.is-visible .status-live .chip:nth-child(1) {
    animation-delay: 0.05s;
  }
  .reveal.is-visible .status-live .chip:nth-child(3) {
    animation-delay: 0.15s;
  }
  .reveal.is-visible .status-live .chip:nth-child(5) {
    animation-delay: 0.25s;
  }
  .reveal.is-visible .status-live .chip:nth-child(7) {
    animation-delay: 0.35s;
  }

  @keyframes heatBreathe {
    from {
      opacity: 0.75;
      transform: scale(1);
    }
    to {
      opacity: 1;
      transform: scale(1.08);
    }
  }

  @keyframes hazeDrift {
    from {
      transform: translateY(0);
    }
    to {
      transform: translateY(-12px);
    }
  }

  @keyframes linesShift {
    from {
      background-position: 0 0;
    }
    to {
      background-position: 0 56px;
    }
  }

  @keyframes rollSpin {
    from {
      filter: brightness(1);
    }
    50% {
      filter: brightness(1.15);
    }
    to {
      filter: brightness(1);
    }
  }

  @keyframes barPulse {
    from {
      opacity: 0.65;
    }
    to {
      opacity: 1;
    }
  }

  @keyframes sparkPop {
    0%,
    100% {
      opacity: 0.15;
      transform: translate(0, 0) scale(0.7);
    }
    40% {
      opacity: 1;
      transform: translate(6px, -10px) scale(1.2);
    }
    70% {
      opacity: 0.4;
      transform: translate(12px, -18px) scale(0.9);
    }
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes nodePulse {
    0%,
    12%,
    100% {
      background: #fff;
      box-shadow: none;
      border-top-color: var(--red);
    }
    4%,
    8% {
      background: #fff5f4;
      box-shadow: 0 0 0 2px rgba(255, 77, 73, 0.25);
      border-top-color: #ff2f2a;
    }
  }

  @keyframes arrowFlash {
    0%,
    12%,
    100% {
      opacity: 0.35;
      transform: translateX(0);
    }
    4%,
    8% {
      opacity: 1;
      transform: translateX(2px);
    }
  }

  @keyframes chipPulse {
    from {
      opacity: 0;
      transform: scale(0.92);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  @keyframes scanSweep {
    from {
      transform: translateX(-120%);
    }
    to {
      transform: translateX(120%);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .heat-glow,
  .heat-haze,
  .billet-lines,
  .roll-a,
  .roll-b,
  .bar,
  .bar-glow,
  .spark,
  .hero-stagger {
    animation: none !important;
  }

  .hero-stagger {
    opacity: 1;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .section-label::after {
    width: 2.5rem;
  }
}

/* Responsive */
@media (max-width: 860px) {
  .problem-grid,
  .shot-grid,
  .caps-grid {
    grid-template-columns: 1fr;
  }

  .loop {
    flex-wrap: wrap;
    justify-content: center;
  }

  .loop-node {
    flex: 1 1 40%;
  }

  .loop-arrow:nth-of-type(4),
  .loop-arrow:nth-of-type(8) {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .hero-inner {
    padding-top: 1.25rem;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-top {
    margin-bottom: 2.5rem;
  }

  .mill-silhouette {
    width: min(90vw, 420px);
    opacity: 0.4;
    right: -8%;
    bottom: -2%;
  }

  .hero h1 {
    max-width: none;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
