/* Adam Foods España · assistant demo page. Apple-style glass over a warm brand backdrop. */

:root {
  --red: #e2001a;
  --red-2: #b80015;
  --yellow: #ffb800;
  --green: #3fae49;
  --blue: #2f8fe8;
  --ink: #111114;
  --ink-2: #4b4b55;
  --ink-3: #75757f;
  --bg: #f7f2ec;
  --glass: rgba(255, 255, 255, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.8);
  --glass-line: rgba(255, 255, 255, 0.7);
  --hairline: rgba(17, 17, 20, 0.08);
  --shadow-lg: 0 40px 90px -30px rgba(60, 20, 30, 0.35), 0 16px 40px -20px rgba(60, 20, 30, 0.25);
  --shadow-md: 0 18px 40px -18px rgba(60, 20, 30, 0.3);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --blur: blur(28px) saturate(180%);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
}

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

/* ---------- Backdrop: slow-moving brand colour blobs ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(226, 0, 26, 0.10), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, rgba(255, 184, 0, 0.14), transparent 60%),
    var(--bg);
}

.blob {
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: drift 26s ease-in-out infinite alternate;
}
.blob.red { background: #ff5a6e; top: -18vmax; right: -12vmax; }
.blob.yellow { background: #ffd25c; top: 30vh; left: -20vmax; animation-delay: -8s; }
.blob.green { background: #8fdc8f; bottom: -22vmax; right: 10vw; opacity: 0.32; animation-delay: -14s; }
.blob.blue { background: #8cc6ff; bottom: 10vh; left: 30vw; opacity: 0.28; animation-delay: -20s; }

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(6vmax, -4vmax) scale(1.12); }
}

/* ---------- Glass primitives ---------- */

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-md);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--glass-strong); }
}

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 14px;
  z-index: 50;
  margin-top: 14px;
}

.nav .bar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 12px 10px 18px;
  border-radius: 999px;
}

.logo { height: 50px; width: auto; margin: -6px 0; }

.nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0 0 0 12px;
  padding: 0;
}

