:root {
  --paper: #f4f0df;
  --paper-deep: #e6dfc7;
  --ink: #263742;
  --muted: #68757c;
  --navy: #123b5a;
  --blue: #2589c1;
  --teal: #6f8f91;
  --line: rgba(18, 59, 90, 0.18);
  --white: #fffdf4;
  --shadow: 0 22px 55px rgba(18, 59, 90, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(255, 253, 244, 0.78), rgba(230, 223, 199, 0.38)),
    repeating-linear-gradient(0deg, rgba(18, 59, 90, 0.025), rgba(18, 59, 90, 0.025) 1px, transparent 1px, transparent 5px);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

#about,
#services,
#contact {
  scroll-margin-top: 92px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 24px;
  align-items: center;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(244, 240, 223, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand strong,
.footer-brand strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand small,
.footer-brand span {
  display: block;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.85rem;
  font-style: italic;
}

.main-nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  align-items: center;
}

.main-nav a,
.footer-links a {
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
}

.main-nav a:hover,
.footer-links a:hover {
  color: var(--blue);
}

.header-phone {
  justify-self: end;
  color: var(--white);
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(220px, 0.75fr);
  min-height: min(720px, calc(100vh - 87px));
  align-items: center;
  gap: clamp(28px, 6vw, 84px);
  padding: clamp(68px, 10vw, 118px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(110deg, rgba(18, 59, 90, 0.98), rgba(18, 59, 90, 0.88) 55%, rgba(37, 137, 193, 0.72)),
    var(--navy);
  color: var(--white);
  overflow: hidden;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #aee0f6;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(2.9rem, 6.5vw, 6rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

h2 {
  color: var(--navy);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(2rem, 3.7vw, 3.65rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.08;
}

h3 {
  color: var(--navy);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.25;
}

.hero-intro {
  max-width: 620px;
  color: rgba(255, 253, 244, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 12px 18px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.button.primary {
  background: var(--blue);
  color: var(--white);
}

.button.secondary {
  border: 1px solid rgba(255, 253, 244, 0.52);
  color: var(--white);
}

.button.secondary.light {
  border-color: rgba(255, 253, 244, 0.68);
}

.hero-visual {
  justify-self: center;
  position: relative;
  width: min(470px, 100%);
  min-height: 430px;
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero-visual::before {
  inset: 8% -6% 3% 10%;
  background:
    radial-gradient(circle at 32% 26%, rgba(174, 224, 246, 0.22), transparent 24%),
    radial-gradient(circle at 72% 66%, rgba(37, 137, 193, 0.28), transparent 35%);
  filter: blur(2px);
}

.hero-visual::after {
  width: 72%;
  height: 72%;
  right: -4%;
  bottom: 2%;
  border: 1px solid rgba(174, 224, 246, 0.25);
  background: linear-gradient(135deg, rgba(174, 224, 246, 0.1), rgba(37, 137, 193, 0.04));
  transform: rotate(-8deg);
}

.ledger-panel,
.calculator-panel,
.chart-panel,
.coin-stack {
  position: absolute;
  border: 1px solid rgba(174, 224, 246, 0.3);
  background: linear-gradient(145deg, rgba(255, 253, 244, 0.16), rgba(37, 137, 193, 0.12));
  box-shadow: 0 22px 45px rgba(5, 24, 38, 0.22);
  backdrop-filter: blur(8px);
}

.ledger-panel {
  top: 28px;
  right: 24px;
  z-index: 2;
  width: 72%;
  min-height: 260px;
  border-radius: 8px;
  padding: 38px 34px 34px;
  transform: rotate(2deg);
}

.ledger-panel::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 0;
  width: 52px;
  height: 100%;
  background: rgba(174, 224, 246, 0.12);
  border-right: 1px solid rgba(174, 224, 246, 0.2);
}

.ledger-row,
.ledger-total {
  position: relative;
  z-index: 1;
  height: 13px;
  margin-left: 58px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: rgba(255, 253, 244, 0.66);
}

.ledger-row::before {
  content: "";
  position: absolute;
  left: -52px;
  top: -2px;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(174, 224, 246, 0.72);
  box-shadow: 0 0 0 5px rgba(174, 224, 246, 0.1);
}

.ledger-row.wide {
  width: 78%;
}

.ledger-row {
  width: 62%;
}

.ledger-row.short {
  width: 46%;
}

.ledger-total {
  width: 86%;
  height: 18px;
  margin-top: 10px;
  margin-bottom: 0;
  background: linear-gradient(90deg, rgba(37, 137, 193, 0.92), rgba(174, 224, 246, 0.8));
}

.calculator-panel {
  left: 32px;
  bottom: 38px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 34px);
  gap: 12px;
  width: 168px;
  padding: 18px;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(18, 59, 90, 0.86), rgba(37, 137, 193, 0.36));
}

.calculator-screen {
  grid-column: 1 / -1;
  height: 34px;
  border-radius: 5px;
  background: rgba(255, 253, 244, 0.82);
}

.calculator-panel span {
  height: 28px;
  border-radius: 5px;
  background: rgba(174, 224, 246, 0.48);
}

.calculator-panel span:nth-child(5),
.calculator-panel span:nth-child(8),
.calculator-panel span:nth-child(10) {
  background: rgba(37, 137, 193, 0.76);
}

.chart-panel {
  right: 8px;
  bottom: 58px;
  z-index: 4;
  display: flex;
  align-items: end;
  gap: 12px;
  width: 182px;
  height: 140px;
  padding: 22px;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(111, 143, 145, 0.42), rgba(37, 137, 193, 0.22));
}

.chart-panel span {
  width: 24px;
  border-radius: 7px 7px 0 0;
  background: linear-gradient(180deg, rgba(255, 253, 244, 0.92), rgba(174, 224, 246, 0.42));
}

.chart-panel span:nth-child(1) {
  height: 48%;
}

.chart-panel span:nth-child(2) {
  height: 68%;
}

.chart-panel span:nth-child(3) {
  height: 38%;
}

.chart-panel span:nth-child(4) {
  height: 82%;
  background: linear-gradient(180deg, rgba(174, 224, 246, 0.95), rgba(37, 137, 193, 0.58));
}

.coin-stack {
  left: 108px;
  top: 96px;
  z-index: 1;
  width: 132px;
  height: 132px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.coin-stack span {
  position: absolute;
  width: 112px;
  height: 34px;
  border: 1px solid rgba(174, 224, 246, 0.34);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(174, 224, 246, 0.42), rgba(37, 137, 193, 0.2));
  transform: rotate(-16deg);
}

.coin-stack span:nth-child(1) {
  left: 10px;
  top: 12px;
}

.coin-stack span:nth-child(2) {
  left: 20px;
  top: 46px;
}

.coin-stack span:nth-child(3) {
  left: 30px;
  top: 80px;
}

.quick-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.quick-services a {
  min-height: 150px;
  padding: clamp(24px, 4vw, 42px);
  border-right: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.quick-services a:last-child {
  border-right: 0;
}

.quick-services span {
  display: block;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.quick-services strong {
  display: block;
  max-width: 330px;
  color: var(--navy);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.2;
}

.section {
  padding: clamp(72px, 10vw, 124px) clamp(20px, 5vw, 72px);
}

.about-section {
  position: relative;
  overflow: hidden;
  padding-top: clamp(56px, 8vw, 96px);
  background:
    linear-gradient(180deg, rgba(244, 240, 223, 0.84), rgba(255, 253, 244, 0.88)),
    var(--paper);
}

.about-section::before {
  content: "";
  position: absolute;
  right: clamp(20px, 6vw, 92px);
  bottom: 70px;
  width: min(420px, 44vw);
  height: 260px;
  border: 1px solid rgba(37, 137, 193, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(37, 137, 193, 0.1) 1px, transparent 1px),
    linear-gradient(180deg, rgba(18, 59, 90, 0.08) 1px, transparent 1px);
  background-size: 46px 46px;
  transform: rotate(-4deg);
  pointer-events: none;
}

.about-section::after {
  content: "$";
  position: absolute;
  right: clamp(44px, 9vw, 150px);
  bottom: 110px;
  color: rgba(37, 137, 193, 0.09);
  font-size: clamp(9rem, 16vw, 17rem);
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.split-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.85fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: start;
}

.section-copy {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-copy p:last-child,
.section-heading p:last-child,
.contact-copy p:last-child {
  margin-bottom: 0;
}

.about-highlights {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(44px, 7vw, 78px);
}

.about-highlights article {
  min-height: 166px;
  padding: 24px;
  border: 1px solid rgba(18, 59, 90, 0.16);
  border-radius: 8px;
  background: rgba(255, 253, 244, 0.78);
  box-shadow: 0 14px 34px rgba(18, 59, 90, 0.08);
}

.about-highlights article:nth-child(2) {
  background: rgba(174, 224, 246, 0.2);
}

.about-highlights article:nth-child(3) {
  background: rgba(111, 143, 145, 0.14);
}

.about-highlights span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
}

.about-highlights article:nth-child(2) span {
  background: var(--blue);
}

.about-highlights article:nth-child(3) span {
  background: var(--teal);
}

.about-highlights h3 {
  margin-bottom: 10px;
}

.about-highlights p {
  color: var(--muted);
  margin-bottom: 0;
}

.services-section {
  background:
    linear-gradient(180deg, rgba(255, 253, 244, 0.78), rgba(230, 223, 199, 0.48)),
    var(--paper-deep);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
  margin-bottom: clamp(34px, 5vw, 58px);
}

.section-heading p {
  color: var(--muted);
  font-size: 1.08rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(255, 253, 244, 0.98), rgba(255, 253, 244, 0.82)),
    var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(18, 59, 90, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: var(--blue);
}

.service-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(37, 137, 193, 0.1);
  transition: transform 180ms ease, opacity 180ms ease;
}

.service-card:nth-child(2)::before {
  background: var(--teal);
}

.service-card:nth-child(3)::before {
  background: #7fb8d4;
}

.service-card:nth-child(4)::before {
  background: var(--navy);
}

.service-card:nth-child(5)::before {
  background: #5c7f8a;
}

.service-card:nth-child(6)::before {
  background: linear-gradient(90deg, var(--blue), var(--teal));
}

.service-card:hover {
  transform: translateY(-7px);
  border-color: rgba(37, 137, 193, 0.42);
  background:
    linear-gradient(145deg, rgba(255, 253, 244, 1), rgba(174, 224, 246, 0.18)),
    var(--white);
  box-shadow: 0 24px 48px rgba(18, 59, 90, 0.16);
}

.service-card:hover::after {
  transform: scale(1.22);
  opacity: 0.85;
}

.service-card h3,
.service-card p {
  position: relative;
  z-index: 1;
}

.service-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 480px);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
  padding: clamp(72px, 10vw, 124px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(120deg, rgba(18, 59, 90, 0.98), rgba(38, 55, 66, 0.94)),
    var(--navy);
  color: var(--white);
}

.contact-section .section-kicker,
.contact-section h2 {
  color: var(--white);
}

.contact-copy p {
  max-width: 640px;
  color: rgba(255, 253, 244, 0.78);
  font-size: 1.08rem;
}

.contact-card {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 34px;
  background: var(--white);
  border-left: 9px solid var(--blue);
  border-radius: 8px;
  color: var(--ink);
  font-style: normal;
  box-shadow: var(--shadow);
}

.contact-card strong {
  color: var(--navy);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}

.contact-card a {
  color: var(--navy);
  font-weight: 700;
  text-decoration-color: rgba(37, 137, 193, 0.45);
  text-underline-offset: 4px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  gap: 24px;
  align-items: center;
  padding: 26px clamp(20px, 5vw, 72px);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.footer-brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.footer-links {
  display: flex;
  gap: 22px;
  justify-content: center;
}

.footer-meta {
  justify-self: end;
  display: grid;
  gap: 6px;
  text-align: right;
}

.footer-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.powered-by {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.2;
}

.powered-by a {
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 5px;
}

.teqniqs-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transform-origin: center;
  transition: filter 220ms ease, transform 260ms ease;
}

.teqniqs-logo:hover {
  filter: drop-shadow(0 0 8px rgba(37, 137, 193, 0.44));
  transform: translateY(-4px);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .main-nav,
  .header-phone {
    justify-self: start;
  }

  .hero,
  .split-layout,
  .section-heading,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    max-width: 390px;
    min-height: 360px;
  }

  .quick-services,
  .services-grid,
  .about-highlights {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-meta {
    justify-self: start;
    text-align: left;
  }

  .powered-by {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
  }

  #about,
  #services,
  #contact {
    scroll-margin-top: 12px;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .brand strong {
    font-size: 0.92rem;
  }

  .brand small {
    max-width: 210px;
  }

  .main-nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .header-phone {
    width: 100%;
  }

  .hero {
    padding-top: 58px;
  }

  h1 {
    font-size: 3rem;
  }

  .hero-visual {
    min-height: 310px;
  }

  .ledger-panel {
    right: 12px;
    width: 76%;
    min-height: 210px;
    padding: 30px 26px 26px;
  }

  .calculator-panel {
    left: 10px;
    bottom: 24px;
    grid-template-columns: repeat(3, 28px);
    width: 142px;
    gap: 10px;
    padding: 14px;
  }

  .calculator-panel span {
    height: 24px;
  }

  .chart-panel {
    right: 0;
    bottom: 36px;
    width: 146px;
    height: 118px;
    gap: 9px;
    padding: 18px;
  }

  .coin-stack {
    left: 62px;
    top: 88px;
    transform: scale(0.78);
    transform-origin: top left;
  }

  .quick-services,
  .services-grid,
  .about-highlights {
    grid-template-columns: 1fr;
  }

  .quick-services a {
    min-height: 120px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .contact-card {
    padding: 26px;
  }

  .footer-brand,
  .footer-links {
    flex-wrap: wrap;
  }
}
