/* GIRScope — girscope.dev (light industrial) */
:root {
  --steel: #2e5d7c;
  --steel-dark: #1e4258;
  --orange: #f5a623;
  --ink: #20303c;
  --muted: #64798a;
  --bg: #f4f7f9;
  --card: #ffffff;
  --radius: 12px;
  --shadow: 0 8px 26px rgba(46, 93, 124, .12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--steel); text-decoration: none; }
.container { width: min(1120px, 92%); margin: 0 auto; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--steel);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 44px; height: 44px; object-fit: contain; }
.brand-name { font-size: 1.25rem; font-weight: 800; color: var(--steel-dark); letter-spacing: .5px; }
.brand-name span { color: var(--orange); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--ink); font-weight: 600; }
.nav-links a:hover { color: var(--steel); }
.nav-cta {
  background: var(--orange); color: #fff !important;
  padding: 9px 18px; border-radius: 6px;
  transition: background .2s;
}
.nav-cta:hover { background: #d98e12; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--steel-dark); }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(rgba(30, 66, 88, .82), rgba(30, 66, 88, .82)),
    repeating-linear-gradient(45deg, #24485f 0 12px, #1e4258 12px 24px);
  color: #eef4f8;
  padding: 90px 0 100px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.pill {
  display: inline-block; background: rgba(245, 166, 35, .16);
  border: 1px solid rgba(245, 166, 35, .6);
  color: var(--orange); font-weight: 700; font-size: .8rem;
  padding: 6px 14px; border-radius: 6px; margin-bottom: 18px;
  letter-spacing: 1px; text-transform: uppercase;
}
.hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.2; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--orange); }
.lead { font-size: 1.1rem; color: #c8d6e0; margin-bottom: 30px; max-width: 34rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 6px;
  font-weight: 700; font-size: .95rem; cursor: pointer; border: none;
  transition: transform .15s, background .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #d98e12; }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .45); }
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }
.btn-block { width: 100%; }
.hero-visual img {
  background: #fff; border-radius: var(--radius); padding: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
  display: block; margin: 0 auto; max-width: 380px;
}

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-tint { background: #e8eff4; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); text-align: center; margin-bottom: 10px; color: var(--steel-dark); }
.section-sub { text-align: center; color: var(--muted); max-width: 40rem; margin: 0 auto 48px; }
.section-sub.left { text-align: left; margin-left: 0; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--card); border-radius: var(--radius);
  padding: 28px 22px; box-shadow: var(--shadow);
  border-left: 4px solid var(--steel);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-6px); border-left-color: var(--orange); box-shadow: 0 16px 36px rgba(46, 93, 124, .18); }
.card-icon { font-size: 1.7rem; margin-bottom: 12px; }
.card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--steel-dark); }
.card p { color: var(--muted); font-size: .93rem; }

/* ---------- Anomaly section ---------- */
.anomaly-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.anomaly-grid .section-title { text-align: left; }
.taglist { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  padding: 8px 16px; border-radius: 6px; font-weight: 700; font-size: .88rem;
  background: #fff; box-shadow: var(--shadow);
}
.tag-red { border-left: 4px solid #d9534f; color: #a33; }
.tag-amber { border-left: 4px solid #f0ad4e; color: #8a5a00; }
.tag-blue { border-left: 4px solid #2e5d7c; color: var(--steel-dark); }
.tag-green { border-left: 4px solid #5cb85c; color: #2d6a2d; }
.anomaly-panel { display: flex; flex-direction: column; gap: 14px; }
.anom {
  background: #fff; border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px;
}
.anom strong { font-size: .95rem; }
.anom span { color: var(--muted); font-size: .88rem; }
.anom-red { border-left: 5px solid #d9534f; }
.anom-amber { border-left: 5px solid #f0ad4e; }
.anom-blue { border-left: 5px solid #2e5d7c; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-grid .section-title, .contact-grid .section-sub { text-align: left; margin-left: 0; }
.contact-dev { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.contact-dev img { width: 52px; height: 52px; object-fit: contain; }
.contact-form {
  background: #fff; border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow); border-left: 4px solid var(--orange);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; color: var(--steel-dark); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 6px;
  border: 1.5px solid #ccd9e2; font: inherit; color: var(--ink);
  background: #fbfdfe; transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--steel); }
.field textarea { resize: vertical; }
.form-status { margin-top: 14px; font-weight: 600; font-size: .95rem; min-height: 1.4em; }
.form-status.success { color: #2d6a2d; }
.form-status.error { color: #c62828; }

/* ---------- Legal page ---------- */
.legal-main { min-height: 60vh; }
.legal-container { max-width: 820px; }
.legal-tabs { display: flex; gap: 10px; justify-content: center; margin: 34px 0 18px; flex-wrap: wrap; }
.legal-tab {
  padding: 10px 22px; border-radius: 6px; border: 1.5px solid var(--steel);
  background: #fff; font: inherit; font-weight: 700; color: var(--steel-dark); cursor: pointer;
}
.legal-tab.active { background: var(--steel); color: #fff; }
.legal-meta { text-align: center; color: var(--muted); font-size: .85rem; min-height: 1.2em; margin-bottom: 10px; }
.legal-lang { display: flex; gap: 8px; justify-content: center; margin-bottom: 20px; }
.lang-btn {
  padding: 6px 16px; border-radius: 6px; border: 1px solid #ccd9e2;
  background: #fff; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; color: var(--muted);
}
.lang-btn.active { background: var(--orange); border-color: var(--orange); color: #fff; }
.legal-content {
  background: #fff; border-radius: var(--radius); border-left: 4px solid var(--steel);
  box-shadow: var(--shadow); padding: 40px;
}
.legal-content h1 { font-size: 1.6rem; margin: 18px 0 12px; color: var(--steel-dark); }
.legal-content h2 { font-size: 1.25rem; margin: 26px 0 10px; color: var(--steel); }
.legal-content h3 { font-size: 1.05rem; margin: 20px 0 8px; }
.legal-content h4 { font-size: .95rem; margin: 16px 0 6px; }
.legal-content p { margin-bottom: 12px; color: #3d4f5c; }
.legal-content ul { margin: 0 0 14px 22px; color: #3d4f5c; }
.legal-content li { margin-bottom: 6px; }
.legal-content hr { border: none; border-top: 1px solid #dbe5ec; margin: 24px 0; }
.legal-loading { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- Footer ---------- */
.footer { background: var(--steel-dark); color: #c8d6e0; padding: 48px 0 30px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.footer-brand img { width: 52px; height: 52px; background: #fff; border-radius: 10px; padding: 4px; margin-bottom: 8px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: #fff; font-weight: 600; opacity: .85; }
.footer-links a:hover { opacity: 1; color: var(--orange); }
.footer-copy { font-size: .85rem; opacity: .7; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .contact-grid, .anomaly-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 18px; gap: 16px;
    border-bottom: 3px solid var(--steel);
  }
  .nav-links.open { display: flex; }
  .legal-content { padding: 24px; }
}
