/* ===================================================
   WYKTA — Design System (Dark / Fluorescent Green)
   =================================================== */

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

:root {
  --bg:            #030711;
  --surface:       rgba(15, 23, 42, 0.85);
  --surface-2:     rgba(30, 41, 59, 0.70);
  --border:        rgba(52, 211, 153, 0.14);
  --border-2:      rgba(52, 211, 153, 0.26);
  --text:          #f1f5f9;
  --text-2:        #94a3b8;
  --text-3:        #64748b;
  --brand:         #34d399;
  --brand-2:       #4ade80;
  --brand-dark:    #059669;
  --brand-light:   #6ee7b7;
  --brand-vivid:   #10b981;
  --green:         #4ade80;
  --green-bg:      rgba(74, 222, 128, 0.08);
  --green-border:  rgba(74, 222, 128, 0.25);
  --amber:         #fbbf24;
  --amber-bg:      rgba(251, 191, 36, 0.08);
  --amber-border:  rgba(251, 191, 36, 0.30);
  --red:           #f87171;
  --red-bg:        rgba(248, 113, 113, 0.08);
  --red-border:    rgba(248, 113, 113, 0.30);
  --radius:        14px;
  --radius-sm:     9px;
  --radius-lg:     22px;
  --shadow:        0 4px 28px rgba(0, 0, 0, 0.45);
  --glow:          rgba(52, 211, 153, 0.22);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Ambient background — dark with fluorescent green glows */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 90% 60% at 50% -12%, rgba(52, 211, 153, 0.16), transparent),
    radial-gradient(ellipse 60% 50% at 92% 94%, rgba(56, 189, 248, 0.13), transparent),
    radial-gradient(ellipse 50% 40% at 6% 72%, rgba(74, 222, 128, 0.10), transparent),
    radial-gradient(ellipse 40% 30% at 70% 30%, rgba(52, 211, 153, 0.07), transparent),
    linear-gradient(180deg, #030711 0%, #030c1a 50%, #030711 100%);
  pointer-events: none;
}

/* Subtle diagonal stripe texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 28px,
    rgba(52, 211, 153, 0.022) 28px,
    rgba(52, 211, 153, 0.022) 29px
  );
  pointer-events: none;
}

/* === NAVIGATION === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  background: rgba(3, 7, 17, 0.86);
  box-shadow: 0 1px 0 rgba(52, 211, 153, 0.08), 0 4px 20px rgba(52, 211, 153, 0.05);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(52, 211, 153, 0.45), transparent 60%),
    radial-gradient(circle at 75% 80%, rgba(74, 222, 128, 0.30), transparent 64%),
    linear-gradient(145deg, #0d2d1e, #061a0f);
  border: 1px solid rgba(52, 211, 153, 0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 18px rgba(52, 211, 153, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.brand-mark svg {
  width: 21px;
  height: 21px;
  position: relative;
  z-index: 1;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, rgba(52, 211, 153, 0.18), rgba(56, 189, 248, 0.14), rgba(74, 222, 128, 0.2), rgba(52, 211, 153, 0.18));
  opacity: 0.7;
  filter: blur(12px);
  z-index: 0;
  transform: scale(0.8);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.brand:hover {
  transform: translateY(-1px);
}

.brand:hover .brand-mark {
  transform: translateY(-1px) scale(1.02);
  border-color: rgba(52, 211, 153, 0.55);
  box-shadow: 0 8px 28px rgba(52, 211, 153, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.brand:hover .brand-mark::after {
  transform: scale(1);
  opacity: 0.92;
}

.nav-right { display: flex; align-items: center; gap: 12px; }

.nav-link {
  text-decoration: none;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover { color: var(--brand); }

.lang-select {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 7px 11px;
  font-size: 13px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}
.lang-select:focus { border-color: var(--brand); }

/* === MAIN LAYOUT === */
.main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 52px 24px 88px;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

/* === HERO === */
.hero {
  text-align: center;
  padding: 80px 0 16px;
  position: relative;
  overflow: visible;
}

