:root {
  --paper: #fbf7ef;
  --paper-2: #f4eee3;
  --surface: #fffdf8;
  --ink: #26231f;
  --muted: #6f685e;
  --soft: #9a9082;
  --line: #e6dccd;
  --line-strong: #d5c7b3;
  --shadow: 0 22px 70px rgba(47, 38, 25, .10);
  --shadow-soft: 0 10px 30px rgba(47, 38, 25, .07);
  --radius: 26px;
  --max: 1180px;
  --volio: #4f8fd7;
  --volio-warm: #f7c968;
  --volio-coral: #eb8d7b;
  --tastory: #c84f36;
  --tastory-green: #647f57;
  --tastory-cream: #fff1d7;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(247, 201, 104, .16), transparent 28rem),
    radial-gradient(circle at 90% 10%, rgba(79, 143, 215, .10), transparent 24rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.tastory-page {
  background:
    radial-gradient(circle at 14% 0%, rgba(200, 79, 54, .14), transparent 28rem),
    radial-gradient(circle at 88% 8%, rgba(100, 127, 87, .12), transparent 24rem),
    var(--paper);
}

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

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(79, 143, 215, .38);
  outline-offset: 4px;
}

.studio-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(251, 247, 239, .72);
  backdrop-filter: blur(18px);
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.site-header.is-scrolled {
  border-color: rgba(213, 199, 179, .66);
  background: rgba(251, 247, 239, .92);
  box-shadow: 0 8px 28px rgba(47, 38, 25, .05);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 40px));
  min-height: 68px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(213, 199, 179, .8);
  border-radius: 12px;
  background: linear-gradient(145deg, #fffaf1, #eddcc2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 8px 20px rgba(47, 38, 25, .08);
}

.brand-mark svg {
  width: 20px;
  height: 20px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

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

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 253, 248, .82);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(47, 38, 25, .05);
}

.button.primary,
.nav-cta {
  border-color: #2b2a27;
  background: #2b2a27;
  color: #fffdf8;
}

.button.secondary {
  background: transparent;
  box-shadow: none;
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 248, .84);
  color: var(--ink);
}

.mobile-menu {
  display: none;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  gap: 62px;
  align-items: center;
  min-height: calc(100vh - 68px);
  padding-top: 42px;
  padding-bottom: 44px;
}

.eyebrow,
.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #8c5b25;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 680px;
  font-size: clamp(54px, 7vw, 96px);
  line-height: .92;
  letter-spacing: 0;
}

h2 {
  color: var(--ink);
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: 0;
}

.lead {
  max-width: 650px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.75;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.trust-line span,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, .68);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.archive-visual {
  position: relative;
  min-height: 560px;
  border: 1px solid rgba(213, 199, 179, .72);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, .92), rgba(247, 239, 225, .8)),
    repeating-linear-gradient(90deg, transparent, transparent 34px, rgba(213, 199, 179, .12) 35px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.archive-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 212px;
  height: 176px;
  transform: translate(-50%, -50%);
}

.archive-core svg,
.family-object svg {
  width: 100%;
  height: 100%;
}

.record-slip {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 148px;
  height: 62px;
  border: 1px solid rgba(213, 199, 179, .82);
  border-radius: 16px;
  background: rgba(255, 253, 248, .96);
  box-shadow: 0 12px 28px rgba(47, 38, 25, .08);
  transform: translate(-50%, -50%) rotate(-3deg);
  animation: recordPulse 10s ease-in-out infinite;
}

.record-slip::before,
.record-slip::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  height: 6px;
  border-radius: 999px;
  background: #e6dccd;
}

.record-slip::before { top: 18px; }
.record-slip::after { top: 34px; width: 68px; }

.family-object {
  position: absolute;
  width: 76px;
  height: 76px;
  border-radius: 24px;
  background: rgba(255, 253, 248, .92);
  border: 1px solid rgba(213, 199, 179, .7);
  box-shadow: 0 12px 28px rgba(47, 38, 25, .07);
  animation: floatItem 9s ease-in-out infinite;
}

