/* ==========================================================================
   PULL SYSTEM — IT consulting for production & logistics landing page
   ========================================================================== */

:root {
  /* Palette — industrial anthracite + molten accent */
  --bg: #14120f;
  --bg-alt: #1b1814;
  --panel: #211d18;
  --panel-2: #292420;
  --border: rgba(240, 232, 220, 0.10);
  --border-strong: rgba(240, 232, 220, 0.18);

  --text: #efe9e0;
  --text-dim: #b3a99b;
  --text-faint: #7d7367;

  --accent: #ef5c22;
  --accent-2: #f5a623;
  --accent-deep: #b23016;
  --gradient-molten: linear-gradient(120deg, var(--accent-2), var(--accent) 65%, var(--accent-deep));

  --stone: #4a453c;

  --font-display: 'Oswald', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --max-width: 1200px;
  --radius: 2px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin: 0 0 16px;
  color: #fff;
}

h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 20px; }

p { margin: 0 0 16px; color: var(--text-dim); }

strong { color: var(--text); font-weight: 600; }

/* Grain overlay for texture */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 500;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn-primary {
  background: var(--gradient-molten);
  background-size: 160% 100%;
  background-position: 0% 0%;
  color: #17110a;
}
.btn-primary:hover {
  background-position: 100% 0%;
  box-shadow: 0 10px 30px -8px rgba(239, 92, 34, 0.55);
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-2);
  transform: translateY(-2px);
}

.btn-block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 22px 0;
  transition: padding 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  padding: 14px 0;
  background: rgba(20, 18, 15, 0.88);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.main-nav a {
  color: var(--text-dim);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}
.main-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent-2);
  transition: width 0.25s ease;
}
.main-nav a:not(.nav-cta):hover { color: #fff; }
.main-nav a:not(.nav-cta):hover::after { width: 100%; }

.main-nav a.nav-cta {
  border: 1px solid var(--border-strong);
  padding: 9px 18px;
  border-radius: var(--radius);
  color: var(--text);
}
.main-nav a.nav-cta:hover {
  border-color: var(--accent);
  color: var(--accent-2);
  background: rgba(239, 92, 34, 0.08);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 120px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(35%) brightness(0.55);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14,12,10,0.55) 0%, rgba(14,12,10,0.72) 55%, var(--bg) 100%),
    linear-gradient(100deg, rgba(14,12,10,0.85) 0%, rgba(14,12,10,0.35) 55%);
}

.hero-inner { position: relative; z-index: 1; padding-bottom: 64px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent-2);
}

.hero-title {
  font-size: clamp(42px, 7.5vw, 92px);
  max-width: 16ch;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 18px;
  max-width: 620px;
  color: var(--text-dim);
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.spec-ticker {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: rgba(20, 18, 15, 0.55);
  backdrop-filter: blur(6px);
}

.spec-ticker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.spec-item {
  padding: 22px 20px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.spec-item:last-child { border-right: none; }

.spec-value {
  font-family: var(--font-mono);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  color: #fff;
}
.spec-label {
  font-size: 12px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Sections generic
   ========================================================================== */

.section { padding: 120px 0; position: relative; }

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-lead { font-size: 17px; margin-top: 12px; }

/* ==========================================================================
   About
   ========================================================================== */

.about { background: var(--bg-alt); }

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: center;
}

.about-media {
  position: relative;
  padding: 18px;
}
.about-media img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--panel);
}

.frame-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2px solid var(--accent-2);
  z-index: 1;
}
.frame-corner.tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.frame-corner.br { bottom: 0; right: 0; border-left: none; border-top: none; }

.media-tag {
  display: block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.callout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  margin-top: 28px;
  background: var(--panel);
  border-left: 2px solid var(--accent);
}
.callout-icon {
  width: 26px; height: 26px;
  flex-shrink: 0;
  color: var(--accent-2);
}
.callout p { margin: 0; font-size: 15px; color: var(--text-dim); }

/* ==========================================================================
   Comparison table
   ========================================================================== */

.compare-table {
  border: 1px solid var(--border);
}

.compare-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
}
.compare-row:last-child { border-bottom: none; }

.compare-header {
  background: var(--panel);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.compare-header .compare-basalt { color: var(--accent-2); }
.compare-header .compare-steel { color: var(--text-faint); }

.compare-cell {
  padding: 18px 22px;
  font-size: 15px;
  display: flex;
  align-items: center;
}

.compare-label {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-alt);
}

