/* ==========================================================
   SMF Technologies — brand system
   Electric blue · graphite black · silver · white
   ========================================================== */
:root {
  --bg: #05070d;            /* graphite black, matches the logo backdrop */
  --bg-2: #080c16;
  --surface: #0c121f;
  --surface-2: #111a2c;
  --line: rgba(110, 160, 255, 0.12);
  --line-strong: rgba(31, 162, 255, 0.45);
  --text: #eef2f9;
  --muted: #8d98ae;
  --silver: #c3cbdb;
  --blue: #1fa2ff;          /* electric blue */
  --blue-bright: #6cc6ff;
  --blue-deep: #0b5cff;
  --glow: rgba(31, 162, 255, 0.45);
  --radius: 16px;
  --max: 1160px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Sora", "Inter", system-ui, sans-serif;
  --font-tech: "Michroma", "Sora", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-bright); }
h1, h2, h3 { font-family: var(--font-head); letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
strong { color: var(--text); }
::selection { background: var(--blue); color: #fff; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 520px) { .wrap { padding: 0 16px; } }

/* Silver metallic headline text, like the SMF wordmark */
.metal {
  background: linear-gradient(180deg, #ffffff 0%, #e3e8f2 45%, #9fabc2 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.electric { color: var(--blue); text-shadow: 0 0 28px var(--glow); }

/* Small letterspaced label, like "TECHNOLOGIES" in the logo */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-tech); font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--blue); margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; box-shadow: 0 0 8px var(--blue); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header::after { /* thin electric line under the header */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue) 50%, transparent); opacity: .55;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand img { width: 42px; height: 42px; filter: drop-shadow(0 0 10px rgba(31,162,255,.35)); }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font-family: var(--font-tech); font-size: 19px; letter-spacing: 0.06em; font-weight: 400; }
.brand-name small { font-family: var(--font-tech); font-size: 7.5px; letter-spacing: 0.42em; color: var(--blue); margin-top: 5px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--muted); font-size: 14.5px; font-weight: 500; position: relative; white-space: nowrap; transition: color .2s; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -25px; height: 2px;
  background: var(--blue); box-shadow: 0 0 12px var(--blue);
}
.nav a.btn { padding: 9px 18px; font-size: 14px; color: #fff; }
@media (max-width: 720px) {
  .nav { gap: 16px; }
  .nav .btn { display: none; }
  .nav a { font-size: 14px; }
  .nav a[aria-current="page"]::after { bottom: -24px; }
}
@media (max-width: 460px) { .brand-name { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: 10px; font-weight: 600; font-size: 15px; line-height: 1.2;
  color: #fff; background: linear-gradient(180deg, #2fadff, #0a7cf0);
  border: 1px solid rgba(140, 205, 255, .55);
  box-shadow: 0 0 0 1px rgba(31,162,255,.15), 0 8px 28px -8px rgba(31,162,255,.7), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .15s ease, box-shadow .25s ease, filter .2s;
  cursor: pointer;
}
.btn:hover { color: #fff; transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 0 0 1px rgba(31,162,255,.3), 0 12px 36px -8px rgba(31,162,255,.9), inset 0 1px 0 rgba(255,255,255,.25); }
.btn.ghost { background: rgba(255,255,255,.02); color: var(--text); border-color: rgba(195,203,219,.28); box-shadow: none; }
.btn.ghost:hover { border-color: var(--blue); color: #fff; box-shadow: 0 0 24px -6px var(--glow); }
.btn.disabled { opacity: .7; cursor: default; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 104px; isolation: isolate; }
.hero::before { /* circuit grid */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(31,162,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,162,255,.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 65% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 65% 40%, #000 20%, transparent 75%);
}
.hero::after { /* blue light bloom */
  content: ""; position: absolute; z-index: -1; width: 900px; height: 600px; right: -200px; top: -160px;
  background: radial-gradient(closest-side, rgba(31,162,255,.22), transparent);
  pointer-events: none;
}
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); font-weight: 700; }
.hero p.lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 34em; margin: 24px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero-art { position: relative; justify-self: center; width: min(420px, 80vw); aspect-ratio: 1; }
.hero-art img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.hero-art.emblem img, .brand img {
  -webkit-mask-image: radial-gradient(closest-side, #000 82%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 82%, transparent 100%);
}
.hero-art.emblem::before {
  content: ""; position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(31,162,255,.35), transparent 70%);
  filter: blur(20px);
}
.hero-art.app img { width: 78%; height: 78%; margin: 11%; filter: drop-shadow(0 30px 60px rgba(0,0,0,.6)) drop-shadow(0 0 40px rgba(31,162,255,.25)); }
.hero-art .hexring {
  position: absolute; inset: 0; color: var(--blue); opacity: .55;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-art.emblem img { animation: float 7s ease-in-out infinite; }
  .hero-art .hexring { animation: spin 60s linear infinite; }
  @keyframes float { 50% { transform: translateY(-10px); } }
  @keyframes spin { to { transform: rotate(360deg); } }
}
@media (max-width: 860px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { order: -1; width: min(280px, 70vw); }
}

/* stats strip under hero */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(12,18,31,.6); margin-top: 72px; }
.stats div { padding: 22px 24px; border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; }
.stats b { display: block; font-family: var(--font-tech); font-size: 15px; font-weight: 400; letter-spacing: .06em; color: var(--text); }
.stats span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; margin-top: 48px; }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
section { padding: 96px 0; position: relative; }
section.tight { padding-top: 0; }
.section-head { max-width: 44em; margin-bottom: 48px; }
.section-head h2, section h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; }
.lead, .section-head p { color: var(--muted); font-size: 18px; margin: 16px 0 0; max-width: 40em; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); border: 0; margin: 0; }
@media (max-width: 760px) { section { padding: 64px 0; } .section-head { margin-bottom: 32px; } }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 30px; border-radius: var(--radius); color: inherit;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  overflow: hidden;
}
.card::before { /* top edge highlight */
  content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent); opacity: 0; transition: opacity .25s;
}
a.card:hover { color: inherit; transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 24px 60px -24px rgba(31,162,255,.45); }
a.card:hover::before { opacity: 1; }
.card h3 { font-size: 22px; font-weight: 600; }
.card p { margin: 0; color: var(--muted); }
.card .more { margin-top: auto; padding-top: 8px; color: var(--blue); font-weight: 600; font-size: 15px; display: inline-flex; gap: 8px; align-items: center; }
.card .more .arrow { transition: transform .2s; }
a.card:hover .more .arrow { transform: translateX(4px); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-icon { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; box-shadow: 0 10px 30px -10px rgba(0,0,0,.8); }
.card-icon.photo { background: #fff; }
.tag {
  display: inline-block; width: fit-content; white-space: nowrap; font-family: var(--font-tech); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 6px; color: var(--blue-bright);
  background: rgba(31,162,255,.08); border: 1px solid rgba(31,162,255,.25);
}
.card.placeholder { background: transparent; border-style: dashed; border-color: rgba(195,203,219,.18); }
.card.placeholder .hex-icon { color: var(--muted); }

/* hexagon icon frame */
.hex-icon {
  width: 52px; height: 58px; display: grid; place-items: center; color: var(--blue);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: rgba(31,162,255,.1);
}
.hex-icon svg { width: 24px; height: 24px; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: border-color .25s, background .25s;
}
.feature:hover { border-color: var(--line-strong); background: var(--surface-2); }
.feature .hex-icon { margin-bottom: 18px; }
.feature h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* values / pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.pillar { padding: 32px 32px 8px 0; }
.pillar + .pillar { padding-left: 32px; border-left: 1px solid var(--line); }
.pillar .num { font-family: var(--font-tech); font-size: 12px; letter-spacing: .2em; color: var(--blue); }
.pillar h3 { font-size: 21px; margin: 14px 0 10px; }
.pillar p { margin: 0; color: var(--muted); }
@media (max-width: 800px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* split panel (e.g. privacy) */
.panel {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center;
  padding: 56px; border-radius: 24px;
  background: radial-gradient(600px 300px at 90% 0%, rgba(31,162,255,.18), transparent), linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
}
.panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.panel li { display: flex; gap: 12px; align-items: flex-start; color: var(--silver); }
.panel li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue); }
@media (max-width: 800px) { .panel { grid-template-columns: 1fr; padding: 32px 24px; } }

/* ---------- Steps ---------- */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 760px; }
.steps li {
  counter-increment: s; position: relative; padding: 20px 22px 20px 78px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--silver);
}
.steps li::before {
  content: counter(s, decimal-leading-zero); position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 44px; display: grid; place-items: center;
  font-family: var(--font-tech); font-size: 12px; color: #fff;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(180deg, #2fadff, #0a6fe0);
}

