/* css/style.css */

/* ===== ベースレイアウト ===== */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f7fb;
  margin: 0;
}

.container {
  max-width: 800px;
  margin: 40px auto;
  padding: 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

h1, h2 {
  margin-top: 0;
}

.form-group {
  margin-bottom: 16px;
}

label {
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

input[type="text"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

/* ===== ボタン ===== */
button {
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  background: #4f46e5;
  color: #fff;
}

button:hover {
  opacity: 0.9;
}

button.secondary {
  background: #e5e7eb;
  color: #111827;
}

button.secondary:hover {
  background: #d1d5db;
}

/* ===== メッセージ ===== */
.error {
  color: #e11d48;
  margin-top: 8px;
}

.helper {
  color: #6b7280;
  font-size: 0.9rem;
}

/* ===== テーブル ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

th, td {
  border-bottom: 1px solid #e5e7eb;
  padding: 8px;
  text-align: left;
}

th {
  background: #f3f4f6;
}

/* ===== インラインレイアウト ===== */
.inline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.inline input[type="text"] {
  flex: 1;
  min-width: 0;
}

.inline.inline-stack {
  flex-direction: column;
  align-items: stretch;
}

.inline.inline-stack button {
  width: fit-content;
  align-self: flex-end;
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}

.modal.open {
  display: block;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
}

.modal-panel {
  position: relative;
  margin: 14vh auto 0;
  width: min(560px, calc(100% - 24px));
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
  padding: 14px 14px 16px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.modal-title {
  font-weight: 900;
  font-size: 16px;
}

.modal-close {
  border: none;
  background: transparent;
  color: #111827;
  font-size: 22px;
  padding: 4px 10px;
  width: auto;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

/* ===== Group Manage ===== */
.manage-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.manage-shortcuts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 6px 0 16px;
}

.manage-shortcuts button {
  width: auto;
}

.manage-members {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 10px;
}

.manage-member-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.92);
}

.manage-member-actions {
  display: inline-flex;
  gap: 8px;
  flex: 0 0 auto;
}

.manage-member-actions button {
  width: auto;
  padding: 8px 10px;
  font-size: 14px;
}

/* ===== メンバーリスト（タグ風） ===== */
.member-list {
  list-style: none;
  padding-left: 0;
  margin-top: 8px;
}

.member-list li {
  display: inline-block;
  margin: 4px 4px 0 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2ff;
  font-size: 0.9rem;
}

/* ===== 共通ヘッダー（スマホ最適化・左ハンバーガー） ===== */
.app-header {
  position: relative;              /* 絶対配置の基準 */
  display: flex;
  align-items: center;
  justify-content: center;         /* タイトルを中央寄せ */
  height: 48px;
  padding: 0 12px;
  background: #4a90e2;
  color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  top: 0;
  z-index: 20;
}

/* ハンバーガーボタンを左端に固定 */
.menu-button {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #fff;
  font-size: 22px;
  padding: 4px 8px;
  cursor: pointer;
  width: auto; /* スマホ用の幅100%を無効化 */
}

/* タイトルは完全中央 */
.app-header-title {
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  pointer-events: none; /* タイトル上タップ誤動作防止 */
}

/* ===== サイドメニュー ===== */
.side-menu {
  position: fixed;
  inset: 0;
  pointer-events: none; /* 非表示時はクリック不可 */
  z-index: 30;
}

.side-menu-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.side-menu-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 70%;
  max-width: 260px;
  height: 100%;
  background: linear-gradient(180deg, #0b1020 0%, #050814 55%, #020617 100%);
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.2);
  transform: translateX(-100%);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.side-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;     /* ← 改行させない */
  word-break: keep-all;   /* ← 日本語の強制改行を防ぐ */
}

.side-menu-title {
  font-size: 16px;
  font-weight: bold;
  color: #e2e8f0;

  white-space: nowrap;     /* ← 改行させない */
  word-break: keep-all;   /* ← 日本語の強制改行を防ぐ */
}


.side-menu-close {
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  color: #e2e8f0;
}

.side-menu-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.side-menu-item {
  width: 100%;
  padding: 12px 16px 12px 32px;
  border: none;
  background: transparent;
  text-align: left;
  font-size: 15px;
  cursor: pointer;
  color: #e2e8f0;
}

.side-menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

/* メニューが開いた状態 */
.side-menu.open {
  pointer-events: auto;
}

.side-menu.open .side-menu-overlay {
  opacity: 1;
}

.side-menu.open .side-menu-panel {
  transform: translateX(0);
}

/* ===== スマホ最適化（幅600px以下） ===== */
@media (max-width: 600px) {
  body {
    background: #f5f7fb;
  }

  .container {
    max-width: 100%;
    margin: 0;
    padding: 16px 12px 24px;
    border-radius: 0;
    box-shadow: none;
  }

  h1 {
    font-size: 20px;
    margin: 8px 0 12px;
  }

  h2 {
    font-size: 16px;
    margin-top: 16px;
  }

  .form-group label {
    font-size: 14px;
  }

  input,
  textarea,
  select {
    font-size: 16px; /* iOS の拡大を防ぐライン */
    padding: 8px;
  }

  /* ハンバーガー以外のボタンだけフル幅にする */
  button:not(.menu-button):not(.landing-menu-button):not(.score-btn) {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
  }


  table {
    font-size: 13px;
  }

  #expensesTable,
  #scoresTable {
    display: block;
    width: 100%;
    overflow-x: auto;
  }

  #expensesTable thead,
  #scoresTable thead {
    white-space: nowrap;
  }

  .score-controls {
    justify-content: flex-start;
  }

  .score-input {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
  }

  .score-btn {
    padding: 6px 10px;
  }

  .round-controls {
    align-items: stretch;
  }

  .round-actions {
    width: 100%;
    justify-content: flex-end;
  }

  /* 「メンバーを追加」入力欄が潰れないようにし、追加ボタンを小さく */
  .inline.inline-stack input[type="text"] {
    width: 100%;
  }

  .inline.inline-stack button {
    width: auto;
    align-self: flex-end;
    padding: 8px 14px;
    font-size: 14px;
  }

  .modal-panel {
    margin-top: 10vh;
  }

  .manage-member-item {
    grid-template-columns: 1fr;
  }

  .manage-member-actions {
    justify-content: flex-end;
  }
}

