/* =========================================================
   Ultra Finance Hub — Main Stylesheet
   Dark fintech theme. Palette: Space Navy + Electric Cyan + Ultra Violet
   ========================================================= */
:root {
  --space: #070b16;
  --space-2: #0d1426;
  --space-3: #141d35;
  --panel: rgba(20, 29, 53, 0.65);
  --cyan: #22d3ee;
  --cyan-2: #06b6d4;
  --violet: #8b5cf6;
  --violet-2: #a78bfa;
  --pink: #ec4899;
  --text: #b8c2d9;
  --muted: #7d89a6;
  --white: #f4f7ff;
  --line: rgba(148, 163, 214, 0.16);
  --grad: linear-gradient(120deg, #22d3ee 0%, #8b5cf6 60%, #ec4899 100%);
  --grad-soft: linear-gradient(120deg, rgba(34,211,238,.18), rgba(139,92,246,.18));
  --glow: 0 0 0 1px rgba(34,211,238,.25), 0 10px 40px rgba(34,211,238,.12);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); background: var(--space); font-size: 16px; line-height: 1.75; overflow-x: hidden; }
h1, h2, h3, h4, h5 { font-family: "Space Grotesk", "IBM Plex Sans", sans-serif; color: var(--white); font-weight: 700; line-height: 1.18; letter-spacing: -0.5px; }
a { color: var(--cyan); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--violet-2); }
img { max-width: 100%; }
::selection { background: var(--violet); color: #fff; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.sec { padding: 100px 0; position: relative; }
.sec-sm { padding: 64px 0; position: relative; }
.bg-space2 { background: var(--space-2); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--cyan); }
.grid-bg { background-image: linear-gradient(rgba(148,163,214,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,214,.06) 1px, transparent 1px); background-size: 48px 48px; }
.glow-orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0; }
.glow-c { width: 420px; height: 420px; background: rgba(34,211,238,.18); }
.glow-v { width: 460px; height: 460px; background: rgba(139,92,246,.22); }
.z2 { position: relative; z-index: 2; }

