/* ============================================================
   InfoRed — Design system (matched to the INFORED wordmark)
   Palette: Black / Red / White — the logo's own two colors
   Type: Oswald (display, bold italic for the wordmark) · Inter (body) · JetBrains Mono (data)
   ============================================================ */

:root {
  --ink: #0E0E10;
  --ink-2: #17171A;
  --ink-3: #202024;
  --red: #E4032E;
  --red-light: #FF3B4E;
  --red-dark: #A80019;
  --paper: #F7F6F8;
  --paper-2: #ECEBEF;
  --line-dark: rgba(255, 255, 255, 0.12);
  --line-light: rgba(14, 14, 16, 0.1);
  --slate: #5B5D63;
  --slate-dark: #17181B;

  --font-display: 'Oswald', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--slate-dark);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--slate); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(228, 3, 46, 0.25);
}

.section {
  padding: 60px 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(560px 280px at 90% -8%, rgba(228,3,46,0.05), transparent 60%),
    radial-gradient(420px 260px at -6% 108%, rgba(14,14,16,0.035), transparent 60%);
}
.section--tight { padding: 40px 0; }
.section--dark { background: var(--ink); color: #fff; }
.section--dark p { color: rgba(255,255,255,0.68); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--alt { background-color: var(--paper-2); }

.section-head { max-width: 640px; margin: 0 0 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(228, 3, 46, 0.55);
}
.btn-primary:hover { background: var(--red-light); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-light);
}
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.section--dark .btn-ghost { color: #fff; border-color: var(--line-dark); }
.section--dark .btn-ghost:hover { border-color: var(--red); color: var(--red); }
.hero .btn-ghost { color: #fff; border-color: var(--line-dark); }
.hero .btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-coral {
  background: var(--red-dark);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(228, 3, 46, 0.5);
}
.btn-coral:hover { background: var(--red-light); }
.btn-block { width: 100%; justify-content: center; }

/* ============ Header / Nav ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 248, 252, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-light);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.logo .dot {
  width: 9px; height: 9px; border-radius: 3px;
  background: linear-gradient(135deg, var(--ink), var(--red));
  display: inline-block;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: 21px;
  color: var(--ink);
}
.logo-red { color: var(--red); }
.footer-logo .logo-red { color: var(--red); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--slate-dark);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 2px; right: 2px; bottom: -2px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s cubic-bezier(.22,.61,.36,1);
}
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-links a:hover, .nav-links a.is-active { color: var(--red); }

.nav-right { display: flex; align-items: center; gap: 18px; }

.lang-switch {
  display: flex;
  gap: 2px;
  background: var(--paper-2);
  border-radius: 999px;
  padding: 3px;
}
.lang-switch button {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  border: none;
  background: transparent;
  color: var(--slate);
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.lang-switch button.is-active { background: var(--ink); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); }

/* ============ Hero ============ */
.hero {
  padding: 56px 0 68px;
  background:
    radial-gradient(700px 380px at 82% -10%, rgba(228,3,46,0.35), transparent 60%),
    radial-gradient(500px 320px at 10% 0%, rgba(228,3,46,0.14), transparent 60%),
    var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}
.hero .eyebrow { color: var(--red); }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); color: #fff; }
.hero-sub { font-size: 17.5px; color: rgba(255,255,255,0.72); max-width: 480px; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

@keyframes fadeUpIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero .eyebrow { animation: fadeUpIn .7s cubic-bezier(.22,.61,.36,1) both; }
.hero h1 { animation: fadeUpIn .7s cubic-bezier(.22,.61,.36,1) .08s both; }
.hero-sub { animation: fadeUpIn .7s cubic-bezier(.22,.61,.36,1) .16s both; }
.hero-actions { animation: fadeUpIn .7s cubic-bezier(.22,.61,.36,1) .24s both; }
.status-panel { animation: fadeUpIn .7s cubic-bezier(.22,.61,.36,1) .3s both; }
@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow, .hero h1, .hero-sub, .hero-actions, .status-panel { animation: none; }
}

/* Signature: systems-status panel */
.status-panel {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 18px;
  backdrop-filter: blur(6px);
}
.status-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-dark);
}
.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line-dark);
}
.status-row:last-child { border-bottom: none; }
.status-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: #fff;
}
.pulse-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(228,3,46, 0.6);
  animation: pulse 2.2s ease-out infinite;
  flex-shrink: 0;
}
.status-row:nth-child(2) .pulse-dot { animation-delay: .3s; }
.status-row:nth-child(3) .pulse-dot { animation-delay: .6s; }
.status-row:nth-child(4) .pulse-dot { animation-delay: .9s; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(228,3,46,0.55); }
  70% { box-shadow: 0 0 0 9px rgba(228,3,46,0); }
  100% { box-shadow: 0 0 0 0 rgba(228,3,46,0); }
}
.status-badge {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--red);
  letter-spacing: 0.04em;
}
@media (prefers-reduced-motion: reduce) {
  .pulse-dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============ Cards / grids ============ */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.card {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: 0 1px 2px rgba(14,14,16,0.04), 0 10px 24px -20px rgba(14,14,16,0.12);
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ink), var(--red));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.card:hover::before { transform: scaleX(1); }
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -20px rgba(11,19,48,0.25);
  border-color: rgba(228,3,46,0.25);
}
.card-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ink), var(--red));
  margin-bottom: 14px;
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { font-size: 14.5px; margin-bottom: 0; }
.card-link {
  display: inline-block;
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--red);
}

