/*--------------------------------------------------------------
# Bytemetrics Ltd. — main stylesheet
# Layout grid comes from Bootstrap 5; everything visual lives here.
--------------------------------------------------------------*/

:root {
  /* Typography */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;

  /* Colour */
  --ink: #0b1220;          /* headings, dark sections */
  --ink-2: #111a2e;        /* raised surfaces on dark */
  --text: #475467;         /* body copy */
  --muted: #667085;        /* secondary copy */
  --line: #e4e7ec;         /* borders */
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --accent: #4f46e5;       /* brand indigo */
  --accent-strong: #4338ca;
  --accent-soft: #eef2ff;
  --accent-2: #06b6d4;     /* gradient partner */
  --success: #16a34a;

  /* Shape */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow: 0 12px 32px -12px rgba(16, 24, 40, .18);
  --shadow-lg: 0 24px 60px -20px rgba(16, 24, 40, .28);

  --header-h: 76px;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .2s ease;
}

a:hover {
  color: var(--accent-strong);
}

img {
  max-width: 100%;
}

section,
.section {
  scroll-margin-top: var(--header-h);
}

.section {
  padding: 96px 0;
}

.section-soft {
  background: var(--bg-soft);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 14px;
}

.section-head p:last-child {
  font-size: 17px;
  color: var(--muted);
  margin: 0;
}

.text-gradient {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 999px;
  padding: 11px 22px;
  border: 1px solid transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 14px;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(79, 70, 229, .6);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-outline {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--ink);
}

.btn-light:hover {
  background: var(--accent-soft);
  color: var(--ink);
}

.btn-ghost-light {
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
}

.btn-ghost-light:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.header {
  position: sticky;
  top: 0;
  z-index: 997;
  height: var(--header-h);
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}

.scrolled .header {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px -12px rgba(16, 24, 40, .2);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.logo-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
}

.logo .sitename {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.navmenu ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navmenu a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.navmenu a:hover,
.navmenu a.active {
  color: var(--ink);
  background: var(--bg-soft);
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 30px;
  line-height: 1;
  color: var(--ink);
  padding: 0;
}

@media (max-width: 1199px) {
  .mobile-nav-toggle {
    display: block;
  }

  .navmenu {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 12px 16px 20px;
    display: none;
  }

  .mobile-nav-active .navmenu {
    display: block;
  }

  .navmenu ul {
    flex-direction: column;
  }

  .navmenu a {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 16px;
  }
}

@media (max-width: 575px) {
  .header-cta {
    display: none;
  }
}

/*--------------------------------------------------------------
# Hero
--------------------------------------------------------------*/
.hero {
  position: relative;
  padding: 72px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(600px 400px at 0% 0%, rgba(79, 70, 229, .10), transparent 70%),
    radial-gradient(500px 360px at 100% 30%, rgba(6, 182, 212, .10), transparent 70%),
    var(--bg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(11, 18, 32, .07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 80%);
  pointer-events: none;
}

.hero .container {
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  max-width: 100%;
}

.hero-pill:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.hero-pill-tag {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.hero-pill .bi {
  flex-shrink: 0;
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(38px, 5.6vw, 62px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 22px;
}

.hero .lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.hero-trust .bi {
  color: var(--accent);
  margin-right: 4px;
}

.hero-visual {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg);
}

.hero-visual img {
  display: block;
  border-radius: var(--radius);
}

.hero-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}

.hero-chip .bi {
  color: var(--accent);
  font-size: 16px;
}

.hero-chip-1 {
  top: 28px;
  left: -18px;
}

.hero-chip-2 {
  bottom: 32px;
  right: -18px;
  animation-delay: -3s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 991px) {
  .hero {
    padding: 48px 0 72px;
  }

  .hero-chip-1 { left: 8px; }
  .hero-chip-2 { right: 8px; }
}

/*--------------------------------------------------------------
# Services
--------------------------------------------------------------*/
.service-card {
  height: 100%;
  padding: 32px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 70, 229, .35);
  box-shadow: var(--shadow);
}

.service-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 24px;
  margin-bottom: 22px;
  transition: background-color .25s ease, color .25s ease;
}

.service-card:hover .service-icon {
  background: var(--accent);
  color: #fff;
}

.service-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
.media-frame {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

#about h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  margin-bottom: 18px;
}

.lead-sm {
  font-size: 17px;
  margin-bottom: 24px;
}

.lead-sm strong {
  color: var(--ink);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  color: var(--ink);
  font-weight: 500;
}

.check-list .bi {
  color: var(--accent);
  font-size: 20px;
  line-height: 1.3;
}

/*--------------------------------------------------------------
# Process (dark)
--------------------------------------------------------------*/
.section-dark {
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(79, 70, 229, .28), transparent 70%),
    var(--ink);
  color: #cbd5e1;
}

.section-dark h2,
.section-dark h3 {
  color: #fff;
}

.section-dark .eyebrow {
  color: #a5b4fc;
}

.section-dark .section-head p:last-child {
  color: #94a3b8;
}

.step {
  position: relative;
  height: 100%;
  padding: 30px 26px;
  border-radius: var(--radius);
  background: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: border-color .25s ease, transform .25s ease;
}

