/* PaperHub.ai — landing (enterprise, minimal) */

:root {
  --bg-deep: #0a0c10;
  --bg-elevated: #12151c;
  --bg-card: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --text: rgba(255, 255, 255, 0.92);
  --text-muted: rgba(255, 255, 255, 0.58);
  --accent: #c4a574;
  --accent-soft: rgba(196, 165, 116, 0.15);
  --accent-glow: rgba(196, 165, 116, 0.25);
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

.container {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

.narrow {
  max-width: 720px;
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: rgba(10, 12, 16, 0.78);
  backdrop-filter: blur(16px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-dot {
  color: var(--accent);
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}

.nav a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text) !important;
  background: var(--bg-card);
}

.nav-cta:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s var(--ease);
}

.nav-drawer {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header-h);
  padding: 1.25rem 24px 1.5rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nav-drawer a {
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.5rem 0;
}

.nav-drawer[hidden] {
  display: none;
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(4rem, 12vw, 7rem) 0 clamp(5rem, 14vw, 8rem);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 80%;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, var(--accent-glow), transparent 70%);
  pointer-events: none;
  opacity: 0.6;
}

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.25rem;
}

.eyebrow.light {
  color: var(--accent);
  opacity: 0.95;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
}

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-muted);
  margin: 0 0 2.25rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.65rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, #d4b896, #a08050);
  color: #0a0c10;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px var(--accent-glow);
  color: #0a0c10;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* Sections */
.section {
  padding: clamp(4rem, 10vw, 6rem) 0;
}

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.section-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.section-text {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.75;
}

.section-text.large {
  font-size: 1.125rem;
}

.about {
  border-top: 1px solid var(--border);
  text-align: center;
}

.about .section-title {
  margin-bottom: 1.25rem;
}

/* Features */
.features {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02));
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
}

.card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.card:hover {
  border-color: rgba(196, 165, 116, 0.35);
  transform: translateY(-2px);
}

.card-icon {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.25rem;
  opacity: 0.9;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.card-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* API block */
.api-block {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.api-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 900px) {
  .api-inner {
    grid-template-columns: 1fr;
  }
}

.api-copy .section-title {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.api-copy .section-text {
  margin-bottom: 1.5rem;
}

.api-list {
  margin: 0 0 2rem;
  padding-left: 1.15rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.api-list li {
  margin-bottom: 0.35rem;
}

.api-panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(196, 165, 116, 0.08), transparent 50%);
  padding: 1px;
}

.api-panel-inner {
  border-radius: calc(var(--radius-lg) - 1px);
  background: var(--bg-deep);
  padding: 1.5rem;
}

.api-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.api-snippet {
  margin: 0;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--text-muted);
  overflow-x: auto;
}

.api-snippet .k {
  color: #8b9dc3;
}

.api-snippet .p {
  color: rgba(255, 255, 255, 0.45);
}

.api-snippet .s {
  color: #9cbd9c;
}

.api-snippet .v {
  color: var(--accent);
}

/* Contact */
.contact {
  text-align: center;
}

.contact-inner .section-title {
  margin-bottom: 0.75rem;
}

.contact-inner .section-text {
  margin-bottom: 1.5rem;
}

.contact-email a {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--accent);
}

.contact-email a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-muted);
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.38);
}