.nav ul a {
  display: block;
  text-decoration: none;
  font-size: 14px;
  font-weight: 550;
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.nav ul a:hover { background: rgba(255, 255, 255, 0.7); color: var(--ink); }

.nav .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.segmented {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--hairline);
}
.segmented button {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink-3);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}
.segmented button[aria-pressed="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.14);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(0.97); }
.btn:focus-visible, .segmented button:focus-visible, .brand:focus-visible, .chip:focus-visible {
  outline: 3px solid rgba(226, 0, 26, 0.45);
  outline-offset: 3px;
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-2));
  box-shadow: 0 14px 30px -12px rgba(226, 0, 26, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn.primary:hover { box-shadow: 0 18px 36px -12px rgba(226, 0, 26, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.25); }

.btn.ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.65);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-line);
  box-shadow: 0 8px 22px -12px rgba(0, 0, 0, 0.25);
}
.btn.ghost:hover { background: #fff; }
.btn.small { padding: 9px 16px; font-size: 13.5px; }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
}
.eyebrow img { width: 22px; height: 22px; }

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 750;
}
.hero h1 .accent {
  background: linear-gradient(100deg, var(--red) 10%, #ff6a3d 55%, var(--yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 34em;
  margin: 0 0 30px;
}

.cta { display: flex; gap: 12px; flex-wrap: wrap; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 10px;
  margin-top: 36px;
  width: fit-content;
}
.stat { padding: 14px 18px; border-radius: var(--radius-md); }
.stat b { display: block; font-size: 22px; letter-spacing: -0.02em; }
.stat span { font-size: 12.5px; color: var(--ink-3); }

/* Hero visual: photo in a glass frame with floating chat cards */
.visual { position: relative; }

.photo {
  padding: 10px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.photo img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  object-position: 55% 50%;
  border-radius: calc(var(--radius-xl) - 10px);
}

.float {
  position: absolute;
  max-width: 270px;
  padding: 12px 14px;
  border-radius: 20px;
  font-size: 13.5px;
  line-height: 1.4;
  box-shadow: var(--shadow-lg);
  animation: bob 6s ease-in-out infinite;
}
.float.q {
  top: 9%;
  left: -34px;
  color: #fff;
  background: linear-gradient(135deg, rgba(226, 0, 26, 0.92), rgba(184, 0, 21, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom-right-radius: 6px;
}
.float.a {
  bottom: 12%;
  right: -26px;
  border-bottom-left-radius: 6px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  animation-delay: -3s;
}
.float.a img { width: 28px; height: 28px; border-radius: 9px; background: #fff; padding: 3px; flex: none; }
.float.a b { display: block; font-size: 12px; color: var(--ink-3); font-weight: 600; margin-bottom: 2px; }
.float.voice {
  bottom: -18px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  animation-delay: -1.5s;
}
.float.voice .orb {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--red), var(--yellow), var(--green), var(--blue), var(--red));
  animation: spin 6s linear infinite;
}
.bars { display: flex; gap: 3px; align-items: center; height: 18px; }
.bars i { width: 3px; border-radius: 2px; background: var(--ink-2); animation: eq 1s ease-in-out infinite; }
.bars i:nth-child(1) { height: 8px; } .bars i:nth-child(2) { height: 16px; animation-delay: -0.2s; }
.bars i:nth-child(3) { height: 11px; animation-delay: -0.4s; } .bars i:nth-child(4) { height: 15px; animation-delay: -0.6s; }
.bars i:nth-child(5) { height: 7px; animation-delay: -0.8s; }

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes eq { 0%, 100% { transform: scaleY(0.5); } 50% { transform: scaleY(1); } }

/* ---------- Sections ---------- */

section { padding: 56px 0; }

.section-head { max-width: 640px; margin-bottom: 30px; }
.section-head .kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}
.section-head h2 {
  margin: 8px 0 10px;
  font-size: clamp(30px, 3.6vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.section-head p { margin: 0; color: var(--ink-2); font-size: 17px; }

/* Brands */
.brands {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.brands .brand { flex: 0 1 calc((100% - 4 * 14px) / 5); min-width: 150px; }
.brand {
  position: relative;
  display: grid;
  place-items: center;
  height: 116px;
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  font: inherit;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s, background 0.25s;
}
.brand img.tall { max-height: 88px; }
.brand img { max-height: 64px; max-width: 100%; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08)); }
.brand .ask {
  position: absolute;
  bottom: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.2s;
}
.brand:hover { transform: translateY(-4px); background: var(--glass-strong); box-shadow: var(--shadow-lg); }
.brand:hover .ask, .brand:focus-visible .ask { opacity: 1; transform: none; }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.feature .pic { position: relative; height: 190px; }
.feature .pic img { width: 100%; height: 100%; object-fit: cover; }
.feature .pic:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(255, 255, 255, 0.55));
}
.feature .icon {
  position: absolute;
  left: 20px;
  bottom: -22px;
  z-index: 1;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.45);
}
.feature .icon svg { width: 24px; height: 24px; }
.feature .icon.red { background: linear-gradient(135deg, var(--red), var(--red-2)); }
.feature .icon.blue { background: linear-gradient(135deg, #3b9cff, #1f6fd1); }
.feature .icon.green { background: linear-gradient(135deg, #4cc35a, #2a8f37); }
.feature .body { padding: 34px 22px 24px; }
.feature h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.02em; }
.feature p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* Try it */
.try {
  border-radius: var(--radius-xl);
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 30px;
  align-items: center;
}
.try h2 { margin: 0 0 10px; font-size: 32px; letter-spacing: -0.03em; line-height: 1.1; }
.try p { margin: 0 0 22px; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.7);
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}
.chip:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.3); }
.chip small { display: block; font-size: 11.5px; color: var(--ink-3); }

/* Embed */
.embed { border-radius: var(--radius-xl); padding: 28px 30px; }
.embed h2 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.02em; }
.embed p { margin: 12px 0 0; color: var(--ink-2); font-size: 14.5px; }
pre {
  margin: 14px 0 0;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(17, 17, 20, 0.88);
  color: #f5f5f7;
  font: 13px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}
pre .attr { color: #ffb4a9; } pre .str { color: #a5e3a1; }
code { font: 0.92em ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: rgba(17, 17, 20, 0.06); padding: 2px 6px; border-radius: 6px; }

/* Footer */
footer { padding: 40px 0 120px; color: var(--ink-3); font-size: 13px; }
footer .bar { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: var(--radius-lg); }
footer img { height: 40px; margin: -4px 0; }
footer .right { margin-left: auto; text-align: right; }

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .visual { max-width: 560px; margin: 10px auto 30px; }
  .features { grid-template-columns: 1fr; }
  .try { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav ul { display: none; }
  .nav .open-btn { display: none; }
  .float.q { left: -6px; } .float.a { right: -6px; }
  .stats { grid-template-columns: repeat(3, 1fr); width: 100%; }
  .try { padding: 24px; }
  footer .bar { flex-direction: column; align-items: flex-start; }
  footer .right { margin-left: 0; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
