/* ===================================================
   Logicielity — v2 "Orbit"
   Charcoal theme · grey + orange · O-ring motif
   =================================================== */

:root {
  /* Charcoal surfaces (not black) */
  --bg: #17171a;
  --bg-2: #1c1c20;
  --panel: #202024;
  --panel-2: #26262b;
  --line: rgba(185, 184, 185, 0.14);
  --line-2: rgba(185, 184, 185, 0.26);

  /* Text — warm neutral greys from logo (#b9b8b9) */
  --text: #f2f1f0;
  --muted: #b0afb0;
  --dim: #7d7c7e;

  /* Brand orange (logo #ef7c21) */
  --o: #ef7c21;
  --o-bright: #ff9646;
  --o-deep: #d9660f;
  --o-soft: rgba(239, 124, 33, 0.14);
  --o-line: rgba(239, 124, 33, 0.45);
  --o-glow: rgba(239, 124, 33, 0.40);
  --o-grad: linear-gradient(115deg, #ef7c21, #ff9646);

  --font-head: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw: 1180px;
  --r: 16px;
  --r-lg: 26px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--o); color: #17171a; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }

/* Subtle dotted grid backdrop */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(185,184,185,0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 20%, transparent 78%);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }
.display { font-size: clamp(2.7rem, 6.4vw, 5.1rem); font-weight: 700; letter-spacing: -0.03em; }
.h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.o-text { color: var(--o); }
.lead { color: var(--muted); font-size: 1.14rem; }

