:root {
  --bg: #050316;
  --bg-alt: #0b051f;
  --card-bg: #120b2c;
  --card-alt: #17112f;
  --accent: #8b5cf6;
  --accent-soft: rgba(139, 92, 246, 0.2);
  --accent-strong: #a855f7;
  --text: #f9fafb;
  --text-soft: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.22);
  --danger: #ef4444;
  --success: #22c55e;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.7);
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.75);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top left, #1e1036 0, #050316 40%, #020015 100%);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

/* Base */

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
}

p {
  margin: 0;
}

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

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: rgba(15, 23, 42, 0.9);
  padding: 0.12rem 0.35rem;
  border-radius: 999px;
  font-size: 0.78rem;
}

/* Layout */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.06), transparent 50%);
}

.section-title {
  font-size: 1.7rem;
  margin-bottom: 0.4rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-soft);
  max-width: 640px;
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(5, 3, 22, 0.94), rgba(5, 3, 22, 0.86));
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.4rem;
  gap: 1.5rem;
}

/* Logo */

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 10% 10%, #f97316, #a855f7);
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1rem;
  font-weight: 600;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--text-soft);
}

/* Nav */

.nav {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-link {
  font-size: 0.82rem;
  color: var(--text-soft);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
  border: 1px solid transparent;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.4);
}

.nav-link-pill {
  border-color: rgba(168, 85, 247, 0.6);
  background: radial-gradient(circle at top left, rgba(139, 92, 246, 0.28), rgba(15, 23, 42, 0.96));
  color: #fefce8;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 0.1rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
}

/* Hero */

.hero {
  position: relative;
  padding: 3.1rem 0 3rem;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(129, 140, 248, 0.28), transparent 55%),
    radial-gradient(circle at bottom right, rgba(236, 72, 153, 0.26), transparent 55%);
  opacity: 0.85;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: center;
  z-index: 1;
}

.hero-content h1 {
  font-size: clamp(2rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
}

.hero-subtitle {
  font-size: 0.96rem;
  color: var(--text-soft);
  max-width: 560px;
  margin-bottom: 1rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.tag {
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 0.75rem;
  color: var(--text-soft);
  background: rgba(15, 23, 42, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  font-size: 0.86rem;
  padding: 0.55rem 1.2rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.12s ease, box-shadow 0.12s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary,
.btn-full {
  background: radial-gradient(circle at top left, #a855f7, #6366f1);
  border-color: rgba(191, 219, 254, 0.35);
  color: #fefce8;
  box-shadow: 0 20px 45px rgba(79, 70, 229, 0.6);
}

.btn-primary:hover,
.btn-full:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 55px rgba(79, 70, 229, 0.75);
}

.btn-outline {
  background: rgba(15, 23, 42, 0.85);
  color: var(--text-soft);
  border-color: rgba(148, 163, 184, 0.5);
}

.btn-outline:hover {
  border-color: rgba(168, 85, 247, 0.9);
  color: var(--text);
}

/* Cards & grids */

.grid {
  display: grid;
  gap: 1.4rem;
}

.features-grid {
  margin-top: 1.7rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.08), rgba(15, 23, 42, 0.96));
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.26);
  box-shadow: var(--shadow-sm);
}

.card-accent {
  border-color: rgba(168, 85, 247, 0.7);
  background:
    radial-gradient(circle at top left, rgba(168, 85, 247, 0.28), rgba(15, 23, 42, 0.96));
}

.feature-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.38);
  margin-bottom: 0.7rem;
}

/* Hero side card */

.hero-card {
  background: rgba(15, 23, 42, 0.98);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 1.1rem 1.1rem 1rem;
  box-shadow: var(--shadow-soft);
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.25);
}

.status-text {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.hero-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.hero-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.83rem;
  color: var(--text-soft);
}

.hero-card-list li + li {
  margin-top: 0.25rem;
}