/* Floating particle animation for hero */
.hero::before {
  content: '';
  position: absolute;
  inset: -60px;
  z-index: 0;
  background:
    radial-gradient(circle 3px at 18% 30%, rgba(52, 211, 153, 0.55), transparent),
    radial-gradient(circle 2px at 82% 24%, rgba(56, 189, 248, 0.45), transparent),
    radial-gradient(circle 4px at 66% 72%, rgba(74, 222, 128, 0.35), transparent),
    radial-gradient(circle 2px at 32% 78%, rgba(52, 211, 153, 0.40), transparent),
    radial-gradient(circle 3px at 90% 55%, rgba(56, 189, 248, 0.38), transparent),
    radial-gradient(circle 2px at 10% 62%, rgba(74, 222, 128, 0.30), transparent);
  animation: floatParticles 18s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes floatParticles {
  0%   { transform: translateY(0px) translateX(0px); opacity: 0.6; }
  33%  { transform: translateY(-14px) translateX(8px); opacity: 1; }
  66%  { transform: translateY(-6px) translateX(-10px); opacity: 0.7; }
  100% { transform: translateY(-18px) translateX(4px); opacity: 0.9; }
}

.hero > * { position: relative; z-index: 1; }

/* Decorative hero background blob */
.hero-illustration {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(700px, 90vw);
  height: min(500px, 70vw);
  background:
    radial-gradient(ellipse 70% 60% at 40% 50%, rgba(56, 189, 248, 0.10), transparent 80%),
    radial-gradient(ellipse 50% 70% at 65% 45%, rgba(52, 211, 153, 0.08), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  animation: blobPulse 10s ease-in-out infinite alternate;
}

@keyframes blobPulse {
  0%   { transform: translate(-50%, -50%) scale(1); }
  50%  { transform: translate(-50%, -52%) scale(1.06); }
  100% { transform: translate(-50%, -50%) scale(0.96); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.14), rgba(56, 189, 248, 0.10));
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--brand);
  margin-bottom: 26px;
  box-shadow: 0 2px 12px rgba(52, 211, 153, 0.12), inset 0 1px 0 rgba(255,255,255,0.07);
  animation: badgePop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes badgePop {
  from { opacity: 0; transform: scale(0.82) translateY(-6px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(32px, 5.8vw, 64px);
  font-weight: 900;
  line-height: 1.10;
  letter-spacing: -0.032em;
  margin-bottom: 22px;
  animation: titleReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

@keyframes titleReveal {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.gradient-text {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 25%, var(--brand-2) 55%, var(--brand-vivid) 80%, var(--brand-2) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 6s linear infinite;
}

@keyframes gradientFlow {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-sub {
  font-size: 17px;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto 38px;
  line-height: 1.78;
  animation: titleReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.proof-item {
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.85) 0%, rgba(52, 211, 153, 0.10) 100%);
  border: 1px solid rgba(52, 211, 153, 0.20);
  border-radius: var(--radius);
  padding: 18px 16px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  box-shadow: 0 2px 12px rgba(52, 211, 153, 0.06);
  position: relative;
  overflow: hidden;
}

.proof-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(52, 211, 153, 0.35), transparent);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.proof-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(52, 211, 153, 0.13);
  border-color: rgba(52, 211, 153, 0.32);
}

.proof-item:hover::before { opacity: 1; }

.proof-label {
  display: block;
  color: var(--text-3);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 7px;
  font-weight: 600;
}

.proof-item strong {
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  position: relative;
}

/* Horizontal connecting line between workflow cards on desktop */
.workflow-grid::before {
  content: '';
  position: absolute;
  top: 42px;
  left: calc(12.5% + 15px);
  right: calc(12.5% + 15px);
  height: 2px;
  background: linear-gradient(90deg,
    rgba(52, 211, 153, 0.20) 0%,
    rgba(56, 189, 248, 0.50) 30%,
    rgba(56, 189, 248, 0.50) 70%,
    rgba(52, 211, 153, 0.20) 100%
  );
  z-index: 0;
  border-radius: 1px;
}

.workflow-card {
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.90) 0%, rgba(52, 211, 153, 0.10) 100%);
  border: 1px solid rgba(52, 211, 153, 0.20);
  border-radius: var(--radius);
  padding: 20px 16px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  position: relative;
  z-index: 1;
}

.workflow-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(52, 211, 153, 0.13);
}

