/* ClipIt Marketing Site — shared stylesheet */

:root {
  --bg: #000000;
  --bg-elevated: #0a0a0a;
  --bg-card: #111111;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --text-secondary: #a1a1a6;
  --text-tertiary: #6e6e73;
  --accent: #ffffff;
  --accent-muted: rgba(255, 255, 255, 0.12);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.55);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.35);
  --container: 1120px;
  --header-height: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    "SF Pro Display",
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.3s var(--ease),
    background 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-color: var(--border);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  color: var(--text);
}

.nav-toggle:hover {
  background: var(--accent-muted);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-height) 0 0 0;
  padding: 24px;
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
  z-index: 90;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.mobile-nav a {
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.mobile-nav a:hover,
.mobile-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--accent-muted);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition:
    transform 0.2s var(--ease),
    background 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease;
}

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

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover:not(:disabled) {
  background: #f5f5f7;
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-secondary {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: transparent;
}

.btn-secondary:hover {
  background: var(--accent-muted);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-ghost {
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.coming-soon-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--accent-muted);
  color: var(--text-secondary);
  vertical-align: middle;
}

/* Hero */

.hero {
  position: relative;
  padding: 72px 0 96px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 120vw);
  height: 500px;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.02) 40%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 56px;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 24px;
  max-width: 640px;
}

.hero-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.hero .lead {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 52ch;
}

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 320px);
}

.phone-frame {
  position: relative;
  padding: 14px;
  border-radius: 40px;
  background: linear-gradient(145deg, #1c1c1e 0%, #0d0d0d 100%);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-soft);
}

.phone-screen {
  position: relative;
  aspect-ratio: 9 / 19.5;
  border-radius: 28px;
  overflow: hidden;
  background: #0a0a0a;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-label {
  position: absolute;
  inset: auto 12px 12px 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.78);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--text-secondary);
  text-align: center;
  pointer-events: none;
}

/* Sections */

.section {
  padding: 96px 0;
}

.section-header {
  display: grid;
  gap: 16px;
  margin-bottom: 48px;
  max-width: 640px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  gap: 20px;
}

.feature-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition:
    border-color 0.25s ease,
    transform 0.25s var(--ease);
}

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

.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--accent-muted);
  font-size: 1.2rem;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.6;
}

.preview-band {
  padding: 80px 0;
  border-block: 1px solid var(--border);
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.02) 50%, transparent 100%);
}

.preview-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-soft);
}

.preview-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.preview-frame .placeholder-label {
  inset: auto 20px 20px 20px;
}

/* Page layouts */

.page-hero {
  padding: 64px 0 40px;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 60ch;
}

.page-content {
  padding: 24px 0 96px;
}

.prose {
  max-width: 720px;
  color: var(--text-secondary);
}

.prose > * + * {
  margin-top: 1.25rem;
}

.prose h2 {
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 2.5rem;
}

.prose h3 {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 2rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.5rem;
}

.prose a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose strong {
  color: var(--text);
}

.info-card {
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.info-card + .info-card {
  margin-top: 20px;
}

.info-card h2,
.info-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.info-card p,
.info-card li {
  color: var(--text-secondary);
}

.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 44px;
  counter-increment: step;
}

.steps li + li {
  margin-top: 16px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-muted);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
}

.faq-list {
  list-style: none;
  display: grid;
  gap: 16px;
}

.faq-item {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.faq-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 8px;
}

.contact-email:hover {
  opacity: 0.85;
}

/* Footer */

.site-footer {
  padding: 48px 0 40px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  gap: 32px;
}

.footer-brand p {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  max-width: 32ch;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

/* Utilities */

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

.section-header.is-centered {
  margin-inline: auto;
  text-align: center;
}

.text-center {
  text-align: center;
}

/* Responsive */

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

  .nav-toggle {
    display: none;
  }

  .hero {
    padding: 96px 0 120px;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
  }

  .hero-visual {
    width: min(100%, 360px);
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .hero-visual {
    width: 380px;
  }
}

@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;
  }
}
