/* ============================================
   Molen Labs — Main Stylesheet
   Brand: Automation tools for developers.
   ============================================ */

:root {
  /* Colors */
  --midnight: #0C0F22;
  --midnight-soft: #13182B;
  --midnight-line: #1E2535;
  --orange: #FF6B2B;
  --orange-hover: #FF8453;
  --white: #FFFFFF;
  --off-white: #C8CCDC;
  --muted: #8B94A3;
  --success: #34D399;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  /* Layout */
  --max-content: 1200px;
  --max-prose: 720px;

  /* Shadows */
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 8px 30px rgba(255, 107, 43, 0.15);

  /* Transitions */
  --transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.875rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }

p {
  font-size: 1.0625rem;
  color: var(--off-white);
}

a {
  color: var(--orange);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--orange-hover); }

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--midnight-soft);
  padding: 0.125em 0.375em;
  border-radius: 4px;
  color: var(--off-white);
}

/* Container */
.container {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   NAV
   ============================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 15, 34, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--midnight-line);
}

.nav__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
}

.nav__logo:hover { color: var(--white); }

.nav__logo svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav__links a {
  color: var(--off-white);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.nav__links a:hover { color: var(--white); }

.nav__lang {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
}

.nav__lang a {
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 4px;
  transition: all var(--transition);
}

.nav__lang a:hover { color: var(--white); background: var(--midnight-soft); }
.nav__lang a.active { color: var(--white); background: var(--midnight-soft); }

.nav__cta {
  background: var(--orange);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all var(--transition);
}

.nav__cta:hover {
  background: var(--orange-hover);
  color: var(--white);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .nav__links li:not(:last-child) { display: none; }
  .nav__cta { padding: 8px 14px; font-size: 0.875rem; }
}

/* ============================================
   HERO
   ============================================ */

.hero {
  padding: 96px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 107, 43, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero__eyebrow {
  display: inline-block;
  color: var(--orange);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding: 8px 16px;
  background: rgba(255, 107, 43, 0.1);
  border: 1px solid rgba(255, 107, 43, 0.25);
  border-radius: 999px;
  position: relative;
  z-index: 1;
}

.hero__headline {
  max-width: 900px;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
}

.hero__sub {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  max-width: 620px;
  margin: 0 auto 40px;
  color: var(--off-white);
  position: relative;
  z-index: 1;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--orange);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--orange-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 43, 0.3);
}

.btn--secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--midnight-line);
}

.btn--secondary:hover {
  background: var(--midnight-soft);
  color: var(--white);
  border-color: var(--off-white);
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
  padding: 80px 0;
}

.section__header {
  text-align: center;
  margin-bottom: 56px;
}

.section__header h2 {
  margin-bottom: 12px;
}

.section__header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--off-white);
}

/* ============================================
   PRODUCT CARDS
   ============================================ */

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.card {
  background: var(--midnight-soft);
  border: 1px solid var(--midnight-line);
  border-radius: 16px;
  padding: 32px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 43, 0.4);
  box-shadow: var(--shadow-card-hover);
}

.card__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
  width: fit-content;
}

.card__badge--available {
  background: rgba(52, 211, 153, 0.15);
  color: var(--success);
}

.card__badge--coming {
  background: rgba(139, 148, 163, 0.15);
  color: var(--muted);
}

.card__title {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.card__tagline {
  color: var(--orange);
  font-weight: 500;
  margin-bottom: 16px;
  font-size: 1rem;
}

.card__desc {
  color: var(--off-white);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.card__price {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
}

.card__price span {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.9375rem;
}

.card__cta {
  color: var(--orange);
  font-weight: 600;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}

.card__cta:hover { gap: 10px; color: var(--orange-hover); }

/* Coming soon email form */
.card__form {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.card__form input {
  flex: 1;
  padding: 10px 14px;
  background: var(--midnight);
  border: 1px solid var(--midnight-line);
  border-radius: 8px;
  color: var(--white);
  font-size: 0.9375rem;
  font-family: inherit;
}

.card__form input:focus {
  outline: none;
  border-color: var(--orange);
}

.card__form button {
  padding: 10px 16px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background var(--transition);
}

.card__form button:hover { background: var(--orange-hover); }

/* ============================================
   WHY SECTION (pillars)
   ============================================ */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.pillar {
  text-align: left;
}

.pillar__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 107, 43, 0.1);
  color: var(--orange);
  border-radius: 10px;
  font-weight: 700;
  margin-bottom: 16px;
}

.pillar h3 {
  margin-bottom: 12px;
  color: var(--white);
}

.pillar p {
  color: var(--off-white);
  font-size: 0.9375rem;
}

/* ============================================
   FOUNDER SECTION
   ============================================ */

.founder {
  background: var(--midnight-soft);
  border: 1px solid var(--midnight-line);
  border-radius: 20px;
  padding: 56px 40px;
  text-align: center;
  max-width: var(--max-prose);
  margin: 0 auto;
}

.founder h2 {
  margin-bottom: 16px;
}

.founder p {
  font-size: 1.0625rem;
  margin-bottom: 12px;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--midnight-soft);
  border-top: 1px solid var(--midnight-line);
  padding: 64px 0 32px;
  margin-top: 96px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer__brand { grid-column: 1 / -1; }
}

.footer__brand img {
  height: 32px;
  margin-bottom: 12px;
}

.footer__brand p {
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 300px;
}

.footer__col h4 {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer__col ul {
  list-style: none;
}

.footer__col li {
  margin-bottom: 10px;
}

.footer__col a {
  color: var(--muted);
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.footer__col a:hover { color: var(--white); }

.footer__bottom {
  padding-top: 32px;
  border-top: 1px solid var(--midnight-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.875rem;
}

/* ============================================
   PROSE / DOCUMENT PAGES (privacy, terms, changelog)
   ============================================ */

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

.prose h1 { margin-bottom: 8px; }
.prose > p:first-of-type { color: var(--muted); margin-bottom: 32px; }

.prose h2 {
  margin-top: 40px;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.prose h3 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 1.125rem;
}

.prose p, .prose li {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
  color: var(--off-white);
}

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

.prose ul, .prose ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9375rem;
}

.prose th, .prose td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--midnight-line);
}

.prose th {
  background: var(--midnight-soft);
  font-weight: 600;
  color: var(--white);
}

.prose td { color: var(--off-white); }

.prose hr {
  border: none;
  border-top: 1px solid var(--midnight-line);
  margin: 40px 0;
}

/* ============================================
   CHANGELOG
   ============================================ */

.changelog-entry {
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--midnight-line);
}

.changelog-entry:last-child {
  border-bottom: none;
}

.changelog-date {
  font-size: 0.875rem;
  color: var(--muted);
  font-family: var(--font-mono);
  margin-bottom: 8px;
}

.changelog-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--white);
}

.changelog-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  margin-right: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.changelog-tag--feature { background: rgba(52, 211, 153, 0.15); color: var(--success); }
.changelog-tag--fix { background: rgba(255, 107, 43, 0.15); color: var(--orange); }
.changelog-tag--update { background: rgba(139, 148, 163, 0.15); color: var(--muted); }