/* Bootstrap overrides for dark */
.text-muted { color: var(--muted) !important; }
.alert-success { background: rgba(16,185,129,.12); color: #a7f3d0; border-color: rgba(16,185,129,.4); }
.alert-warning { background: rgba(245,158,11,.12); color: #fde68a; border-color: rgba(245,158,11,.4); }
.alert-danger { background: rgba(239,68,68,.12); color: #fecaca; border-color: rgba(239,68,68,.4); }
.alert a { color: inherit; }

/* ---------- Logo: one line, one style ---------- */
.ufh-logo { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.42rem; letter-spacing: -0.5px; color: var(--white); line-height: 1; }
.ufh-logo:hover { color: var(--white); }
.ufh-logo .u-mark { width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px; background: var(--grad); display: inline-flex; align-items: center; justify-content: center; color: #050814; font-size: 1.15rem; box-shadow: 0 0 20px rgba(34,211,238,.35); }

/* ---------- Header ---------- */
.ufh-header { position: sticky; top: 0; z-index: 1030; background: rgba(7,11,22,.75); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); transition: background .3s ease; }
.ufh-header.scrolled { background: rgba(7,11,22,.95); }
.ufh-header .navbar { padding: 14px 0; }
.ufh-header .nav-link { color: var(--text) !important; font-weight: 500; padding: 8px 14px !important; border-radius: 10px; }
.ufh-header .nav-link:hover { color: var(--white) !important; background: rgba(148,163,214,.08); }
.ufh-header .nav-link.active { color: var(--white) !important; background: var(--grad-soft); box-shadow: inset 0 0 0 1px rgba(34,211,238,.3); }
.ufh-header .navbar-toggler { border: 1px solid var(--line); border-radius: 10px; color: var(--white); font-size: 1.4rem; padding: 4px 10px; }
.ufh-header .navbar-toggler:focus { box-shadow: none; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-family: "IBM Plex Mono", monospace; font-size: .8rem; color: var(--text); border: 1px solid var(--line); border-radius: 40px; padding: 6px 12px; white-space: nowrap; }
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 10px #10b981; }
.status-pill a { color: var(--white); }
@media (max-width: 991.98px) { .ufh-header .navbar-collapse { padding: 14px 0 6px; } }

/* ---------- Buttons ---------- */
.btn { border-radius: 12px; font-weight: 600; padding: 13px 26px; transition: all .25s ease; }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-ultra { background: var(--grad); background-size: 150% 100%; color: #050814; border: none; font-weight: 700; }
.btn-ultra:hover, .btn-ultra:focus { color: #050814; background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(139,92,246,.4); }
.btn-ghost { background: rgba(148,163,214,.06); color: var(--white); border: 1px solid var(--line); }
.btn-ghost:hover, .btn-ghost:focus { color: var(--white); border-color: var(--cyan); background: rgba(34,211,238,.08); box-shadow: var(--glow); }
.btn-cyan { background: var(--cyan); color: #050814; border: none; }
.btn-cyan:hover { background: #67e8f9; color: #050814; transform: translateY(-2px); }

/* ---------- Section heads ---------- */
.label { display: inline-flex; align-items: center; gap: 8px; font-family: "IBM Plex Mono", monospace; font-size: .8rem; color: var(--cyan); letter-spacing: .5px; margin-bottom: 14px; }
.label::before { content: "//"; color: var(--violet-2); }
.title { font-size: clamp(2rem, 3.8vw, 3rem); margin-bottom: 16px; }
.sub { font-size: 1.07rem; max-width: 640px; }
.text-center .sub { margin-inline: auto; }

/* ---------- Glass card base ---------- */
.glass { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.gborder { position: relative; border-radius: var(--radius); background: var(--space-2); }
.gborder::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(34,211,238,.55), rgba(139,92,246,.25) 40%, rgba(148,163,214,.08) 70%, rgba(236,72,153,.4)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 90px 0 110px; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); letter-spacing: -1.6px; }
.hero .lead { font-size: 1.15rem; color: var(--text); max-width: 560px; margin: 22px 0 32px; }
.hero-chip { display: inline-flex; align-items: center; gap: 10px; font-family: "IBM Plex Mono", monospace; font-size: .82rem; color: var(--white); border: 1px solid var(--line); background: rgba(148,163,214,.06); border-radius: 40px; padding: 6px 14px 6px 6px; margin-bottom: 24px; }
.hero-chip span { background: var(--grad); color: #050814; border-radius: 30px; padding: 2px 10px; font-weight: 700; }
.hero-points { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 30px; font-size: .95rem; }
.hero-points span { display: inline-flex; align-items: center; gap: 8px; color: var(--white); }
.hero-points i { color: var(--cyan); }

/* Plan builder */
.plan-card { padding: 28px; }
.plan-card .pc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.plan-card .pc-top h3 { font-size: 1.3rem; margin: 0; }
.plan-card .pc-top .mono { font-size: .78rem; color: var(--muted); }
.plan-opt { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; margin-top: 10px; cursor: pointer; transition: all .2s ease; background: rgba(7,11,22,.35); }
.plan-opt:hover { border-color: rgba(34,211,238,.4); }
.plan-opt .po-ico { width: 40px; height: 40px; border-radius: 10px; background: rgba(148,163,214,.08); display: flex; align-items: center; justify-content: center; color: var(--cyan); font-size: 1.15rem; flex-shrink: 0; }
.plan-opt .po-txt { flex-grow: 1; color: var(--white); font-weight: 600; line-height: 1.3; }
.plan-opt .po-txt small { display: block; color: var(--muted); font-weight: 400; }
.plan-opt .switch { width: 44px; height: 24px; border-radius: 20px; background: rgba(148,163,214,.2); position: relative; flex-shrink: 0; transition: background .2s ease; }
.plan-opt .switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.plan-opt input { position: absolute; opacity: 0; pointer-events: none; }
.plan-opt input:checked ~ .switch { background: var(--cyan); }
.plan-opt input:checked ~ .switch::after { transform: translateX(20px); }
.plan-opt:has(input:checked) { border-color: rgba(34,211,238,.55); background: rgba(34,211,238,.06); }
.plan-opt input:focus-visible ~ .switch { outline: 2px solid var(--violet-2); outline-offset: 2px; }
.plan-summary { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.plan-summary .mono { font-size: .85rem; color: var(--text); }

/* ---------- Capability chips ---------- */
.cap-row { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--space-2); }
.cap { display: flex; align-items: center; gap: 12px; padding: 22px 10px; color: var(--white); font-weight: 600; }
.cap i { width: 42px; height: 42px; border-radius: 12px; background: var(--grad-soft); border: 1px solid rgba(34,211,238,.25); display: flex; align-items: center; justify-content: center; color: var(--cyan); font-size: 1.15rem; flex-shrink: 0; }

/* ---------- Service cards ---------- */
.svc { height: 100%; display: flex; flex-direction: column; overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.svc:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(34,211,238,.12); }
.svc .s-img { height: 200px; position: relative; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--space-3); }
.svc .s-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) brightness(.85); transition: transform .6s ease, filter .6s ease; }
.svc:hover .s-img img { transform: scale(1.06); filter: saturate(1) brightness(.95); }
.svc .s-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(13,20,38,.95)); }
.svc .s-ico { position: absolute; left: 22px; bottom: 16px; z-index: 2; width: 50px; height: 50px; border-radius: 14px; background: var(--grad); color: #050814; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; box-shadow: 0 8px 22px rgba(139,92,246,.4); }
.svc .s-code { position: absolute; right: 16px; top: 14px; z-index: 2; font-family: "IBM Plex Mono", monospace; font-size: .74rem; color: var(--white); background: rgba(7,11,22,.7); border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; }
.svc .s-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex-grow: 1; }
.svc h3 { font-size: 1.3rem; margin-bottom: 10px; }
.svc p { flex-grow: 1; }
.svc .btn { align-self: flex-start; }

/* ---------- About / terminal ---------- */
.terminal { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #050814; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.terminal .t-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--space-3); border-bottom: 1px solid var(--line); }
.terminal .t-bar span { width: 12px; height: 12px; border-radius: 50%; }
.terminal .t-bar span:nth-child(1) { background: #ff5f57; }
.terminal .t-bar span:nth-child(2) { background: #febc2e; }
.terminal .t-bar span:nth-child(3) { background: #28c840; }
.terminal .t-bar em { margin-left: 10px; font-style: normal; font-family: "IBM Plex Mono", monospace; font-size: .8rem; color: var(--muted); }
.terminal pre { margin: 0; padding: 22px 22px 26px; font-family: "IBM Plex Mono", monospace; font-size: .9rem; line-height: 1.85; color: var(--text); white-space: pre-wrap; }
.terminal .c-cmd { color: var(--cyan); }
.terminal .c-key { color: var(--violet-2); }
.terminal .c-str { color: #86efac; }
.terminal .c-com { color: var(--muted); }
.terminal .cursor { display: inline-block; width: 9px; height: 1.1em; background: var(--cyan); vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.about-photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 100%; min-height: 320px; position: relative; background: var(--space-3); }
.about-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.about-photo .ap-tag { position: absolute; left: 16px; bottom: 16px; background: rgba(7,11,22,.85); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-family: "IBM Plex Mono", monospace; font-size: .8rem; color: var(--white); }
.tick-list { list-style: none; padding: 0; margin: 18px 0; }
.tick-list li { display: flex; gap: 12px; margin-bottom: 10px; color: var(--white); }
.tick-list li i { color: var(--cyan); margin-top: 2px; }

/* ---------- Loan comparison ---------- */
.compare { padding: 30px; }
.offer { border: 1px solid var(--line); border-radius: 14px; padding: 20px; height: 100%; background: rgba(7,11,22,.4); transition: border-color .3s ease, box-shadow .3s ease; }
.offer h4 { font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.offer h4 .tag { font-family: "IBM Plex Mono", monospace; font-size: .74rem; padding: 2px 8px; border-radius: 6px; background: rgba(148,163,214,.12); color: var(--text); }
.offer.best { border-color: rgba(34,211,238,.6); box-shadow: var(--glow); }
.offer.best h4 .tag { background: var(--cyan); color: #050814; }
.offer label { font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; display: block; font-family: "IBM Plex Mono", monospace; }
.offer-out { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .95rem; }
.offer-out div { display: flex; justify-content: space-between; padding: 3px 0; }
.offer-out strong { color: var(--white); }
.verdict { margin-top: 20px; border-radius: 14px; padding: 18px 20px; background: var(--grad-soft); border: 1px solid rgba(34,211,238,.3); color: var(--white); display: flex; gap: 14px; align-items: center; }
.verdict i { font-size: 1.6rem; color: var(--cyan); }

/* ---------- Timeline process ---------- */
.flow { position: relative; }
.flow::before { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink)); opacity: .5; }
.flow-step { position: relative; padding-top: 70px; }
.flow-step .node { position: absolute; top: 8px; left: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--space); border: 2px solid var(--cyan); display: flex; align-items: center; justify-content: center; font-family: "IBM Plex Mono", monospace; font-weight: 600; color: var(--cyan); box-shadow: 0 0 18px rgba(34,211,238,.45); }
.flow-step h4 { font-size: 1.2rem; }
@media (max-width: 991.98px) {
  .flow::before { left: 19px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--cyan), var(--violet), var(--pink)); }
  .flow-step { padding: 0 0 10px 64px; }
  .flow-step .node { top: 0; }
}

/* ---------- Testimonial scroller ---------- */
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 380px); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 20px; scrollbar-width: thin; scrollbar-color: var(--violet) transparent; }
.scroller::-webkit-scrollbar { height: 6px; }
.scroller::-webkit-scrollbar-thumb { background: var(--violet); border-radius: 6px; }
.review { scroll-snap-align: start; padding: 28px 26px; display: flex; flex-direction: column; }
.review .r-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.review .r-stars { color: #facc15; letter-spacing: 2px; font-size: .9rem; }
.review .r-q { font-size: 1.8rem; color: var(--violet-2); line-height: 1; }
.review p { color: var(--white); font-size: 1.03rem; flex-grow: 1; }
.review h5 { font-size: 1rem; margin: 10px 0 0; display: flex; align-items: center; gap: 10px; }
.review h5 .av { width: 36px; height: 36px; border-radius: 10px; background: var(--grad); color: #050814; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; }
.scroll-btns { display: flex; gap: 10px; }
.scroll-btns button { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: rgba(148,163,214,.06); color: var(--white); font-size: 1.1rem; transition: all .2s ease; }
.scroll-btns button:hover { border-color: var(--cyan); box-shadow: var(--glow); }

/* ---------- Security tiles ---------- */
.sec-tile { padding: 28px 24px; height: 100%; transition: transform .3s ease; }
.sec-tile:hover { transform: translateY(-5px); }
.sec-tile i { font-size: 1.8rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; margin-bottom: 14px; }
.sec-tile h4 { font-size: 1.15rem; }

/* ---------- Blog ---------- */
.post { height: 100%; display: flex; flex-direction: column; overflow: hidden; transition: transform .3s ease; }
.post:hover { transform: translateY(-6px); }
.post .p-img { height: 210px; overflow: hidden; display: block; border-radius: var(--radius) var(--radius) 0 0; background: var(--space-3); }
.post .p-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.9); transition: transform .6s ease; }
.post:hover .p-img img { transform: scale(1.06); }
.post .p-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex-grow: 1; }
.post .p-cat { font-family: "IBM Plex Mono", monospace; font-size: .76rem; color: var(--cyan); margin-bottom: 8px; }
.post h3 { font-size: 1.25rem; }
.post h3 a { color: var(--white); }
.post h3 a:hover { color: var(--cyan); }
.post p { flex-grow: 1; }
.go { font-weight: 600; color: var(--cyan); display: inline-flex; align-items: center; gap: 6px; }
.go i { transition: transform .2s ease; }
.go:hover i { transform: translateX(4px); }

/* Blog list timeline */
.tl { position: relative; }
.tl::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--cyan), var(--violet), var(--pink)); opacity: .45; transform: translateX(-50%); }
.tl-row { position: relative; margin-bottom: 50px; }
.tl-row:last-child { margin-bottom: 0; }
.tl-row::before { content: ""; position: absolute; left: 50%; top: 40px; width: 16px; height: 16px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 16px var(--cyan); transform: translateX(-50%); z-index: 2; }
@media (max-width: 991.98px) { .tl::before, .tl-row::before { display: none; } }