.workflow-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border: none;
  margin-bottom: 12px;
  box-shadow: 0 3px 10px rgba(52, 211, 153, 0.30);
  flex-shrink: 0;
}

.workflow-card h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.workflow-card p {
  font-size: 13px;
  color: var(--text-2);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.chip {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(52, 211, 153, 0.09);
  border: 1px solid rgba(52, 211, 153, 0.22);
  color: var(--brand);
}

/* === CARD BASE === */
.card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(52, 211, 153, 0.16), 0 0 0 1px rgba(52, 211, 153, 0.10);
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.card-subtitle {
  color: var(--text-2);
  font-size: 13px;
  margin: -8px 0 14px;
}

/* === TOOL GRID === */
.tool-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  align-items: start;
}

/* === FORM ELEMENTS === */
.field-label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 8px;
}

.input-area {
  width: 100%;
  background: #030711;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  color: var(--text);
  padding: 14px;
  font-size: 14px;
  line-height: 1.65;
  resize: vertical;
  min-height: 148px;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.input-area:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.11);
}

/* === BUTTONS === */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 18px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s, box-shadow 0.15s, transform 0.1s;
  white-space: nowrap;
  font-family: inherit;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Shimmer keyframes for primary button */
@keyframes btnShine {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.btn-primary {
  background: linear-gradient(90deg,
    var(--brand) 0%,
    var(--brand-2) 40%,
    var(--brand-light) 52%,
    var(--brand-2) 64%,
    var(--brand) 100%
  );
  background-size: 300% auto;
  color: #ffffff;
  box-shadow: 0 3px 16px rgba(52, 211, 153, 0.32);
  animation: btnShine 3.5s linear infinite;
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.12) 50%, transparent 100%);
  background-size: 200% auto;
  animation: btnShine 2.8s linear infinite;
  border-radius: inherit;
  pointer-events: none;
}
.btn-primary:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow: 0 6px 26px rgba(52, 211, 153, 0.44);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn-secondary:hover { background: rgba(52, 211, 153, 0.07); border-color: rgba(52, 211, 153, 0.30); }

.btn-icon {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn-icon-svg {
  width: 15px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon-svg svg {
  width: 100%;
  height: 100%;
}

/* === LOADING SPINNER === */
@keyframes spin { to { transform: rotate(360deg); } }

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.55s linear infinite;
  flex-shrink: 0;
}

/* === CAMERA PANEL === */
.camera-card { text-align: left; }

.camera-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(52, 211, 153, 0.06);
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.camera-wrapper video {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}

.camera-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 13px;
  gap: 8px;
  pointer-events: none;
}

.camera-placeholder .cam-icon {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 4px 10px;
}

.ocr-result {
  font-size: 12px;
  color: var(--text-2);
  background: #030711;
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  max-height: 78px;
  overflow-y: auto;
  text-align: left;
  word-break: break-word;
  display: none;
}
.ocr-result.visible { display: block; }

/* === RESULTS SECTION === */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.results-section { animation: fadeSlideUp 0.38s ease; }

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* === INGREDIENT RESULT CARDS === */
.analysis-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 14px;
}

.ingredient-card {
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  margin-bottom: 8px;
  border-left: 3px solid;
  font-size: 13.5px;
  line-height: 1.5;
}
.ingredient-card:last-child { margin-bottom: 0; }

.ingredient-card.safe    { border-left-color: var(--green); background: var(--green-bg); }
.ingredient-card.caution { border-left-color: var(--amber); background: var(--amber-bg); }
.ingredient-card.danger  { border-left-color: var(--red);   background: var(--red-bg);   }
.ingredient-card.neutral { border-left-color: var(--border-2); background: rgba(52, 211, 153, 0.03); }

