@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700;800&family=Playfair+Display:wght@600;700&display=swap");

:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --text: #171b24;
  --muted: #596176;
  --line: #e3e0d9;
  --brand: #0f172a;
  --brand-2: #d4c39f;
  --warm: #e9ddc5;
  --warm-deep: #d9c6a3;
  --radius: 20px;
  --shadow: 0 20px 40px rgba(16, 18, 24, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(135deg, rgba(23, 27, 36, 0.04) 0 1px, transparent 1px 100%),
    linear-gradient(45deg, rgba(23, 27, 36, 0.025) 0 1px, transparent 1px 100%);
  background-size: 380px 380px, 460px 460px;
  min-height: 100vh;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 8%;
  background: rgba(247, 246, 243, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-logo {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-logo:visited,
.nav-logo:hover,
.nav-logo:focus {
  color: var(--text);
  text-decoration: none;
}

.logo-mark {
  width: 28px;
  height: 28px;
  display: inline-flex;
  border-radius: 8px;
}

.beta-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  gap: 26px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

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

.nav-links a.is-active,
.nav-links a[aria-current="page"] {
  color: var(--text);
  font-weight: 800;
  border-bottom-color: var(--text);
}

.btn-apple {
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-apple:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(10, 15, 30, 0.2);
}

.btn-ghost {
  display: inline-block;
  margin-left: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  background: #fff;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.hero {
  padding: 84px 20px 62px;
}

.hero-split {
  width: min(1180px, 94vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(300px, 460px);
  gap: 24px;
  align-items: stretch;
}

.hero-copy {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
  padding: 38px;
}

.hero-visual {
  position: relative;
  border-radius: 30px;
  border: 1px solid #dbc9a6;
  background: linear-gradient(180deg, var(--warm-deep), var(--warm));
  box-shadow: var(--shadow);
  padding: 20px;
  display: grid;
  align-items: center;
}

.hero-visual img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  background: #efe5d0;
  border: 1px solid rgba(23, 27, 36, 0.1);
}

.hero-chip {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #cde5ff;
  background: #eef7ff;
  color: #1a4770;
  font-size: 13px;
  font-weight: 700;
}

.hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  margin-bottom: 22px;
  text-wrap: balance;
}

.hero p {
  max-width: 760px;
  margin: 0;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.45;
  color: var(--muted);
}

.hero-buttons {
  display: flex;
  justify-content: flex-start;
  gap: 14px;
  margin-top: 34px;
}

.hero-buttons a {
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
}

.hero-primary {
  background: var(--brand);
  color: #fff;
}

.hero-secondary {
  border: 1px solid #d8ceb9;
  color: var(--text);
  background: #f4ecdd;
}

.hero-primary:hover,
.hero-secondary:hover {
  transform: translateY(-1px);
}

.section-wrap {
  width: min(1120px, 92vw);
  margin: 0 auto 60px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 42px;
  box-shadow: var(--shadow);
}

.section-wrap > h2 {
  margin-bottom: 18px;
  line-height: 1.25;
}

.section-wrap > p {
  margin-top: 8px;
  line-height: 1.6;
}

.how h2 {
  text-align: center;
  font-size: clamp(30px, 5vw, 44px);
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #fbf8f1);
  padding: 24px;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.card p {
  color: var(--muted);
  line-height: 1.5;
}

.why-list {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 10px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 20px;
}

.final-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.final-cta .btn-apple {
  padding: 13px 22px;
}

.final-stack {
  display: grid;
  gap: 18px;
}

.final-nested {
  display: grid;
  gap: 18px;
}

.final-nested .final-cta {
  padding-top: 4px;
}

.founder {
  text-align: center;
}

.founder p {
  font-size: clamp(18px, 2.4vw, 28px);
  line-height: 1.5;
  font-weight: 500;
}

.footer {
  width: min(1120px, 92vw);
  margin: 0 auto 30px;
  padding: 34px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 34px;
}

.footer-col h4 {
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--muted);
}

.footer-col a {
  display: inline-flex;
  width: fit-content;
  text-decoration: none;
  color: var(--text);
  margin-bottom: 8px;
  font-size: 14px;
}

.footer-col a:hover {
  color: var(--brand-2);
}

.tool-page {
  width: min(980px, 92vw);
  margin: 40px auto;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.tool-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: #fff;
}

.tool-card h3 {
  margin-bottom: 14px;
}

.input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  margin-bottom: 12px;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 11px 15px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

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

.output {
  margin-top: 12px;
  border: 1px solid var(--line);
  background: #f8faff;
  border-radius: 12px;
  padding: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  max-height: 320px;
  overflow: auto;
}

.preview-img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin-top: 12px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-content {
  width: min(720px, 96vw);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.content-page {
  width: min(960px, 92vw);
  margin: 32px auto 48px;
}

.content-page h1 {
  font-size: clamp(30px, 5vw, 44px);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.page-lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 22px;
}

.page-list {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 16px;
}

.page-list h3 {
  margin-bottom: 8px;
}

.page-list p {
  color: #2b3240;
  line-height: 1.55;
}

.page-list a {
  color: #0b56b3;
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.page-list a.btn,
.page-list a.btn-primary,
.page-list a.btn-apple {
  color: #ffffff;
  text-decoration: none;
  overflow-wrap: normal;
  word-break: normal;
}

.page-list a.btn:hover,
.page-list a.btn-primary:hover,
.page-list a.btn-apple:hover {
  color: #ffffff;
  text-decoration: none;
}

.page-list a:hover {
  text-decoration: underline;
}

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

.pricing-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-card.featured {
  border-color: #bddfff;
  background: #f3f9ff;
}

.pricing-tag {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.pricing-list {
  margin-left: 18px;
  color: #2b3240;
  line-height: 1.5;
}

.pricing-list li {
  margin-bottom: 8px;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.auth-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 18px;
}

.auth-card h2 {
  margin-bottom: 12px;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 16px;
}

.stat-card h3 {
  font-size: 14px;
  color: var(--muted);
}

.stat-card p {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 800;
}

.mini-chart {
  display: grid;
  gap: 8px;
}

.mini-chart span {
  display: inline-block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}

.mini-track {
  height: 10px;
  border-radius: 99px;
  background: #e7ebf2;
  overflow: hidden;
}

.mini-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.35s ease;
}

.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 16px;
}

.article-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: #fff;
}

.article-card h3 {
  margin: 8px 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.article-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.article-card p {
  color: #2b3240;
  line-height: 1.55;
}

.article-thumb {
  display: block;
  width: 100%;
  margin: 10px 0 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #dfe8f8;
  aspect-ratio: 1200 / 630;
  object-fit: contain;
}

.article-meta {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}

.article-link {
  display: inline-block;
  margin-top: 10px;
  color: #0b56b3;
  font-weight: 700;
  text-decoration: none;
}

.article-link:hover {
  text-decoration: underline;
}

.pagination {
  margin-top: 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.page-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

.page-btn.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.article-page .section-wrap {
  width: min(980px, 92vw);
}

.article-hero {
  display: block;
  width: 100%;
  margin: 8px 0 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #dfe8f8;
  aspect-ratio: 1200 / 630;
  object-fit: contain;
}

code {
  background: #eef2f7;
  border: 1px solid #dce3ee;
  border-radius: 8px;
  padding: 2px 6px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
}

@media (max-width: 920px) {
  .navbar {
    padding: 14px 4%;
  }

  .nav-links {
    display: none;
  }

  .steps,
  .footer,
  .tool-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-copy {
    padding: 26px 20px;
  }

  .section-wrap {
    padding: 28px 18px;
  }

  .hero {
    padding: 78px 16px 54px;
  }

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

  .auth-grid,
  .dashboard-stats {
    grid-template-columns: 1fr;
  }
}
