/* ============================================================
   For Real Tech — styles
   Dark fintech palette (matched to forrealfunding.com):
   near-black / deep-navy base, electric-blue accent, white
   primary buttons, light-grey text.
   ============================================================ */

:root {
  --bg:        #070B16;
  --bg-2:      #05070F;
  --panel:     #0E1424;
  --panel-2:   #0B1B4D;   /* deep blue feature surface */
  --ink:       #E9E9E9;
  --ink-soft:  #9AA3B2;
  --ink-faint: #5A6172;
  --line:      #1B2338;

  --accent:        #3D6BFF;   /* legible blue for text/borders on dark */
  --accent-bright: #0046FF;   /* solid fills / glow */
  --accent-tint:   rgba(0,70,255,.16);

  --white:     #F4F6FC;       /* primary button surface */
  --green:     #21C77A;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.45);
  --shadow-md: 0 18px 40px -16px rgba(0,0,0,.65);
  --shadow-lg: 0 40px 80px -30px rgba(0,0,0,.8);
  --glow-blue: 0 8px 34px -8px rgba(0,70,255,.6);

  --maxw: 1180px;
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; margin: 0; letter-spacing: -.02em; color: #F5F7FC; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ---------- shared ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 88px 24px; }
.section-head { max-width: 660px; margin: 0 0 48px; }
.section-title { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; }
.section-lead { margin-top: 18px; color: var(--ink-soft); font-size: 1.05rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-tint);
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(61,107,255,.22); }
.eyebrow-light { color: var(--accent); background: rgba(61,107,255,.16); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-mono);
  font-weight: 500; font-size: .9rem; letter-spacing: .01em;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
