:root {
  --bg: #fbfaf6;
  --bg-soft: #f3ecdf;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #fffdf8;
  --line: rgba(73, 58, 31, 0.12);
  --text: #17130f;
  --muted: #6e6558;
  --blue: #4e7ff2;
  --green: #9fd9bb;
  --amber: #eac57b;
  --rose: #e6aea6;
  --shadow: 0 20px 60px rgba(73, 58, 31, 0.10);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(78, 127, 242, 0.13), transparent 26%),
    radial-gradient(circle at 90% 15%, rgba(159, 217, 187, 0.18), transparent 24%),
    linear-gradient(180deg, #fffdf9 0%, #f7f1e6 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  overflow: hidden;
}

.nav,
.hero,
.integrations-strip,
.feature-section,
.closing-panel {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.nav {
  margin-top: 20px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 14px;
  z-index: 20;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 251, 243, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(73, 58, 31, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), #74b58f);
  box-shadow: 0 10px 24px rgba(78, 127, 242, 0.22);
}

.brand-word {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 28px;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.nav-cta,
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #5b8cf1, #2e68d6);
  box-shadow: 0 14px 32px rgba(46, 104, 214, 0.18);
}

.nav-cta:hover,
.btn:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.64);
}

.hero {
  padding: 72px 0 40px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: center;
}

.eyebrow,
.section-tag {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 800;
  color: #7b705f;
}

.hero h1,
.feature-copy h2,
.closing-panel h2 {
  margin: 12px 0 0;
  font-family: "Instrument Serif", serif;
  font-size: clamp(2.3rem, 4vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-text,
.feature-copy p,
.closing-panel p,
.info-card p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-text {
  max-width: 560px;
  margin-top: 22px;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-visual {
  position: relative;
  min-height: 460px;
}

.hero-card,
.screen-frame,
.info-card,
.mini-stat,
.stack-card,
.closing-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-card,
.screen-frame {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--surface-strong);
}

.hero-card {
  position: absolute;
  inset: 24px 0 0 36px;
  transform: perspective(1800px) rotateY(-8deg) rotateX(3deg);
  animation: floatCard 8s ease-in-out infinite;
}

.hero-card img,
.screen-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #f08d8d; }
.dot-amber { background: #eac57b; }
.dot-green { background: #93d0ab; }

.hero-label {
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

.floating-note {
  position: absolute;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 26px rgba(73, 58, 31, 0.08);
  color: #5f564a;
  font-size: 0.9rem;
  font-weight: 700;
  animation: drift 6s ease-in-out infinite;
}

.note-a { top: 0; left: 6px; }
.note-b { top: 92px; right: 6px; animation-delay: -2s; }
.note-c { bottom: 8px; left: 0; animation-delay: -4s; }

.integrations-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 0 18px;
}

.integrations-strip span {
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: #655c50;
  font-size: 0.92rem;
}

.feature-section {
  padding: 72px 0;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: center;
}

.feature-section.reverse {
  grid-template-columns: 1.1fr 0.9fr;
}

.step {
  font-family: "Instrument Serif", serif;
  font-size: 1.25rem;
  color: #8b7d67;
  margin-bottom: 10px;
}

.feature-copy h2,
.closing-panel h2 {
  font-size: clamp(2rem, 3vw, 3.4rem);
}

.feature-shot {
  position: relative;
}

.info-card,
.mini-stat {
  border-radius: var(--radius-lg);
}

.info-card {
  padding: 28px;
}

.info-card strong,
.stack-card strong,
.mini-stat-value {
  display: block;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.soft-green { background: linear-gradient(180deg, rgba(159, 217, 187, 0.28), rgba(255, 255, 255, 0.9)); }
.soft-blue { background: linear-gradient(180deg, rgba(78, 127, 242, 0.18), rgba(255, 255, 255, 0.88)); }
.soft-amber { background: linear-gradient(180deg, rgba(234, 197, 123, 0.22), rgba(255, 255, 255, 0.88)); }
.soft-rose { background: linear-gradient(180deg, rgba(230, 174, 166, 0.20), rgba(255, 255, 255, 0.88)); }

.mini-stat {
  margin-top: 16px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.68);
}

.mini-stat-label {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.screenshot .screen-frame {
  transform: translateY(0);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.screenshot .screen-frame:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(73, 58, 31, 0.14);
}

.stack-cards {
  display: grid;
  gap: 16px;
}

.stack-card {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.stack-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.closing-panel {
  margin-top: 18px;
  margin-bottom: 90px;
  padding: 36px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(243, 236, 223, 0.84));
}

.closing-panel a[href^="mailto:"] {
  color: var(--blue);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  animation: revealUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-delay-1 { animation-delay: 0.12s; }
.reveal-delay-2 { animation-delay: 0.24s; }

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatCard {
  0%, 100% { transform: perspective(1800px) rotateY(-8deg) rotateX(3deg) translateY(0); }
  50% { transform: perspective(1800px) rotateY(-6deg) rotateX(2deg) translateY(-10px); }
}

@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 1040px) {
  .hero,
  .feature-section,
  .feature-section.reverse {
    grid-template-columns: 1fr;
  }

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

  .hero-card {
    inset: 26px 0 0 0;
  }
}

@media (max-width: 760px) {
  .nav {
    border-radius: 28px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.94rem;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .nav-cta {
    width: 100%;
  }

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

  .floating-note {
    font-size: 0.8rem;
  }

  .closing-panel {
    padding: 24px;
  }
}