.note {
  max-width: 760px; margin-top: 20px; padding: 16px 18px; border-radius: 12px; font-size: 15px; color: var(--silver);
  background: rgba(31,162,255,.06); border: 1px solid rgba(31,162,255,.22); border-left: 3px solid var(--blue);
}

/* ---------- Contact band ---------- */
.cta-band {
  position: relative; overflow: hidden; text-align: center;
  padding: 72px 32px; border-radius: 28px; border: 1px solid var(--line-strong);
  background:
    radial-gradient(500px 220px at 50% 0%, rgba(31,162,255,.28), transparent),
    linear-gradient(180deg, #0c1527, #070b14);
  box-shadow: 0 0 80px -30px rgba(31,162,255,.6);
}
.cta-band h2 { font-size: clamp(30px, 4.4vw, 50px); }
.cta-band p { color: var(--muted); font-size: 18px; margin: 16px auto 0; max-width: 34em; }
.cta-band .actions { justify-content: center; }
.cta-band .eyebrow { justify-content: center; }
@media (max-width: 520px) { .cta-band { padding: 48px 20px; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; color: var(--muted); font-size: 14px; margin-top: 24px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: flex-start; }
.footer-grid nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-grid nav a { color: var(--muted); }
.footer-grid nav a:hover { color: var(--text); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }
.footer-base .tech { font-family: var(--font-tech); font-size: 10px; letter-spacing: .24em; color: var(--blue); text-transform: uppercase; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  * { transition: none !important; animation: none !important; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.notfound { min-height: calc(100vh - 71px); display: grid; place-items: center; text-align: center; padding: 64px 0; }
.notfound .code { font-family: var(--font-tech); font-size: clamp(72px, 16vw, 160px); line-height: 1; letter-spacing: .04em; }
.notfound p { color: var(--muted); font-size: 18px; margin: 16px 0 0; }
.notfound .actions { justify-content: center; }