.compare-basalt {
  color: var(--text);
  font-weight: 500;
  border-left: 1px solid var(--border);
}

.compare-steel {
  color: var(--text-faint);
  border-left: 1px solid var(--border);
}

/* ==========================================================================
   Products
   ========================================================================== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.product-card {
  background: var(--bg);
  padding: 32px 28px;
  transition: background 0.25s ease, transform 0.25s ease;
}
.product-card:hover {
  background: var(--panel);
  transform: translateY(-3px);
}

.product-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.product-card-head svg {
  width: 30px; height: 30px;
  color: var(--accent-2);
}
.product-index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
}

.product-card h3 { margin-bottom: 10px; }
.product-card > p { font-size: 14.5px; margin-bottom: 20px; min-height: 44px; }

.spec-list {
  list-style: none;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--border);
}
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 5px 0;
}
.spec-list li span:first-child { color: var(--text-faint); }
.spec-list li span:last-child { color: var(--text); text-align: right; }

/* ==========================================================================
   Process
   ========================================================================== */

.process { background: var(--bg-alt); }

.process-flow {
  display: flex;
  align-items: center;
  gap: 24px;
}

.process-step { flex: 1; text-align: left; }

.process-media {
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
}
.process-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.process-step:hover .process-media img { transform: scale(1.05); }

.process-num {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 13px;
  display: block;
  margin-bottom: 8px;
}

.process-step h3 { margin-bottom: 8px; }
.process-step p { font-size: 14.5px; margin: 0; }

.process-arrow {
  color: var(--accent);
  flex-shrink: 0;
  opacity: 0.6;
}
.process-arrow svg { width: 24px; height: 24px; }

/* ==========================================================================
   Partners
   ========================================================================== */

.partners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.partners-logos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.partner-plate {
  background: #f4f0ea;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4/3;
}
.partner-plate img { max-height: 70px; width: auto; object-fit: contain; }
.partner-plate > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}
.partner-plate .spec-value { color: var(--bg); font-size: 30px; }
.partner-plate .spec-label { color: var(--stone); }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact { background: var(--bg-alt); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
}

.contact-details { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }

.contact-line {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text);
  transition: color 0.2s ease;
  width: fit-content;
}
.contact-line svg { width: 20px; height: 20px; color: var(--accent-2); }
.contact-line:hover { color: var(--accent-2); }

.contact-form {
  background: var(--panel);
  padding: 36px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row { display: flex; flex-direction: column; gap: 8px; }

.form-row label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.form-row input,
.form-row textarea {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border-radius: var(--radius);
  resize: vertical;
  transition: border-color 0.2s ease;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-inner { text-align: center; }
.footer-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 auto 18px;
}
.footer-note {
  font-size: 14px;
  max-width: 480px;
  margin: 0 auto 18px;
}
.footer-links {
  font-size: 13px;
  margin: 0 0 18px;
}
.footer-links a {
  color: var(--text-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--accent-2); }
.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  margin: 0;
}

/* ==========================================================================
   Legal pages
   ========================================================================== */

.legal-page { padding-top: 160px; }

.legal-title {
  font-size: clamp(32px, 5vw, 52px);
}

.legal-updated {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0;
}

.legal-content { max-width: 760px; }
.legal-content h2 {
  font-size: 22px;
  margin-top: 48px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { font-size: 16px; }
.legal-content ul {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--text-dim);
}
.legal-content li { margin-bottom: 8px; }
.legal-content a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.legal-content a:hover { color: var(--accent); }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-ticker-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-item:nth-child(2n) { border-right: none; }
  .partners-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .process-flow { flex-direction: column; }
  .process-arrow { transform: rotate(90deg); margin: -8px 0; }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 80vw);
    background: var(--bg-alt);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .section { padding: 80px 0; }
  .legal-page { padding-top: 120px; }
  .spec-ticker-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-item:nth-child(2n) { border-right: none; }
  .product-grid { grid-template-columns: 1fr; }
  .compare-row { grid-template-columns: 1fr; }
  .compare-label { border-bottom: 1px solid var(--border); }
  .compare-basalt, .compare-steel { border-left: none; padding-left: 22px; }
}
