/* =========================================================
   PATRONUS DIGITAL LLP
   Brand system + Bootstrap 5
   ========================================================= */

:root {
  /* Brand colors sampled from the Patronus logo */
  --brand-navy: #0f172a;
  --brand-blue: #1d4ed8;
  --brand-blue-2: #2563eb;
  --brand-cyan: #38bdf8;

  --brand-gradient: linear-gradient(120deg, #1d4ed8 0%, #2563eb 52%, #38bdf8 100%);
  --brand-gradient-dark: linear-gradient(120deg, #0f172a 0%, #132a63 55%, #1d4ed8 100%);

  --white: #ffffff;
  --page: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --surface-blue: #eff6ff;

  --text: #0f172a;
  --text-soft: #334155;
  --muted: #64748b;
  --border: #dbe2ea;
  --border-dark: rgba(255,255,255,.13);

  --heading-font: "Archivo", sans-serif;
  --body-font: "Inter", sans-serif;

  --container-width: 1320px;
  --section-space: clamp(80px, 10vw, 80px);
  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 22px;

  --shadow-soft: 0 18px 60px rgba(15, 23, 42, .08);
  --shadow-brand: 0 16px 45px rgba(37, 99, 235, .22);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  color: var(--white);
  background: var(--brand-blue);
}

:focus-visible {
  outline: 3px solid rgba(56, 189, 248, .55);
  outline-offset: 4px;
}

.container {
  max-width: var(--container-width);
}

.site-wrapper {
  overflow: clip;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 15px;
  z-index: 9999;
  padding: 10px 15px;
  color: var(--white);
  background: var(--brand-navy);
}

.skip-link:focus {
  top: 15px;
}

/* ==================== TYPE ==================== */

h1,
h2,
h3,
h4,
h5,
h6,
.btn,
.nav-link,
.eyebrow,
.detail-label,
.footer-heading {
  font-family: var(--heading-font);
}

.display-title,
.section-title,
.skya-title,
.cta-content h2 {
  font-weight: 800;
  letter-spacing: -.055em;
}

.eyebrow {
  display: inline-block;
  color: var(--brand-blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
  line-height: 1.2;
}

.eyebrow-light {
  color: rgba(255,255,255,.75);
}

.section-padding {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

.section-intro {
  max-width: 1080px;
}

.display-title {
  margin: 15px 0 0;
  color: var(--brand-navy);
  font-size: clamp(56px, 8.8vw, 95px);
  line-height: .86;
  text-transform: none;
}

.display-title span,
.section-title span,
.cta-content h2 span {
  color: var(--brand-blue);
}

.hero-copy {
  max-width: 560px;
  margin: 35px 0 0;
  color: var(--text-soft);
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.65;
}

.section-title {
  margin: 15px 0 0;
  color: var(--brand-navy);
  font-size: clamp(46px, 6vw, 60px);
  line-height: .94;
}

.lead-copy {
  max-width: 880px;
  margin: 34px 0 0;
  color: var(--text-soft);
  font-size: clamp(18px, 1.65vw, 23px);
  line-height: 1.6;
}

/* ==================== HEADER ==================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, .96);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow .3s ease, background .3s ease;
}

.site-header.scrolled {
  background: rgba(15, 23, 42, .985);
  box-shadow: 0 12px 40px rgba(2, 6, 23, .18);
}

.brand-logo {
  display: block;
  width: auto;
  height: 45px;
}

.nav-link {
  position: relative;
  padding: 8px 0 !important;
  color: rgba(255,255,255,.72) !important;
  font-size: 13px;
  font-weight: 600;
  transition: color .25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--brand-cyan);
  transition: width .3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff !important;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.navbar-toggler {
  padding: 7px;
  border: 1px solid rgba(255,255,255,.2) !important;
  border-radius: 8px;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(56,189,248,.18);
}

/* ==================== BUTTONS ==================== */

.btn {
  border-radius: var(--radius-sm);
  font-weight: 700;
  letter-spacing: -.01em;
  transition: transform .3s ease, box-shadow .3s ease, filter .3s ease;
}

.btn-brand {
  color: #fff !important;
  border: 0;
  background: var(--brand-gradient);
  box-shadow: var(--shadow-brand);
}

.btn-brand:hover {
  color: #fff !important;
  filter: brightness(1.08);
  transform: translateY(-3px);
  box-shadow: 0 22px 55px rgba(37,99,235,.3);
}

.btn-lg {
  padding: 15px 24px;
}

.arrow-icon {
  display: inline-block;
  margin-left: 6px;
  transition: transform .3s ease;
}

.btn:hover .arrow-icon {
  transform: translate(3px, -3px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-navy);
  font-family: var(--heading-font);
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  transition: color .25s ease, border-color .25s ease;
}

.text-link:hover {
  color: var(--brand-blue);
  border-color: var(--brand-blue);
}

/* ==================== HERO ==================== */

.hero-section {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  padding: clamp(70px, 9vw, 90px) 0 clamp(45px, 6vw, 75px);
  background:
    radial-gradient(circle at 78% 28%, rgba(56,189,248,.09), transparent 28%),
    radial-gradient(circle at 62% 80%, rgba(37,99,235,.07), transparent 26%),
    #fff;
}

.hero-grid-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-grid-glow-one {
  top: 4%;
  right: -130px;
  background: rgba(56,189,248,.15);
}

.hero-grid-glow-two {
  bottom: -150px;
  left: 20%;
  background: rgba(29,78,216,.1);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 25px 0;
}

.hero-svg {
  width: min(100%, 470px);
  overflow: visible;
}

.visual-badge {
  position: absolute;
  top: 0;
  right: 2%;
  padding: 8px 11px;
  color: var(--brand-blue);
  border: 1px solid #bfdbfe;
  border-radius: 99px;
  background: rgba(239,246,255,.9);
  font-family: var(--heading-font);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .15em;
}

.hero-svg rect {
  fill: rgba(255,255,255,.7);
  stroke: #cbd5e1;
  stroke-width: 2;
}

.hero-svg text {
  fill: #475569;
  font-family: var(--heading-font);
  font-size: 15px;
  font-weight: 600;
}

.hero-svg .connection {
  fill: none;
  stroke: #d7dee8;
  stroke-width: 2;
  stroke-dasharray: 5 6;
}

.hero-svg .connection.active {
  stroke: url(#brandGradient);
  stroke-dasharray: none;
}

.hero-svg .signal.empty {
  fill: transparent;
  stroke: #cbd5e1;
  stroke-width: 2;
}

.hero-svg .orbit {
  fill: none;
  stroke: #dbe2ea;
  stroke-width: 2;
}

.hero-svg .outer {
  animation: orbitPulse 3.5s ease-in-out infinite;
}

.hero-svg .core {
  transform-origin: 356px 159px;
  animation: pulseCore 2.8s ease-in-out infinite;
}

.hero-svg .brand-lines {
  fill: none;
  stroke: #94a3b8;
  stroke-width: 2;
}

.hero-svg .brand-label {
  fill: #475569;
  font-family: var(--heading-font);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: clamp(60px, 7vw, 90px);
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-navy);
  font-family: var(--heading-font);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.meta-number {
  color: var(--brand-blue);
  font-size: 10px;
}

.hero-meta-line {
  width: 55px;
  height: 1px;
  background: var(--border);
}

/* ==================== FEATURES ==================== */

.feature-row {
  margin-top: clamp(60px, 8vw, 60px);
}

.feature-card {
  height: 100%;
  padding: 25px 0 0;
  border-top: 1px solid var(--border);
}

.feature-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: var(--surface-blue);
  font-family: var(--heading-font);
  font-size: 13px;
  font-weight: 800;
  transition: color .3s ease, background .3s ease, transform .3s ease;
}

.feature-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.feature-card:hover .feature-icon {
  color: #fff;
  background: var(--brand-gradient);
  transform: translateY(-4px);
}

.feature-card h3 {
  margin: 26px 0 0;
  color: var(--brand-navy);
  font-size: clamp(25px, 2.5vw, 34px);
  font-weight: 800;
  letter-spacing: -.035em;
  text-transform: capitalize;
}

.feature-card p {
  max-width: 390px;
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ==================== SKYA ==================== */

.skya-section {
  position: relative;
  background: #f1f5f9;
}

.skya-title {
  margin: 14px 0 0;
  color: var(--brand-navy);
  font-size: clamp(72px, 13vw, 105px);
  line-height: .8;
  text-transform: lowercase;
}

.skya-title span {
  color: var(--brand-blue);
}

.skya-side-copy {
  max-width: 340px;
  margin: 0 0 5px auto;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.skya-intro {
  max-width: 900px;
  margin-top: 45px;
  color: var(--text-soft);
  font-size: clamp(19px, 2vw, 27px);
  line-height: 1.5;
}

.skya-slider {
  margin-top: clamp(55px, 7vw, 90px);
}

.slider-window {
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.slider-track {
  display: flex;
  width: 100%;
  transition: transform .8s cubic-bezier(.22,.7,.2,1);
  will-change: transform;
}

.slide {
  flex: 0 0 100%;
  min-width: 0;
}

.slide-image {
  padding: clamp(14px, 2vw, 25px);
  background: linear-gradient(135deg, #eaf2ff 0%, #eef4ff 45%, #e9faff 100%);
}

.slide-image img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .8s cubic-bezier(.22,.7,.2,1);
}

.slide:hover .slide-image img {
  transform: scale(1.012);
}

.slide-caption {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
}

.slide-caption span {
  color: var(--brand-blue);
  font-family: var(--heading-font);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
}

.slide-caption h3 {
  margin: 0;
  color: var(--brand-navy);
  font-size: 20px;
  font-weight: 800;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
}

.slider-dots {
  display: flex;
  gap: 10px;
}

.slider-dot {
  width: 52px;
  height: 4px;
  padding: 0;
  border: 0;
  background: #cbd5e1;
  cursor: pointer;
  transition: width .35s ease, background .35s ease;
}

.slider-dot.active,
.slider-dot:hover {
  background: var(--brand-blue);
}

.slider-dot.active {
  width: 72px;
}

.slider-arrow {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--brand-navy);
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  transition: color .25s ease, background .25s ease, transform .25s ease;
}

.slider-arrow:hover {
  color: #fff;
  background: var(--brand-blue);
  transform: translateY(-2px);
}

.skya-features {
  margin-top: clamp(65px, 8vw, 100px);
}

.mini-feature {
  height: 100%;
  padding-top: 18px;
  border-top: 1px solid #cbd5e1;
}

.mini-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--brand-blue);
  border-radius: 50%;
  background: #e0edff;
  font-family: var(--heading-font);
  font-size: 20px;
}

.mini-feature h3 {
  margin: 18px 0 0;
  color: var(--brand-navy);
  font-size: 18px;
  font-weight: 800;
}

.mini-feature p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* ==================== CTA ==================== */

.cta-section {
  position: relative;
  overflow: hidden;
  padding: clamp(95px, 14vw, 100px) 0;
  color: #fff;
  background: var(--brand-gradient-dark);
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(56,189,248,.2), transparent 24%),
    radial-gradient(circle at 10% 90%, rgba(37,99,235,.22), transparent 28%);
  pointer-events: none;
}

.cta-orb {
  position: absolute;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  pointer-events: none;
}

.cta-orb-one {
  width: 480px;
  height: 480px;
  top: -300px;
  right: -80px;
}

.cta-orb-two {
  width: 330px;
  height: 330px;
  bottom: -230px;
  left: -90px;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  max-width: 1000px;
  margin: 16px 0 0;
  color: #fff;
  font-size: clamp(50px, 8vw, 100px);
  line-height: .9;
}

.cta-content p {
  margin: 28px 0 0;
  color: rgba(255,255,255,.75);
  font-size: 16px;
}

/* ==================== COMPANY DETAILS ==================== */

.company-grid {
  margin-top: clamp(20px, 4vw, 20px);
}

.detail-card {
  min-height: 175px;
  padding: 25px 0;
  border-top: 1px solid var(--border);
}

.detail-label {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.detail-card h3 {
  margin: 12px 0 0;
  color: var(--brand-navy);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}

.detail-card h3 a {
  color: var(--brand-blue);
}

.detail-card h3 a:hover {
  color: var(--brand-cyan);
}

.detail-card p {
  max-width: 390px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.detail-card .address {
  color: var(--text-soft);
  font-weight: 600;
}

/* ==================== FOOTER ==================== */

.site-footer {
  padding: 70px 0 35px;
  color: #cbd5e1;
  background: var(--brand-navy);
}

.footer-logo {
  display: block;
  width: auto;
  height: 48px;
}

.footer-description {
  max-width: 410px;
  margin: 20px 0 0;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.7;
}

.footer-heading {
  display: block;
  margin-bottom: 16px;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.site-footer a {
  display: block;
  width: fit-content;
  margin-bottom: 10px;
  color: #cbd5e1;
  font-size: 14px;
  transition: color .25s ease, transform .25s ease;
}

.site-footer a:hover {
  color: var(--brand-cyan);
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 55px;
  padding-top: 25px;
  border-top: 1px solid var(--border-dark);
  color: #64748b;
  font-size: 11px;
}

/* ==================== REVEAL ANIMATION ==================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .8s ease,
    transform .8s cubic-bezier(.22,.7,.2,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: .12s;
}

.reveal-delay-2 {
  transition-delay: .22s;
}

/* ==================== BACK TO TOP ==================== */

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 0;
  border-radius: 50%;
  background: var(--brand-blue);
  box-shadow: 0 14px 35px rgba(15,23,42,.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  cursor: pointer;
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease, background .25s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  background: var(--brand-navy);
  transform: translateY(-3px);
}

/* ==================== KEYFRAMES ==================== */

@keyframes pulseCore {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.18);
  }
}

@keyframes orbitPulse {
  0%, 100% {
    opacity: .55;
  }
  50% {
    opacity: 1;
  }
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 991.98px) {
  :root {
    --section-space: 95px;
  }
  
  #story,
    #skya,
    #company {
        scroll-margin-top: 100px;
    }

  .site-header .navbar-collapse {
    padding: 18px 0 8px;
  }

  .site-header .navbar-nav {
    align-items: flex-start !important;
  }

  .nav-link {
    padding: 7px 0 !important;
  }

  .hero-section {
    min-height: auto;
    padding-top: 80px;
  }

  .display-title {
    font-size: clamp(56px, 12vw, 105px);
  }

  .hero-visual {
    max-width: 570px;
    margin: 0 auto;
  }

  .skya-side-copy {
    margin-left: 0;
  }

  .skya-title {
    font-size: clamp(75px, 16vw, 135px);
  }
}

@media (max-width: 767.98px) {
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-meta {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero-meta-line {
    width: 30px;
  }

  .section-title {
    font-size: clamp(44px, 11vw, 70px);
  }

  .lead-copy {
    font-size: 18px;
  }

  .skya-intro {
    margin-top: 32px;
    font-size: 19px;
  }

  .cta-content h2 {
    font-size: clamp(47px, 13vw, 80px);
  }
}

@media (max-width: 575.98px) {
  :root {
    --section-space: 78px;
  }

  html {
    scroll-padding-top: 75px;
  }

  .brand-logo {
    height: 40px;
  }

  .hero-section {
    padding-top: 65px;
  }

  .display-title {
    font-size: clamp(49px, 15.5vw, 78px);
    line-height: .88;
  }

  .hero-copy {
    margin-top: 25px;
    font-size: 16px;
  }

  .hero-actions {
    width: 100%;
    margin-top: 25px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-visual {
    padding-top: 30px;
  }

  .visual-badge {
    top: 5px;
    right: 0;
    font-size: 8px;
  }

  .hero-meta {
    margin-top: 50px;
  }

  .hero-meta-line {
    width: 18px;
  }

  .hero-meta-item {
    font-size: 10px;
  }

  .section-title {
    font-size: clamp(39px, 12vw, 62px);
  }

  .skya-title {
    font-size: clamp(60px, 19vw, 96px);
  }

  .feature-row {
    margin-top: 50px;
  }

  .feature-card {
    padding-top: 20px;
  }

  .slider-controls {
    gap: 10px;
  }

  .slider-dot {
    width: 32px;
  }

  .slider-dot.active {
    width: 52px;
  }

  .slider-arrow {
    width: 38px;
    height: 38px;
  }

  .slide-caption h3 {
    font-size: 17px;
  }

  .cta-content h2 {
    font-size: clamp(43px, 13.5vw, 68px);
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .back-to-top {
    right: 15px;
    bottom: 15px;
    width: 42px;
    height: 42px;
  }
}

/* ==================== REDUCED MOTION ==================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 767.98px) {
    #story,
    #skya,
    #company {
        scroll-margin-top: 120px;
    }
}
