/* ============================================================
   Altus AI — homepage stylesheet
   Palette: paper white + baby blue, ink for text and borders.
   Look: friendly print / zine — solid offset shadows, ink
   borders, serif headlines, the odd handwritten note.
   ============================================================ */

:root {
  --paper: #ffffff;
  --mist: #eef6fc;        /* pale baby-blue section background */
  --sky: #a9d6f3;         /* baby blue */
  --sky-soft: #d8ebf9;    /* lighter baby blue */
  --sky-deep: #2e7fb8;    /* accessible blue for links / small text */
  --ink: #22303c;
  --ink-soft: #55656f;
  --line: #22303c;
  --radius: 16px;
  --shadow-sky: 6px 6px 0 var(--sky);
  --shadow-sky-sm: 4px 4px 0 var(--sky);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-hand: 'Caveat', cursive;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: var(--sky);
  color: var(--ink);
}

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

a {
  color: inherit;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 28px;
  border: 2px solid var(--line);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}

.btn-ink {
  background: var(--ink);
  color: #ffffff;
  box-shadow: var(--shadow-sky);
}

.btn-ink:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--sky);
}

.btn-ink:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--sky);
}

.btn-paper {
  background: var(--paper);
  color: var(--ink);
}

.btn-paper:hover {
  background: var(--sky-soft);
}

.btn .btn-arrow {
  transition: transform 0.15s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* ---------- Navigation ---------- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--line);
}

.nav-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 2px solid var(--line);
  object-fit: cover;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 2px;
  background-image: linear-gradient(var(--sky-deep), var(--sky-deep));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: color 0.2s ease, background-size 0.2s ease;
}

.nav-link:hover {
  color: var(--ink);
  background-size: 100% 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-actions .btn {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle .bar {
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.active .bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile dropdown */
.nav-mobile {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--paper);
  border-bottom: 2px solid var(--line);
  padding: 12px 24px 24px;
  flex-direction: column;
  gap: 4px;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  text-decoration: none;
  font-weight: 500;
  padding: 12px 4px;
  border-bottom: 1px dashed var(--sky);
}

.nav-mobile .btn {
  margin-top: 16px;
  border-bottom: 2px solid var(--line);
}

/* ---------- Hero ---------- */

.hero {
  padding: 160px 0 88px;
  position: relative;
  background-image: radial-gradient(var(--sky-soft) 1.5px, transparent 1.6px);
  background-size: 26px 26px;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 35% 40%, var(--paper) 30%, rgba(255, 255, 255, 0) 75%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 28px;
}

.eyebrow-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sky-deep);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 5.2vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.squiggle {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='9' viewBox='0 0 80 9'%3E%3Cpath d='M0 6 Q 10 1, 20 6 T 40 6 T 60 6 T 80 6' fill='none' stroke='%235aabde' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: 0 100%;
  background-size: 80px 9px;
  padding-bottom: 12px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 33rem;
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  list-style: none;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.hero-points svg {
  flex-shrink: 0;
  color: var(--sky-deep);
}

/* Hero call card */

.hero-visual {
  position: relative;
  padding: 24px 12px 8px;
}

.call-card {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--sky);
  transform: rotate(-1.5deg);
  overflow: hidden;
}

.call-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: var(--mist);
  border-bottom: 2px solid var(--line);
  font-size: 0.85rem;
  font-weight: 700;
}

.call-card-top .after-hours {
  font-weight: 500;
  color: var(--sky-deep);
}

.call-lines {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.call-line {
  max-width: 88%;
  padding: 10px 16px;
  border: 2px solid var(--line);
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.call-line .speaker {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sky-deep);
  margin-bottom: 2px;
}

.call-line.ben {
  align-self: flex-start;
  background: var(--mist);
  border-bottom-left-radius: 4px;
}

.call-line.caller {
  align-self: flex-end;
  background: var(--paper);
  border-bottom-right-radius: 4px;
}

.call-card-result {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 20px 20px;
  padding: 12px 16px;
  border: 2px dashed var(--sky-deep);
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--sky-deep);
  background: var(--paper);
}

.hero-note {
  position: absolute;
  right: 4px;
  bottom: -34px;
  font-family: var(--font-hand);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--sky-deep);
  transform: rotate(-3deg);
}

/* ---------- Ticker ---------- */

.ticker {
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  background: var(--sky);
  padding: 14px 0;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 28s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ticker-group span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0 14px;
}

