.paper-grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}

.home-page main,
.home-page .site-header,
.home-page .site-footer {
  position: relative;
  z-index: 1;
}

.brand-logo {
  display: block;
  width: 38px;
  height: 38px;
}

.brand-logo .brand-mark {
  width: 100%;
  height: 100%;
}

/* ---------------------------------- hero ---------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
  padding: 58px 0 112px;
}

.hero-copy .eyebrow {
  margin-bottom: 26px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 5.6vw, 82px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.hero h1 em {
  position: relative;
  font-style: normal;
  color: var(--accent);
}

.hero h1 em::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 3px;
  bottom: 5px;
  height: 8px;
  border-radius: 999px;
  background: rgba(217, 78, 43, 0.13);
  z-index: -1;
}

.hero-lead {
  max-width: 470px;
  margin-top: 26px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 36px;
}

.hero-text-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.hero-text-link .icon {
  width: 14px;
  height: 14px;
  transition: transform 0.18s ease;
}

.hero-text-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.hero-text-link:hover .icon {
  transform: translateX(3px);
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 460px;
}

.hero-features span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.hero-features i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

/* -------------------------------- hero art -------------------------------- */

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 560px;
  justify-self: end;
  padding: 24px 18px 44px 24px;
}

.visual-orbit {
  position: absolute;
  border: 1px solid rgba(25, 34, 28, 0.09);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  width: 480px;
  height: 480px;
  top: -20px;
  right: -20px;
}

.orbit-two {
  width: 360px;
  height: 360px;
  top: 40px;
  right: 40px;
  border-style: dashed;
}

.visual-frame {
  position: relative;
  z-index: 2;
  padding: 28px 28px 22px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0, rgba(192, 158, 101, 0.18), transparent 34%),
    linear-gradient(145deg, #213129, #16221b);
  color: #f5f1e7;
  box-shadow: 0 38px 80px rgba(25, 34, 28, 0.28);
  transform: rotate(-1.2deg);
  overflow: hidden;
}

.visual-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: inherit;
  pointer-events: none;
}

.visual-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.visual-kicker {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: rgba(245, 241, 231, 0.48);
}

.visual-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 9px;
  color: rgba(245, 241, 231, 0.72);
}

.visual-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #79c594;
  box-shadow: 0 0 0 3px rgba(121, 197, 148, 0.14);
}

.visual-meeting {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 26px;
}

.visual-meeting span {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.visual-meeting small {
  font-size: 10px;
  color: rgba(245, 241, 231, 0.48);
  letter-spacing: 0.04em;
}

.visual-stage {
  width: fit-content;
  margin: 24px auto 18px;
  padding: 4px 30px;
  border-radius: 0 0 999px 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 8px;
  letter-spacing: 0.3em;
  color: rgba(245, 241, 231, 0.42);
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 5px;
  padding: 0 5px;
}

.visual-seat {
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.025);
}

.visual-seat.is-bound {
  border-color: rgba(227, 206, 169, 0.2);
  background: rgba(227, 206, 169, 0.14);
}

.visual-seat.is-lit {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(217, 78, 43, 0.22), 0 0 22px rgba(217, 78, 43, 0.5);
  animation: heroSeat 2.4s ease-in-out infinite;
}

@keyframes heroSeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.25);
  }
}

.visual-caption {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.16em;
  color: rgba(245, 241, 231, 0.28);
}

.visual-card {
  position: absolute;
  z-index: 4;
  left: -20px;
  bottom: 4px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 292px;
  padding: 13px 15px;
  border: 1px solid rgba(25, 34, 28, 0.06);
  border-radius: 17px;
  background: #fffdf8;
  box-shadow: 0 24px 50px rgba(25, 34, 28, 0.2);
  animation: floatCard 5s ease-in-out infinite;
}

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

.visual-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
}

