:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f8;
  --bg-muted: #f3f4f6;
  --text: #0a0a0a;
  --text-soft: #3a3a3a;
  --border: #e6e7e9;
  --primary: #0a0a0a;
  --primary-contrast: #ffffff;
  --shadow: 0 2px 8px rgba(16, 24, 40, 0.06);
  --radius: 12px;
  /* iOS safe-area */
  --safe-left: env(safe-area-inset-left);
  --safe-right: env(safe-area-inset-right);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Apple Color Emoji, Segoe UI Emoji;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 17px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  padding-left: calc(20px + var(--safe-left));
  padding-right: calc(20px + var(--safe-right));
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}
.brand { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: inherit; }
.brand-logo { height: 46px; width: auto; display: block; }
.brand-name { font-weight: 700; letter-spacing: 0.2px; font-size: 22px; }

.nav { display: flex; align-items: center; gap: 16px; }
.nav-link { color: var(--text-soft); text-decoration: none; font-weight: 500; }
.nav-link:hover { color: var(--text); }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  background: var(--bg);
  font-weight: 600;
}
.button:hover { box-shadow: var(--shadow); }
.button-primary { background: var(--primary); color: var(--primary-contrast); border-color: #0a0a0a; }
.button-primary:hover { transform: translateY(-1px); }
.button-ghost { background: transparent; }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--border);
}
.hero-inner { padding: 72px 0 48px; }
.hero-content { text-align: center; }
.hero-title { font-size: 44px; line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.hero-subtitle { margin: 0 0 24px; color: var(--text-soft); font-size: 18px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Sections */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-title { font-size: 30px; margin: 0; }
.section-subtitle { margin: 0; color: var(--text-soft); }

/* Cards */
.cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card-meta { color: var(--text-soft); font-size: 13px; margin-bottom: 8px; }
.card-title { margin: 0 0 8px; font-size: 22px; }
.card-text { margin: 0 0 12px; color: var(--text-soft); line-height: 1.6; }
.card-list { margin: 0 0 12px 18px; color: var(--text-soft); }
.card-list li { margin-bottom: 6px; }
.card-actions { display: flex; justify-content: flex-start; }
.card-link { text-decoration: none; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--border); }
.card-link:hover { border-color: var(--text); }
.card-image { width: 92%; height: auto; border-radius: 10px; border: 1px solid var(--border); margin: 8px auto 12px; display: block; }

@media (min-width: 720px) {
  .hero-inner { padding: 96px 0 72px; }
  .hero-title { font-size: 56px; }
  .brand-logo { height: 60px; }
  .brand-name { font-size: 24px; }
  /* feed layout remains single column for readability */
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .header-inner { height: 76px; }
  .brand { gap: 3px; }
  .brand-logo { height: 38px; }
  .brand-name { font-size: 18px; }
  .nav { gap: 8px; flex-wrap: wrap; }
  .button { height: 34px; padding: 0 12px; font-size: 13px; }
  .hero-inner { padding: 64px 0 40px; }
  .hero-content { text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-title { font-size: 30px; }
  .hero-subtitle { font-size: 15px; }
  .section-head { text-align: center; justify-content: center; }
  .section-head .section-subtitle { width: 100%; }
  .card-image { width: 100%; margin: 8px 0 12px; }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-link { color: var(--text-soft); text-decoration: none; }
.footer-link:hover { color: var(--text); }

.more-cta { display: flex; justify-content: center; padding: 24px 0 8px; }


