:root {
  color-scheme: light;
  --ink: #10201d;
  --muted: #5d6f69;
  --paper: #f7faf7;
  --line: rgba(16, 32, 29, 0.12);
  --teal: #00796b;
  --mint: #d9f3ee;
  --lime: #d8f26b;
  --coral: #ff7d62;
  --blue: #4f7cff;
  --shadow: 0 24px 80px rgba(10, 31, 29, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 14%, rgba(216, 242, 107, 0.25), transparent 26rem),
    radial-gradient(circle at 88% 4%, rgba(79, 124, 255, 0.16), transparent 28rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 64px);
  background: rgba(247, 250, 247, 0.82);
  border-bottom: 1px solid rgba(16, 32, 29, 0.08);
  backdrop-filter: blur(18px);
}

.brand,
nav,
footer div,
.hero-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  font-size: 1.08rem;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

nav {
  gap: clamp(10px, 2.6vw, 28px);
  color: var(--muted);
  font-size: 0.94rem;
}

nav a,
footer a,
.text-link {
  transition: color 160ms ease, transform 160ms ease;
}

nav a:hover,
footer a:hover,
.text-link:hover {
  color: var(--teal);
}

.github-link {
  color: var(--ink);
  font-weight: 700;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: clamp(30px, 5vw, 72px);
  padding: 52px clamp(18px, 5vw, 64px) 36px;
  overflow: hidden;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(3.1rem, 6.6vw, 7.8rem);
  line-height: 0.94;
  letter-spacing: 0;
  max-width: 880px;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 16px 0 8px;
  font-size: 1.15rem;
}

.lead {
  max-width: 590px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 800;
  border: 1px solid transparent;
}

.primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 30px rgba(16, 32, 29, 0.18);
}

.secondary {
  background: rgba(255, 255, 255, 0.58);
  border-color: var(--line);
}

.hero-stage {
  position: relative;
  min-height: 620px;
  isolation: isolate;
}

.signal-ring {
  position: absolute;
  border: 2px solid rgba(0, 121, 107, 0.24);
  border-radius: 50%;
  inset: 9%;
  animation: pulse 5s ease-in-out infinite;
}

.ring-two {
  inset: 20%;
  border-color: rgba(255, 125, 98, 0.24);
  animation-delay: 1.6s;
}

.phone-shot,
.desktop-shot,
.showcase img,
.screens img {
  border: 1px solid rgba(16, 32, 29, 0.12);
  box-shadow: var(--shadow);
}

.phone-shot {
  position: absolute;
  width: min(42vw, 330px);
  left: 2%;
  bottom: 4%;
  border-radius: 28px;
  transform: rotate(-4deg);
  animation: floatPhone 6s ease-in-out infinite;
}

.desktop-shot {
  position: absolute;
  width: min(64vw, 720px);
  right: 0;
  top: 6%;
  border-radius: 14px;
  transform: rotate(2deg);
  animation: floatDesktop 7s ease-in-out infinite;
}

.trust-strip,
.workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 clamp(18px, 5vw, 64px);
  border: 1px solid var(--line);
  background: var(--line);
}

.trust-strip div,
.workflow article {
  min-height: 126px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.62);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  font-size: 1.05rem;
}

.trust-strip span,
.copy-stack,
.section p,
.workflow p,
.cta p,
footer {
  color: var(--muted);
  line-height: 1.65;
}

.section {
  padding: clamp(72px, 10vw, 132px) clamp(18px, 5vw, 64px);
}

.two-column,
.showcase,
.security-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: start;
}

.copy-stack {
  font-size: 1.08rem;
}

.copy-stack p:first-child {
  margin-top: 0;
}

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

.workflow span {
  color: var(--coral);
  font-weight: 900;
}

.showcase {
  align-items: center;
  background: #10201d;
  color: #fff;
}

.showcase .eyebrow,
.showcase .text-link {
  color: var(--lime);
}

.showcase p {
  color: rgba(255, 255, 255, 0.74);
}

.showcase img {
  border-radius: 16px;
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  font-weight: 850;
}

.security-grid {
  align-items: center;
}

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

.check-list li {
  padding: 18px 20px;
  border-left: 4px solid var(--teal);
  background: rgba(255, 255, 255, 0.72);
}

.screens {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 3vw, 28px);
  padding: 0 clamp(18px, 5vw, 64px) clamp(72px, 10vw, 132px);
}

.screens img {
  width: 100%;
  border-radius: 24px;
}

.cta {
  margin: 0 clamp(18px, 5vw, 64px) clamp(36px, 6vw, 76px);
  padding: clamp(42px, 8vw, 86px);
  background:
    linear-gradient(135deg, rgba(216, 242, 107, 0.9), rgba(217, 243, 238, 0.9)),
    #d9f3ee;
  border-radius: 8px;
}

.cta p {
  max-width: 620px;
  color: rgba(16, 32, 29, 0.72);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 26px clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

footer div {
  gap: 18px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}

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

@keyframes pulse {
  0%, 100% {
    transform: scale(0.96);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.9;
  }
}

@keyframes floatPhone {
  0%, 100% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-16px) rotate(-2deg);
  }
}

@keyframes floatDesktop {
  0%, 100% {
    transform: translateY(0) rotate(2deg);
  }
  50% {
    transform: translateY(12px) rotate(1deg);
  }
}

@media (max-width: 920px) {
  .site-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }

  .hero,
  .two-column,
  .showcase,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-stage {
    min-height: 520px;
  }

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

  .workflow,
  .screens {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(2.8rem, 18vw, 4.3rem);
  }

  .hero-stage {
    min-height: 410px;
  }

  .desktop-shot {
    width: 96%;
  }

  .phone-shot {
    width: 46%;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
