/* ============================================================
   filedge.io — Marketing Site Styles
   ============================================================ */

:root {
  --parchment: #f5f4ed;
  --ivory: #faf9f5;
  --near-black: #141413;
  --terracotta: #c96442;
  --coral: #d97757;
  --olive-gray: #5e5d59;
  --stone-gray: #87867f;
  --border-cream: #f0eee6;
  --dark-surface: #30302e;
  --warm-silver: #b0aea5;
  --code-bg: #1e1e1c;
}

/* ============================================================
   Reset & Base
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.60;
  color: var(--near-black);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

pre, code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

section {
  scroll-margin-top: 80px;
}

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 60px;
  background: var(--parchment);
  transition: box-shadow 150ms ease;
}

.nav.scrolled {
  box-shadow: 0 1px 0 var(--border-cream);
}

.nav-container {
  max-width: 1120px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.nav-logo {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--near-black);
  text-decoration: none;
}

.nav-right {
  display: flex;
  align-items: center;
}

.nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--olive-gray);
  text-decoration: none;
  margin-left: 28px;
  transition: color 150ms ease;
}

.nav-link:hover {
  color: var(--near-black);
}

.nav-cta {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  background: var(--terracotta);
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  margin-left: 24px;
  text-decoration: none;
  display: inline-block;
  transition: background 150ms ease;
}

.nav-cta:hover {
  background: #b85a3a;
  color: #ffffff;
}

.nav-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  align-items: center;
  margin-left: 16px;
}

.nav-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--olive-gray);
  border-radius: 2px;
}

.nav-mobile {
  display: none;
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--parchment);
  border-top: 1px solid var(--border-cream);
  padding: 16px 32px 24px;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile .nav-link {
  margin-left: 0;
  font-size: 16px;
}

.nav-mobile .nav-cta {
  margin-left: 0;
  text-align: center;
  padding: 10px 16px;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

#hero {
  background: var(--parchment);
  padding: 120px 32px 96px;
  scroll-margin-top: 80px;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 20px;
}

.hero-h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 64px;
  font-weight: 500;
  line-height: 1.10;
  color: var(--near-black);
  max-width: 720px;
  margin: 0 auto 24px;
}

.hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.60;
  color: var(--olive-gray);
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-cta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-btn-primary {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  background: var(--terracotta);
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  box-shadow: rgba(201, 100, 66, 0.25) 0px 4px 16px;
  text-decoration: none;
  display: inline-block;
  transition: background 150ms ease;
}

.hero-btn-primary:hover {
  background: #b85a3a;
  color: #ffffff;
}

.hero-btn-secondary {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--olive-gray);
  text-decoration: none;
  transition: color 150ms ease;
}

.hero-btn-secondary:hover {
  color: var(--near-black);
}

.hero-trust {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--stone-gray);
  margin-top: 20px;
}

.hero-code-wrap {
  margin-top: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 16px;
  background: var(--ivory);
  box-shadow: 0px 0px 0px 1px var(--border-cream), rgba(0,0,0,0.05) 0px 4px 24px;
  overflow: hidden;
}

.hero-code-topbar {
  height: 40px;
  background: #1e1e1c;
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-red   { background: #ff5f57; }
.dot-yellow { background: #ffbb2c; }
.dot-green  { background: #28c840; }

.hero-code-body {
  background: var(--near-black);
  border-radius: 0 0 16px 16px;
  padding: 24px;
  text-align: left;
}

.hero-code-body pre {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.60;
  white-space: pre;
  overflow-x: auto;
}

.code-http {
  color: var(--warm-silver);
}

.json-key {
  color: var(--coral);
}

.json-string {
  color: #8eb5a3;
}

.json-punct {
  color: var(--stone-gray);
}

.json-number {
  color: #a8c4e0;
}

.json-bool {
  color: #c4a882;
}

.hero-code-caption {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--stone-gray);
  text-align: center;
  margin-top: 12px;
}

/* ============================================================
   HOW IT WORKS SECTION
   ============================================================ */

#how {
  background: var(--near-black);
  padding: 96px 32px;
  scroll-margin-top: 80px;
}

.how-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  text-align: center;
}

.section-label--light {
  color: var(--warm-silver);
}

.section-label--terra {
  color: var(--terracotta);
}

.how-h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.20;
  color: #ffffff;
  text-align: center;
  margin-bottom: 16px;
}

.how-sub {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: var(--warm-silver);
  line-height: 1.60;
  max-width: 560px;
  margin: 0 auto 64px;
  text-align: center;
}

.how-cards {
  display: flex;
  flex-direction: row;
  gap: 24px;
}

.how-card {
  background: #1e1e1c;
  box-shadow: 0px 0px 0px 1px var(--dark-surface), rgba(0,0,0,0.2) 0px 4px 24px;
  border-radius: 16px;
  padding: 32px;
  flex: 1;
}

