/* Cleverfolio WA — public home (v3) */

:root {
  --ink: #0e1a1f;
  --ink-soft: #24353c;
  --muted: #5a6e76;
  --paper: #eef3f2;
  --paper-2: #e4ecea;
  --teal: #0d9488;
  --teal-deep: #0f5c56;
  --coral: #e85d4c;
  --line: rgba(14, 26, 31, 0.12);
  --max: 1100px;
  --pad: clamp(1.25rem, 4vw, 2.25rem);
}

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

html {
  scroll-behavior: smooth;
}

body.wa-home {
  margin: 0;
  min-height: 100%;
  font-family: "Figtree", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a {
  color: inherit;
}

.wa-home-wrap {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* —— dark stage (header + hero together) —— */
.wa-home-stage {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: #f4f7f6;
  background:
    radial-gradient(ellipse 55% 45% at 85% 20%, rgba(232, 93, 76, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 55% at 10% 80%, rgba(13, 148, 136, 0.35), transparent 60%),
    linear-gradient(145deg, #0f5c56 0%, #0e1a1f 48%, #12252b 100%);
  overflow: hidden;
}

.wa-home-bar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--pad);
  flex-shrink: 0;
}

.wa-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  z-index: 100;
  font-weight: 700;
}

.wa-skip:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.wa-home-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #fff;
  font-family: "Bricolage Grotesque", "Figtree", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.wa-home-mark {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.35rem;
  background: linear-gradient(135deg, var(--coral), #c2410c);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: "Bricolage Grotesque", "Figtree", sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.wa-home-bar-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.wa-home-bar-link:hover {
  color: #fff;
}

.wa-home-hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 1.5rem var(--pad) 3rem;
}

.wa-home-hero-copy {
  min-width: 0;
  animation: waRise 0.7s ease both;
}

.wa-home-name {
  margin: 0 0 0.75rem;
  font-family: "Bricolage Grotesque", "Figtree", sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 6.5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #fff;
}

.wa-home-title {
  margin: 0 0 0.85rem;
  font-family: "Bricolage Grotesque", "Figtree", sans-serif;
  font-weight: 600;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.92);
}

.wa-home-lede {
  margin: 0 0 1.5rem;
  max-width: 32rem;
  font-size: 1.02rem;
  line-height: 1.55;
  color: rgba(238, 243, 242, 0.72);
}

.wa-home-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
  align-items: center;
}

.wa-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.3rem;
  border-radius: 0.5rem;
  background: var(--coral);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.wa-home-btn:hover {
  background: #d14a3a;
  transform: translateY(-1px);
}

.wa-home-btn-ghost {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 0.1rem;
}

.wa-home-btn-ghost:hover {
  color: #fff;
  border-bottom-color: #fff;
}

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

.wa-home-btn-light:hover {
  background: #e8eeec;
}

.wa-home-hero-visual {
  min-width: 0;
  animation: waRise 0.7s ease 0.12s both;
}

.wa-home-stream {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.wa-home-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.45rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  animation: waFade 0.5s ease both;
}

.wa-home-line:nth-child(1) { animation-delay: 0.15s; }
.wa-home-line:nth-child(2) { animation-delay: 0.25s; }
.wa-home-line:nth-child(3) { animation-delay: 0.35s; }
.wa-home-line:nth-child(4) { animation-delay: 0.45s; }
.wa-home-line:nth-child(5) { animation-delay: 0.55s; }
.wa-home-line:nth-child(6) { animation-delay: 0.65s; }

.wa-home-line-shift {
  margin-left: 0.85rem;
}

.wa-home-line span {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wa-home-line em {
  font-style: normal;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5eead4;
  flex-shrink: 0;
}

/* —— sections —— */
.wa-home-section {
  padding: clamp(3rem, 7vw, 4.75rem) 0;
  background: var(--paper);
}

.wa-home-section-alt {
  background: var(--paper-2);
}

.wa-home-section-label {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-deep);
}

.wa-home-section-title {
  margin: 0 0 2rem;
  max-width: 22ch;
  font-family: "Bricolage Grotesque", "Figtree", sans-serif;
  font-weight: 700;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.wa-home-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem 2rem;
}

.wa-home-steps li {
  padding-top: 1.1rem;
  border-top: 2px solid var(--ink);
  min-width: 0;
}

.wa-home-step-num {
  display: block;
  margin-bottom: 0.7rem;
  font-family: "Bricolage Grotesque", "Figtree", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--coral);
}

.wa-home-steps h3 {
  margin: 0 0 0.45rem;
  font-family: "Bricolage Grotesque", "Figtree", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.wa-home-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.wa-home-capabilities {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem 2.5rem;
  align-items: start;
}

.wa-home-cap-intro .wa-home-section-title {
  margin-bottom: 0;
}

.wa-home-cap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.5rem;
}

.wa-home-cap-list li {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}

.wa-home-cap-list strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: "Bricolage Grotesque", "Figtree", sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.wa-home-cap-list span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.wa-home-close {
  padding: clamp(3rem, 7vw, 4.5rem) 0;
  background:
    radial-gradient(ellipse 50% 70% at 90% 40%, rgba(13, 148, 136, 0.22), transparent 55%),
    linear-gradient(165deg, #0e1a1f 0%, #134e4a 100%);
  color: #f4f7f6;
}

.wa-home-close-title {
  margin: 0 0 0.65rem;
  font-family: "Bricolage Grotesque", "Figtree", sans-serif;
  font-weight: 800;
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.wa-home-close-lede {
  margin: 0 0 1.5rem;
  max-width: 28rem;
  color: rgba(238, 243, 242, 0.72);
  font-size: 1.02rem;
}

.wa-home-foot {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.wa-home-foot-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 1.25rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.wa-home-foot a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.wa-home-foot a:hover {
  color: var(--coral);
}

@keyframes waRise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes waFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .wa-home-hero {
    grid-template-columns: 1fr;
    padding-top: 1.25rem;
    padding-bottom: 2.5rem;
  }

  .wa-home-hero-visual {
    order: -1;
    max-width: 420px;
  }

  .wa-home-steps {
    grid-template-columns: 1fr;
  }

  .wa-home-capabilities {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .wa-home-stage {
    min-height: auto;
  }

  .wa-home-cap-list {
    grid-template-columns: 1fr;
  }

  .wa-home-line-shift {
    margin-left: 0;
  }

  .wa-home-name {
    font-size: clamp(2.25rem, 11vw, 3rem);
  }
}

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

  .wa-home-hero-copy,
  .wa-home-hero-visual,
  .wa-home-line {
    animation: none !important;
  }
}