.ingredient-name {
  font-weight: 700;
  text-transform: capitalize;
  margin-right: 6px;
}

.ingredient-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 999px;
  margin-right: 6px;
  display: inline-block;
}
.ingredient-category.food     { background: rgba(52, 211, 153, 0.12); color: var(--brand); }
.ingredient-category.skincare { background: rgba(56, 189, 248, 0.16); color: #7dd3fc; }
.ingredient-category.general  { background: rgba(74, 122, 88, 0.09);  color: var(--text-2); }

.ingredient-detail {
  color: var(--text-2);
  font-size: 13px;
  display: block;
  margin-top: 3px;
}

/* === WARNING CARDS === */
.warning-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 10px;
  font-size: 13.5px;
  color: #fbbf24;
}
.warning-card:last-child { margin-bottom: 0; }
.warning-icon {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--amber-border);
  border-radius: 999px;
  color: #f59e0b;
  padding: 2px 8px;
  line-height: 1.2;
}

.no-conflict {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
}

/* === MESSAGE CARDS === */
.message-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 14px;
}
.message-card.info {
  background: rgba(52, 211, 153, 0.07);
  border: 1px solid rgba(52, 211, 153, 0.22);
  color: var(--text-2);
}
.message-card.error {
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  color: #f87171;
}

/* === EMPTY STATE === */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 36px 20px;
  color: var(--text-3);
  font-size: 13px;
  text-align: center;
}

/* === PRICING / VALUE SECTION === */
.value-header {
  text-align: center;
  margin-bottom: 30px;
}
.value-header h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.value-header p { color: var(--text-2); font-size: 15px; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.plan-card {
  background: rgba(15, 23, 42, 0.90);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(52, 211, 153, 0.13);
}

.plan-card.featured {
  border-color: rgba(52, 211, 153, 0.45);
  background: linear-gradient(145deg, rgba(52, 211, 153, 0.08), rgba(56, 189, 248, 0.06));
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.30), 0 20px 60px rgba(52, 211, 153, 0.14);
}

.plan-card.featured:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.40), 0 24px 70px rgba(52, 211, 153, 0.20);
}

.plan-badge {
  position: absolute;
  top: -1px;
  right: 22px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 0 0 9px 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.plan-name  { font-size: 15px; font-weight: 700; margin-bottom: 8px; }

/* Price pulse animation on load */
@keyframes pricePulse {
  0%   { transform: scale(0.88); opacity: 0; }
  60%  { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.plan-price {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 4px;
  animation: pricePulse 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.plan-period { font-size: 12.5px; color: var(--text-3); margin-bottom: 22px; }

.plan-features { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.plan-features li {
  display: flex;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-2);
}
.plan-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 7px;
  background: var(--green);
  flex-shrink: 0;
}
.plan-features li.muted::before { background: var(--text-3); }
.plan-features li.muted { color: var(--text-3); }

/* === HERO CTA === */
.hero-cta {
  display: inline-flex;
  margin-top: 28px;
  padding: 13px 32px;
  font-size: 15px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

/* === BILLING TOGGLE === */
.billing-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-bottom: 22px;
}

.pricing-benchmark {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-3);
  margin: -8px 0 20px;
}

.billing-btn {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  color: var(--text-2);
  border-radius: var(--radius-sm);
  padding: 7px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  font-family: inherit;
}
.billing-btn.active {
  background: rgba(52, 211, 153, 0.14);
  border-color: rgba(52, 211, 153, 0.45);
  color: var(--brand);
}
.billing-btn:hover:not(.active) {
  border-color: var(--border-2);
  background: rgba(52, 211, 153, 0.06);
}

.billing-discount {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.32);
  color: var(--brand);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.billing-discount.visible { opacity: 1; }

/* === PLAN CTA BUTTON === */
.plan-cta {
  width: 100%;
  justify-content: center;
  margin-top: 20px;
}

/* === ANALYSIS SUMMARY BANNER === */
.analysis-summary {
  border-radius: var(--radius-sm);
  padding: 11px 18px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.analysis-summary.all-clear {
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  color: var(--green);
}
.analysis-summary.has-caution {
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  color: #fbbf24;
}
.analysis-summary.has-danger {
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  color: var(--red);
}
.summary-icon { flex-shrink: 0; }

/* === RESULTS EXPORT ROW === */
.results-export {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 12.5px;
}

/* === FOOTER === */
.site-footer {
  text-align: center;
  color: var(--text-3);
  font-size: 12px;
  padding: 28px 0 0;
  border-top: 1px solid var(--border);
}

/* Social links in footer */
.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border);
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  box-shadow: 0 2px 8px rgba(52, 211, 153, 0.06);
}

.footer-social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(52, 211, 153, 0.14);
  border-color: rgba(52, 211, 153, 0.30);
  background: rgba(52, 211, 153, 0.08);
  color: var(--brand);
}