.service-detail {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 32px;
}
.service-detail .tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--red);
  background: rgba(228,3,46,0.08);
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 14px;
  letter-spacing: 0.03em;
}
.service-detail ul { padding: 0; margin: 16px 0 0; list-style: none; }
.service-detail li {
  font-size: 14.5px;
  color: var(--slate-dark);
  padding: 9px 0 9px 22px;
  position: relative;
  border-top: 1px solid var(--line-light);
}
.service-detail li:first-of-type { border-top: none; }
.service-detail li::before {
  content: "";
  position: absolute;
  left: 0; top: 17px;
  width: 6px; height: 6px;
  border-radius: 1px;
  background: var(--red);
}

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--red);
  background: var(--ink);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.step h3 { font-size: 17px; }
.step p { font-size: 14.5px; }

/* Values / about */
.value-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value h3 { font-size: 17px; color: var(--red); }

.lang-strip {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px;
}
.lang-chip {
  font-family: var(--font-mono);
  font-size: 12.5px;
  border: 1px solid var(--line-light);
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--slate-dark);
}

/* CTA banner */
.cta-banner {
  background: var(--ink);
  color: #fff;
  border-radius: 24px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  background-image: radial-gradient(420px 220px at 90% 0%, rgba(228,3,46,0.22), transparent 60%);
}
.cta-banner h2 { color: #fff; margin-bottom: 6px; }
.cta-banner p { margin-bottom: 0; }

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 7px;
}
.field input, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-light);
  background: #fff;
  color: var(--slate-dark);
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
  border-color: transparent;
}
.field textarea { resize: vertical; min-height: 130px; }

.info-block { display: flex; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line-light); }
.info-block:first-child { border-top: none; }
.info-block .k { font-family: var(--font-mono); font-size: 12px; color: var(--slate); text-transform: uppercase; letter-spacing: .04em; width: 110px; flex-shrink: 0; }
.info-block .v { font-size: 15px; color: var(--slate-dark); }

.form-note { font-size: 13px; color: var(--slate); margin-top: 10px; }

/* ============ Footer ============ */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 40px 0 22px; }
.footer-top { display: flex; justify-content: flex-start; gap: 96px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--line-dark); }
.footer-brand { max-width: 300px; }
.footer-logo { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: #fff; margin-bottom: 10px; }
.footer-tagline { max-width: 320px; font-size: 14px; }
.footer-links { display: flex; gap: 44px; flex-wrap: wrap; }
.footer-col h4 { color: #fff; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col li { font-size: 14px; }
.footer-col a { font-size: 14px; }
.footer-col a:hover { color: var(--red); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; font-size: 12.5px; font-family: var(--font-mono); flex-wrap: wrap; gap: 12px; }

/* ============ Responsive ============ */
/* ============ Scroll reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.grid-4 .reveal:nth-child(1), .grid-3 .reveal:nth-child(1), .grid-2 .reveal:nth-child(1), .steps .reveal:nth-child(1), .value-row .reveal:nth-child(1) { transition-delay: .03s; }
.grid-4 .reveal:nth-child(2), .grid-3 .reveal:nth-child(2), .grid-2 .reveal:nth-child(2), .steps .reveal:nth-child(2), .value-row .reveal:nth-child(2) { transition-delay: .1s; }
.grid-4 .reveal:nth-child(3), .grid-3 .reveal:nth-child(3), .grid-2 .reveal:nth-child(3), .steps .reveal:nth-child(3), .value-row .reveal:nth-child(3) { transition-delay: .17s; }
.grid-4 .reveal:nth-child(4), .grid-2 .reveal:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .value-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-right .lang-switch { display: none; }
  .nav-toggle { display: flex; }
  .site-header.is-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--paper);
    padding: 18px 24px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--line-light);
  }
  .site-header.is-open .nav-right .lang-switch { display: flex; }
  .site-header.is-open .nav-right { flex-direction: column; align-items: flex-start; gap: 14px; }
  .grid-4 { grid-template-columns: 1fr; }
  .cta-banner { padding: 30px 22px; }
  .footer-top { flex-direction: column; }
  .section { padding: 44px 0; }
}