.how-card-step {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 14px;
  color: var(--stone-gray);
  margin-bottom: 20px;
}

.how-card h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.30;
  color: #ffffff;
  margin-bottom: 12px;
}

.how-card-body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.60;
  color: var(--warm-silver);
}

.how-card-snippet {
  margin-top: 20px;
  background: rgba(255,255,255,0.04);
  box-shadow: 0px 0px 0px 1px rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 12px 16px;
}

.how-card-snippet pre {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--warm-silver);
  white-space: pre-wrap;
  line-height: 1.60;
}

.how-card-detail {
  margin-top: 20px;
}

.how-card-detail-row {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  padding: 6px 0;
  line-height: 1.50;
}

.how-detail-label {
  color: var(--stone-gray);
}

.how-detail-value {
  color: var(--warm-silver);
}

.how-badge-row {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.how-badge {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 32px;
  background: rgba(255,255,255,0.06);
  box-shadow: 0px 0px 0px 1px rgba(255,255,255,0.10);
  color: var(--warm-silver);
}

/* ============================================================
   API REFERENCE SECTION
   ============================================================ */

#api {
  background: var(--parchment);
  padding: 96px 32px;
  scroll-margin-top: 80px;
}

.api-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.api-h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.20;
  color: var(--near-black);
  margin-bottom: 16px;
}

.api-sub {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: var(--olive-gray);
  max-width: 520px;
  line-height: 1.60;
  margin-bottom: 64px;
}

.api-cols {
  display: flex;
  flex-direction: row;
  gap: 48px;
  align-items: flex-start;
}

.api-col-left {
  flex: 0 0 40%;
}

.api-col-right {
  flex: 0 0 58%;
}

/* Left Panel */
.api-left-panel {
  background: var(--ivory);
  box-shadow: 0px 0px 0px 1px var(--border-cream), rgba(0,0,0,0.05) 0px 4px 24px;
  border-radius: 16px;
  padding: 32px;
}

.api-endpoint-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.api-method-badge {
  background: var(--terracotta);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  letter-spacing: 0.04em;
}

.api-endpoint-url {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--near-black);
  margin-left: 10px;
  word-break: break-all;
}

.api-divider {
  border: none;
  border-top: 1px solid var(--border-cream);
  margin: 20px 0;
}

.api-param-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-cream);
}

.api-param-row:last-child {
  border-bottom: none;
}

.api-param-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.api-param-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--terracotta);
}

.api-param-type {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--stone-gray);
  font-style: italic;
  margin-left: 8px;
}

.api-badge {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 32px;
}

.api-badge--required {
  color: var(--terracotta);
  background: rgba(201, 100, 66, 0.10);
}

.api-badge--optional {
  color: var(--stone-gray);
  background: rgba(135, 134, 127, 0.10);
}

.api-param-desc {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--olive-gray);
  margin-top: 4px;
}

/* Right Panel Code Block */
.api-code-panel {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: rgba(0,0,0,0.05) 0px 4px 24px;
}

.api-code-header {
  height: 40px;
  background: #1e1e1c;
  border-bottom: 1px solid var(--dark-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.api-code-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--stone-gray);
}

.code-copy-btn {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--stone-gray);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 150ms ease;
  padding: 4px 8px;
}

.code-copy-btn:hover {
  color: var(--warm-silver);
}

.api-code-area {
  background: var(--near-black);
  padding: 28px;
  max-height: 600px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--dark-surface) transparent;
}

.api-code-area::-webkit-scrollbar {
  width: 6px;
}

.api-code-area::-webkit-scrollbar-track {
  background: transparent;
}

.api-code-area::-webkit-scrollbar-thumb {
  background: var(--dark-surface);
  border-radius: 3px;
}

.api-code-content {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.60;
  white-space: pre;
  overflow-x: auto;
}

/* Document Type Grid */
.api-doc-grid {
  margin-top: 48px;
  display: flex;
  flex-direction: row;
  gap: 16px;
  flex-wrap: wrap;
}

.api-doc-card {
  background: var(--ivory);
  box-shadow: 0px 0px 0px 1px var(--border-cream);
  border-radius: 12px;
  padding: 20px 24px;
  flex: 1;
  min-width: 160px;
}

.api-doc-card h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--near-black);
  margin-bottom: 6px;
}

.api-doc-card-type {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--stone-gray);
  margin-bottom: 8px;
}

.api-doc-returns-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--stone-gray);
  margin-bottom: 4px;
}

.api-doc-returns-body {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--olive-gray);
  line-height: 1.50;
}

/* ============================================================
   PRICING SECTION
   ============================================================ */

#pricing {
  background: var(--near-black);
  padding: 96px 32px;
  scroll-margin-top: 80px;
  text-align: center;
}

.pricing-inner {
  max-width: 800px;
  margin: 0 auto;
}