/* ゲーム履歴カード */
.games-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recent-groups-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 10px;
}

.recent-group-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.92);
}

.recent-group-link {
  text-decoration: none;
  color: #0f172a;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-group-meta {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.70);
  font-weight: 600;
  margin-top: 2px;
}

.recent-group-actions {
  display: inline-flex;
  gap: 8px;
  flex: 0 0 auto;
}

.recent-group-actions button {
  width: auto;
  padding: 8px 10px;
  font-size: 14px;
}

@media (max-width: 520px) {
  .recent-group-item {
    flex-direction: column;
    align-items: stretch;
  }

  .recent-group-actions {
    justify-content: flex-end;
  }
}

.game-card {
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  padding: 8px 12px 12px;
  background: #fff;
}

.game-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.game-card-title {
  font-weight: 600;
}

.game-card-date {
  font-size: 12px;
  color: #6b7280;
}

.game-card-memo {
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 4px;
}

.game-card-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 4px;
}

.game-card-table th,
.game-card-table td {
  border-bottom: 1px solid #e5e7eb;
  padding: 4px 6px;
  font-size: 13px;
}

/* スコア入力（±ボタンつき） */
.score-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* 右寄せでスッキリ */
  gap: 6px;
}


.score-input {
  width: 72px;          /* ← ここがポイント（好みで 60〜80px） */
  min-width: 72px;
  text-align: center;
  font-size: 16px;
  padding: 6px 4px;
}

.score-btn {
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 16px;
  line-height: 1;
}

/* ===== Rounds ===== */
.round-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.round-label {
  font-weight: 800;
}

.round-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.round-actions button {
  width: auto;
}

.round-actions-bottom {
  width: 100%;
  justify-content: flex-end;
  margin: 6px 0 14px;
}

.rounds-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 10px 0 14px;
}

.round-card {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.round-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.04);
}

.round-card-title {
  font-weight: 900;
}

.round-card-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.round-card-actions button {
  width: auto;
  padding: 8px 10px;
  font-size: 14px;
}

.round-table {
  width: 100%;
  border-collapse: collapse;
}

.round-table th,
.round-table td {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding: 10px 12px;
  vertical-align: middle;
}

.round-table th {
  text-align: left;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.02);
  white-space: nowrap;
}

.round-member {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.score-btn-remove-member {
  background-color: #e11d48;
  border-color: #e11d48;
  color: #fff;
  flex: 0 0 auto;
}

/* ===== Rate badge ===== */
.rate-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
}

/* ===== フッター ===== */
footer {
  text-align: center;
  padding: 16px;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  margin-top: 40px;
}

footer a {
  color: #6b7280;
  text-decoration: none;
  margin: 0 8px;
}

footer a:hover {
  text-decoration: underline;
}

/* ===== Landing page (index.html) ===== */
body.landing {
  margin: 0;
  background: #0b1020;
  color: #0f172a;
}

.landing-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 15, 25, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.landing-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.landing-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.landing-menu-button {
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.landing-menu-button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.landing-menu-button:active {
  transform: translateY(1px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 900;
  letter-spacing: 0.2px;
  text-decoration: none;
  color: #fff;
}

.brand-logo {
  display: block;
  height: 45px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
}

.brand-mark {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(147, 51, 234, 0.9));
  box-shadow: 0 10px 26px rgba(59, 130, 246, 0.28);
}

.brand-text {
  font-size: 18px;
  opacity: 0.95;
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 10px;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-cta {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(147, 51, 234, 0.9));
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.22);
}

.nav-cta:hover {
  filter: brightness(1.05);
}

