/* =========================================================
   Draftly — landing page styles
   Visual system: blueprint navy, cyan accent, mono headlines
   ========================================================= */

:root {
  --bg:           #0B1A2A;  /* blueprint navy */
  --surface:      #0F2236;  /* card / surface */
  --surface-2:    #142B43;  /* slightly lifted */
  --grid:         #1B3754;  /* hairline grid (apply at 8% opacity) */
  --text:         #E6EEF5;
  --text-muted:   #8AA0B6;
  --accent:       #00C2FF;  /* cyan, snap markers + CTAs only */
  --accent-warm:  #FFB547;  /* Pro / founder badge */
  --border:       rgba(27, 55, 84, 0.6);
  --border-soft:  rgba(27, 55, 84, 0.35);

  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --w-container: 1180px;
  --r-card: 4px;        /* tight radii — drafters not designers */
}

* { box-sizing: border-box; }

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

body {
  /* faint hairline grid across whole page, very subtle */
  background-image:
    linear-gradient(rgba(27, 55, 84, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 55, 84, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: 0 0;
}

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

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

code {
  font-family: var(--font-mono);
  background: rgba(0, 194, 255, 0.08);
  border: 1px solid rgba(0, 194, 255, 0.18);
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.92em;
}

.container {
  max-width: var(--w-container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--r-card);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: 10px 16px; font-size: 13px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--accent);
  color: #001722;
  border-color: var(--accent);
}
.btn-primary:hover { background: #33CFFF; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
   Endpoint marker (used as bullet)
   ============================================================ */
.endpoint-marker {
  display: inline-block;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--accent);
  background: transparent;
  margin-right: 10px;
  flex: 0 0 auto;
  position: relative;
  top: 1px;
}

/* ============================================================
   Nav
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 26, 42, 0.85);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--accent); display: inline-flex; }
.brand-name { color: var(--text); }

.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  text-decoration: none;
}
.nav-links a:hover { color: var(--accent); }

@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 120px;
  border-bottom: 1px solid var(--border-soft);
}
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* blueprint dot grid, 5% opacity, 16px pitch */
  background-image: radial-gradient(rgba(0, 194, 255, 0.18) 1px, transparent 1px);
  background-size: 16px 16px;
  background-position: 0 0;
  opacity: 0.18;
  -webkit-mask-image: radial-gradient(ellipse at top, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse at top, #000 30%, transparent 80%);
}
.hero-crosshair {
  position: absolute;
  top: 60px;
  right: -40px;
  width: 380px;
  height: 380px;
  pointer-events: none;
  opacity: 0.22;
}
.hero-crosshair svg { width: 100%; height: 100%; }
.hero-crosshair line { stroke: var(--accent); stroke-width: 1; }
.hero-crosshair rect { fill: none; stroke: var(--accent); stroke-width: 1; }
.crosshair-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 0.5;
  stroke-dasharray: 6 8;
  transform-origin: 100px 100px;
  animation: crosshair-rotate 28s linear infinite;
}
@keyframes crosshair-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@media (max-width: 760px) {
  .hero-crosshair { width: 220px; height: 220px; right: -60px; top: 80px; opacity: 0.18; }
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0 0 24px;
  text-transform: uppercase;
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin: 0 0 28px;
}

.hero-headline {
  font-family: var(--font-mono);
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 0 0 24px;
  max-width: 14ch;
}
.accent { color: var(--accent); }

.hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0 0 36px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-marquee {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}
.hero-marquee li {
  display: inline-flex;
  align-items: center;
}

/* ============================================================
   Proof strip
   ============================================================ */
.proof {
  padding: 100px 0;
  border-bottom: 1px solid var(--border-soft);
}
.proof-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 24px;
}
.proof-anim {
  position: relative;
  width: 100%;
  aspect-ratio: 600 / 320;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-card);
  overflow: hidden;
}
.proof-canvas { width: 100%; height: 100%; display: block; }

/* moving cursor + snap markers animation */
.snap-cursor {
  animation: snap-cursor-path 9s linear infinite;
}
@keyframes snap-cursor-path {
  0%   { transform: translate(80px,  240px); }
  22%  { transform: translate(80px,  240px); }
  25%  { transform: translate(180px, 160px); }
  47%  { transform: translate(180px, 160px); }
  50%  { transform: translate(280px, 80px); }
  72%  { transform: translate(280px, 80px); }
  75%  { transform: translate(380px, 240px); }
  97%  { transform: translate(380px, 240px); }
  100% { transform: translate(80px,  240px); }
}

