/* OFortMAut site template — shared stylesheet (fleet visual standard) */
:root {
  --bg: #080d1a;
  --card: rgba(15, 23, 42, 0.6);
  --text: #e2e8f0;
  --text-2: #94a3b8;
  --muted: #64748b;
  --accent-a: #3b82f6;
  --accent-b: #8b5cf6;
  --ok: #10b981;
  --warn: #fbbf24;
  --border: rgba(148, 163, 184, 0.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% -10%, rgba(59,130,246,.14), transparent),
    radial-gradient(ellipse 50% 35% at 85% 10%, rgba(139,92,246,.12), transparent);
  pointer-events: none; z-index: 0;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* nav */
nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(8, 13, 26, 0.75);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; color: var(--text); text-decoration: none; }
.brand .logo {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  font-size: 1rem;
}
.nav-links { display: flex; gap: 26px; font-size: .9rem; }
.nav-links a { color: var(--text-2); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); font-weight: 600; position: relative; }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -21px; height: 2px;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b)); border-radius: 2px;
}

/* hero / page head */
header.hero { padding: 96px 0 72px; text-align: center; animation: fadeUp .7s cubic-bezier(.16,1,.3,1) both; }
header.page { padding: 72px 0 20px; text-align: center; animation: fadeUp .7s cubic-bezier(.16,1,.3,1) both; }
header.page h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
header.page p.sub { font-size: 1.02rem; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: .78rem; font-weight: 600;
  color: var(--text-2); background: var(--card); border: 1px solid var(--border);
  margin-bottom: 26px;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
h1 { font-size: clamp(2.3rem, 6vw, 3.7rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; }
.grad {
  background: linear-gradient(120deg, var(--accent-a), var(--accent-b));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sub { max-width: 680px; margin: 22px auto 0; color: var(--text-2); font-size: 1.13rem; }
.cta { margin-top: 38px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 11px; font-weight: 600; font-size: .95rem;
  text-decoration: none; transition: transform .2s, box-shadow .2s;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--accent-a), var(--accent-b));
  background-size: 160% 160%;
  animation: gradientShift 6s ease infinite;
  box-shadow: 0 8px 28px rgba(59,130,246,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(139,92,246,.45); }
.btn-ghost { color: var(--text); background: var(--card); border: 1px solid var(--border); }
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(148,163,184,.25); }
.stats { margin-top: 60px; display: flex; gap: 44px; justify-content: center; flex-wrap: wrap; }
.stat { text-align: center; }
.stat b {
  display: block; font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(120deg, var(--accent-a), var(--accent-b));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { font-size: .82rem; color: var(--muted); }

/* sections */
section { padding: 56px 0; animation: fadeUp .7s cubic-bezier(.16,1,.3,1) both; }
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; }
.sec-head p { color: var(--text-2); margin-top: 10px; max-width: 640px; margin-inline: auto; }
.sec-head.left { text-align: left; }
.sec-head.left p { margin-inline: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.grid.g2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 26px; backdrop-filter: blur(10px);
  transition: transform .25s cubic-bezier(.16,1,.3,1), border-color .25s, box-shadow .25s;
}
.card:hover {
  transform: translateY(-4px); border-color: rgba(99,102,241,.3);
  box-shadow: 0 14px 40px rgba(59,130,246,.12);
}
.card .ico {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(59,130,246,.18), rgba(139,92,246,.18));
  border: 1px solid rgba(99,102,241,.25); font-size: 1.2rem; margin-bottom: 16px;
}
.card h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 8px; }
.card p, .card li { font-size: .88rem; color: var(--text-2); }
.card ul { list-style: none; margin-top: 10px; }
.card ul li { padding-left: 22px; position: relative; margin-bottom: 7px; }
.card ul li::before { content: '·'; position: absolute; left: 8px; color: var(--accent-a); font-weight: 800; }
.card a { color: #93c5fd; text-decoration: none; }
.card a:hover { text-decoration: underline; }

/* architecture diagram */
.arch {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 34px; backdrop-filter: blur(10px); overflow-x: auto;
}
.arch pre {
  font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
  font-size: .82rem; line-height: 1.7; color: var(--text-2); min-width: 560px;
}
.arch pre b { color: var(--text); font-weight: 600; }
.arch pre .hl { color: var(--accent-a); font-weight: 600; }

/* code blocks */
.code {
  background: rgba(2, 6, 16, 0.7); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 18px; margin-top: 16px; overflow-x: auto;
  font-family: 'SF Mono', 'Fira Code', Consolas, monospace; font-size: .8rem; color: #a5b4fc;
  line-height: 1.8;
}
.code .c { color: var(--muted); }
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; margin-right: 6px;
}
.tag-blue  { color: #93c5fd; background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.3); }
.tag-vio   { color: #c4b5fd; background: rgba(139,92,246,.12); border: 1px solid rgba(139,92,246,.3); }
.tag-grn   { color: #6ee7b7; background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.3); }

ul.checks { list-style: none; margin-top: 14px; }
ul.checks li { padding-left: 26px; position: relative; font-size: .88rem; color: var(--text-2); margin-bottom: 9px; }
ul.checks li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

/* comparison table */
table.cmp {
  width: 100%; border-collapse: collapse; font-size: .87rem;
  background: var(--card); border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
}
table.cmp th, table.cmp td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); }
table.cmp th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
table.cmp td { color: var(--text-2); }
table.cmp td:first-child { color: var(--text); font-weight: 600; }
table.cmp tr:last-child td { border-bottom: none; }

footer {
  border-top: 1px solid var(--border); padding: 40px 0 48px; text-align: center;
  color: var(--muted); font-size: .85rem;
}
footer a { color: var(--text-2); text-decoration: none; }
footer a:hover { color: var(--text); }
footer .flinks { display: flex; gap: 22px; justify-content: center; margin-bottom: 14px; flex-wrap: wrap; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes gradientShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

@media (max-width: 640px) {
  .nav-links { gap: 16px; font-size: .82rem; }
  .nav-links a.active::after { display: none; }
  header.hero { padding: 64px 0 48px; }
  .stats { gap: 26px; }
}
