@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* ─── Brand Colors ─── */
  --primary: #0D9488;
  --primary-hover: #0F766E;
  --primary-dark: #115E59;
  --primary-light: #CCFBF1;
  --primary-subtle: rgba(13, 148, 136, 0.12);

  /* ─── Accents ─── */
  --emerald: #10B981;
  --emerald-subtle: rgba(16, 185, 129, 0.12);
  --amber: #D97706;
  --amber-subtle: rgba(217, 119, 6, 0.12);
  --rose: #E11D48;
  --rose-subtle: rgba(225, 29, 72, 0.12);

  /* ─── Neutrals & Surfaces (Clean Slate / Dark) ─── */
  --bg-page: #0C1210;
  --bg-surface: #121A17;
  --bg-surface-elevated: #17221E;
  --bg-subtle: #1D2A26;

  --border-subtle: #1F2D28;
  --border-light: #2A3C36;
  --border-focus: #0D9488;

  --text-main: #F1F5F3;
  --text-muted: #94A39D;
  --text-dim: #64746E;

  /* ─── Geometry ─── */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 16px;
}

h1, h2, h3, h4 {
  color: var(--text-main);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted);
}

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

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

/* ─── Layout Container ─── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-normal);
  white-space: nowrap;
  line-height: 1.2;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

.btn-lg {
  padding: 13px 24px;
  font-size: 15px;
  border-radius: var(--radius-md);
}

.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-secondary {
  background-color: var(--bg-surface-elevated);
  color: var(--text-main);
  border-color: var(--border-light);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  border-color: var(--text-dim);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-main);
  border-color: var(--border-light);
}

.btn-outline:hover {
  background-color: var(--bg-surface);
  border-color: var(--text-muted);
}

/* ─── Navigation Bar ─── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(12, 18, 16, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.navbar .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.brand-icon {
  width: 30px;
  height: 30px;
  background: var(--primary);
  border-radius: 8px;
  display: grid;
  place-items: center;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

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

.nav-actions {
  display: none;
  align-items: center;
  gap: 12px;
}

/* Mobile Hamburger Toggle */
.mobile-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  cursor: pointer;
}

@media (min-width: 860px) {
  .nav-links {
    display: flex;
  }
  .nav-actions {
    display: flex;
  }
  .mobile-nav-toggle {
    display: none;
  }
}

/* Mobile Navigation Drawer */
.mobile-drawer {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-page);
  z-index: 49;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.2s ease;
  border-bottom: 1px solid var(--border-subtle);
  overflow-y: auto;
}

.mobile-drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-drawer nav a {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-drawer-actions {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ─── Hero Section ─── */
.hero-section {
  padding: 56px 0 48px;
  text-align: center;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 80px 0 64px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background-color: var(--primary-subtle);
  border: 1px solid rgba(13, 148, 136, 0.3);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(28px, 5vw, 48px);
  max-width: 820px;
  margin: 0 auto 20px;
  font-weight: 800;
  color: #FFFFFF;
}

.hero-subtitle {
  font-size: clamp(16px, 2.2vw, 19px);
  max-width: 660px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero-cta-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 440px;
}

@media (min-width: 580px) {
  .hero-cta-buttons {
    flex-direction: row;
    max-width: none;
    justify-content: center;
  }
}

.smart-cta-note {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
}

/* Trust Pills */
.hero-trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 28px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.hero-trust-bar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ─── Clean Product Mockup / Preview ─── */
.product-preview-wrapper {
  margin-top: 44px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.product-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
}

.product-window-bar {
  background: var(--bg-surface-elevated);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-light);
}

.window-address {
  font-size: 12px;
  color: var(--text-dim);
  font-family: monospace;
}

.product-window-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 18px;
}

@media (min-width: 768px) {
  .product-window-grid {
    grid-template-columns: 1fr 1fr;
    padding: 24px;
  }
}

.window-card {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

.window-card-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.window-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 10px;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 13px;
}

.window-item:last-child {
  margin-bottom: 0;
}

.status-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.tag-warning {
  background: var(--amber-subtle);
  color: #FBBF24;
}

.tag-danger {
  background: var(--rose-subtle);
  color: #FB7185;
}

.tag-success {
  background: var(--emerald-subtle);
  color: #34D399;
}

/* ─── Sections ─── */
.section {
  padding: 64px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 96px 0;
  }
}

.section-alt {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(24px, 3.5vw, 36px);
  margin-bottom: 14px;
  color: #FFFFFF;
}

.section-subtitle {
  font-size: 16px;
  line-height: 1.6;
}

/* ─── Feature Grid (Pillars) ─── */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition-normal);
}

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

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-subtle);
  color: var(--primary-light);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.6;
}

