:root {
  --bg: #fff;
  --grid: rgba(0, 0, 0, 0.06);
  --text: #1f2937;
  --muted: #6b7280;
  --brand: #3f8ba4;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 10px 10px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 10px 10px,
    var(--bg);
  min-height: 100vh;
}

.container {
  max-width: 1100px;
  padding: 20px 20px 20px;
  margin: 0 auto;
  text-align: center;
}

/* Logo */
.logo {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  margin: 0px auto 20px;
}
.logo svg {
  display: block;
  width: 100%;
  height: 100%;
  color: var(--brand);
}

/* Headline */
h1 {
  margin: 0px auto 30px;
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.5;
  font-weight: 500;
  max-width: 650px;
  color: var(--text);
}
.accent {
  color: var(--brand);
  font-weight: 700;
  position: relative;
  white-space: nowrap;
}

.rotator {
  display: inline-grid;
  white-space: nowrap;
  min-height: 1em;
  text-align: center;
}
.rotator .phrase {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(6px);
  will-change: opacity, transform;
  animation: phraseCycle 28s ease-in-out infinite both;
}

.rotator .phrase:nth-child(1) {
  animation-delay: 0s;
}
.rotator .phrase:nth-child(2) {
  animation-delay: 4s;
}
.rotator .phrase:nth-child(3) {
  animation-delay: 8s;
}
.rotator .phrase:nth-child(4) {
  animation-delay: 12s;
}
.rotator .phrase:nth-child(5) {
  animation-delay: 16s;
}
.rotator .phrase:nth-child(6) {
  animation-delay: 20s;
}
.rotator .phrase:nth-child(7) {
  animation-delay: 24s;
}

@keyframes phraseCycle {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  1.8% {
    opacity: 1;
    transform: translateY(0);
  }
  12.5% {
    opacity: 1;
    transform: translateY(0);
  }
  14.2857% {
    opacity: 0;
    transform: translateY(-6px);
  }
  100% {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rotator .phrase {
    animation: none !important;
    opacity: 1;
    display: none;
  }
  .rotator .phrase:first-child {
    display: inline;
  }
}

/* Hero */
.hero {
  margin: 0px auto 40px;
  position: relative;
  height: clamp(200px, 35vw, 330px);
  max-width: 1040px;
}
.card {
  position: absolute;
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--brand);
  height: 100%;
  width: clamp(260px, 45.5vw, 429px);
  top: 0;
  left: 50%;
  transform-origin: center center;
  will-change: transform, opacity;
}
.card video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.card img {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes cardCycle {
  0% {
    transform: translateX(-70%) rotate(-2deg) scale(0.96);
    z-index: 1;
    opacity: 0.45;
  }
  30% {
    transform: translateX(-70%) rotate(-2deg) scale(0.96);
    z-index: 1;
    opacity: 0.45;
  }
  33.333% {
    transform: translateX(-50%) rotate(0) scale(1);
    z-index: 3;
    opacity: 1;
  }
  63.333% {
    transform: translateX(-50%) rotate(0) scale(1);
    z-index: 3;
    opacity: 1;
  }
  66.666% {
    transform: translateX(-30%) rotate(2deg) scale(0.96);
    z-index: 2;
    opacity: 0.45;
  }
  96.666% {
    transform: translateX(-30%) rotate(2deg) scale(0.96);
    z-index: 2;
    opacity: 0.45;
  }
  100% {
    transform: translateX(-95%) rotate(-2deg) scale(0.96);
    z-index: 1;
    opacity: 0.45;
  }
}

.hero .card {
  animation: cardCycle 21s linear infinite both;
}

.hero .card.left {
  animation-delay: 0s;
}
.hero .card.center {
  animation-delay: -7s;
}
.hero .card.right {
  animation-delay: -14s;
}

@media (prefers-reduced-motion: reduce) {
  .hero .card {
    animation: none !important;
    transform: translateX(-50%) rotate(0) scale(1);
    opacity: 1;
  }
}

/* Signup */
.signup {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.subcopy {
  color: var(--muted);
  font-size: 15px;
}

.signup > form,
.signup > div,
.signup .eo-form,
.signup .emailoctopus-form {
  width: min(620px, 92%);
}

/* Socials */
.socials {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}
.socials a {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  color: var(--brand);
}
.socials a:hover {
  transform: translateY(-1px);
  background: #fff;
}

/* Blog */
.blog {
  margin: 0 auto 40px;
  width: min(840px, 92%);
}
.blog h2 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
}
.blog .content a {
  color: var(--brand);
  text-decoration: none;
}
.blog .content a:hover {
  text-decoration: underline;
}
.post-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.post-link:hover h3 {
  text-decoration: underline;
}
.posts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  text-align: left;
}
@media (min-width: 700px) {
  .posts {
    grid-template-columns: 1fr 1fr;
  }
}
.post {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.04);
}
.post img {
  width: 100%;
  height: auto;
  display: block;
}
.post .content {
  padding: 14px;
}
.post h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.post .meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}
.post p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}
