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

:root {
  --graphite: #1F2328;
  --steel: #2E5B8A;
  --amber: #D59B2D;
  --green: #2E9B65;
  --red: #C94B4B;
  --mist: #F7F9FB;
  --mist-dark: #EDF0F4;
  --graphite-60: rgba(31,35,40,0.06);
  --graphite-10: rgba(31,35,40,0.10);
  --steel-light: rgba(46,91,138,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--mist);
  color: var(--graphite);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.mono {
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: -0.02em;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--graphite);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 60px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-mark {
  width: 28px;
  height: 28px;
}

.nav-logo-text {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 15px;
  color: #fff;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.nav-links a:hover { color: #fff; }

.nav-cta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--graphite) !important;
  background: var(--amber);
  padding: 8px 16px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 0.2s, opacity 0.2s;
}

.nav-cta:hover { opacity: 0.88; }

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  background: var(--graphite);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(46,91,138,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,91,138,0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
}

.hero-accent-line {
  position: absolute;
  top: 0; left: 48px;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--amber) 30%, var(--amber) 70%, transparent);
  opacity: 0.35;
}

.hero-section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.2s;
}

.hero-headline {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 5.5vw, 72px);
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 820px;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.35s;
}

.hero-headline em {
  font-style: normal;
  color: var(--amber);
}

.hero-body {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  max-width: 580px;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.5s;
}

.hero-body strong {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}

.hero-closer {
  font-size: 18px;
  color: rgba(255,255,255,0.9);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 64px;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.6s;
}

.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.8s;
}

.hero-scroll span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.1em;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--amber), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

.required {
  color: #e53935;
  margin-left: 1px;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* ─── SECTION SHARED ─── */
section { position: relative; }

.section-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 96px 48px;
}

.section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::after {
  content: '';
  display: block;
  height: 1px;
  width: 48px;
  background: var(--steel);
  opacity: 0.4;
}

.section-label.on-dark { color: var(--amber); }
.section-label.on-dark::after { background: var(--amber); }

/* ─── PROBLEM ─── */
#problem {
  background: var(--graphite);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 0;
}

.problem-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 40px;
  position: relative;
  transition: background 0.3s;
}

.problem-card:hover {
  background: rgba(255,255,255,0.055);
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: var(--amber);
  opacity: 0;
  transition: opacity 0.3s;
}

.problem-card:hover::before { opacity: 1; }

.problem-number {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  opacity: 0.7;
}

.problem-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 16px;
}

.problem-body {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255,255,255,0.5);
}

/* ─── SYSTEM ─── */
#system { background: var(--mist); }

.system-intro {
  font-size: 18px;
  line-height: 1.75;
  color: var(--graphite);
  max-width: 680px;
  margin-bottom: 64px;
}

.product-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--graphite-10);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.product-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--steel);
}

.product-card.hardware::after { background: var(--amber); }

.product-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 24px;
}

.product-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
  display: block;
}

.product-card.software .product-tag { color: var(--steel); }

.product-name {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--graphite);
  margin-bottom: 8px;
}

.product-tagline {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--steel);
  margin-bottom: 20px;
}

.product-body {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(31,35,40,0.65);
}

.system-summary {
  margin-top: 48px;
  background: var(--graphite);
  padding: 32px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}

.summary-item {
  padding: 0 32px;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.summary-item:first-child { padding-left: 0; }
.summary-item:last-child { border-right: none; }

.summary-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.summary-value {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}

/* ─── HOW IT WORKS ─── */
#how { background: var(--mist-dark); }

.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--steel) 0%, var(--green) 100%);
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  padding: 0 0 56px 40px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -6px;
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--mist-dark);
  border: 2px solid var(--steel);
}

.timeline-item:last-child .timeline-dot { border-color: var(--green); }

.timeline-period {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--steel);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.timeline-item:last-child .timeline-period { color: var(--green); }

.timeline-title {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--graphite);
  margin-bottom: 12px;
}

.timeline-body {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(31,35,40,0.6);
  max-width: 620px;
}

/* ─── INDUSTRIES ─── */
#industries { background: var(--graphite); }

.industries-intro {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  max-width: 580px;
  margin-bottom: 56px;
}

.industry-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
}

.industry-item {
  background: var(--graphite);
  padding: 36px 40px;
  transition: background 0.25s;
  cursor: default;
}

.industry-item:hover {
  background: rgba(46,91,138,0.15);
}

.industry-name {
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.industry-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

.industry-before, .industry-after {
  display: flex;
  gap: 12px;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.industry-before { color: rgba(255,255,255,0.35); }
.industry-after { color: rgba(46,155,101,0.9); }

.ind-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  flex-shrink: 0;
  margin-top: 2px;
  letter-spacing: 0.04em;
}

.ind-tag.before { color: var(--red); opacity: 0.8; }
.ind-tag.after { color: var(--green); }

/* ─── NUMBERS ─── */
#numbers { background: var(--mist); }

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.number-card {
  background: #fff;
  border: 1px solid var(--graphite-10);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
}

.number-value {
  font-weight: 900;
  font-size: 52px;
  letter-spacing: -0.05em;
  color: var(--graphite);
  line-height: 1;
  margin-bottom: 8px;
}

.number-unit {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  color: var(--steel);
  display: block;
  margin-bottom: 16px;
}

.number-label {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(31,35,40,0.55);
}

.number-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}

.number-card:nth-child(1)::before { background: var(--steel); }
.number-card:nth-child(2)::before { background: var(--green); }
.number-card:nth-child(3)::before { background: var(--amber); }
.number-card:nth-child(4)::before { background: var(--steel); }

/* ─── WHO WE ARE ─── */
#about { background: var(--graphite); }

.about-body {
  max-width: 700px;
}

