:root {
  --bg: #0d0d0d;
  --panel: #141414;
  --border: #2a2a2a;
  --text: #f5f3ee;
  --text-muted: rgba(245, 243, 238, 0.65);
  --text-faint: rgba(245, 243, 238, 0.4);
  --text-faintest: rgba(245, 243, 238, 0.35);
  --accent: #4fb8a4;
  --accent-light: #63c9ae;
  --accent-hover: #7dd9c0;
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --font-serif: 'Instrument Serif', serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  font-family: var(--font-body);
  color: var(--text);
}

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

a:hover { color: var(--accent-hover); }

::selection { background: var(--accent); color: var(--bg); }

input::placeholder { color: var(--text-faintest); }

.page {
  min-height: 100vh;
}

/* NAV */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 32px 0;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 22px;
  height: 22px;
  display: block;
}

.nav-link {
  font-size: 14px;
  color: rgba(245, 243, 238, 0.7);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.nav-tally-icon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: inline-block;
  vertical-align: -3px;
}

.nav-arrow {
  font-size: 12px;
  display: inline-block;
  transition: transform 0.2s ease;
}

.nav-link:hover .nav-arrow {
  transform: translateY(2px);
}

/* HERO */
.hero {
  max-width: 780px;
  margin: 0 auto;
  padding: 120px 32px 72px;
  text-align: center;
}

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

