/* DeskHost Design System v2 */
/* Linear-style, trust-first, low-motion B2B landing */

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

:root {
  --bg: #f8f7f4;
  --bg-raised: #ffffff;
  --bg-soft: #f0eee9;
  --surface: #ffffff;
  --surface-hover: #f6f5f2;

  --ink: #10121b;
  --text: #10121b;
  --text-muted: #5b616e;
  --text-dim: #878d9a;

  --accent: #1e5af5;
  --accent-hover: #174ad1;
  --accent-weak: rgba(30, 90, 245, 0.10);

  --border: rgba(16, 18, 27, 0.08);
  --border-hover: rgba(16, 18, 27, 0.16);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(16, 18, 27, 0.04);
  --shadow: 0 12px 32px rgba(16, 18, 27, 0.08);
  --shadow-lg: 0 24px 60px rgba(16, 18, 27, 0.12);

  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --font: "Inter Tight", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Navigation */
nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 68px;
  background: rgba(248, 247, 244, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.3px;
  color: var(--ink);
}

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  transition: color 150ms ease, background 150ms ease;
}

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

.mobile-btn {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-md);
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
  cursor: pointer;
  border: none;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 14px 24px;
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 8px 24px rgba(30, 90, 245, 0.22);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 13px 22px;
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
}

.btn-sm {
  background: var(--ink);
  color: #fff;
  padding: 9px 16px;
  font-size: 14px;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: background 150ms ease;
}

.btn-sm:hover { background: var(--accent); }

/* Eyebrow / Tag */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding: 96px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: saturate(0.5) contrast(1.05);
  mask-image: linear-gradient(90deg, transparent 0%, black 25%, black 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 25%, black 75%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 22px;
  max-width: 560px;
}

.hero h1 span { color: var(--accent); }

.hero p.lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 460px;
  margin-bottom: 32px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}

.hero-visual img {
  width: 100%;
  max-width: 560px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

/* Stats strip */
.stats-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
  padding: 32px 24px;
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat strong {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  letter-spacing: -0.2px;
}

.stat span {
  font-size: 14px;
  color: var(--text-dim);
}

/* Section headers */
.section {
  padding: 120px 24px;
}

.section-header {
  max-width: 560px;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -1.4px;
  line-height: 1.08;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 250ms var(--ease), border-color 250ms var(--ease), box-shadow 250ms var(--ease);
}

.bento-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
}

.bento-card.featured { grid-column: span 7; grid-row: span 2; }
.bento-card.side { grid-column: span 5; grid-row: span 2; }
.bento-card.third { grid-column: span 4; }

.bento-visual {
  position: relative;
  height: 100%;
  min-height: 220px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
}

.bento-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(16, 18, 27, 0.72) 100%);
}

.bento-visual h3,
.bento-visual p {
  position: relative;
  z-index: 1;
  color: #fff;
}

.bento-visual h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.bento-visual p { font-size: 14px; line-height: 1.55; max-width: 320px; opacity: 0.85; }

.bento-text { padding: 28px; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.bento-text h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.bento-text p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }
.bento-list { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.bento-list li { font-size: 13px; color: var(--text-muted); padding-left: 20px; position: relative; }
.bento-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 200ms var(--ease), border-color 200ms var(--ease);
}

.feature:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}

.feature svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
  margin-bottom: 16px;
}

.feature h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* Quote */
.quote {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 100px 24px;
  text-align: center;
}

.quote blockquote {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.6px;
  line-height: 1.35;
  max-width: 760px;
  margin: 0 auto 20px;
}

.quote cite {
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Pricing */
.pricing { text-align: center; }

.pricing-card {
  max-width: 420px;
  margin: 44px auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  text-align: left;
}

.price {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -1.8px;
  color: var(--ink);
}

.price span {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-dim);
  margin-left: 4px;
}

.price-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin: 14px 0 26px;
}

.price-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.price-list li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 28px;
  position: relative;
}

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

.price-list li::after {
  content: "✓";
  position: absolute;
  left: 4px;
  top: 3px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 26px 0; }
.faq-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.faq-item h4 svg { color: var(--accent); flex-shrink: 0; }
.faq-item p { font-size: 15px; color: var(--text-muted); line-height: 1.65; padding-left: 34px; }

/* CTA */
.cta {
  text-align: center;
  padding: 120px 24px;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(30, 90, 245, 0.10), transparent 55%);
  pointer-events: none;
}

.cta h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -1.2px;
  margin-bottom: 14px;
}

.cta p {
  position: relative;
  z-index: 1;
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* Footer */
footer {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  padding: 48px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

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

.footer-copy { font-size: 13px; color: var(--text-dim); }

/* Page layouts */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 140px 24px 80px;
  text-align: center;
}

.page h1 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -1.6px;
  line-height: 1.08;
  margin-bottom: 18px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  text-align: left;
}

/* Download specific */
.file-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.file-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--accent-weak);
  border: 1px solid rgba(30, 90, 245, 0.18);
  display: grid;
  place-items: center;
  color: var(--accent);
}

.file-icon svg { width: 26px; height: 26px; }

.file-name { font-weight: 700; font-size: 17px; }
.file-meta { font-size: 13px; color: var(--text-dim); font-family: var(--font-mono); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
  text-align: left;
}

.step {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 12px;
}

.step h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--text-muted); line-height: 1.55; }

.system-note {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 40px;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 96px;
    gap: 48px;
  }
  .hero-content { display: flex; flex-direction: column; align-items: center; }
  .hero p.lead { max-width: 520px; }
  .hero-actions { justify-content: center; }
  .hero-visual img { max-width: 480px; }

  .bento-card { grid-column: span 12 !important; grid-row: span 1 !important; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-btn { display: block; }

  .hero h1 { font-size: clamp(34px, 10vw, 48px); }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }

  .stats-inner { grid-template-columns: 1fr; gap: 16px; text-align: center; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }

  .section { padding: 80px 24px; }
  .quote { padding: 72px 24px; }
  .cta { padding: 80px 24px; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}