.about-p {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255,255,255,0.55);
  margin-bottom: 24px;
}

.about-p:last-of-type { margin-bottom: 0; }

.about-p strong {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}

.about-statement {
  margin-top: 48px;
  padding: 32px 40px;
  border-left: 3px solid var(--amber);
  background: rgba(213,155,45,0.06);
}

.about-statement p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  font-style: italic;
}

/* ─── CONTACT ─── */
#contact { background: var(--mist); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-left h2 {
  font-weight: 900;
  font-size: 32px;
  letter-spacing: -0.03em;
  color: var(--graphite);
  margin-bottom: 20px;
  line-height: 1.15;
}

.contact-left p {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(31,35,40,0.6);
  margin-bottom: 40px;
}

.direct-contact {
  padding-top: 32px;
  border-top: 1px solid var(--graphite-10);
}

.direct-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--steel);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  display: block;
}

.direct-email {
  font-weight: 700;
  font-size: 16px;
  color: var(--graphite);
  text-decoration: none;
  border-bottom: 2px solid var(--amber);
  padding-bottom: 2px;
}

.direct-note {
  font-size: 13px;
  color: rgba(31,35,40,0.45);
  margin-top: 10px;
  font-family: 'IBM Plex Mono', monospace;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--steel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-input, .form-textarea {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--graphite);
  background: #fff;
  border: 1px solid rgba(31,35,40,0.15);
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--steel);
  box-shadow: 0 0 0 3px rgba(46,91,138,0.08);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.form-submit {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--graphite);
  border: none;
  padding: 16px 32px;
  cursor: pointer;
  transition: background 0.2s;
  align-self: flex-start;
  text-transform: uppercase;
}

.form-submit:hover { background: var(--steel); }

/* ─── FOOTER ─── */
footer {
  background: #141719;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  max-width: 400px;
  line-height: 1.5;
}

.footer-copy {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.04em;
}

.footer-logo {
  font-weight: 900;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  letter-spacing: -0.03em;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── HAMBURGER BUTTON ─── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 200;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(255,255,255,0.7);
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── MOBILE DRAWER ─── */
.nav-drawer {
  display: none;
  position: fixed;
  top: 60px; left: 0; right: 0; bottom: 0;
  background: var(--graphite);
  z-index: 99;
  flex-direction: column;
  padding: 40px 24px 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.nav-drawer.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.nav-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 32px;
}

.nav-drawer-links li a {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  letter-spacing: 0.06em;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s;
}

.nav-drawer-links li a:hover { color: #fff; }

.nav-drawer-cta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--graphite);
  background: var(--amber);
  padding: 16px 24px;
  text-decoration: none;
  letter-spacing: 0.06em;
  display: block;
  text-align: center;
}

/* ─── TABLET (≤1024px) ─── */
@media (max-width: 1024px) {
  .section-inner { padding: 80px 40px; }

  #hero { padding: 110px 40px 72px; }

  .hero-accent-line { left: 40px; }

  .problem-grid { grid-template-columns: 1fr; gap: 2px; }

  .numbers-grid { grid-template-columns: 1fr 1fr; gap: 2px; }

  .system-summary {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .summary-item {
    padding: 20px 0;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .summary-item:first-child { padding-top: 0; }
  .summary-item:last-child { border-bottom: none; padding-bottom: 0; }

  .contact-grid { gap: 48px; }
}

/* ─── MOBILE (≤768px) ─── */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-drawer { display: flex; }

  .section-inner { padding: 64px 20px; }

  #hero {
    padding: 96px 20px 64px;
    min-height: 100svh;
  }

  .hero-accent-line { left: 20px; }

  .hero-section-label { margin-bottom: 24px; }

  .hero-body {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .hero-body br { display: none; }

  .hero-closer {
    font-size: 16px;
    margin-bottom: 48px;
  }

  .hero-closer br { display: none; }

  /* Problem */
  .problem-grid { grid-template-columns: 1fr; }
  .problem-card { padding: 28px 24px; }

  /* System */
  .system-intro { font-size: 16px; margin-bottom: 40px; }
  .product-cards { grid-template-columns: 1fr; gap: 16px; }
  .product-card { padding: 28px 24px; }

  .system-summary { padding: 24px; }
  .summary-item { padding: 16px 0; }

  /* Timeline */
  .timeline { padding-left: 24px; }
  .timeline-item { padding: 0 0 40px 28px; }
  .timeline-title { font-size: 16px; }
  .timeline-body { font-size: 14px; }

  /* Industries */
  .industries-intro { font-size: 16px; margin-bottom: 36px; }
  .industry-list { grid-template-columns: 1fr; }
  .industry-item { padding: 24px 20px; }

  /* Numbers */
  .numbers-grid { grid-template-columns: 1fr 1fr; gap: 2px; }
  .number-card { padding: 28px 20px; }
  .number-value { font-size: 40px; }

  /* About */
  .about-p { font-size: 15px; }
  .about-statement { padding: 24px; }
  .about-statement p { font-size: 15px; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-left h2 { font-size: 26px; }
  .form-submit { width: 100%; text-align: center; }

  /* Footer */
  footer {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    padding: 36px 20px;
  }
}

/* ─── SMALL MOBILE (≤480px) ─── */
@media (max-width: 480px) {
  .numbers-grid { grid-template-columns: 1fr; }
  .number-card { padding: 24px 20px; }

  .hero-headline { letter-spacing: -0.03em; }

  .problem-card { padding: 24px 20px; }
  .problem-title { font-size: 15px; }

  .section-inner { padding: 56px 16px; }
  #hero { padding: 88px 16px 56px; }
  .hero-accent-line { left: 16px; }

  nav { padding: 0 16px; }
}