.landing-main {
  display: block;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f6fbff 0%, #f6fbff 50%, #0b1020 50%, #0b1020 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: -140px -120px -120px -120px;
  background:
    radial-gradient(closest-side, rgba(59, 130, 246, 0.30), rgba(59, 130, 246, 0.00) 70%) 10% 25% / 60% 60% no-repeat,
    radial-gradient(closest-side, rgba(147, 51, 234, 0.30), rgba(147, 51, 234, 0.00) 70%) 85% 25% / 58% 58% no-repeat,
    radial-gradient(closest-side, rgba(236, 72, 153, 0.22), rgba(236, 72, 153, 0.00) 70%) 70% 80% / 50% 50% no-repeat;
  filter: blur(18px);
  opacity: 0.9;
}

.hero-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 92px 18px 72px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.pill-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.hero-title {
  margin: 0 0 14px;
  font-size: 44px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.accent-light {
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.accent-dark {
  background: linear-gradient(135deg, #a855f7, #fb7185);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 22px;
  color: rgba(15, 23, 42, 0.82);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.75;
  max-width: 44ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.2px;
  border: 1px solid transparent;
  transition: transform 0.08s ease, filter 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  will-change: transform;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(147, 51, 234, 0.9));
  box-shadow: 0 18px 40px rgba(59, 130, 246, 0.18);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-secondary {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.90);
  border-color: rgba(15, 23, 42, 0.12);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.98);
}

.btn-ghost {
  color: rgba(15, 23, 42, 0.86);
  background: rgba(255, 255, 255, 0.0);
  border-color: rgba(15, 23, 42, 0.18);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.38);
}

.hero-sub {
  margin: 0;
  color: rgba(15, 23, 42, 0.64);
  font-weight: 600;
  font-size: 13px;
}

.hero-visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.split-cards {
  width: min(520px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}

.hero-card {
  border-radius: 22px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.hero-card-light {
  background: rgba(255, 255, 255, 0.90);
  border-color: rgba(15, 23, 42, 0.10);
}

.hero-card-dark {
  background: rgba(17, 24, 39, 0.72);
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 22px 70px rgba(168, 85, 247, 0.14);
}

.hero-card-kicker {
  font-weight: 900;
  letter-spacing: 0.12em;
  font-size: 12px;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.72);
}

.hero-card-dark .hero-card-kicker {
  color: rgba(255, 255, 255, 0.72);
}

.hero-card-title {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #0f172a;
}

.hero-card-dark .hero-card-title {
  color: #fff;
}

.hero-card-desc {
  margin-top: 8px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(15, 23, 42, 0.70);
}

.hero-card-dark .hero-card-desc {
  color: rgba(255, 255, 255, 0.70);
}

.hero-card-tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(15, 23, 42, 0.80);
  background: rgba(15, 23, 42, 0.06);
}

.hero-card-dark .tag {
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.12);
}

.hero-logo {
  position: absolute;
  left: 50%;
  top: 58%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  padding: 12px 16px 10px;
  border-radius: 18px;
  background: rgba(10, 15, 25, 0.50);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.hero-logo-title {
  font-size: 54px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.hero-logo-sub {
  margin-top: 4px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.80);
}

.landing-section {
  background: #fff;
  padding: 56px 0;
}

.landing-section-muted {
  background: #f6f7ff;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}

.section-title {
  margin: 0 0 18px;
  font-size: 24px;
  letter-spacing: -0.01em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.feature-card {
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 16px 16px 14px;
  background: linear-gradient(180deg, #fff, #fbfbff);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.feature-title {
  font-weight: 900;
  margin-bottom: 6px;
}

.feature-desc {
  margin: 0;
  color: rgba(15, 23, 42, 0.70);
  font-weight: 600;
  line-height: 1.65;
}

.cta-row {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.steps {
  margin: 12px 0 0;
  padding-left: 20px;
  line-height: 1.9;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.80);
}

.note-cards {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.note-card {
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.note-title {
  font-weight: 900;
  margin-bottom: 6px;
}

.note-desc {
  margin: 0;
  color: rgba(15, 23, 42, 0.70);
  font-weight: 600;
  line-height: 1.65;
}

.list {
  margin: 12px 0 0;
  padding-left: 18px;
  line-height: 1.9;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.80);
}

.landing-footer {
  text-align: center;
  padding: 22px 16px;
  background: rgba(10, 15, 25, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  margin: 0 8px;
  font-weight: 600;
}

.landing-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.landing :is(#howto, #scenes, #future) {
  scroll-margin-top: 84px;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 74px;
    padding-bottom: 56px;
  }

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

  .hero-logo {
    top: 54%;
  }

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

  .note-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .landing-header-inner {
    padding: 10px 12px;
  }

  .nav-link {
    display: none;
  }

  .hero-title {
    font-size: 34px;
  }

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

  .split-cards {
    grid-template-columns: 1fr;
  }

  .hero-logo {
    position: static;
    transform: none;
    margin-top: 14px;
  }

  .hero-logo-title {
    font-size: 40px;
  }

  .brand-mark {
    padding: 4px 8px;
  }

  .brand-text {
    font-size: 16px;
  }

  .brand-logo {
    height: 40px;
    max-width: 260px;
  }

  .nav-cta {
    padding: 9px 12px;
  }
}

@media (max-width: 380px) {
  .brand-logo {
    height: 35px;
    max-width: 220px;
  }
}