/* Single article */
.article-hero { position: relative; overflow: hidden; padding: 70px 0 50px; }
.article-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 920px; }
.article-hero .sub { margin-top: 14px; }
.article-cover { border-radius: 20px; width: 100%; height: 460px; object-fit: cover; border: 1px solid var(--line); display: block; background: var(--space-3); }
.tldr { border: 1px solid rgba(34,211,238,.35); background: rgba(34,211,238,.06); border-radius: 14px; padding: 20px 22px; margin-bottom: 30px; }
.tldr .mono { color: var(--cyan); font-size: .85rem; display: block; margin-bottom: 6px; }
.tldr p { margin: 0; color: var(--white); }
.prose { font-size: 1.08rem; }
.prose p { margin-bottom: 22px; }
.prose h2 { font-size: 1.7rem; margin: 40px 0 14px; scroll-margin-top: 110px; }
.prose h2::before { content: "# "; color: var(--violet-2); font-family: "IBM Plex Mono", monospace; font-weight: 500; }
.prose .callout { margin: 32px 0; padding: 24px 26px; border-radius: 14px; background: var(--space-2); border-left: 3px solid var(--violet); color: var(--white); font-size: 1.15rem; box-shadow: 0 0 40px rgba(139,92,246,.12); }
.prose .callout i { color: var(--violet-2); margin-right: 8px; }
.toc-box { position: sticky; top: 110px; padding: 22px; }
.toc-box h4 { font-size: 1rem; font-family: "IBM Plex Mono", monospace; color: var(--cyan); font-weight: 500; }
.toc-box ul { list-style: none; padding: 0; margin: 0 0 6px; }
.toc-box li { margin-bottom: 8px; }
.toc-box li a { color: var(--text); font-size: .94rem; display: block; padding-left: 12px; border-left: 2px solid var(--line); }
.toc-box li a:hover { color: var(--white); border-color: var(--cyan); }
.side-cta { padding: 22px; margin-top: 20px; }
.side-cta h4 { font-size: 1.1rem; }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 30px; }