/* ---------- The Ring motif ---------- */
.ring {
  display: inline-block; border-radius: 50%;
  border: 2px solid var(--o); aspect-ratio: 1;
  width: 0.72em; vertical-align: baseline;
}
/* eyebrow with ring bullet */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 500;
  font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--muted);
}
.kicker::before {
  content: ""; width: 11px; height: 11px; border-radius: 50%;
  border: 3px solid var(--o); background: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 500; font-size: 0.98rem;
  padding: 14px 26px; border-radius: 100px; border: 1px solid transparent;
  cursor: pointer; transition: transform .16s ease, background .22s ease, border-color .22s ease, color .22s ease;
}
.btn-o { background: var(--o); color: #1a0d00; }
.btn-o:hover { background: var(--o-bright); transform: translateY(-2px); }
.btn-line { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn-line:hover { border-color: var(--o); color: var(--o); transform: translateY(-2px); }
.btn .rr { width: 16px; height: 16px; border: 2px solid currentColor; border-radius: 50%; position: relative; display: inline-grid; place-items: center; }
.btn .rr::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(23,23,26,0.72); backdrop-filter: blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.nav.scrolled { border-color: var(--line); background: rgba(23,23,26,0.92); }
.nav-in { height: 74px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { position: relative; color: var(--muted); font-size: 0.96rem; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::before, .nav-links a:hover::before {
  content: ""; position: absolute; left: -14px; top: 50%; transform: translateY(-50%);
  width: 7px; height: 7px; border-radius: 50%; border: 2px solid var(--o);
}
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta-m { display: none; }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .25s; }

/* ---------- Layout ---------- */
.sec { padding: 108px 0; position: relative; z-index: 1; }
.sec-sm { padding: 72px 0; position: relative; z-index: 1; }
.center { text-align: center; }
.sec-head { max-width: 640px; margin-bottom: 56px; }
.center .sec-head { margin-inline: auto; }
.sec-head .h2 { margin: 16px 0 14px; }
.sec-head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- HERO ---------- */
.hero { padding: 92px 0 84px; position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 50px; align-items: center; }
.hero .display { margin: 24px 0 22px; }
.hero .lead { max-width: 480px; margin-bottom: 34px; font-size: 1.2rem; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { margin-top: 52px; display: flex; gap: 40px; flex-wrap: wrap; }
.hero-meta .m b { font-family: var(--font-head); font-size: 2rem; display: block; }
.hero-meta .m span { color: var(--dim); font-size: 0.85rem; }

/* Hero orbit graphic */
.orbit { position: relative; aspect-ratio: 1; width: 100%; max-width: 420px; margin-inline: auto; display: grid; place-items: center; }
.orbit .ring-xl, .orbit .ring-lg, .orbit .ring-md {
  position: absolute; border-radius: 50%; border: 1px solid var(--line-2);
}
.orbit .ring-xl { inset: 0; }
.orbit .ring-lg { inset: 15%; }
.orbit .ring-md { inset: 32%; border-color: var(--o-line); }
.orbit .core {
  width: 40%; aspect-ratio: 1; border-radius: 50%;
  border: 10px solid var(--o);
  box-shadow: 0 0 60px -6px var(--o-glow), inset 0 0 40px -12px var(--o-glow);
  position: relative; z-index: 2;
  animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{ box-shadow:0 0 60px -6px var(--o-glow), inset 0 0 40px -12px var(--o-glow);} 50%{ box-shadow:0 0 92px 2px var(--o-glow), inset 0 0 40px -12px var(--o-glow);} }
.orbit .sat { position: absolute; width: 15px; height: 15px; border-radius: 50%; background: var(--o); box-shadow: 0 0 16px var(--o-glow); z-index: 3; }
.orbit .sat.s1 { top: 6%; left: 50%; transform: translateX(-50%); }
.orbit .sat.s2 { top: 50%; right: 4%; width: 10px; height: 10px; background: var(--muted); box-shadow: none; }
.orbit .sat.s3 { bottom: 10%; left: 16%; width: 8px; height: 8px; border: 2px solid var(--o); background: transparent; }
.spin { animation: spin 26s linear infinite; position: absolute; inset: 0; }
.spin-slow { animation: spin 40s linear infinite reverse; position: absolute; inset: 15%; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Marquee ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding: 20px 0; }
.marquee-track { display: flex; gap: 44px; white-space: nowrap; width: max-content; animation: slide 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee-track span { font-family: var(--font-head); font-size: 1.05rem; color: var(--muted); display: inline-flex; align-items: center; gap: 44px; }
.marquee-track span::after { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--o); }

/* ---------- Bento services ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px; position: relative; overflow: hidden;
  transition: transform .25s, border-color .25s, background .25s;
}
.tile:hover { transform: translateY(-5px); border-color: var(--o-line); background: var(--panel-2); }
.tile .idx {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--o);
  display: grid; place-items: center; font-family: var(--font-head); color: var(--o); font-weight: 600;
  margin-bottom: 22px;
}
.tile h3 { font-size: 1.32rem; margin-bottom: 10px; }
.tile p { color: var(--muted); font-size: 0.97rem; }
.tile .tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.tile .tags b { font-weight: 500; font-size: 0.78rem; color: var(--dim); border: 1px solid var(--line); padding: 5px 11px; border-radius: 100px; }
/* watermark ring in corner */
.tile::after { content: ""; position: absolute; right: -50px; bottom: -50px; width: 150px; height: 150px; border-radius: 50%; border: 24px solid var(--o-soft); opacity: 0; transition: opacity .3s; }
.tile:hover::after { opacity: 1; }
.tile.wide { grid-column: span 3; }
.tile.third { grid-column: span 2; }
.tile.half { grid-column: span 3; }
.tile > * { position: relative; z-index: 1; }

/* ---------- Stats inline ---------- */
.statline { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-2); padding: 8px; }
.statline .st { padding: 22px 40px; text-align: center; position: relative; }
.statline .st + .st::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--o); }
.statline .st b { display: block; font-family: var(--font-head); font-size: 2.5rem; }
.statline .st span { color: var(--dim); font-size: 0.88rem; }

/* ---------- Timeline (ring nodes) ---------- */
.timeline { position: relative; margin-left: 26px; padding-left: 44px; }
.timeline::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--o), var(--line)); }
.tl-item { position: relative; padding: 20px 0 34px; }
.tl-item::before { content: ""; position: absolute; left: -50px; top: 22px; width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--o); background: var(--bg); }
.tl-item h3 { font-size: 1.3rem; margin-bottom: 6px; }
.tl-item p { color: var(--muted); }
.tl-item .step-k { font-family: var(--font-head); color: var(--o); font-size: 0.85rem; letter-spacing: .1em; }