.step:hover {
  border-color: rgba(165, 180, 252, .45);
  transform: translateY(-4px);
}

.step-num {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: #a5b4fc;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(165, 180, 252, .12);
  margin-bottom: 20px;
}

.step h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.step p {
  margin: 0;
  font-size: 15px;
  color: #94a3b8;
}

/*--------------------------------------------------------------
# Ventures
--------------------------------------------------------------*/
.venture-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  align-items: center;
  gap: 48px;
  max-width: 980px;
  margin: 0 auto;
  padding: 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* Miles For Money brand lockup: colours match milesformoney.uk */
.venture-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 40px 24px 36px;
  border-radius: var(--radius);
  background:
    radial-gradient(240px 160px at 50% 30%, rgba(0, 212, 160, .18), transparent 70%),
    #132033;
}

.venture-icon {
  display: block;
  width: 132px;
  height: 132px;
  border-radius: 30px;
  box-shadow: 0 16px 32px -12px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08);
}

.venture-wordmark {
  font-family: -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #e8f0f9;
}

.venture-wordmark span {
  color: #00d4a0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #067647;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(22, 163, 74, .5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); }
  70% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.venture-body h3 {
  font-size: 26px;
  margin-bottom: 12px;
}

.venture-body p {
  font-size: 17px;
  margin-bottom: 24px;
}

@media (max-width: 767px) {
  .venture-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px;
  }

  .venture-logo {
    max-width: 260px;
  }
}

/*--------------------------------------------------------------
# Founder
--------------------------------------------------------------*/
.founder-card {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 620px;
  margin: 0 auto;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.founder-pic {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  border-radius: var(--radius);
  overflow: hidden;
}

.founder-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* the source photo has dark slivers on its top and right edges */
  transform: scale(1.14) translate(-3%, 3%);
}

.founder-info h3 {
  font-size: 26px;
  margin-bottom: 4px;
}

.founder-role {
  display: block;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 20px;
}

.founder-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
}

.founder-social .bi {
  font-size: 18px;
}

@media (max-width: 575px) {
  .founder-card {
    flex-direction: column;
    text-align: center;
  }
}

/*--------------------------------------------------------------
# CTA band
--------------------------------------------------------------*/
.cta-band {
  padding: 0 0 0;
  background: linear-gradient(to bottom, var(--bg-soft) 50%, var(--bg) 50%);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 48px 56px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(500px 240px at 100% 0%, rgba(6, 182, 212, .35), transparent 70%),
    linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #e0e7ff;
  box-shadow: var(--shadow-lg);
}

.cta-inner h2 {
  color: #fff;
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 8px;
}

.cta-inner p {
  margin: 0;
  font-size: 17px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 28px;
  }
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.info-wrap {
  height: 100%;
  padding: 28px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.info-item .bi {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--accent);
  font-size: 18px;
}

.info-item h3 {
  font-size: 16px;
  margin: 2px 0 2px;
}

.info-item p {
  margin: 0;
  font-size: 15px;
}

.info-item p a {
  color: var(--text);
}

.info-item p a:hover {
  color: var(--accent);
}

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 260px;
  border: 0;
}

.contact-form {
  height: 100%;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.contact-form .form-control,
.contact-form .form-select {
  padding: 12px 14px;
  font-size: 15px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: #fff;
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.contact-form .form-control::placeholder {
  color: #98a2b3;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, .12);
}

.contact-form .loading,
.contact-form .error-message,
.contact-form .sent-message {
  display: none;
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  text-align: center;
}

.contact-form .loading {
  background: var(--bg-soft);
  color: var(--text);
}

.contact-form .loading::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin: 0 10px -3px 0;
  border: 2px solid var(--accent);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.contact-form .error-message {
  background: #fef3f2;
  color: #b42318;
}

.contact-form .sent-message {
  background: #ecfdf3;
  color: #067647;
}

.contact-form .d-block {
  display: block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 575px) {
  .contact-form,
  .info-wrap {
    padding: 20px;
  }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  background: var(--ink);
  color: #94a3b8;
  font-size: 15px;
  padding-top: 72px;
}

.footer .logo .sitename {
  color: #fff;
}

.footer .logo-mark {
  background: #fff;
  padding: 3px;
}

.footer-blurb {
  margin: 16px 0;
  max-width: 360px;
}

.footer-contact p {
  margin: 0;
}

.footer h4 {
  font-size: 15px;
  color: #fff;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  padding: 5px 0;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: #fff;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 17px;
}

.social-links a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.copyright {
  margin-top: 56px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  text-align: center;
  font-size: 14px;
}

.copyright p {
  margin: 0;
}

.copyright strong {
  color: #fff;
  font-weight: 600;
}

/*--------------------------------------------------------------
# Scroll top
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 996;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 26px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease, background-color .2s ease;
}

.scroll-top.active {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--accent-strong);
  color: #fff;
}

/*--------------------------------------------------------------
# Responsive spacing
--------------------------------------------------------------*/
@media (max-width: 767px) {
  .section {
    padding: 72px 0;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