.cta-band {
  border: 1px solid rgba(52, 211, 153, 0.30);
  border-radius: var(--radius-lg);
  padding: 52px 36px;
  background:
    radial-gradient(ellipse 70% 80% at 10% 50%, rgba(52, 211, 153, 0.13), transparent),
    radial-gradient(ellipse 60% 70% at 90% 20%, rgba(56, 189, 248, 0.11), transparent),
    radial-gradient(ellipse 50% 50% at 50% 100%, rgba(74, 222, 128, 0.09), transparent),
    linear-gradient(135deg, rgba(52, 211, 153, 0.08) 0%, rgba(56, 189, 248, 0.06) 50%, rgba(15, 23, 42, 0.7) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 48px rgba(52, 211, 153, 0.10), inset 0 1px 0 rgba(255,255,255,0.08);
}

.cta-band::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15), transparent 70%);
  pointer-events: none;
  border-radius: 50%;
  animation: blobPulse 8s ease-in-out infinite alternate;
}

.cta-band::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.12), transparent 70%);
  pointer-events: none;
  border-radius: 50%;
  animation: blobPulse 10s ease-in-out infinite alternate-reverse;
}

.cta-band h3 {
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.18;
  margin-bottom: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.cta-band p {
  color: var(--text-2);
  max-width: 740px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 1;
}

/* === SUB PAGES (checkout/contact/community) === */
.sub-main {
  max-width: 980px;
  margin: 0 auto;
  padding: 52px 24px 88px;
  display: grid;
  gap: 20px;
}

.sub-hero {
  text-align: center;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.12), rgba(15, 23, 42, 0.70));
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: 0 4px 28px rgba(52, 211, 153, 0.08), inset 0 1px 0 rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}

.sub-hero::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.16), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.sub-hero h1 {
  font-size: clamp(26px, 4vw, 40px);
  margin-bottom: 10px;
}

.sub-hero p {
  color: var(--text-2);
}

.sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  background: #030711;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
}

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

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  border: 1px solid var(--border-2);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
}

.status-box {
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  background: rgba(52, 211, 153, 0.07);
  border: 1px solid rgba(52, 211, 153, 0.21);
  color: var(--text-2);
  display: none;
}

.status-box.visible { display: block; }

.channel-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.channel-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(15, 23, 42, 0.75);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.channel-item:hover {
  transform: translateX(3px);
  box-shadow: 0 4px 18px rgba(52, 211, 153, 0.10);
  border-color: rgba(52, 211, 153, 0.28);
}

/* Platform-specific channel icon colors */
.channel-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  font-weight: 700;
  color: #fff;
}

