/* ===== CANE — minimal, premium hub ===== */
:root{
  --bg:#ffffff;
  --fg:#0b0d0f;
  --muted:#525a63;
  --line:rgba(0,0,0,.10);
  --card:rgba(255,255,255,.78);
  --shadow: 0 10px 35px rgba(0,0,0,.08);
  --shadow-2: 0 18px 55px rgba(0,0,0,.12);
  --radius: 22px;
  --radius-2: 28px;
  --max: 1100px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: var(--bg);
  color: var(--fg);
  overflow-x:hidden;
}

.bg-noise{
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.06;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
  mix-blend-mode:multiply;
}

a{ color:inherit; text-decoration:none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline: 3px solid rgba(0,0,0,.18);
  outline-offset: 3px;
  border-radius: 12px;
}

.wrap{
  width:min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.25rem 0 3rem;
}

/* Topbar */
.topbar{
  position:sticky;
  top:0;
  z-index: 10;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding: .9rem 1rem;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand{
  display:flex;
  flex-direction:column;
  gap:.1rem;
  line-height:1;
}
.brand-mark{
  letter-spacing:.25em;
  font-weight: 800;
  font-size: 1.05rem;
}
.brand-sub{
  color: var(--muted);
  font-size:.85rem;
}

.topnav{
  display:flex;
  gap: 1rem;
  color: var(--muted);
  font-size:.95rem;
}
.topnav a{
  padding:.45rem .6rem;
  border-radius: 999px;
}
.topnav a:hover{
  background: rgba(0,0,0,.06);
  color: var(--fg);
}

.ghost{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.7);
  padding: .55rem .9rem;
  border-radius: 999px;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.ghost:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.95);
}
.ghost.small{ padding:.45rem .75rem; font-size:.9rem; }

/* Hero */
.hero{
  padding: 2.2rem 0 1.2rem;
}
.kicker{
  margin:0 0 .6rem;
  letter-spacing:.2em;
  color: var(--muted);
  font-size:.85rem;
}
h1{
  margin:.2rem 0 .6rem;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}
.lead{
  margin:0 0 1.4rem;
  max-width: 64ch;
  color: var(--muted);
  font-size: 1.08rem;
  line-height:1.55;
}
.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1rem;
  box-shadow: var(--shadow);
}
.card h3{ margin:.1rem 0 .35rem; font-size:1rem; }
.card p{ margin:0; color: var(--muted); line-height:1.5; font-size:.95rem; }

/* Hub */
.hub{
  padding: 1.8rem 0 1rem;
}
.hub h2{
  margin:0 0 .35rem;
  font-size: 1.4rem;
  letter-spacing:-.02em;
}
.sublead{
  margin:0 0 1rem;
  color: var(--muted);
  line-height:1.6;
}
.hub-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: .8rem 0 1rem;
}
.hub-icon{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  gap:.35rem;
  min-height: 128px;
  padding: 1.15rem 1.1rem;
  border-radius: var(--radius-2);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow);
  transform: translateZ(0);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  overflow:hidden;
}

/* Floating animation */
.floaty{
  animation: floatY 5.5s ease-in-out infinite;
}
.delay-1{ animation-delay: .4s; }
.delay-2{ animation-delay: .8s; }
.delay-3{ animation-delay: 1.2s; }

@keyframes floatY{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-8px); }
}

/* Hover POP (overrides float with a pop burst) */
.hub-icon:hover{
  animation: pop .22s ease-out both;
  box-shadow: var(--shadow-2);
  background: rgba(255,255,255,.92);
}
@keyframes pop{
  0%{ transform: translateY(-2px) scale(1); }
  60%{ transform: translateY(-10px) scale(1.035); }
  100%{ transform: translateY(-6px) scale(1.015); }
}

.hub-icon::after{
  content:"";
  position:absolute;
  inset:-120px;
  background: radial-gradient(circle at 20% 20%, rgba(0,0,0,.07), transparent 40%),
              radial-gradient(circle at 80% 30%, rgba(0,0,0,.05), transparent 45%);
  transform: rotate(12deg);
  pointer-events:none;
}
.icon{
  width: 42px;
  height: 42px;
  display:grid;
  place-items:center;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.03);
}
.icon svg{ width: 22px; height: 22px; }
.label{ font-weight: 750; letter-spacing:.02em; }
.desc{ color: var(--muted); font-size:.95rem; }