.family-object:nth-child(1) { left: 48px; top: 66px; animation-delay: -.4s; }
.family-object:nth-child(2) { right: 78px; top: 58px; animation-delay: -1.2s; }
.family-object:nth-child(3) { left: 84px; bottom: 72px; animation-delay: -2.2s; }
.family-object:nth-child(4) { right: 56px; bottom: 98px; animation-delay: -3.1s; }
.family-object:nth-child(5) { left: 42%; top: 30px; animation-delay: -4s; }
.family-object:nth-child(6) { left: 44%; bottom: 34px; animation-delay: -5s; }

.save-path {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.save-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #eaa85b;
  opacity: 0;
  animation: saveDot 10s ease-in-out infinite;
}

.save-dot.one { left: 95px; top: 112px; }
.save-dot.two { right: 122px; bottom: 138px; animation-delay: 5s; }

.section-head {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-head p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.product-panels {
  display: grid;
  gap: 24px;
}

.product-panel {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(360px, 1.15fr);
  gap: 34px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255, 253, 248, .76);
  box-shadow: var(--shadow-soft);
}

.product-panel.tastory {
  grid-template-columns: minmax(360px, 1.15fr) minmax(0, .85fr);
}

.product-copy p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.product-mock {
  min-height: 340px;
  border-radius: 28px;
  background: linear-gradient(145deg, #fffdf8, #f2e7d7);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}

.product-mock.volio-mock {
  background: linear-gradient(145deg, #fffdf8, #edf6ff);
}

.mock-phone {
  position: absolute;
  width: 180px;
  height: 332px;
  left: 34px;
  bottom: -28px;
  border: 10px solid #26231f;
  border-radius: 32px;
  background: #fffdf8;
  box-shadow: 0 20px 40px rgba(47, 38, 25, .12);
  overflow: hidden;
}

.mock-phone .screen-line {
  height: 10px;
  margin: 18px;
  border-radius: 999px;
  background: var(--line);
}

.mock-art,
.mock-dish {
  margin: 14px;
  height: 120px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f7c968, #f08d7b 48%, #73b4e8);
}

.mock-dish {
  background: radial-gradient(circle at 52% 46%, #d96a45 0 28%, #f0bc72 29% 44%, #fff2d5 45% 100%);
}

.mock-lines {
  display: grid;
  gap: 8px;
  margin: 18px;
}

.mock-lines span {
  height: 8px;
  border-radius: 999px;
  background: #ded3c2;
}

.timeline-stack,
.recipe-card {
  position: absolute;
  right: 28px;
  top: 42px;
  width: min(330px, 52%);
  display: grid;
  gap: 12px;
}

.mini-record {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, .92);
  box-shadow: 0 10px 24px rgba(47, 38, 25, .06);
}

.mini-record strong {
  display: block;
  font-size: 14px;
}

.mini-record span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 750;
}

.principle-grid,
.outcome-grid,
.product-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.principle-card,
.outcome-card,
.faq-card,
.product-index-card,
.problem-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 248, .72);
}

.principle-card svg {
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
}

.principle-card p,
.outcome-card p,
.faq-card p,
.product-index-card p,
.problem-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.device-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 253, 248, .74);
}

.device-node {
  min-height: 170px;
  padding: 22px;
  border-radius: 24px;
  background: #fffdf8;
  border: 1px solid var(--line);
}

.device-node svg {
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
}

.flow-arrow {
  color: var(--soft);
  font-size: 28px;
}

.about-text {
  max-width: 720px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.8;
}

.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  background: rgba(244, 238, 227, .72);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) repeat(3, minmax(130px, 1fr));
  gap: 32px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0;
}