/* ---------- Quote ---------- */
.quote-band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.quote-band .ghost-ring { position: absolute; right: -120px; top: 50%; transform: translateY(-50%); width: 360px; height: 360px; border-radius: 50%; border: 60px solid var(--o-soft); }
.quote-band blockquote { font-family: var(--font-head); font-size: clamp(1.5rem, 3.4vw, 2.4rem); line-height: 1.28; max-width: 820px; letter-spacing: -0.02em; }
.quote-band .qmark { color: var(--o); font-size: 3rem; line-height: 0; font-family: var(--font-head); }
.quote-band cite { display: block; margin-top: 24px; color: var(--muted); font-style: normal; font-size: 0.98rem; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; border: 1px solid var(--o-line); border-radius: var(--r-lg); background: radial-gradient(680px circle at 50% -40%, var(--o-soft), transparent 60%), var(--bg-2); padding: 74px 40px; text-align: center; }
.cta .ring-deco { position: absolute; width: 220px; height: 220px; border-radius: 50%; border: 2px solid var(--o-line); opacity: .5; }
.cta .ring-deco.a { top: -90px; left: -60px; } .cta .ring-deco.b { bottom: -110px; right: -50px; border-width: 40px; border-color: var(--o-soft); }
.cta h2 { position: relative; z-index: 1; margin-bottom: 14px; }
.cta p { position: relative; z-index: 1; color: var(--muted); max-width: 520px; margin: 0 auto 30px; }
.cta .hero-cta { position: relative; z-index: 1; justify-content: center; }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.rlist { list-style: none; margin-top: 26px; display: grid; gap: 18px; }
.rlist li { display: flex; gap: 16px; align-items: flex-start; }
.rlist li::before { content: ""; flex: none; margin-top: 5px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--o); }
.rlist b { display: block; font-family: var(--font-head); font-weight: 500; }
.rlist p { color: var(--muted); font-size: 0.95rem; }
.panel-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px; position: relative; overflow: hidden; }
.panel-card .big-o { width: 130px; height: 130px; border-radius: 50%; border: 14px solid var(--o); box-shadow: 0 0 60px -10px var(--o-glow); margin-bottom: 28px; }
.panel-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.panel-card p { color: var(--muted); }

/* ---------- Page hero (subpages) ---------- */
.phero { padding: 76px 0 40px; }
.phero .display { font-size: clamp(2.4rem, 5.4vw, 4rem); margin: 18px 0 16px; }
.phero p { color: var(--muted); font-size: 1.12rem; max-width: 620px; }

/* ---------- Values grid ---------- */
.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.vcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 30px; transition: transform .25s, border-color .25s; }
.vcard:hover { transform: translateY(-5px); border-color: var(--o-line); }
.vcard .vn { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--o); display: grid; place-items: center; color: var(--o); font-family: var(--font-head); margin-bottom: 18px; }
.vcard h3 { font-size: 1.2rem; margin-bottom: 8px; }
.vcard p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.cgrid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.86rem; color: var(--muted); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; background: var(--bg-2);
  border: 1px solid var(--line); color: var(--text); font-family: inherit; font-size: 0.97rem;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--o); box-shadow: 0 0 0 3px var(--o-soft); }
.field textarea { min-height: 140px; resize: vertical; }
.cinfo { display: grid; gap: 20px; }
.cinfo .ci { display: flex; gap: 16px; align-items: flex-start; }
.cinfo .ci .ring-ic { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--o); display: grid; place-items: center; color: var(--o); }
.cinfo .ci b { display: block; font-family: var(--font-head); font-weight: 500; }
.cinfo .ci span { color: var(--muted); font-size: 0.94rem; }
.form-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px; }
.note { font-size: 0.82rem; color: var(--dim); margin-top: 10px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 66px 0 32px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand { margin-bottom: 16px; }
.footer-about p { color: var(--muted); font-size: 0.94rem; max-width: 300px; }
.footer h4 { font-family: var(--font-head); font-weight: 500; font-size: 0.8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--dim); margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 11px; }
.footer ul a { color: var(--muted); font-size: 0.94rem; transition: color .2s; }
.footer ul a:hover { color: var(--o); }
.foot-bot { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; color: var(--dim); font-size: 0.87rem; }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); font-size: 0.82rem; transition: .2s; }
.socials a:hover { border-color: var(--o); color: var(--o); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .split, .cgrid { grid-template-columns: 1fr; }
  .orbit { order: -1; max-width: 320px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile.wide, .tile.third, .tile.half { grid-column: span 2; }
  .vgrid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 74px; left: 0; right: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 22px 26px; gap: 20px; }
  .nav-links.open a.active::before, .nav-links.open a:hover::before { display: none; }
  .nav-links.open .nav-cta-m { display: inline-flex; justify-content: center; margin-top: 4px; }
  .bento, .vgrid { grid-template-columns: 1fr; }
  .tile.wide, .tile.third, .tile.half { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .statline .st { padding: 16px 22px; }
  .sec { padding: 74px 0; }
}

/* ---------- Language switch (subtle) ---------- */
.lang-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--dim); letter-spacing: .01em; transition: color .2s ease; }
.lang-link:hover { color: var(--o); }
.lang-link .glb { opacity: .8; flex: none; }
.nav-links a.lang-link.active::before, .nav-links a.lang-link:hover::before { display: none !important; content: none !important; }