.snap-marker { opacity: 0; }
.snap-marker.snap-endpoint     { animation: snap-flash 9s linear infinite;            animation-delay: 0s;    }
.snap-marker.snap-midpoint     { animation: snap-flash 9s linear infinite;            animation-delay: -6.75s; }
.snap-marker.snap-intersection { animation: snap-flash 9s linear infinite;            animation-delay: -4.5s;  }
.snap-marker.snap-center       { animation: snap-flash 9s linear infinite;            animation-delay: -2.25s; }

@keyframes snap-flash {
  0%, 21%   { opacity: 0; }
  22%, 47%  { opacity: 1; }
  48%, 100% { opacity: 0; }
}

.proof-caption {
  font-family: var(--font-mono);
  text-align: center;
  margin: 24px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  letter-spacing: 0.04em;
}

/* ============================================================
   Section common
   ============================================================ */
.section-title {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 12px;
  letter-spacing: -0.005em;
}
.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0 0 48px;
}

/* ============================================================
   Features
   ============================================================ */
.features { padding: 100px 0; border-bottom: 1px solid var(--border-soft); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 760px) {
  .feature-grid { grid-template-columns: 1fr; }
}
.feature-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.feature-tile:hover {
  border-color: rgba(0, 194, 255, 0.35);
  transform: translateY(-2px);
}
.feature-img {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-card);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.feature-title {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0;
}
.feature-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   Compare table
   ============================================================ */
.compare { padding: 100px 0; border-bottom: 1px solid var(--border-soft); }
.compare-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}
.compare-table thead th {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  background: var(--surface-2);
  font-weight: 500;
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table .num { font-family: var(--font-mono); }
.compare-table .muted { color: var(--text-muted); font-weight: 400; }
.compare-table .row-hl td {
  background: rgba(0, 194, 255, 0.05);
}
.compare-table .row-hl td:first-child {
  border-left: 2px solid var(--accent);
}
.compare-disclaimer {
  padding: 16px 20px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--surface-2);
  margin: 0;
  border-top: 1px solid var(--border-soft);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* ============================================================
   Builder
   ============================================================ */
.builder { padding: 100px 0; border-bottom: 1px solid var(--border-soft); }
.builder-inner { max-width: 760px; }
.builder-paragraph {
  font-size: 22px;
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 24px;
}
.builder-byline {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin: 0;
}

/* ============================================================
   Pricing
   ============================================================ */
.pricing { padding: 100px 0; border-bottom: 1px solid var(--border-soft); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 880px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
}
.price-card-pro {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(0, 194, 255, 0.06), var(--surface) 60%);
}
.badge-popular {
  position: absolute;
  top: -10px;
  left: 24px;
  background: var(--accent);
  color: #001722;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 2px;
  font-weight: 600;
}
.badge-founder {
  position: absolute;
  top: -10px;
  left: 24px;
  background: var(--accent-warm);
  color: #2A1700;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 2px;
  font-weight: 600;
}
.price-tier {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.price-amount {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.price-cycle {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
}
.price-period {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin: 4px 0 24px;
  letter-spacing: 0.02em;
}
.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}
.price-features li {
  display: flex;
  align-items: center;
}
.price-card .btn { margin-top: auto; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding: 100px 0; border-bottom: 1px solid var(--border-soft); }
.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-soft);
}
.faq-item {
  border-bottom: 1px solid var(--border-soft);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.005em;
}
.faq-toggle {
  width: 14px;
  height: 14px;
  position: relative;
  flex: 0 0 auto;
}
.faq-toggle::before,
.faq-toggle::after {
  content: '';
  position: absolute;
  background: var(--accent);
  transition: transform 0.18s ease;
}
.faq-toggle::before {
  left: 0; top: 6px; width: 14px; height: 2px;
}
.faq-toggle::after {
  left: 6px; top: 0; width: 2px; height: 14px;
}
.faq-item[open] .faq-toggle::after { transform: scaleY(0); }

.faq-a {
  padding: 0 0 24px;
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 80ch;
}
.faq-a p { margin: 0; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: #07121C;
  padding: 64px 0 32px;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 48px;
}
@media (max-width: 760px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; order: -1; }
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.footer-col ul li, .footer-col ul li a {
  color: var(--text-muted);
}
.footer-col ul li a:hover { color: var(--accent); }
.footer-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin: 8px 0 0;
  letter-spacing: 0.02em;
}
.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 24px;
  font-size: 12px;
  color: var(--text-muted);
}
.footer-bottom p { margin: 0; max-width: 80ch; line-height: 1.5; }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .crosshair-ring,
  .snap-cursor,
  .snap-marker {
    animation: none !important;
  }
  .snap-marker { opacity: 1; }
  html { scroll-behavior: auto; }
}
