/* Pacedeck LP — Black theme (DESIGN.md) + Apple-like clean structure */

:root {
  --bg: #0e0e10;
  --surface: #17171a;
  --surface-2: #212125;
  --border: #2f2f36;
  --text: #f4f2ee;
  --text-muted: #a3a19c;
  --accent: #f2ede4;
  --on-accent: #141416;
  --done: #e6c067;
  --max-w: 1120px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
    "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 17px;
  line-height: 1.47;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Subtle top highlight on surfaces (Black theme §1.2) */
.page-shell {
  min-height: 100vh;
  background: radial-gradient(
      ellipse 80% 50% at 50% -20%,
      rgba(242, 237, 228, 0.04),
      transparent
    ),
    var(--bg);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  background: rgba(14, 14, 16, 0.72);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  opacity: 0.9;
}

.nav-links {
  display: flex;
  gap: 20px;
  font-size: 15px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* Hero */
.hero {
  padding: 56px 0 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 0 56px;
    gap: 32px;
  }
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--done);
  margin: 0 0 12px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}

.hero-lead {
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 36em;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 980px;
  border: none;
  cursor: default;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn[aria-disabled="true"] {
  opacity: 0.85;
  cursor: not-allowed;
}

.btn-badge {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 4px;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

/* Features */
.section-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 64px 0 12px;
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 17px;
  margin: 0 auto 48px;
  max-width: 32em;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 72px;
}

.feature:nth-child(even) .feature-copy {
  order: 2;
}

.feature:nth-child(even) .feature-media {
  order: 1;
}

@media (max-width: 768px) {
  .feature,
  .feature:nth-child(even) .feature-copy,
  .feature:nth-child(even) .feature-media {
    grid-template-columns: 1fr;
    order: unset;
  }
}

.feature h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.55;
}

.feature-media img {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.placeholder-frame {
  aspect-ratio: 9 / 19.5;
  max-width: 280px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Legal pages */
.legal-page {
  padding: 48px 0 64px;
  max-width: 720px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: 34px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 12px;
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}

.legal-page ul {
  padding-left: 1.25em;
}

.legal-page a {
  color: var(--accent);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px 48px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text);
}