/* Vibetonomy www — shared stylesheet
   Colour palette matched to the app's Tailwind v4 @theme tokens. */

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand colours (from app @theme) */
  --purple-accent: #a855f7;
  --purple-accent-hover: #9333ea;
  --purple-accent-muted: rgba(126, 34, 206, 0.2);

  /* Zinc palette (Tailwind defaults used in app) */
  --zinc-50: #fafafa;
  --zinc-100: #f4f4f5;
  --zinc-200: #e4e4e7;
  --zinc-300: #d4d4d8;
  --zinc-400: #a1a1aa;
  --zinc-500: #71717a;
  --zinc-600: #52525b;
  --zinc-700: #3f3f46;
  --zinc-800: #27272a;
  --zinc-900: #18181b;
  --zinc-950: #09090b;

  /* Typography */
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --max-width: 72rem;
  --header-height: 4rem;
}

html {
  font-family: var(--font-sans);
  color: var(--zinc-300);
  background: var(--zinc-950);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--purple-accent);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--purple-accent-hover);
}

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

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--zinc-800);
}

.site-header .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.site-header .logo .logo-img {
  height: 2rem;
  width: auto;
}
.site-header .logo span {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--zinc-100);
}

.header-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--zinc-300);
  border: 1px solid var(--zinc-700);
}
.btn-ghost:hover {
  background: var(--zinc-800);
  color: var(--zinc-100);
}

.btn-primary {
  background: var(--purple-accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--purple-accent-hover);
  color: #fff;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.625rem;
}

/* ---- Hero ---- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  flex: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--purple-accent);
  background: var(--purple-accent-muted);
  border: 1px solid rgba(168, 85, 247, 0.25);
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--zinc-50);
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
  max-width: 48rem;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--purple-accent), #c084fc, #e879f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--zinc-400);
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---- Features grid ---- */
.features {
  padding: 4rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--zinc-900);
  border: 1px solid var(--zinc-800);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: border-color 0.2s ease;
}
.feature-card:hover {
  border-color: var(--zinc-700);
}

.feature-card .icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--zinc-100);
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--zinc-400);
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--zinc-800);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--zinc-500);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.footer-links a {
  color: var(--zinc-400);
  font-size: 0.8125rem;
}
.footer-links a:hover {
  color: var(--purple-accent);
}

/* ---- Legal pages (privacy, terms) ---- */
.legal {
  max-width: 48rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.legal h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--zinc-50);
  margin-bottom: 0.5rem;
}

.legal .last-updated {
  font-size: 0.875rem;
  color: var(--zinc-500);
  margin-bottom: 2.5rem;
}

.legal h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--zinc-100);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal p,
.legal ul,
.legal ol {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--zinc-300);
  margin-bottom: 1rem;
}

.legal ul,
.legal ol {
  padding-left: 1.5rem;
}

.legal li {
  margin-bottom: 0.5rem;
}

.legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .site-header {
    padding: 0 1rem;
  }

  .hero {
    padding: 4rem 1rem 3rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .btn-lg {
    width: 100%;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    max-width: 20rem;
  }
}