.channel-icon.discord  { background: #5865F2; box-shadow: 0 3px 10px rgba(88, 101, 242, 0.30); }
.channel-icon.telegram { background: #0088CC; box-shadow: 0 3px 10px rgba(0, 136, 204, 0.30); }
.channel-icon.wechat   { background: #07C160; box-shadow: 0 3px 10px rgba(7, 193, 96, 0.30); }
.channel-icon.twitter  { background: #000000; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.20); }
.channel-icon.github   { background: #333333; box-shadow: 0 3px 10px rgba(51, 51, 51, 0.25); }

/* === PAYMENT METHOD BADGES === */
.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}

.payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border);
  color: var(--text-2);
  letter-spacing: 0.02em;
  box-shadow: 0 1px 4px rgba(52, 211, 153, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.payment-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(52, 211, 153, 0.10);
}

/* === SECTION DIVIDER === */
.section-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  height: 40px;
  position: relative;
}

.section-divider::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 100% at 50% 100%,
      rgba(52, 211, 153, 0.10) 0%,
      transparent 100%
    );
}

/* SVG-like wave via clip-path */
.section-divider--wave {
  height: 48px;
  background: linear-gradient(180deg, transparent 0%, rgba(52, 211, 153, 0.06) 100%);
  clip-path: ellipse(55% 100% at 50% 0%);
  border-radius: 0 0 50% 50%;
}

/* === SCROLL REVEAL ANIMATION === */
@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: revealUp 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.reveal-delay-1 { animation-delay: 0.08s; }
.reveal-delay-2 { animation-delay: 0.16s; }
.reveal-delay-3 { animation-delay: 0.24s; }
.reveal-delay-4 { animation-delay: 0.32s; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 7px;
  transition: background 0.2s, border-color 0.2s;
}
.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-hamburger:hover { background: rgba(52, 211, 153, 0.08); border-color: rgba(52, 211, 153, 0.35); }
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === RESPONSIVE === */
@media (max-width: 920px) {
  .tool-grid      { grid-template-columns: 1fr; }
  .results-grid   { grid-template-columns: 1fr; }
  .pricing-grid   { grid-template-columns: 1fr; }
  .proof-strip    { grid-template-columns: 1fr; }
  .workflow-grid  { grid-template-columns: 1fr 1fr; }
  .workflow-grid::before { display: none; }
  .sub-grid       { grid-template-columns: 1fr; }
  .hero-title     { font-size: 34px; }
}

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-right {
    display: none;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(240, 240, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 16px;
    box-shadow: 0 8px 24px rgba(52, 211, 153, 0.10);
    z-index: 99;
  }
  .nav-right.open { display: flex; }
  .nav-right .nav-link {
    padding: 12px 4px;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
  }
  .nav-right .lang-select { margin-top: 10px; width: 100%; padding: 10px 12px; }
}

@media (max-width: 600px) {
  .main      { padding: 28px 16px 60px; }
  .hero      { padding: 36px 0 0; }
  .card,
  .plan-card { padding: 22px; }
  .workflow-grid { grid-template-columns: 1fr; }
  .workflow-grid::before { display: none; }
  .btn       { font-size: 13px; padding: 10px 14px; }
  .hero-sub  { font-size: 15px; }
  .cta-band  { padding: 32px 20px; }
  .btn-row   { flex-direction: column; }
  .btn-row .btn { width: 100%; justify-content: center; }
}

/* ===================================================
   BARCODE SCANNING OVERLAY
   =================================================== */

.barcode-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(15, 31, 22, 0.55);
  border-radius: var(--radius);
  z-index: 10;
  animation: fadeSlideUp 0.3s ease;
}

.barcode-viewfinder {
  width: min(220px, 72%);
  height: min(140px, 40%);
  border: 2.5px solid var(--brand-2);
  border-radius: 10px;
  position: relative;
  box-shadow: 0 0 0 9999px rgba(15, 31, 22, 0.38);
}

.barcode-viewfinder::before,
.barcode-viewfinder::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--brand-vivid);
  border-style: solid;
  border-radius: 3px;
}
.barcode-viewfinder::before { top: -3px; left: -3px; border-width: 3px 0 0 3px; }
.barcode-viewfinder::after  { bottom: -3px; right: -3px; border-width: 0 3px 3px 0; }