.footer-brand p {
  max-width: 340px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.footer-col h4 {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  margin: 8px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.footer-col a:hover {
  color: var(--ink);
}

.sub-footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 13px;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(420px, 1.15fr);
  gap: 54px;
  align-items: center;
  padding-top: 58px;
}

.product-hero h1 {
  font-size: clamp(48px, 6vw, 82px);
}

.product-header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.product-kicker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
}

.product-visual-large {
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: rgba(255, 253, 248, .74);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.product-visual-large .mock-phone {
  left: 38px;
  bottom: 34px;
}

.product-visual-large .timeline-stack,
.product-visual-large .recipe-card {
  right: 34px;
  top: 58px;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.workflow-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  counter-reset: workflow;
}

.workflow-step {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 248, .76);
}

.workflow-step::before {
  counter-increment: workflow;
  content: "0" counter(workflow);
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--soft);
  font-weight: 900;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feature-list span {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 248, .84);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.data-flow {
  display: grid;
  gap: 12px;
}

.data-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, .74);
}

.data-row strong {
  font-size: 15px;
}

.data-row span {
  color: var(--muted);
}

.language-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.language-strip span {
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--tastory-cream);
  color: #693426;
  font-weight: 850;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 750;
}

@keyframes floatItem {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-13px) rotate(3deg); }
}

@keyframes recordPulse {
  0%, 44%, 100% { opacity: .18; transform: translate(-50%, -50%) translateY(18px) scale(.96) rotate(-3deg); }
  52%, 62% { opacity: 1; transform: translate(-50%, -50%) translateY(-86px) scale(1) rotate(2deg); }
}

@keyframes saveDot {
  0%, 22%, 100% { opacity: 0; transform: translate(0, 0) scale(.8); }
  30% { opacity: 1; }
  45% { opacity: 0; transform: translate(230px, 170px) scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media (max-width: 980px) {
  .main-nav,
  .nav-cta {
    display: none;
  }

  .mobile-menu-button {
    display: inline-grid;
    place-items: center;
  }

  .mobile-menu[hidden] {
    display: none;
  }

  .mobile-menu {
    display: grid;
    gap: 10px;
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
    padding: 0 0 18px;
  }

  .mobile-menu a {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 253, 248, .88);
    font-weight: 800;
  }

  .hero,
  .product-hero,
  .product-panel,
  .product-panel.tastory {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 46px;
  }

  .archive-visual {
    min-height: 470px;
  }

  .principle-grid,
  .outcome-grid,
  .product-grid,
  .faq-grid,
  .workflow-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .device-flow {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    transform: rotate(90deg);
    text-align: center;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .nav-wrap,
  .section,
  .footer-inner,
  .sub-footer {
    width: min(100% - 28px, var(--max));
  }

  h1 {
    font-size: clamp(44px, 13vw, 62px);
  }

  h2 {
    font-size: 34px;
  }

  .lead {
    font-size: 17px;
  }

  .section {
    padding: 62px 0;
  }

  .archive-visual {
    min-height: 350px;
    border-radius: 26px;
  }

  .family-object {
    width: 56px;
    height: 56px;
    border-radius: 18px;
  }

  .archive-core {
    width: 158px;
    height: 132px;
  }

  .record-slip,
  .save-dot {
    display: none;
  }

  .product-panel,
  .device-flow,
  .product-visual-large {
    border-radius: 26px;
  }

  .product-visual-large,
  .product-mock {
    min-height: 430px;
  }

  .timeline-stack,
  .recipe-card,
  .product-visual-large .timeline-stack,
  .product-visual-large .recipe-card {
    left: 24px;
    right: 24px;
    top: 34px;
    width: auto;
  }

  .mock-phone,
  .product-visual-large .mock-phone {
    left: 24px;
    bottom: -100px;
    opacity: .58;
  }

  .principle-grid,
  .outcome-grid,
  .product-grid,
  .faq-grid,
  .workflow-list,
  .problem-grid {
    grid-template-columns: 1fr;
  }

  .data-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}