.visual-person {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.visual-person strong {
  font-size: 13px;
}

.visual-person small {
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
}

.visual-seat {
  margin-left: auto;
  padding: 8px 11px;
  border-radius: 10px;
  background: var(--accent);
  color: #fffaf4;
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.visual-tag {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: -6px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--accent);
  color: #fffaf4;
  font-size: 10px;
  font-weight: 600;
  box-shadow: 0 14px 30px rgba(217, 78, 43, 0.28);
  transform: rotate(4deg);
}

.visual-tag span {
  font-size: 13px;
}

/* -------------------------------- meetings -------------------------------- */

.meetings {
  padding-bottom: 92px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}

.section-head h2 {
  margin-top: 13px;
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  margin-left: 6px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(25, 34, 28, 0.07);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  vertical-align: middle;
}

.meeting-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.meeting-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.meeting-card:hover {
  transform: translateY(-4px);
  border-color: rgba(25, 34, 28, 0.18);
  box-shadow: 0 22px 46px rgba(32, 40, 34, 0.1);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 66px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-soft);
}

.date-block span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.date-block strong {
  margin-top: 1px;
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.1;
  font-weight: 700;
}

.card-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted-light);
  transition: background 0.18s ease, color 0.18s ease;
}

.icon-btn:hover {
  background: #f7e7e3;
  color: var(--danger);
}

.meeting-card h3 {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meeting-meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 11px;
  font-size: 11.5px;
  color: var(--muted);
}

.meeting-meta span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.meeting-meta .icon {
  width: 13px;
  height: 13px;
  color: var(--muted-light);
}

.meeting-meta em {
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 22px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.card-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.card-stat strong {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card-stat span {
  font-size: 10px;
  color: var(--muted);
}

.card-progress {
  margin-top: 17px;
}

.progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
}

.progress-head b {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--ink-soft);
}

.progress-bar {
  height: 4px;
  margin-top: 9px;
  border-radius: 999px;
  background: rgba(25, 34, 28, 0.07);
  overflow: hidden;
}

.progress-bar i {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #5a9d78);
  transition: width 0.5s ease;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.card-actions .btn {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  font-size: 12.5px;
}

.card-actions .btn-soft {
  flex: 0 0 auto;
}

.meeting-skeleton {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 76px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 26px;
  background: rgba(255, 253, 248, 0.52);
}

.empty-visual {
  display: grid;
  grid-template-columns: repeat(3, 34px);
  gap: 6px;
  transform: rotate(-4deg);
  margin-bottom: 26px;
}

.empty-visual span {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.empty-visual span.is-accent {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.empty-state h3 {
  font-family: var(--serif);
  font-size: 24px;
}

.empty-state p {
  max-width: 320px;
  margin: 10px 0 24px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
}

/* ----------------------------------- how ---------------------------------- */

.how {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(40px, 5vw, 82px);
  margin-bottom: 92px;
  padding: 58px 56px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 90% 10%, rgba(165, 137, 88, 0.16), transparent 32%),
    linear-gradient(135deg, #1d2c24, #15211a);
  color: #f4f0e6;
  box-shadow: 0 34px 70px rgba(25, 34, 28, 0.18);
}

.how-intro .eyebrow {
  color: rgba(244, 240, 230, 0.5);
}

.how-intro .eyebrow::before {
  background: #d7a96b;
  box-shadow: 0 0 0 4px rgba(215, 169, 107, 0.14);
}

.how-intro h2 {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.3;
  font-weight: 700;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.how-step {
  position: relative;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.step-no {
  position: absolute;
  top: 18px;
  right: 0;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(244, 240, 230, 0.28);
}

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.07);
  color: #e3c08a;
}

.step-icon .icon {
  width: 20px;
  height: 20px;
}

.how-step h3 {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}

.how-step p {
  margin-top: 10px;
  font-size: 11.5px;
  line-height: 1.85;
  color: rgba(244, 240, 230, 0.52);
}

/* ------------------------------- create modal ------------------------------ */

.create-modal {
  width: min(580px, 100%);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.field-row .field + .field {
  margin-top: 0;
}

.config-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.config-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.config-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.config-copy strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
}

.config-copy small {
  font-size: 10.5px;
  color: var(--muted);
}

.stepper-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stepper {
  display: flex;
  align-items: center;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}

.stepper > span {
  padding-left: 10px;
  font-size: 10px;
  color: var(--muted);
}

.stepper button {
  width: 30px;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  transition: background 0.16s ease, color 0.16s ease;
}

.stepper button:hover {
  background: rgba(25, 34, 28, 0.05);
  color: var(--ink);
}

.stepper input {
  width: 34px;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  outline: none;
  -moz-appearance: textfield;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.stepper-x {
  font-size: 11px;
  color: var(--muted-light);
}

.row-config {
  margin-top: 14px;
}

.row-config-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.row-config-head span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.row-config-head small {
  font-size: 10.5px;
  color: var(--muted-light);
}

.row-config-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(146px, 1fr));
  gap: 8px;
  max-height: 190px;
  padding-right: 4px;
  overflow-y: auto;
}

.row-config-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.row-config-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}

.stepper-sm {
  height: 30px;
  border-radius: 8px;
}

.stepper-sm button {
  width: 24px;
  font-size: 14px;
}

.stepper-sm input {
  width: 32px;
  font-size: 12px;
}

.config-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 12px;
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--muted);
}