@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow,
  .hero .hero-title,
  .hero .hero-sub,
  .hero .btn-primary {
    opacity: 0;
    animation: fadeUp 0.7s ease forwards;
  }
  .hero .eyebrow { animation-delay: 0.05s; }
  .hero .hero-title { animation-delay: 0.16s; }
  .hero .hero-sub { animation-delay: 0.28s; }
  .hero .btn-primary { animation-delay: 0.4s; }
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--text);
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .hero-title {
    background: linear-gradient(100deg, var(--text) 35%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

.hero-sub {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--bg) !important;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(79, 184, 164, 0.5);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary span {
  display: inline-block;
  transition: transform 0.2s ease;
}

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

/* SECTION */
.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px 72px;
}

.label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.label-accent {
  color: var(--accent-light);
  margin-bottom: 24px;
}

/* ABOUT UPLIFT */
.about {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}

.about-body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

/* TALLY SHOWCASE */
.showcase-eyebrow {
  text-align: center;
}

.showcase {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.showcase-copy {
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.showcase-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

.showcase-logo {
  height: 52px;
  width: auto;
  display: block;
}

.showcase-tagline {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.showcase-desc {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(245, 243, 238, 0.75);
  margin: 8px 0;
}

.feature-row {
  display: flex;
  gap: 24px;
  margin-top: 8px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(245, 243, 238, 0.7);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.link-underline {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text) !important;
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1px solid var(--accent);
  width: fit-content;
  padding-bottom: 2px;
  transition: gap 0.2s ease, border-color 0.2s ease;
}

.link-underline:hover {
  gap: 12px;
  border-color: var(--accent-hover);
}

.showcase-media {
  background: radial-gradient(ellipse at 50% 50%, rgba(79, 184, 164, 0.14), transparent 65%), var(--bg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--border);
  position: relative;
}

.showcase-frame {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border);
  transform: perspective(1400px) rotateY(-4deg) rotateX(1deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.showcase-media:hover .showcase-frame {
  transform: perspective(1400px) rotateY(-1deg) rotateX(0deg) scale(1.015);
  box-shadow: 0 36px 70px -18px rgba(0, 0, 0, 0.65), 0 0 0 1px var(--border);
}

.showcase-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* Stylized recreation of the Tally dashboard, built from Uplift's own
   design tokens rather than a photo, so it reads clearly at any size. */
.mock-dash {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #101010;
  padding: 7% 8%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6%;
}

.mock-dash-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mock-dash-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.mock-dash-title {
  font-size: clamp(9px, 1.3vw, 13px);
  color: var(--text-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mock-dash-badge {
  margin-left: auto;
  font-size: clamp(7px, 1vw, 10px);
  color: var(--accent-light);
  border: 1px solid rgba(79, 184, 164, 0.35);
  border-radius: 100px;
  padding: 2px 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mock-dash-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6%;
  flex: 1;
}

.mock-dash-label {
  font-size: clamp(8px, 1.05vw, 11px);
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.mock-dash-value {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(24px, 3.8vw, 40px);
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1;
}

.mock-dash-meta {
  font-size: clamp(7px, 0.95vw, 10px);
  color: var(--text-faintest);
  margin-top: 8px;
}

.mock-dash-chart {
  display: flex;
  align-items: flex-end;
  gap: 8%;
  height: 100%;
  flex: 0 0 32%;
}

.mock-dash-chart span {
  flex: 1;
  background: linear-gradient(180deg, var(--accent-light), var(--accent));
  border-radius: 2px 2px 0 0;
  opacity: 0.85;
}

.mock-dash-tiles {
  display: flex;
  gap: 5%;
}

.mock-dash-tile {
  flex: 1;
  background: #161616;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8% 6%;
  min-width: 0;
}

.mock-dash-tile-label {
  font-size: clamp(7px, 0.9vw, 10px);
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.mock-dash-tile-value {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(14px, 1.9vw, 20px);
  color: var(--text);
  white-space: nowrap;
}

.mock-dash-tile-accent .mock-dash-tile-value {
  color: var(--accent-light);
}

/* STORY */
.story {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 88px;
  line-height: 0.5;
  color: var(--accent);
  margin-bottom: 16px;
}

.quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text);
  max-width: 760px;
  margin: 0 auto;
}

/* WHAT'S NEXT */
.roadmap {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.roadmap-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.roadmap-body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* PHILOSOPHY */
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.01em;
  margin: 0 0 48px;
  text-align: center;
}

.flow {
  display: flex;
  flex-direction: column;
  gap: 72px;
  max-width: 620px;
  margin: 0 auto;
}

.flow-step {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  text-align: left;
  gap: 20px;
}

.flow-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.flow-card {
  flex: 1;
  min-width: 0;
  transition: transform 0.25s ease;
}

.flow-step:hover .flow-card {
  transform: translateX(4px);
}

.philosophy-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 12px;
}

.philosophy-desc {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(245, 243, 238, 0.6);
  margin: 0;
}

/* NEWSLETTER */
.newsletter {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 32px 96px;
  text-align: center;
}

.newsletter-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.newsletter-sub {
  font-size: 16px;
  color: rgba(245, 243, 238, 0.6);
  margin: 0 0 28px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.newsletter-input {
  flex: 1;
  max-width: 320px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 16px;
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-body);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 184, 164, 0.15);
}

.btn-submit {
  white-space: nowrap;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: no-preference) {
  .btn-submit.is-success {
    animation: pulse 0.4s ease;
  }
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo .logo-icon {
  width: 18px;
  height: 18px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-faint);
}

.footer-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
}

.footer-links a {
  color: rgba(245, 243, 238, 0.6);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-faintest);
}

/* DIVIDERS */
.divider {
  position: relative;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
  margin: 36px auto;
}

.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 56px;
  height: 1px;
  background: rgba(245, 243, 238, 0.12);
  transform: translateY(-50%);
}

.divider::before { right: 100%; margin-right: 12px; }
.divider::after { left: 100%; margin-left: 12px; }

/* SCROLL REVEAL */
.reveal {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

}

/* RESPONSIVE */
@media (max-width: 860px) {
  .hero-title { font-size: 40px; }
  .hero { padding: 88px 24px 72px; }
  .showcase { grid-template-columns: 1fr; }
  .showcase-media { border-left: none; border-top: 1px solid var(--border); }
  .showcase-copy { padding: 48px 32px; }
  .flow { gap: 48px; }
  .quote { font-size: 22px; }
  .about-title { font-size: 26px; }
  .roadmap-title { font-size: 22px; }
  .newsletter-form { flex-direction: column; align-items: center; }
  .newsletter-input { max-width: 100%; width: 100%; }
  .btn-submit { width: 100%; justify-content: center; }
}
