/* Studio Nestir — Cloudflare for Startups landing
   Palette from @材料/0商標LOGO: #507A87 (ink) / #FFF7F4 (cream) / #D7DCDD (mist) */

:root {
  --ink: #507A87;
  --ink-dark: #3d5d67;
  --cream: #FFF7F4;
  --mist: #D7DCDD;
  --text: #1a1f23;
  --text-soft: #4a5258;
  --line: #e5e8ea;
  --bg: #ffffff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-dark);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand-mark { display: block; }
.brand-name { line-height: 1; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--ink); }
.nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--ink-dark) !important; }

@media (max-width: 640px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--cream);
  padding: 96px 0 88px;
  border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: 820px; }
.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink);
  margin: 0 0 24px;
}
.hero h1 {
  font-family: 'DM Serif Display', 'Times New Roman', serif;
  font-size: clamp(34px, 5.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink-dark);
  margin: 0 0 24px;
  font-weight: 400;
}
.lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0 0 36px;
  max-width: 660px;
}
.lede strong {
  color: var(--ink-dark);
  font-weight: 600;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { background: var(--ink-dark); }
.btn-ghost {
  background: transparent;
  color: var(--ink-dark);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* ---------- Sections ---------- */
.section {
  padding: 88px 0;
}
.section-alt {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink-dark);
  margin: 0 0 16px;
  font-weight: 400;
}
.section-lede {
  font-size: 17px;
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 0 48px;
}

/* ---------- 3-col grid (platform) ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 24px;
}
.card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-dark);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.55;
}
@media (max-width: 760px) {
  .grid-3 { grid-template-columns: 1fr; }
}

/* ---------- App grid ---------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.app-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 28px;
  position: relative;
  transition: transform 0.18s, box-shadow 0.18s;
  display: flex;
  flex-direction: column;
}
.app-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(80, 122, 135, 0.08);
}
.app-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin-bottom: 20px;
}
.app-icon-svg {
  background: rgba(80, 122, 135, 0.10);
  color: var(--ink);
  width: 64px;
  height: 64px;
  padding: 14px;
}
.app-icon-svg svg { width: 100%; height: 100%; }
.app-icon-img {
  background: transparent;
  box-shadow: 0 2px 10px rgba(80, 122, 135, 0.18);
}
.app-card-featured {
  background: linear-gradient(180deg, #ffffff 0%, #fdf7f3 100%);
  border-color: rgba(80, 122, 135, 0.25);
}
.app-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  margin-bottom: 14px;
  align-self: flex-start;
}
.status-dev {
  background: rgba(80, 122, 135, 0.12);
  color: var(--ink);
}
.status-beta {
  background: rgba(40, 100, 60, 0.12);
  color: #2a6b3f;
}
.status-live {
  background: rgba(40, 100, 60, 0.16);
  color: #1f5430;
  border: 1px solid rgba(40, 100, 60, 0.3);
}
.app-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--ink-dark);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.app-tagline {
  font-size: 14px;
  color: var(--text-soft);
  margin: 0 0 14px;
  font-weight: 500;
}
.app-body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-soft);
  margin: 0;
}
@media (max-width: 820px) {
  .app-grid { grid-template-columns: 1fr; }
}

/* ---------- Stack (compact bar) ---------- */
.section-stack {
  padding: 64px 0;
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stack-inner {
  text-align: center;
  max-width: 760px;
}
.stack-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ink);
  margin: 0 0 16px;
}
.stack-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 19px;
  line-height: 1.4;
  color: var(--ink-dark);
  margin: 0 0 18px;
}
.stack-brand {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.01em;
}
.stack-list {
  font-weight: 500;
  color: var(--text-soft);
  font-size: 16px;
}
.stack-divider {
  color: var(--mist);
  font-size: 18px;
  user-select: none;
}
.stack-tag {
  font-size: 15px;
  color: var(--text-soft);
  margin: 0;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}
@media (max-width: 640px) {
  .stack-mark { gap: 6px 10px; font-size: 16px; }
  .stack-brand { font-size: 22px; }
  .stack-list { font-size: 14px; }
}

/* ---------- Contact ---------- */
.section-contact {
  text-align: center;
  background: var(--ink);
  color: #fff;
}
.section-contact h2 { color: #fff; }
.section-contact p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 520px;
  margin: 0 auto 32px;
  font-size: 17px;
}
.section-contact .btn-primary {
  background: #fff;
  color: var(--ink);
}
.section-contact .btn-primary:hover { background: var(--cream); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  background: var(--cream);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-dark);
  font-weight: 600;
  font-size: 14px;
}
.footer-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text-soft);
  font-size: 13px;
}
@media (max-width: 600px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
