/* Docugit landing — dark, native macOS energy */

:root {
  --bg: #08080a;
  --bg-elevated: #111114;
  --bg-card: #16161a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --accent: #5eb3ff;
  --accent-soft: rgba(94, 179, 255, 0.15);
  --accent-glow: rgba(94, 179, 255, 0.35);
  --violet: #a78bfa;
  --green: #4ade80;
  --radius: 14px;
  --radius-lg: 22px;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Monaco, monospace;
  --max: 1120px;
  --nav-h: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  text-decoration: underline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Ambient background */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 120vw);
  height: 60vh;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.35;
  filter: blur(60px);
}

.ambient::after {
  content: "";
  position: absolute;
  bottom: 10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.12) 0%, transparent 70%);
  filter: blur(80px);
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s, backdrop-filter 0.2s;
}

.site-nav.is-scrolled {
  background: rgba(8, 8, 10, 0.82);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--border);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

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

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(145deg, #2a2a32, #1a1a1f);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.brand-mark svg {
  width: 16px;
  height: 16px;
}

.nav-links {
  display: none;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.15rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  color: #0a0a0c;
  background: linear-gradient(180deg, #f8fafc 0%, #e4e4e7 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 8px 24px rgba(0, 0, 0, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 12px 32px rgba(0, 0, 0, 0.45);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
}

/* Hero */
.hero {
  padding: 3.5rem 0 4rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(94, 179, 255, 0.25);
  border-radius: 999px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.08;
  margin: 0 0 1.25rem;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--text) 0%, var(--accent) 55%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 42rem;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Hero screenshot — PNG as-is; tilt follows pointer in hero */
.hero-app-stage {
  margin: 2.5rem 0 0;
  perspective: 1200px;
  perspective-origin: 50% 45%;
}

.hero-app {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border: none;
  box-shadow: none;
  filter: none;
  background: none;
  transform: rotateX(2deg);
  transform-style: preserve-3d;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .hero-app-stage {
    perspective: none;
  }

  .hero-app {
    transform: none;
    will-change: auto;
  }
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.85rem, 3.8vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.section-intro {
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 0 2.5rem;
  font-size: 1.05rem;
}

/* Problem grid */
.problem {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
}

.problem-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .problem-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.problem-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.problem-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.problem-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.problem-punch {
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid rgba(94, 179, 255, 0.2);
  font-size: 1.05rem;
  color: var(--text);
  text-align: center;
}

.problem-punch strong {
  color: var(--accent);
}

/* Features */
.feature-block {
  display: grid;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 4rem;
}

.feature-block:last-child {
  margin-bottom: 0;
}

@media (min-width: 900px) {
  .feature-block {
    grid-template-columns: 1fr 1.1fr;
    gap: 3.5rem;
  }

  .feature-block.reverse .feature-copy {
    order: 2;
  }

  .feature-block.reverse .feature-panel {
    order: 1;
  }
}

.feature-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.feature-copy h3 {
  font-size: 1.75rem;
  margin: 0 0 0.75rem;
}

.feature-copy > p {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.feature-shot {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0c0c0e;
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.65);
}

.feature-shot img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.feature-shot--compact {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  min-height: 12rem;
}

.feature-shot--compact img {
  width: auto;
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.feature-panel {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.feature-panel h4 {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.ai-modes {
  display: grid;
  gap: 1rem;
}

.ai-mode {
  padding: 1.15rem 1.25rem;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.ai-mode strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.ai-mode p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.merge-mock__file {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.merge-chunk {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}

.merge-side {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.merge-side--yours {
  border-color: rgba(74, 222, 128, 0.35);
}

.merge-side--theirs {
  border-color: rgba(94, 179, 255, 0.35);
}

.merge-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.merge-side code {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  white-space: normal;
}

.merge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.merge-pick {
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.merge-pick--primary {
  color: var(--text);
  border-color: rgba(94, 179, 255, 0.45);
  background: var(--accent-soft);
}

.commit-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.commit-line:last-child {
  border-bottom: none;
}

.commit-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.commit-msg {
  color: var(--text-muted);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.commit-time {
  color: var(--text-dim);
  font-size: 0.75rem;
}

/* Product tour */
.showcase {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 40%);
}

.editor-modes {
  margin-bottom: 3.5rem;
}

.mode-switch {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.25rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.mode-tab {
  padding: 0.5rem 1.1rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.mode-tab:hover {
  color: var(--text);
}

.mode-tab.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.mode-figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0c0c0e;
  box-shadow: 0 28px 56px -28px rgba(0, 0, 0, 0.7);
}

.mode-figure img {
  display: none;
  width: 100%;
  height: auto;
}

.mode-figure img.is-active {
  display: block;
}

.showcase-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .showcase-grid {
    grid-template-columns: 1fr 1.35fr;
    align-items: start;
  }
}

.showcase-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.showcase-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.showcase-card__copy h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.showcase-card__copy p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.showcase-card__shot {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0c0c0e;
}

.showcase-card__shot img {
  display: block;
  width: 100%;
  height: auto;
}

.showcase-card__shot--compact {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1.25rem;
  background: #121216;
}

.showcase-card__shot--compact img {
  width: auto;
  max-width: min(100%, 22rem);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

/* Trust */
.trust-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trust-item {
  text-align: center;
  padding: 1.75rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.trust-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.trust-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.trust-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Audience */
.audience-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pill {
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

/* Steps */
.steps {
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  position: relative;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 10px;
}

.step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* FAQ */
.faq-list {
  max-width: 40rem;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
}

.faq-item button:hover {
  color: var(--accent);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: var(--text-dim);
  transition: transform 0.2s;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding-bottom: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* CTA footer */
.cta {
  text-align: center;
  padding: 5rem 0 6rem;
}

.cta-box {
  padding: 3.5rem 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(94, 179, 255, 0.12) 0%, rgba(167, 139, 250, 0.08) 50%, transparent 100%);
  border: 1px solid rgba(94, 179, 255, 0.2);
}

.cta h2 {
  font-size: clamp(1.95rem, 4.2vw, 2.65rem);
  margin: 0 0 0.75rem;
}

.cta p {
  color: var(--text-muted);
  max-width: 28rem;
  margin: 0 auto 1.75rem;
}

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
}

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

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
