/**
 * Sheetrocket marketing design system
 * Visual discipline inspired by Formgrid.dev (Geist, zinc restraint, generous
 * spacing) while preserving Sheetrocket branding and product messaging.
 */

@import url('https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/style.min.css');

:root {
  --sr-ink: #09090b;
  --sr-ink-soft: #18181b;
  --sr-muted: #71717a;
  --sr-muted-2: #52525b;
  --sr-border: #e4e4e7;
  --sr-border-soft: rgba(24, 24, 27, 0.08);
  --sr-bg: #fafafa;
  --sr-bg-elevated: #ffffff;
  --sr-bg-subtle: #f4f4f5;
  --sr-radius-sm: 0.5rem;
  --sr-radius-md: 0.75rem;
  --sr-radius-lg: 1rem;
  --sr-shadow-product: 0 1px 2px rgba(0, 0, 0, 0.04), 0 24px 48px -28px rgba(0, 0, 0, 0.28);
  --sr-container: 80rem;
  --sr-section-y: clamp(4.5rem, 8vw, 7.5rem);
  --sr-hero-pt: clamp(6.5rem, 12vw, 9rem);
  --sr-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sr-font: 'Geist Sans', Geist, ui-sans-serif, system-ui, -apple-system, sans-serif;
  --sr-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  font-family: var(--sr-font);
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--sr-font);
  color: var(--sr-ink);
  background-color: var(--sr-bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
  position: relative;
}

/* Prevent replaced content / wide embeds from forcing page wider than the viewport */
img,
video,
svg,
canvas,
iframe {
  max-width: 100%;
  height: auto;
}

pre,
code,
table {
  max-width: 100%;
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

.sr-hero-title,
h1.sr-hero-title {
  font-family: var(--sr-font);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--sr-ink);
  text-wrap: balance;
  font-size: clamp(2.125rem, 4.2vw, 3.75rem);
}

.sr-section-title,
h2.sr-section-title {
  font-family: var(--sr-font);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--sr-ink);
  text-wrap: balance;
  font-size: clamp(1.75rem, 2.8vw, 2.75rem);
}

.sr-lede {
  font-size: clamp(1.05rem, 1.4vw, 1.175rem);
  line-height: 1.65;
  font-weight: 400;
  color: var(--sr-muted-2);
  text-wrap: pretty;
}

.sr-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sr-muted);
}

.sr-nav-link {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #3f3f46;
  transition: color 160ms var(--sr-ease);
}

.sr-nav-link:hover {
  color: var(--sr-ink);
}

.sr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--sr-radius-md);
  font-size: 0.9375rem;
  font-weight: 550;
  letter-spacing: -0.015em;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background-color 160ms var(--sr-ease),
    border-color 160ms var(--sr-ease),
    color 160ms var(--sr-ease),
    box-shadow 160ms var(--sr-ease),
    transform 160ms var(--sr-ease);
  cursor: pointer;
}

.sr-btn:focus-visible {
  outline: 2px solid var(--sr-ink);
  outline-offset: 3px;
}

.sr-btn-primary {
  background: var(--sr-ink);
  color: #fff;
  border: 1px solid var(--sr-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.sr-btn-primary:hover {
  background: #18181b;
}

.sr-btn-secondary {
  background: #fff;
  color: var(--sr-ink);
  border: 1px solid #d4d4d8;
}

.sr-btn-secondary:hover {
  background: #fafafa;
  border-color: #a1a1aa;
}

.sr-btn-on-dark {
  background: #fff;
  color: var(--sr-ink);
  border: 1px solid #fff;
}

.sr-btn-on-dark:hover {
  background: #f4f4f5;
}

.sr-btn-ghost-on-dark {
  background: transparent;
  color: #e4e4e7;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.sr-btn-ghost-on-dark:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.hero-backdrop {
  background-color: var(--sr-bg);
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(0, 0, 0, 0.05), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, var(--sr-bg) 42%, var(--sr-bg-subtle) 100%),
    linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
  background-size: auto, auto, 4.5rem 4.5rem, 4.5rem 4.5rem;
  background-position: center, center, center, center;
}

.sr-product-frame {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--sr-border);
  border-radius: calc(var(--sr-radius-lg) + 0.15rem);
  background: #fff;
  box-shadow: var(--sr-shadow-product);
}

.sr-section {
  padding-top: var(--sr-section-y);
  padding-bottom: var(--sr-section-y);
}

.sr-container {
  width: 100%;
  max-width: min(100%, var(--sr-container));
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .sr-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .sr-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.sr-reveal {
  animation: sr-fade-up 700ms var(--sr-ease) both;
}

@keyframes sr-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sr-feature-card {
  transition:
    box-shadow 220ms var(--sr-ease),
    border-color 220ms var(--sr-ease),
    transform 220ms var(--sr-ease);
}

.sr-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.22);
  border-color: #d4d4d8;
}

.sr-preview-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--sr-border);
  border-radius: var(--sr-radius-lg);
  background: #fff;
  box-shadow: var(--sr-shadow-product);
}

.sr-preview-chrome {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  border-bottom: 1px solid var(--sr-border);
  background: #fafafa;
  padding: 0.625rem 0.875rem;
}

.sr-preview-dot {
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 9999px;
  background: #d4d4d8;
}

.sr-code {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-family: var(--sr-mono);
  font-size: 0.8125rem;
  line-height: 1.65;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--sr-radius-md);
  background: #18181b;
  color: #e4e4e7;
  padding: 1.25rem;
  white-space: pre;
}

.sr-code code {
  display: block;
  max-width: 100%;
  white-space: inherit;
}

/* Scaled template previews use width > 100%; keep them inside their card. */
.sr-preview-clip {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  min-width: 0;
}

.sr-preview-clip > * {
  max-width: none;
}

.sr-grid-safe {
  min-width: 0;
}

.sr-grid-safe > * {
  min-width: 0;
  max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .sr-reveal,
  .sr-feature-card,
  .sr-btn {
    animation: none !important;
    transition: none !important;
  }
}