/* ---------- Page hero ---------- */
.page-hero { position: relative; overflow: hidden; padding: 90px 0 80px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -1px; }
.page-hero p { font-size: 1.1rem; max-width: 600px; margin: 12px 0 0; }
.path { font-family: "IBM Plex Mono", monospace; font-size: .86rem; color: var(--muted); margin-bottom: 16px; display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; background: rgba(148,163,214,.06); border: 1px solid var(--line); border-radius: 8px; padding: 5px 12px; }
.path a { color: var(--cyan); }
.path .sep { color: var(--violet-2); }

/* ---------- Forms ---------- */
.form-label { font-weight: 600; color: var(--white); font-size: .9rem; }
.form-control, .form-select { background-color: rgba(7,11,22,.6); border: 1px solid var(--line); color: var(--white); border-radius: 12px; padding: 12px 16px; }
.form-control::placeholder { color: #5f6b88; }
.form-control:focus, .form-select:focus { background-color: rgba(7,11,22,.85); color: var(--white); border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(34,211,238,.15); }
.form-select { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2322d3ee' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
.form-select option { background: var(--space-2); color: var(--white); }
.form-check-input { background-color: rgba(7,11,22,.6); border-color: rgba(148,163,214,.4); }
.form-check-input:checked { background-color: var(--cyan); border-color: var(--cyan); }
.form-check-label { color: var(--text); }
.invalid-feedback { color: #fca5a5; }
.form-control.is-invalid, .form-select.is-invalid { border-color: #f87171; }
.form-control.is-valid, .form-select.is-valid { border-color: #34d399; }
.input-group-text { background: rgba(148,163,214,.1); border: 1px solid var(--line); color: var(--white); border-radius: 12px; }
.form-alert { display: none; border-radius: 12px; margin-top: 18px; }
.form-alert.show { display: block; }

/* ---------- Contact ---------- */
.contact-panel { padding: 40px; }
.channel { padding: 22px; display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.channel i { width: 48px; height: 48px; border-radius: 12px; background: var(--grad-soft); border: 1px solid rgba(34,211,238,.25); color: var(--cyan); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.channel h5 { font-size: 1rem; margin-bottom: 2px; }
.channel p, .channel a { margin: 0; color: var(--text); word-break: break-word; }
.channel a:hover { color: var(--cyan); }
.map-dark { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-dark iframe { width: 100%; height: 300px; border: 0; display: block; filter: invert(90%) hue-rotate(180deg) brightness(.95) contrast(.9); }

/* ---------- Newsletter terminal form ---------- */
.term-form { padding: 6px 22px 26px; }
.term-form .prompt { font-family: "IBM Plex Mono", monospace; color: var(--cyan); font-size: .9rem; margin: 18px 0 8px; }
.term-form .prompt b { color: var(--violet-2); font-weight: 500; }
.term-form .form-control, .term-form .form-select { font-family: "IBM Plex Mono", monospace; background: #050814; }
.perk-line { display: flex; gap: 14px; margin-bottom: 20px; }
.perk-line i { width: 44px; height: 44px; border-radius: 12px; background: var(--grad-soft); border: 1px solid rgba(34,211,238,.25); color: var(--cyan); display: flex; align-items: center; justify-content: center; font-size: 1.15rem; flex-shrink: 0; }
.perk-line strong { color: var(--white); display: block; }

/* ---------- Legal cards ---------- */
.legal-card { padding: 28px; height: 100%; }
.legal-card h2 { font-size: 1.3rem; display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.legal-card h2 .idx { font-family: "IBM Plex Mono", monospace; font-size: .8rem; color: #050814; background: var(--grad); border-radius: 6px; padding: 2px 8px; font-weight: 600; }
.legal-card ul { padding-left: 18px; margin-bottom: 0; }
.legal-head { padding: 22px 26px; margin-bottom: 26px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- Principle cards ---------- */
.principle { padding: 30px 26px; height: 100%; }
.principle .pr-n { font-family: "IBM Plex Mono", monospace; font-size: .82rem; color: var(--cyan); }
.principle h3 { font-size: 1.3rem; margin: 10px 0; }
.spec-row { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.spec-row:last-child { border-bottom: none; }
.spec-row i { font-size: 1.4rem; color: var(--violet-2); margin-top: 2px; }
.spec-row h4 { font-size: 1.1rem; margin-bottom: 2px; }

/* ---------- FAQ ---------- */
.faq-dark .accordion-item { background: var(--space-2); border: 1px solid var(--line); border-radius: 14px !important; margin-bottom: 12px; overflow: hidden; }
.faq-dark .accordion-button { background: var(--space-2); color: var(--white); font-weight: 600; font-family: "Space Grotesk", sans-serif; box-shadow: none; padding: 18px 22px; }
.faq-dark .accordion-button:not(.collapsed) { background: rgba(34,211,238,.08); color: var(--cyan); }
.faq-dark .accordion-button::after { filter: invert(1) brightness(1.5); }
.faq-dark .accordion-button:focus { box-shadow: none; }
.faq-dark .accordion-body { color: var(--text); padding: 4px 22px 20px; }

/* ---------- Neon CTA ---------- */
.neon-cta { padding: 56px 50px; overflow: hidden; }
.neon-cta .glow-orb { opacity: .9; }
.neon-cta h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.neon-field { display: flex; gap: 8px; background: rgba(7,11,22,.7); border: 1px solid var(--line); border-radius: 14px; padding: 6px; }
.neon-field .form-control { border: none; background: transparent; }
.neon-field .form-control:focus { box-shadow: none; background: transparent; }
@media (max-width: 575.98px) { .neon-cta { padding: 38px 22px; } .neon-field { flex-direction: column; } }

/* ---------- Footer ---------- */
.ufh-footer { background: #050814; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.ufh-footer .ft-in { padding: 76px 0 40px; position: relative; z-index: 2; }
.ufh-footer h5 { font-family: "IBM Plex Mono", monospace; font-size: .85rem; color: var(--cyan); font-weight: 500; margin-bottom: 18px; }
.ufh-footer a { color: var(--text); }
.ufh-footer a:hover { color: var(--white); }
.f-ul { list-style: none; padding: 0; margin: 0; }
.f-ul li { margin-bottom: 10px; }
.f-contact li { display: flex; gap: 12px; margin-bottom: 14px; }
.f-contact i { color: var(--cyan); margin-top: 3px; }
.f-soc { display: flex; gap: 8px; margin-top: 22px; }
.f-soc a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--white); transition: all .2s ease; }
.f-soc a:hover { border-color: var(--cyan); box-shadow: var(--glow); }
.f-bar { border-top: 1px solid var(--line); padding: 20px 0; font-size: .88rem; position: relative; z-index: 2; }
.f-bar a { margin-left: 18px; }

/* Back to top */
.ufh-top { position: fixed; right: 22px; bottom: 22px; z-index: 999; width: 50px; height: 50px; border-radius: 14px; border: none; background: var(--grad); color: #050814; font-size: 1.2rem; box-shadow: 0 10px 30px rgba(139,92,246,.45); opacity: 0; visibility: hidden; transform: translateY(20px); transition: all .3s ease; }
.ufh-top.show { opacity: 1; visibility: visible; transform: none; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(30px); filter: blur(4px); transition: opacity .8s ease, transform .8s ease, filter .8s ease; }
.reveal.visible { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; filter: none; transition: none; } .terminal .cursor { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .sec { padding: 76px 0; }
  .toc-box { position: static; }
  .contact-panel { padding: 28px 20px; }
  .article-cover { height: 320px; }
}
@media (max-width: 575.98px) {
  .ufh-logo { font-size: 1.2rem; }
  .ufh-logo .u-mark { width: 32px; height: 32px; font-size: 1rem; }
  .compare { padding: 20px 16px; }
  .legal-card { padding: 22px 18px; }
  .f-bar a { margin: 0 8px; }
}