.pricing-h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.10;
  color: #ffffff;
  margin-bottom: 24px;
}

.pricing-body {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: var(--warm-silver);
  line-height: 1.60;
  max-width: 520px;
  margin: 0 auto 48px;
}

.pricing-card {
  background: #1e1e1c;
  box-shadow: 0px 0px 0px 1px var(--dark-surface), inset 0 1px 0 rgba(255,255,255,0.04);
  border-radius: 24px;
  padding: 48px;
  max-width: 440px;
  margin: 0 auto;
  text-align: left;
}

.pricing-card-label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--stone-gray);
  margin-bottom: 16px;
}

.pricing-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.pricing-price-main {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 56px;
  font-weight: 500;
  color: #ffffff;
  line-height: 1;
}

.pricing-price-currency {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: var(--warm-silver);
}

.pricing-divider {
  border: none;
  border-top: 1px solid var(--dark-surface);
  margin: 24px 0;
}

.pricing-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.pricing-detail-row:last-child {
  border-bottom: none;
}

.pricing-detail-label {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--stone-gray);
}

.pricing-detail-value {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--warm-silver);
}

.pricing-detail-value--mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--warm-silver);
}

.pricing-footnote {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--stone-gray);
  line-height: 1.60;
  max-width: 400px;
  margin: 32px auto 24px;
}

.pricing-cta-btn {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--warm-silver);
  background: transparent;
  border: 1px solid var(--dark-surface);
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: border-color 150ms ease, color 150ms ease;
}

.pricing-cta-btn:hover {
  border-color: var(--warm-silver);
  color: #ffffff;
}

/* ============================================================
   TRUST SECTION
   ============================================================ */

#trust {
  background: var(--parchment);
  padding: 96px 32px;
  scroll-margin-top: 80px;
}

.trust-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.trust-h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.20;
  color: var(--near-black);
  margin-bottom: 16px;
}

.trust-sub {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: var(--olive-gray);
  max-width: 500px;
  line-height: 1.60;
  margin-bottom: 64px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.trust-card {
  background: var(--ivory);
  box-shadow: 0px 0px 0px 1px var(--border-cream), rgba(0,0,0,0.04) 0px 4px 16px;
  border-radius: 16px;
  padding: 28px;
}

.trust-card h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--near-black);
  margin-bottom: 10px;
}

.trust-card p {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--olive-gray);
}

.trust-tech-strip {
  margin-top: 48px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--stone-gray);
  line-height: 1.60;
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  background: var(--near-black);
  padding: 48px 32px;
  border-top: 1px solid var(--dark-surface);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.footer-row1 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-logo {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
}

.footer-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--stone-gray);
  margin-top: 8px;
  max-width: 320px;
  line-height: 1.55;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

.footer-link {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--stone-gray);
  text-decoration: none;
  transition: color 150ms ease;
}

.footer-link:hover {
  color: var(--warm-silver);
}

.footer-row2 {
  margin-top: 32px;
  border-top: 1px solid var(--dark-surface);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--stone-gray);
}

.footer-built {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--stone-gray);
}

/* ============================================================
   RESPONSIVE — Mobile (<768px)
   ============================================================ */

@media (max-width: 768px) {

  /* Nav */
  .nav-right .nav-link {
    display: none;
  }

  .nav-right .nav-cta {
    display: none;
  }

  .nav-menu-btn {
    display: flex;
  }

  /* Hero */
  .hero-h1 {
    font-size: 40px;
  }

  .hero-sub {
    font-size: 17px;
  }

  #hero {
    padding: 80px 24px 64px;
  }

  .hero-cta-row {
    flex-direction: column;
    gap: 16px;
  }

  /* How */
  #how {
    padding: 64px 24px;
  }

  .how-cards {
    flex-direction: column;
  }

  .how-h2 {
    font-size: 32px;
  }

  /* API */
  #api {
    padding: 64px 24px;
  }

  .api-cols {
    flex-direction: column;
    gap: 32px;
  }

  .api-col-left,
  .api-col-right {
    flex: 0 0 100%;
    width: 100%;
  }

  .api-h2 {
    font-size: 32px;
  }

  .api-doc-grid {
    flex-direction: column;
  }

  .api-doc-card {
    min-width: unset;
  }

  /* Pricing */
  #pricing {
    padding: 64px 24px;
  }

  .pricing-h2 {
    font-size: 36px;
  }

  .pricing-card {
    padding: 32px 24px;
  }

  /* Trust */
  #trust {
    padding: 64px 24px;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-h2 {
    font-size: 32px;
  }

  /* Footer */
  footer {
    padding: 40px 24px;
  }

  .footer-row1 {
    flex-direction: column;
    gap: 24px;
  }

  .footer-links {
    gap: 16px;
  }

  .footer-row2 {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Hero code */
  .hero-code-body pre {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .hero-h1 {
    font-size: 34px;
  }
}