/* Waitlist */
.waitlist{
  margin-top: 1.6rem;
  padding: 1.6rem 0 0;
}
.waitlist-inner{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 1.2rem;
  padding: 1.4rem;
  border-radius: var(--radius-2);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow);
}
.bullets{
  margin: .8rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height:1.7;
}
.form{
  display:flex;
  flex-direction:column;
  gap: .8rem;
}
.form.compact{ margin-top: .8rem; }
.field span{
  display:block;
  font-size:.9rem;
  color: var(--muted);
  margin: 0 0 .35rem;
}
input, textarea, select{
  width:100%;
  padding: .8rem .85rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.95);
  font-size: 1rem;
}
textarea{ resize: vertical; }

.primary{
  border: 1px solid rgba(0,0,0,.25);
  background: var(--fg);
  color: #fff;
  padding: .85rem 1rem;
  border-radius: 16px;
  cursor:pointer;
  font-weight: 700;
  transition: transform .16s ease, box-shadow .16s ease;
}
.primary:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}

.footer{
  margin-top: 2rem;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.fineprint{
  margin:.5rem 0 0;
  color: var(--muted);
  font-size: .86rem;
  line-height:1.55;
}

/* Chat widget */
.chat-launcher{
  position:fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
}
.chat-bubble{
  width: 54px;
  height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.18);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-2);
  cursor:pointer;
  font-weight: 800;
  font-size: 1.05rem;
  transition: transform .16s ease;
}
.chat-bubble:hover{ transform: translateY(-2px) scale(1.03); }

.chat{
  width:min(420px, calc(100% - 2rem));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 0;
  box-shadow: var(--shadow-2);
  background: rgba(255,255,255,.96);
}
.chat::backdrop{
  background: rgba(0,0,0,.28);
}
.chat-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
  padding: 1rem 1rem .7rem;
  border-bottom: 1px solid var(--line);
}
.chat-title{
  margin:0;
  font-weight: 850;
  letter-spacing:.02em;
}
.chat-sub{
  margin:.2rem 0 0;
  color: var(--muted);
  font-size: .9rem;
}
.chat-body{
  padding: .9rem 1rem 1rem;
}
.chat-body details{
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: .65rem .75rem;
  margin-bottom: .6rem;
  background: rgba(0,0,0,.02);
}
.chat-body summary{
  cursor:pointer;
  font-weight: 700;
}
.chat-body p{
  margin: .5rem 0 0;
  color: var(--muted);
  line-height:1.55;
}

/* Simple content pages */
.page{
  padding: 2rem 0 0;
}
.page h1{ margin-bottom: .4rem; }
.page p{ color: var(--muted); line-height:1.65; max-width: 70ch; }
.page .panel{
  margin-top: 1.2rem;
  padding: 1.2rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-2);
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow);
}
.table{
  width:100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow:hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
}
.table th, .table td{
  padding: .85rem .9rem;
  text-align:left;
  vertical-align:top;
  border-bottom: 1px solid var(--line);
}
.table th{ background: rgba(0,0,0,.03); }
.table tr:last-child td{ border-bottom: 0; }

.badge{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  padding: .35rem .55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.02);
  font-weight: 650;
  font-size: .9rem;
  color: var(--fg);
}

/* Hero image */
.hero-img{
  margin: 1.6rem 0 1.8rem;
  text-align:center;
}
.hero-img img{
  max-width: 340px;
  width: 100%;
  height: auto;
  border-radius: var(--radius-2);
  box-shadow: var(--shadow-2);
}

/* Product showcase */
.product-showcase{
  padding: 2rem 0 0;
  text-align:center;
}
.showcase-img{
  margin: 0 auto;
  display: inline-block;
}
.showcase-img img{
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: var(--radius-2);
  box-shadow: var(--shadow-2);
}
.showcase-img figcaption{
  margin-top: .8rem;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
}

/* Ingredients hero infographic */
.ingredients-hero{
  margin: 1.6rem 0 2rem;
  text-align:center;
}
.ingredients-hero img{
  max-width: 700px;
  width: 100%;
  height: auto;
  border-radius: var(--radius-2);
  box-shadow: var(--shadow-2);
}

/* Responsive */
@media (max-width: 960px){
  .cards{ grid-template-columns: 1fr; }
  .hub-grid{ grid-template-columns: 1fr 1fr; }
  .waitlist-inner{ grid-template-columns: 1fr; }
  .topnav{ display:none; }
  .hero-img img{ max-width: 280px; }
  .showcase-img img{ max-width: 240px; }
}
@media (max-width: 520px){
  .hub-grid{ grid-template-columns: 1fr; }
  .topbar{ padding: .85rem .8rem; }
  .hero-img img{ max-width: 220px; }
  .showcase-img img{ max-width: 200px; }
}
