/* =========================================================
   PayPay.space — Minimal Monochrome + Single Accent
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-elev: #f5f5f5;
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --muted: #6b6b6b;
  --muted-2: #9a9a9a;
  --line: #ebebeb;
  --line-2: #e0e0e0;
  --accent: #2f5bff;          /* single accent */
  --accent-soft: #eef2ff;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(10,10,10,.04);
  --shadow-md: 0 6px 24px rgba(10,10,10,.06);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

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

/* ---------- Top Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 17px;
}
.brand-mark {
  width: 28px;
  height: 28px;
}
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-links a {
  position: relative;
  padding: 8px 14px;
  font-size: 14.5px;
  color: var(--muted);
  border-radius: 8px;
  transition: color .18s ease, background .18s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-elev); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.nav-cta {
  display: flex; gap: 8px; align-items: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { background: #000; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: var(--bg-elev); }
.btn-link {
  color: var(--ink);
  font-weight: 500;
  font-size: 14.5px;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-link::after { content: "→"; transition: transform .2s ease; }
.btn-link:hover::after { transform: translateX(3px); }
.btn-lg { padding: 13px 22px; font-size: 15px; }

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(10,10,10,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,10,10,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at top, rgba(0,0,0,.7) 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at top, rgba(0,0,0,.7) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(47,91,255,.15);
}
h1.hero-title {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 0 24px;
}
h1.hero-title .accent { color: var(--accent); }
.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Section ---------- */
section { padding: 90px 0; }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-tag {
  display: inline-block;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(28px, 3.6vw, 42px);
  letter-spacing: -0.025em;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 16px;
}
.section-sub {
  color: var(--muted);
  font-size: 17px;
  margin: 0;
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature-card {
  background: var(--bg);
  padding: 36px 32px;
  transition: background .18s ease;
}
.feature-card:hover { background: var(--bg-soft); }
.feature-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  color: var(--ink);
}
.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ---------- Split / Showcase ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split h2 {
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  font-weight: 600;
  line-height: 1.2;
}
.split p {
  color: var(--muted);
  font-size: 16.5px;
  margin: 0 0 22px;
}
.bullets { list-style: none; padding: 0; margin: 24px 0; }
.bullets li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.bullets li:last-child { border-bottom: none; }
.bullets li::before {
  content: "";
  flex: 0 0 6px;
  width: 6px; height: 6px;
  margin-top: 9px;
  background: var(--ink);
  border-radius: 50%;
}