/* primary = white (matches forrealfunding CTA) */
.btn-dark { background: var(--white); color: #0A0E1A; font-weight: 700; }
.btn-dark:hover { box-shadow: 0 10px 30px -10px rgba(244,246,252,.35); }
/* secondary = blue-bordered ghost */
.btn-outline { background: transparent; color: var(--ink); border-color: rgba(61,107,255,.55); }
.btn-outline:hover { background: var(--accent-bright); color: #fff; border-color: var(--accent-bright); box-shadow: var(--glow-blue); }
/* subtle ghost for colored panels */
.btn-ghost-light { background: rgba(255,255,255,.06); color: var(--ink); border-color: rgba(255,255,255,.2); }
.btn-ghost-light:hover { background: rgba(255,255,255,.14); }
.btn-block { width: 100%; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(7,11,22,.72);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-color: var(--line); background: rgba(5,7,15,.92); }
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; color: #F5F7FC; }
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent-bright); color: #fff;
  box-shadow: var(--glow-blue);
}
.brand-name { font-size: 1.12rem; letter-spacing: -.02em; }
.brand-accent { color: var(--accent); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { font-size: .95rem; color: var(--ink-soft); font-weight: 500; transition: color .15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: 8px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-drawer { display: none; flex-direction: column; gap: 4px; padding: 8px 24px 20px; border-bottom: 1px solid var(--line); background: var(--bg); }
.nav-drawer a { padding: 12px 4px; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line); }
.nav-drawer a:last-child { border-bottom: 0; }
.nav-drawer a.drawer-cta { margin-top: 12px; color: #0A0E1A; }

/* ---------- hero ---------- */
.hero { max-width: var(--maxw); margin: 0 auto; padding: 24px 24px 8px; }
.hero-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 76px);
  background:
    radial-gradient(120% 120% at 12% 0%, #12224f 0%, #0b1533 42%, #060a17 100%);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.5fr .9fr;
  gap: 40px;
  align-items: end;
}
/* faint blueprint grid */
.hero-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background-image:
    linear-gradient(rgba(90,130,240,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90,130,240,.07) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(120% 100% at 70% 0%, #000 0%, transparent 75%);
}
.hero-content { position: relative; z-index: 2; max-width: 620px; }
.hero-title { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -.035em; color: #fff; }
.hero-title .accent { color: var(--accent); }
.hero-sub { margin-top: 22px; font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--ink-soft); max-width: 34em; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-availability { margin-top: 28px; font-family: var(--font-mono); font-size: .82rem; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.hero-availability .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(33,199,122,.18); }

.hero-float {
  position: relative; z-index: 2;
  background: rgba(14,20,36,.85);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(4px);
}
.float-code { font-family: var(--font-mono); font-size: .72rem; color: var(--accent); letter-spacing: .02em; }
.float-list { margin-top: 14px; display: grid; gap: 12px; }
.float-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink); }
.tick { color: var(--green); font-weight: 700; }

/* ---------- stack strip ---------- */
.stack { max-width: var(--maxw); margin: 0 auto; padding: 48px 24px 12px; text-align: center; }
.stack-label { font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-faint); }
.stack-row { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px; }
.stack-row li { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: #3f4964; letter-spacing: -.01em; transition: color .2s ease; }
.stack-row li:hover { color: var(--accent); }

/* ---------- cards grid ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.svc-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(61,107,255,.45); }
.svc-card--feature { background: linear-gradient(180deg, #0d1c44 0%, #0a1330 100%); border-color: rgba(0,70,255,.5); }
.svc-icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--accent-bright); color: #fff; margin-bottom: 20px;
  box-shadow: var(--glow-blue);
}
.svc-card--feature .svc-icon { background: #fff; color: var(--accent-bright); box-shadow: none; }
.svc-card h3 { font-size: 1.3rem; font-weight: 700; }
.svc-card > p { margin-top: 12px; color: var(--ink-soft); font-size: .96rem; }
.svc-list { margin-top: 18px; display: grid; gap: 8px; }
.svc-list li { position: relative; padding-left: 20px; font-size: .9rem; color: var(--ink-soft); }
.svc-list li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- about + company card ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.about-copy .section-title { margin-bottom: 20px; }
.about-copy p { color: var(--ink-soft); margin-bottom: 16px; }
.about-copy .btn { margin-top: 10px; }

.company-card {
  position: relative;
  background: linear-gradient(180deg, rgba(14,20,36,.95) 0%, rgba(7,11,22,.95) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 30px 26px;
  box-shadow: var(--shadow-md);
}
.cc-head { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
.cc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.cc-row:last-of-type { border-bottom: 0; }
.cc-key { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .04em; color: var(--ink-faint); white-space: nowrap; }
.cc-val { text-align: right; font-size: .95rem; font-weight: 500; color: var(--ink); }
.cc-val.accent { color: var(--accent); font-family: var(--font-mono); }
.cc-foot { margin-top: 18px; font-size: .82rem; color: var(--ink-faint); line-height: 1.6; }
.cc-foot a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.stat {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 26px 24px; box-shadow: var(--shadow-sm);
}
.stat-num { display: block; font-family: var(--font-display); font-weight: 800; font-size: 2rem; letter-spacing: -.03em; color: var(--accent); }
.stat-label { display: block; margin-top: 6px; font-size: .88rem; color: var(--ink-soft); }

/* ---------- why / accordion ---------- */
.why-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.why-head { position: sticky; top: 110px; }
.accordion { display: grid; gap: 12px; }
.acc-item {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 4px 26px; box-shadow: var(--shadow-sm);
  transition: border-color .2s ease;
}
.acc-item[open] { border-color: rgba(61,107,255,.5); }
.acc-item summary {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; list-style: none;
  padding: 20px 0; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: #F5F7FC;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-plus { position: relative; width: 18px; height: 18px; flex: none; }
.acc-plus::before, .acc-plus::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; transition: transform .2s ease; }
.acc-plus::before { left: 0; top: 8px; width: 18px; height: 2px; }
.acc-plus::after { left: 8px; top: 0; width: 2px; height: 18px; }
.acc-item[open] .acc-plus::after { transform: scaleY(0); }
.acc-body { padding: 0 0 22px; color: var(--ink-soft); font-size: .96rem; max-width: 52ch; }

/* ---------- pricing ---------- */
.price-cards { align-items: stretch; }
.price-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 32px 28px; box-shadow: var(--shadow-sm);
}
.price-card--featured { background: linear-gradient(180deg, #0c1f52 0%, #0a1533 100%); border-color: var(--accent-bright); box-shadow: var(--glow-blue); }
.price-badge {
  position: absolute; top: 20px; right: 20px;
  font-family: var(--font-mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .1em;
  background: var(--accent-bright); color: #fff; padding: 5px 10px; border-radius: var(--radius-pill); font-weight: 500;
}
.price-name { font-size: 1.4rem; font-weight: 700; }
.price-desc { margin-top: 8px; font-size: .92rem; color: var(--ink-soft); min-height: 2.6em; }
.price-amount { margin-top: 18px; font-family: var(--font-display); font-weight: 800; font-size: 2.5rem; letter-spacing: -.03em; color: #fff; }
.price-from { font-size: .8rem; font-weight: 600; color: var(--ink-faint); display: block; letter-spacing: 0; }
.price-unit { font-size: 1rem; font-weight: 600; color: var(--ink-faint); }
.price-gbp { font-size: .88rem; font-weight: 600; color: var(--ink-faint); letter-spacing: 0; }
.price-list { margin: 22px 0 26px; display: grid; gap: 12px; }
.price-list li { display: flex; gap: 10px; font-size: .92rem; color: var(--ink-soft); }
.price-card .btn { margin-top: auto; }
.price-note { margin-top: 26px; text-align: center; color: var(--ink-soft); font-size: .9rem; }
.price-note a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 28px 24px; box-shadow: var(--shadow-sm);
}
.step-num { font-family: var(--font-mono); font-size: .9rem; color: var(--accent); font-weight: 500; }
.step h3 { margin-top: 14px; font-size: 1.2rem; font-weight: 700; }
.step p { margin-top: 10px; font-size: .92rem; color: var(--ink-soft); }

/* ---------- contact ---------- */
.contact-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  position: relative; overflow: hidden;
  background:
    radial-gradient(130% 150% at 88% 8%, #123a9e 0%, #0b1b4d 42%, #070d1f 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(36px, 5vw, 64px);
  color: var(--ink); box-shadow: var(--shadow-lg); align-items: center;
}
.contact-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; margin: 14px 0 16px; color: #fff; }
.contact-copy p { color: var(--ink-soft); max-width: 34ch; }
.contact-meta { margin-top: 26px; display: grid; gap: 12px; }
.contact-meta li { font-size: .92rem; color: var(--ink); }
.contact-meta strong { display: inline-block; width: 62px; font-family: var(--font-mono); font-weight: 500; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); }
.contact-meta a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.contact-form { position: relative; z-index: 2; background: rgba(6,9,17,.75); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow-md); backdrop-filter: blur(6px); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: .95rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #080c18; transition: border-color .15s ease, box-shadow .15s ease; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #4a5470; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.form-fineprint { margin-top: 14px; font-size: .78rem; color: var(--ink-faint); text-align: center; }
.form-fineprint a { color: var(--accent); text-decoration: underline; }

/* ---------- footer ---------- */
.footer { background: var(--bg-2); color: var(--ink-soft); margin-top: 40px; border-top: 1px solid var(--line); }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 64px 24px 40px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px;
}
.footer-brand .brand-name { color: #F5F7FC; font-size: 1.3rem; }
.footer-brand .brand-accent { color: var(--accent); }
.footer-brand p { margin-top: 14px; font-size: .9rem; color: var(--ink-faint); max-width: 34ch; }
.footer-col h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); margin-bottom: 16px; font-family: var(--font-mono); font-weight: 500; }
.footer-col a { display: block; padding: 6px 0; font-size: .92rem; color: var(--ink-soft); transition: color .15s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-addr { display: block; margin-top: 10px; font-size: .84rem; color: var(--ink-faint); line-height: 1.7; }
.footer-bar {
  border-top: 1px solid var(--line);
  max-width: var(--maxw); margin: 0 auto; padding: 20px 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .84rem; color: var(--ink-faint);
}
.footer-legal-links a:hover { color: var(--accent); }

/* ---------- legal / doc pages ---------- */
.doc-wrap { max-width: 820px; margin: 0 auto; padding: 56px 24px 80px; }
.doc-back { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: .8rem; color: var(--accent); margin-bottom: 28px; }
.doc-back:hover { text-decoration: underline; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; }
.doc .doc-updated { margin-top: 12px; font-family: var(--font-mono); font-size: .8rem; color: var(--ink-faint); }
.doc .doc-note {
  margin: 28px 0; padding: 16px 20px; border-radius: var(--radius-sm);
  background: var(--accent-tint); border: 1px solid rgba(61,107,255,.4);
  font-size: .9rem; color: #b9caff;
}
.doc .doc-note strong { color: #dbe5ff; }
.doc h2 { font-size: 1.35rem; font-weight: 700; margin: 40px 0 12px; }
.doc p, .doc li { color: var(--ink-soft); font-size: 1rem; }
.doc p { margin-bottom: 14px; }
.doc ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.doc strong { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-drawer { display: flex; }
  .hero-card { grid-template-columns: 1fr; gap: 28px; }
  .hero-float { max-width: 420px; }
  .cards-3 { grid-template-columns: 1fr; }
  .about-grid, .why-grid, .contact-card { grid-template-columns: 1fr; gap: 36px; }
  .why-head { position: static; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .section { padding: 60px 20px; }
  .about-stats { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bar { flex-direction: column; }
  .cc-row { gap: 12px; }
}

/* ---------- a11y ---------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .btn:hover, .svc-card:hover { transform: none; }
}