/* ─── Interactive Showcase Section ─── */
.showcase-box {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.showcase-nav {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  scrollbar-width: none;
}

.showcase-nav::-webkit-scrollbar {
  display: none;
}

.showcase-tab {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: var(--transition-fast);
}

.showcase-tab:hover {
  color: var(--text-main);
}

.showcase-tab.active {
  color: #FFFFFF;
  border-bottom-color: var(--primary);
  background: var(--bg-page);
}

.showcase-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 24px;
}

@media (min-width: 820px) {
  .showcase-content-grid {
    grid-template-columns: 1fr 1fr;
    padding: 36px;
    align-items: center;
  }
}

.showcase-bullets {
  list-style: none;
  margin: 20px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.showcase-bullets li {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.showcase-bullets li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
}

/* Clean Panels for Preview */
.clean-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.clean-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.panel-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
}

.panel-count {
  font-size: 12px;
  color: var(--primary-light);
  font-weight: 600;
}

.panel-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 12px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.panel-item:last-child {
  margin-bottom: 0;
}

.item-info {
  display: flex;
  flex-direction: column;
}

.item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.item-name.strike {
  text-decoration: line-through;
  color: var(--text-dim);
}

.item-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.status-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.status-warn {
  background: var(--amber-subtle);
  color: #FBBF24;
}

.status-crit {
  background: var(--rose-subtle);
  color: #FB7185;
}

.status-ok {
  background: var(--emerald-subtle);
  color: #34D399;
}

.status-done {
  background: var(--bg-subtle);
  color: var(--text-dim);
}

.status-active {
  background: var(--primary-subtle);
  color: var(--primary-light);
}

.shopping-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.item-check {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}

.item-check.empty {
  background: transparent;
  border: 2px solid var(--border-light);
}

.recipe-card {
  padding: 4px;
}

.recipe-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.recipe-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-light);
  background: var(--primary-subtle);
  padding: 2px 8px;
  border-radius: 4px;
}

.recipe-time {
  font-size: 12px;
  color: var(--text-muted);
}

.recipe-title {
  font-size: 16px;
  margin-bottom: 6px;
}

.recipe-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.recipe-pantry-status {
  font-size: 12px;
  color: #34D399;
  background: var(--emerald-subtle);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
}

.dot-success {
  color: #10B981;
}

.member-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.member-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-page);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
}

.avatar {
  width: 22px;
  height: 22px;
  background: var(--primary);
  border-radius: 50%;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 10px;
}

.sync-status-box {
  font-size: 12px;
  color: var(--primary-light);
  background: var(--primary-subtle);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  display: inline-block;
}

/* ─── Downloads Section ─── */
.downloads-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .downloads-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

.download-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-normal);
}

.download-card.is-recommended {
  border-color: var(--primary);
  background: var(--bg-surface-elevated);
}

.os-recommended-badge {
  display: none;
  position: absolute;
  top: -11px;
  left: 24px;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.download-platform-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.platform-icon-box {
  width: 44px;
  height: 44px;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  color: var(--text-main);
}

.download-card h3 {
  font-size: 18px;
  margin-bottom: 2px;
}

.download-meta {
  font-size: 13px;
  color: var(--text-dim);
}

.download-card p {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
  flex-grow: 1;
}

.download-btn-group {
  margin-top: auto;
}

/* ─── FAQ Section ─── */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-header {
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  user-select: none;
}

.faq-icon {
  font-size: 18px;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.faq-body {
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  display: none;
}

.faq-item.is-open {
  border-color: var(--border-light);
}

.faq-item.is-open .faq-body {
  display: block;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

/* ─── Final CTA Band ─── */
.cta-banner {
  text-align: center;
  padding: 64px 20px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

@media (min-width: 768px) {
  .cta-banner {
    padding: 80px 20px;
  }
}

.cta-banner h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  margin-bottom: 12px;
  color: #FFFFFF;
}

.cta-banner p {
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto 28px;
}

/* ─── Footer ─── */
.footer {
  background: var(--bg-page);
  border-top: 1px solid var(--border-subtle);
  padding: 56px 0 32px;
}

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

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand p {
  font-size: 14px;
  max-width: 320px;
  margin-top: 12px;
  line-height: 1.6;
}

.footer-column h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-main);
  margin-bottom: 14px;
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-column ul a {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-column ul a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  color: var(--text-dim);
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ─── Support Form Styles ─── */
.support-form-box {
  max-width: 580px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-page);
  color: var(--text-main);
  outline: none;
  transition: var(--transition-fast);
  font-family: inherit;
}

.form-control:focus {
  border-color: var(--border-focus);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.alert-box {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: 20px;
  display: none;
}

.alert-success {
  background: var(--emerald-subtle);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.alert-error {
  background: var(--rose-subtle);
  color: #FB7185;
  border: 1px solid rgba(225, 29, 72, 0.3);
}