/* ---------- Code mock ---------- */
.code-card {
  background: #0a0a0a;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid #1a1a1a;
  box-shadow: var(--shadow-md);
}
.code-head {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  background: #111;
  border-bottom: 1px solid #1a1a1a;
}
.code-head .dot { width: 10px; height: 10px; border-radius: 50%; background: #2a2a2a; }
.code-head .file {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #888;
}
.code-body {
  padding: 22px 24px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.75;
  color: #e6e6e6;
  overflow-x: auto;
}
.code-body .k { color: #c792ea; }
.code-body .s { color: #c3e88d; }
.code-body .c { color: #5e6b80; }
.code-body .f { color: #82aaff; }
.code-body .n { color: #f78c6c; }
.code-body .p { color: #89ddff; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 56px 40px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.stat-num {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
}
.stat-label { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- Logos strip ---------- */
.logos {
  text-align: center;
  padding: 60px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.logos-label {
  font-size: 13px;
  color: var(--muted-2);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.logos-row {
  display: flex; justify-content: center; align-items: center;
  gap: 56px;
  flex-wrap: wrap;
  opacity: .7;
}
.logos-row span {
  font-weight: 600;
  font-size: 18px;
  color: var(--ink-2);
  letter-spacing: -0.01em;
}

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  padding: 100px 0;
  background: var(--ink);
  color: #fff;
  border-radius: 0;
}
.cta h2 {
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  font-weight: 600;
}
.cta p {
  color: rgba(255,255,255,.7);
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 17px;
}
.cta .btn-primary { background: #fff; color: var(--ink); }
.cta .btn-primary:hover { background: #f0f0f0; }
.cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.25); }
.cta .btn-ghost:hover { background: rgba(255,255,255,.08); }

/* ---------- Footer ---------- */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p {
  color: var(--muted);
  font-size: 14px;
  margin: 14px 0 0;
  max-width: 300px;
  line-height: 1.6;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--ink);
  letter-spacing: .02em;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--muted);
  font-size: 14px;
  transition: color .15s ease;
}
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Page sub-hero (for inner pages) ---------- */
.page-hero {
  padding: 80px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.03em;
  margin: 16px 0 18px;
  font-weight: 600;
  line-height: 1.1;
}
.page-hero p {
  color: var(--muted);
  font-size: 18px;
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.price-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all .2s ease;
}
.price-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.price-card.featured {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.price-card.featured .price-name,
.price-card.featured h3 { color: #fff; }
.price-card.featured .price-desc,
.price-card.featured .price-features li { color: rgba(255,255,255,.75); }
.price-card.featured .price-features li::before { background: #fff; }
.price-card.featured .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.price-card.featured .btn-ghost:hover { background: rgba(255,255,255,.1); }
.price-name {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin: 0 0 14px;
}
.price-amount {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
}
.price-amount small { font-size: 16px; font-weight: 400; color: var(--muted); }
.price-card.featured .price-amount small { color: rgba(255,255,255,.6); }
.price-desc {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0 0 24px;
  min-height: 42px;
}
.price-features { list-style: none; padding: 0; margin: 0 0 28px; }
.price-features li {
  padding: 10px 0;
  font-size: 14.5px;
  display: flex; gap: 10px; align-items: flex-start;
  border-bottom: 1px solid var(--line);
}
.price-card.featured .price-features li { border-color: rgba(255,255,255,.12); }
.price-features li:last-child { border-bottom: none; }
.price-features li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 600;
  flex: 0 0 16px;
}
.price-card.featured .price-features li::before { color: #fff; }
.price-card .btn { width: 100%; justify-content: center; }

/* ---------- Docs layout ---------- */
.docs-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  padding: 60px 0 100px;
}
.docs-side {
  position: sticky;
  top: 88px;
  align-self: start;
  border-right: 1px solid var(--line);
  padding-right: 24px;
}
.docs-side h5 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted-2);
  margin: 24px 0 10px;
}
.docs-side ul { list-style: none; padding: 0; margin: 0; }
.docs-side li a {
  display: block;
  padding: 7px 12px;
  font-size: 14px;
  color: var(--muted);
  border-radius: 6px;
  margin-bottom: 2px;
  transition: all .15s ease;
}
.docs-side li a:hover { background: var(--bg-elev); color: var(--ink); }
.docs-side li a.active { background: var(--ink); color: #fff; }

.docs-content h2 {
  font-size: 30px;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  font-weight: 600;
}
.docs-content h3 {
  font-size: 20px;
  margin: 40px 0 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.docs-content p { color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.docs-content code:not(pre code) {
  background: var(--bg-elev);
  padding: 2px 7px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}
.docs-content pre {
  background: #0a0a0a;
  color: #e6e6e6;
  padding: 20px 22px;
  border-radius: 10px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.7;
  margin: 16px 0 24px;
}
.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14.5px;
}
.docs-content th, .docs-content td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.docs-content th {
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-soft);
}
.docs-content td code { color: var(--accent); }

/* ---------- About ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.value-card h3 { font-size: 18px; margin: 0 0 10px; font-weight: 600; }
.value-card p { color: var(--muted); font-size: 14.5px; margin: 0; line-height: 1.6; }

.team-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-card { text-align: center; }
.team-avatar {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-elev);
  border-radius: var(--radius-lg);
  margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: -0.02em;
}
.team-card h4 { margin: 0; font-size: 16px; font-weight: 600; }
.team-card p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }

/* ---------- AI panel ---------- */
.ai-panel {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.ai-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.ai-pulse {
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47,91,255,.5); }
  50% { box-shadow: 0 0 0 10px rgba(47,91,255,0); }
}
.terminal {
  background: #0a0a0a;
  color: #d4d4d4;
  border-radius: 12px;
  padding: 20px 22px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.7;
}
.terminal .prompt { color: var(--accent); }
.terminal .out { color: #8a8a8a; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .feature-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .docs-wrap { grid-template-columns: 1fr; }
  .docs-side { position: static; border-right: none; border-bottom: 1px solid var(--line); padding-right: 0; padding-bottom: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .team-row { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: 1fr; }
  .ai-panel-grid { grid-template-columns: 1fr; }
  .ai-panel { padding: 32px 24px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 60px 0 50px; }
  section { padding: 64px 0; }
  .stats { grid-template-columns: 1fr 1fr; padding: 32px 20px; gap: 20px; }
  .stat-num { font-size: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .team-row { grid-template-columns: 1fr 1fr; }
}

/* Page transition */
.fade-in { animation: fadeIn .6s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
