/* Asset Savvy Technologies — shared styles for every page. */

:root {
  --brand: #0031f5;
  --brand-600: #2a4dff;
  --brand-50: #f2f5ff;
  --brand-100: #e3e9ff;
  --violet: #7a3cff;
  --blossom: #b5658a;
  --ink: #0b1020;
  --ink-2: #39415a;
  --muted: #5d6680;
  --line: #e5e8f0;
  --bg: #ffffff;
  --bg-soft: #f7f8fc;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(11, 16, 32, 0.04), 0 8px 24px rgba(11, 16, 32, 0.06);
  --shadow-lg: 0 2px 6px rgba(11, 16, 32, 0.05), 0 24px 60px rgba(11, 16, 32, 0.12);
  --max: 1160px;
  --gradient: linear-gradient(135deg, #0031f5 0%, #5b2cff 55%, #b5658a 100%);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.8rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
  color: var(--ink-2);
}

:focus-visible {
  outline: 3px solid var(--brand-600);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

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

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-2);
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 49, 245, 0.25);
}

.btn--primary:hover {
  background: #0029d1;
}

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

.btn--ghost:hover {
  border-color: #c9cfdd;
}

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

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--gradient);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.04em;
}

.logo small {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.96rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--brand);
  text-decoration: none;
}

.nav-links a.btn--primary,
.nav-links a.btn--primary:hover {
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle svg {
  margin: auto;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li a {
    display: block;
    padding: 12px 8px;
  }

  .nav-links .btn {
    margin-top: 8px;
    width: 100%;
  }
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 820px;
  height: 820px;
  background: radial-gradient(circle at center, rgba(91, 44, 255, 0.14), transparent 62%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto auto -50% -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle at center, rgba(0, 49, 245, 0.1), transparent 60%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero p.lead {
  max-width: 560px;
  margin-bottom: 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}

.pill b {
  background: var(--brand-50);
  color: var(--brand);
  border-radius: 999px;
  padding: 2px 10px;
  font-weight: 700;
  font-size: 0.78rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 32px;
  font-size: 0.9rem;
  color: var(--muted);
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-row svg {
  color: var(--brand);
  flex: none;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

/* Cards and grids */

.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 960px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.card p:last-child {
  margin-bottom: 0;
}

.icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-50);
  color: var(--brand);
  margin-bottom: 18px;
}

.icon--violet {
  background: #f1ebff;
  color: var(--violet);
}

.icon--blossom {
  background: #fbeef4;
  color: var(--blossom);
}

.fact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}

.fact-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.fact-list li:last-child {
  border-bottom: 0;
}

.fact-list span {
  color: var(--muted);
}

.fact-list strong {
  text-align: right;
  font-weight: 600;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-2);
}

.check-list li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--brand-50)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230031f5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

/* Product showcase (company page) */

.product-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 48px;
  box-shadow: var(--shadow-lg);
}

.product-feature .brand-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.product-feature .brand-line img {
  width: 40px;
  height: auto;
}