/* Scanning line animation */
@keyframes scanLine {
  0%   { top: 8%; }
  50%  { top: 88%; }
  100% { top: 8%; }
}
.barcode-viewfinder-line {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-2), var(--brand-vivid), var(--brand-2), transparent);
  border-radius: 2px;
  animation: scanLine 2s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.7);
}

.barcode-scanning-label {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* ===================================================
   PRODUCT INFO BANNER (after barcode scan)
   =================================================== */

.product-info-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.08), rgba(56, 189, 248, 0.06));
  border: 1px solid rgba(52, 211, 153, 0.26);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-2);
  animation: fadeSlideUp 0.32s ease;
}

.product-info-name {
  font-weight: 700;
  color: var(--text);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===================================================
   NUTRI-SCORE BADGE
   =================================================== */

.nutri-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  text-transform: uppercase;
  flex-shrink: 0;
  border: 1.5px solid;
}

.nutri-score-badge .ns-label {
  font-size: 10px;
  font-weight: 600;
  opacity: 0.8;
  letter-spacing: 0.08em;
}

.nutri-score-a { background: #1a8c3e; color: #fff; border-color: #1a8c3e; }
.nutri-score-b { background: #6aaf37; color: #fff; border-color: #6aaf37; }
.nutri-score-c { background: #f5c400; color: #3a2e00; border-color: #e6b800; }
.nutri-score-d { background: #e07b27; color: #fff; border-color: #c46b1e; }
.nutri-score-e { background: #d7251b; color: #fff; border-color: #b81e15; }

/* Inline nutri-score in summary banner */
.summary-nutri-score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
  border: 1.5px solid;
}
.summary-nutri-score.ns-a { background: rgba(26, 140, 62, 0.15); color: #34d399; border-color: rgba(26, 140, 62, 0.35); }
.summary-nutri-score.ns-b { background: rgba(106, 175, 55, 0.15); color: #4ade80; border-color: rgba(106, 175, 55, 0.35); }
.summary-nutri-score.ns-c { background: rgba(245, 196, 0, 0.18);  color: #fcd34d; border-color: rgba(245, 196, 0, 0.45); }
.summary-nutri-score.ns-d { background: rgba(224, 123, 39, 0.15); color: #fbbf24; border-color: rgba(224, 123, 39, 0.35); }
.summary-nutri-score.ns-e { background: rgba(215, 37, 27, 0.12);  color: #991b15; border-color: rgba(215, 37, 27, 0.30); }

/* ===================================================
   SAFETY SCORE BADGE
   =================================================== */

.safety-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 999px;
  margin-left: 4px;
  flex-shrink: 0;
  border: 1.5px solid;
  letter-spacing: 0.02em;
}

.safety-score-badge.score-high   { background: rgba(74, 222, 128, 0.14); color: var(--green); border-color: rgba(74, 222, 128, 0.35); }
.safety-score-badge.score-medium { background: rgba(217, 119, 6, 0.12); color: #fbbf24; border-color: rgba(217, 119, 6, 0.32); }
.safety-score-badge.score-low    { background: rgba(220, 38, 38, 0.10); color: var(--red); border-color: rgba(220, 38, 38, 0.28); }

.safety-score-badge .score-label {
  font-size: 9.5px;
  font-weight: 600;
  opacity: 0.75;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===================================================
   PWA INSTALL BANNER
   =================================================== */

.pwa-install-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.10), rgba(56, 189, 248, 0.07));
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  animation: fadeSlideUp 0.4s ease;
}

.pwa-install-banner p { color: var(--text-2); flex: 1; }
.pwa-install-banner strong { color: var(--text); }
.pwa-install-banner .pwa-close {
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 6px;
}
.pwa-install-banner .pwa-close:hover { color: var(--text); background: rgba(0,0,0,0.05); }

@media (max-width: 600px) {
  .barcode-viewfinder { width: 85%; height: min(120px, 34%); }
  .product-info-name  { font-size: 12px; }
}