.hero-card-footer {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* Steps */

.steps {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.2rem;
}

.step {
  display: flex;
  gap: 0.7rem;
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
}

.step-content h3 {
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.step-content p {
  font-size: 0.82rem;
  color: var(--text-soft);
}

/* Commands */

.commands-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.4rem;
  margin-bottom: 0.8rem;
}

.commands-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.commands-table thead {
  background: rgba(15, 23, 42, 0.98);
}

.commands-table th,
.commands-table td {
  padding: 0.55rem 0.75rem;
  text-align: left;
}

.commands-table th {
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--text-soft);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.commands-table tr:nth-child(even) td {
  background: rgba(15, 23, 42, 0.82);
}

.commands-table tr:nth-child(odd) td {
  background: rgba(9, 9, 22, 0.92);
}

.command-name {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.8rem;
}

.command-desc {
  color: var(--text-soft);
}

.command-badge {
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

/* Privacy & TOS */

.policy-box {
  margin-top: 1.4rem;
  display: grid;
  gap: 1.1rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* Contact / footer stuff */

.contact-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
}

/* Footer */

.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  padding: 1.2rem 0 1.4rem;
  margin-top: 1rem;
  background: rgba(5, 3, 22, 0.96);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

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

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

/* Badges */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.badge-soft {
  background: rgba(148, 163, 184, 0.1);
}

/* ========================= */
/* Recettes – listing & détail */
/* ========================= */

.hero-recipes {
  padding-top: 4rem;
}

.hero-recipes-inner {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}

.hero-recipes-card {
  margin-top: 1rem;
}

.recipes-header {
  margin-top: 1.2rem;
  margin-bottom: 1.4rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.recipes-search input {
  width: 100%;
  max-width: 280px;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.96);
  color: var(--text);
  font-size: 0.85rem;
  outline: none;
}

.recipes-search input::placeholder {
  color: var(--text-soft);
}

.recipes-grid {
  margin-top: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

/* Cards recettes */

.recipe-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.08), rgba(15, 23, 42, 0.96));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: var(--shadow-sm);
}

.recipe-card-image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
  background: rgba(15, 23, 42, 0.9);
}

.recipe-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.recipe-card-body {
  padding: 0.9rem 0.9rem 1rem;
}

.recipe-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}

.tag-small {
  font-size: 0.7rem;
  padding: 0.15rem 0.55rem;
}

.recipe-card-title {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.recipe-card-desc {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.recipe-card-macros {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.recipe-card:hover .recipe-card-image {
  transform: scale(1.05);
}

/* Détail recette */

.recipe-section {
  padding-top: 4rem;
}

.recipe-detail {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.recipe-detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr);
  gap: 1.8rem;
  align-items: center;
}

.recipe-detail-image-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.96);
}

.recipe-detail-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.recipe-detail-info h1 {
  margin: 0 0 0.4rem;
  font-size: 1.7rem;
}

.recipe-detail-desc {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.recipe-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}

.recipe-detail-macros {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.recipe-detail-macros div {
  padding: 0.5rem 0.7rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
}

.macro-label {
  display: block;
  color: var(--text-soft);
}

.macro-value {
  font-weight: 600;
}

.recipe-detail-bot-tip {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.recipe-detail-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 1.5rem;
}

.recipe-detail-column h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

.recipe-detail-column h3 {
  margin-top: 1rem;
  margin-bottom: 0.4rem;
  font-size: 0.98rem;
}

.recipe-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.recipe-list li + li {
  margin-top: 0.25rem;
}

.recipe-list.ordered {
  padding-left: 1.2rem;
}

.recipe-tip {
  margin-top: 0.8rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.07);
  border: 1px solid rgba(34, 197, 94, 0.3);
  font-size: 0.85rem;
  color: #bbf7d0;
}

.recipe-back-btn {
  margin-top: 1rem;
}

/* ========================= */
/* Responsive */
/* ========================= */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-recipes-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-recipes-card {
    order: -1;
  }
}

@media (max-width: 780px) {
  .header-inner {
    padding-inline: 0;
  }

  .nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .recipes-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .recipe-detail-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .recipe-detail-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .recipe-detail-macros {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .section {
    padding: 3rem 0;
  }

  .hero {
    padding-top: 2.4rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .recipe-card-image-wrapper {
    aspect-ratio: 4 / 3;
  }
}