.product-feature .brand-line strong {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

@media (max-width: 960px) {
  .product-feature {
    grid-template-columns: 1fr;
    padding: 28px;
  }
}

/* App mock — an illustration of the product's screens, built in HTML */

.mock {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-size: 0.86rem;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.mock-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dfe3ec;
}

.mock-bar span {
  margin-left: 10px;
  font-size: 0.78rem;
  color: var(--muted);
}

.mock-body {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.mock-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mock-title strong {
  font-size: 0.98rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  background: var(--brand-50);
  color: var(--brand);
  white-space: nowrap;
}

.chip--green {
  background: #e8f7ef;
  color: #11804a;
}

.chip--violet {
  background: #f1ebff;
  color: var(--violet);
}

.chip--amber {
  background: #fff4e0;
  color: #9a5b00;
}

.chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.chip .dot.live {
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

.cand {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
  background: var(--gradient);
}

.avatar.a2 {
  background: linear-gradient(135deg, #11804a, #32b37a);
}

.avatar.a3 {
  background: linear-gradient(135deg, #9a5b00, #e0a43a);
}

.cand b {
  display: block;
  font-size: 0.9rem;
}

.cand small {
  color: var(--muted);
}

.meter {
  width: 72px;
  height: 6px;
  border-radius: 99px;
  background: var(--brand-100);
  overflow: hidden;
  margin-top: 6px;
}

.meter span {
  display: block;
  height: 100%;
  background: var(--gradient);
  border-radius: 99px;
}

.score {
  text-align: right;
  font-weight: 700;
  font-size: 0.86rem;
}

.mock-float {
  position: absolute;
  right: -14px;
  bottom: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: 250px;
}

.mock-float .icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  margin: 0;
  flex: none;
}

.mock-float b {
  display: block;
  font-size: 0.84rem;
}

.mock-float small {
  color: var(--muted);
  font-size: 0.76rem;
}

@media (max-width: 640px) {
  .mock-float {
    position: static;
    margin: 0 18px 18px;
    max-width: none;
  }
}

/* Stage strip (product page) */

.stages {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  counter-reset: stage;
}

.stage {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 16px;
  box-shadow: var(--shadow);
}

.stage::before {
  counter-increment: stage;
  content: counter(stage, decimal-leading-zero);
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.stage h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.stage p {
  font-size: 0.86rem;
  margin: 0;
  color: var(--muted);
}

@media (max-width: 1060px) {
  .stages {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .stages {
    grid-template-columns: 1fr;
  }
}

/* Feature rows (product page) */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.feature-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.feature-row.reverse .feature-copy {
  order: 2;
}

.feature-copy h3 {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 800;
}

.feature-copy .check-list {
  margin-top: 18px;
}

@media (max-width: 960px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-row.reverse .feature-copy {
    order: 0;
  }
}

/* Mini calendar + call mocks */

.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.slot {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  font-weight: 600;
  font-size: 0.82rem;
}

.slot small {
  display: block;
  color: var(--muted);
  font-weight: 500;
}

.slot.is-picked {
  border-color: var(--brand);
  background: var(--brand-50);
  color: var(--brand);
}

.wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 36px;
}

.wave span {
  width: 4px;
  border-radius: 4px;
  background: var(--gradient);
  animation: wave 1.2s ease-in-out infinite;
}

.wave span:nth-child(2n) {
  animation-delay: 0.15s;
}

.wave span:nth-child(3n) {
  animation-delay: 0.3s;
}

.wave span:nth-child(5n) {
  animation-delay: 0.45s;
}

@keyframes wave {
  0%,
  100% {
    height: 8px;
  }
  50% {
    height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wave span,
  .chip .dot.live {
    animation: none;
  }

  .wave span {
    height: 18px;
  }

  html {
    scroll-behavior: auto;
  }
}

.qa {
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 10px 12px;
}

.qa small {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  margin-bottom: 2px;
}

/* Timeline (company page) */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  position: relative;
}

.timeline li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 24px;
  padding: 0 0 32px;
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 99px;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.timeline li:last-child::before {
  display: none;
}

.timeline .year {
  font-weight: 800;
  color: var(--brand);
  font-size: 1.05rem;
}

.timeline .body {
  position: relative;
  padding-left: 28px;
}

.timeline .body::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brand);
}

.timeline h3 {
  margin-bottom: 4px;
}

.timeline p {
  margin: 0;
}

@media (max-width: 640px) {
  .timeline li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .timeline li::before {
    left: 6px;
    top: 34px;
  }

  .timeline .body {
    padding-left: 28px;
  }

  .timeline .body::before {
    left: 0;
  }
}

/* CTA band */

.cta {
  background: var(--gradient);
  color: #fff;
  border-radius: 28px;
  padding: 64px 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.cta h2,
.cta p {
  color: #fff;
}

.cta p {
  opacity: 0.9;
  margin: 0;
}

.cta .btn-row {
  justify-content: flex-end;
}

.cta .btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 860px) {
  .cta {
    grid-template-columns: 1fr;
    padding: 40px 28px;
  }

  .cta .btn-row {
    justify-content: flex-start;
  }
}

/* FAQ */

.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 22px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--brand);
  flex: none;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  padding-bottom: 18px;
  margin: 0;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.contact-item:last-child {
  border-bottom: 0;
}

.contact-item .icon {
  margin: 0;
  flex: none;
}

.contact-item span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-item a,
.contact-item address {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}

/* Footer */

.site-footer {
  background: #0b1020;
  color: #c6cbe0;
  padding: 64px 0 32px;
  margin-top: 0;
}

.site-footer a {
  color: #c6cbe0;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-grid h4 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 0.94rem;
}

.site-footer .logo {
  color: #fff;
}

.site-footer .logo small {
  color: #8e95b2;
}

.site-footer p {
  color: #a3aac4;
  font-size: 0.94rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #222a44;
  font-size: 0.86rem;
  color: #8e95b2;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Reveal on scroll — content is visible without JS */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