.config-note .icon {
  margin-top: 2px;
  color: var(--gold);
}

.config-note b {
  color: var(--ink-soft);
  font-family: var(--mono);
}

/* ------------------------------- responsive ------------------------------- */

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr 0.88fr;
    gap: 32px;
  }

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

  .how {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 34px 0 84px;
  }

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

  .hero-visual {
    justify-self: center;
    margin-top: 10px;
  }

  .hero h1 {
    font-size: clamp(44px, 9vw, 64px);
  }

  .how {
    padding: 44px 36px;
  }

  .how-steps {
    gap: 22px;
  }
}

@media (max-width: 720px) {
  .hero-visual {
    max-width: 470px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .visual-card {
    left: -2px;
    min-width: 270px;
  }

  .visual-tag {
    right: 0;
  }

  .how-steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .how-step {
    padding-top: 16px;
  }

  .step-no {
    top: 16px;
  }

  .section-head {
    align-items: center;
  }

  .section-head .btn {
    height: 38px;
    padding: 0 14px;
    font-size: 12px;
  }
}

@media (max-width: 600px) {
  .home-page .site-header .nav-link {
    display: none;
  }

  .home-page .site-header {
    gap: 12px;
  }

  .home-page .site-header .btn {
    height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }

  .hero {
    padding-top: 24px;
    padding-bottom: 66px;
  }

  .hero-copy .eyebrow {
    margin-bottom: 20px;
  }

  .hero h1 {
    font-size: clamp(40px, 11vw, 54px);
    line-height: 1.15;
  }

  .hero-lead {
    margin-top: 20px;
    font-size: 13.5px;
    line-height: 1.8;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-top: 28px;
  }

  .hero-features {
    gap: 16px;
    margin-top: 32px;
  }

  .hero-visual {
    padding: 10px 0 44px;
  }

  .visual-frame {
    padding: 22px 18px 18px;
    border-radius: 24px;
    transform: none;
  }

  .visual-meeting span {
    font-size: 21px;
  }

  .visual-grid {
    gap: 4px;
  }

  .visual-card {
    left: 4px;
    bottom: 0;
    min-width: 0;
    width: calc(100% - 30px);
  }

  .visual-person small {
    font-size: 8px;
  }

  .visual-seat {
    font-size: 15px;
  }

  .visual-tag {
    top: 0;
    padding: 8px 11px;
  }

  .visual-orbit {
    display: none;
  }

  .meeting-grid {
    grid-template-columns: 1fr;
  }

  .meetings {
    padding-bottom: 64px;
  }

  .section-head {
    align-items: flex-end;
  }

  .meeting-card {
    padding: 20px;
  }

  .how {
    margin-bottom: 64px;
    padding: 34px 24px;
    border-radius: 24px;
  }

  .how-intro h2 {
    font-size: 30px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .field-row .field + .field {
    margin-top: 0;
  }

  .config-card {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .stepper-group {
    justify-content: space-between;
  }

  .stepper {
    flex: 1;
  }

  .stepper input {
    flex: 1;
    width: 100%;
  }

  .stepper-x {
    padding: 0 2px;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }
}