.ticker-group .tick-star {
  font-size: 0.9rem;
  color: var(--ink);
  opacity: 0.55;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Section scaffolding ---------- */

.section {
  padding: 96px 0;
}

.section-mist {
  background: var(--mist);
  border-bottom: 2px solid var(--line);
}

.section-kicker {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sky-deep);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-intro {
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 36rem;
}

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

.section-head.centered {
  text-align: center;
}

.section-head.centered .section-intro {
  margin: 0 auto;
}

/* ---------- Services ---------- */

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

.service-card {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sky);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:nth-child(1) { transform: rotate(-0.6deg); }
.service-card:nth-child(2) { transform: rotate(0.5deg) translateY(10px); }
.service-card:nth-child(3) { transform: rotate(-0.4deg); }

.service-card:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 9px 9px 0 var(--sky);
}

.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: var(--mist);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.service-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--sky);
  -webkit-text-stroke: 1.5px var(--sky-deep);
  line-height: 1;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.service-tagline {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--sky-deep);
  margin-bottom: 12px;
}

.service-card > p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin-bottom: 20px;
}

.service-tags {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.service-tags li {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--sky-soft);
}

/* ---------- Process ---------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding-top: 8px;
}

.process-step + .process-step::before {
  content: '';
  position: absolute;
  top: 34px;
  left: -40px;
  width: 40px;
  border-top: 2px dashed var(--sky-deep);
}

.process-num {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 600;
  line-height: 1;
  color: var(--paper);
  -webkit-text-stroke: 2px var(--ink);
  margin-bottom: 18px;
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.process-step p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ---------- Demo band ---------- */

.demo-band {
  background: var(--sky);
  border-bottom: 2px solid var(--line);
  padding: 72px 0;
}

.demo-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.demo-band h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.demo-band .demo-hand {
  display: block;
  font-family: var(--font-hand);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 10px;
  transform: rotate(-1.5deg);
}

.demo-band .btn-ink {
  box-shadow: 6px 6px 0 var(--paper);
}

.demo-band .btn-ink:hover {
  box-shadow: 8px 8px 0 var(--paper);
}

.demo-band .btn-ink:active {
  box-shadow: 2px 2px 0 var(--paper);
}

/* ---------- CTA ---------- */

.cta {
  padding: 104px 0;
  background-image: radial-gradient(var(--sky-soft) 1.5px, transparent 1.6px);
  background-size: 26px 26px;
}

.cta-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 22px;
  box-shadow: 10px 10px 0 var(--sky);
  padding: 64px 48px;
}

.cta-inner .section-title {
  margin-bottom: 14px;
}

.cta-inner .section-intro {
  margin: 0 auto 32px;
}

.cta-benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 26px;
  list-style: none;
  margin-bottom: 36px;
}

.cta-benefits li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.cta-benefits svg {
  flex-shrink: 0;
  color: var(--sky-deep);
}

.cta-note {
  margin-top: 20px;
  font-family: var(--font-hand);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--sky-deep);
}

.cta-direct {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 2px dashed var(--sky);
}

.cta-direct p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.cta-direct-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  font-size: 1.1rem;
  font-weight: 700;
}

.cta-direct-links a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--sky);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.cta-direct-links a:hover {
  color: var(--sky-deep);
  border-color: var(--sky-deep);
}

.cta-divider {
  color: var(--sky-deep);
}

/* ---------- Footer ---------- */

.footer {
  background: var(--mist);
  border-top: 2px solid var(--line);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo {
  margin-bottom: 14px;
}

.footer-brand p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 22rem;
}

.footer h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 8px;
}

.footer ul a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1.5px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.footer ul a:hover {
  color: var(--sky-deep);
  border-color: var(--sky-deep);
}

.footer-bottom {
  border-top: 2px dashed var(--sky);
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.footer-made {
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--sky-deep);
}

/* ---------- Scroll reveal ---------- */

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

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

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

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

  .ticker-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
  }

  .eyebrow-dot {
    animation: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .nav-menu,
  .nav-actions {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 128px 0 72px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .hero-visual {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .service-card:nth-child(2) {
    transform: rotate(0.5deg);
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 44px;
    max-width: 480px;
    margin: 0 auto;
  }

  .process-step + .process-step::before {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 72px 0;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .cta-inner {
    padding: 44px 24px;
  }

  .demo-band .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .call-line {
    max-width: 100%;
  }

  .hero-note {
    right: 0;
    bottom: -38px;
    font-size: 1.25rem;
  }
}
