:root {
  --ink: #202039;
  --muted: #66677c;
  --paper: #fffaf3;
  --white: #ffffff;
  --purple: #6d4aff;
  --purple-dark: #4b2ed1;
  --pink: #ff5e9c;
  --yellow: #ffd54d;
  --mint: #47d7ac;
  --blue: #50a8ff;
  --line: rgba(32,32,57,.12);
  --shadow: 0 18px 50px rgba(67, 48, 136, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Nunito Sans", Arial, sans-serif; line-height: 1.6; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 20px; top: 20px; background: white; padding: 10px 14px; z-index: 1000; }

.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,250,243,.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-wrap { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-family: Fredoka, sans-serif; font-size: 22px; }
.brand strong { color: var(--purple); }
.brand-cube { position: relative; width: 42px; height: 42px; display: grid; place-items: center; background: var(--purple); color: white; border-radius: 12px; transform: rotate(-6deg); box-shadow: 5px 5px 0 var(--yellow); }
.brand-cube i { position: absolute; inset: 7px; border: 2px solid rgba(255,255,255,.55); border-radius: 6px; }
.brand-cube b { z-index: 1; font-family: Fredoka; font-size: 22px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { text-decoration: none; font-weight: 800; font-size: 14px; }
.site-nav a:hover { color: var(--purple); }
.cart-link { padding: 9px 14px; border-radius: 999px; background: var(--ink); color: white; }
.cart-link span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 4px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: 11px; }
.menu-toggle { display: none; padding: 8px 12px; background: white; border: 1px solid var(--line); border-radius: 10px; font-weight: 800; }

.hero { position: relative; overflow: hidden; padding: 95px 0 90px; background: linear-gradient(150deg,#fff8ee 0%,#f4efff 60%,#eefaff 100%); }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .55; }
.blob-one { width: 340px; height: 340px; left: -170px; top: 40px; background: var(--yellow); }
.blob-two { width: 420px; height: 420px; right: -170px; bottom: -210px; background: #b7eaff; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr .92fr; gap: 80px; align-items: center; }
.eyebrow { margin: 0 0 14px; color: var(--purple); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .18em; }
h1, h2, h3 { margin-top: 0; font-family: Fredoka, sans-serif; line-height: 1.02; }
h1 { margin-bottom: 24px; font-size: clamp(56px, 7vw, 94px); letter-spacing: -.04em; }
h1 span { color: var(--purple); }
h2 { font-size: clamp(38px, 5vw, 62px); letter-spacing: -.03em; }
h3 { font-size: 25px; }
.hero-lead { max-width: 700px; font-size: 20px; color: #595a70; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: 12px 21px; border: 0; border-radius: 14px; text-decoration: none; font-weight: 900; cursor: pointer; }
.button.primary { color: white; background: var(--purple); box-shadow: 0 8px 0 var(--purple-dark); }
.button.primary:hover { transform: translateY(2px); box-shadow: 0 6px 0 var(--purple-dark); }
.button.secondary { color: var(--ink); background: white; border: 2px solid var(--ink); }
.mini-proof { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 13px; font-weight: 800; }
.mini-proof span::before { content: "✦"; color: var(--pink); margin-right: 6px; }

.hero-art { position: relative; min-height: 490px; }
.print-bed { position: absolute; left: 30px; right: 10px; bottom: 50px; height: 220px; transform: skewY(-7deg); border: 12px solid #3b3b52; border-radius: 24px; background: repeating-linear-gradient(90deg,#e4e5f0 0 1px,transparent 1px 28px), repeating-linear-gradient(0deg,#e4e5f0 0 1px,#fff 1px 28px); box-shadow: var(--shadow); }
.dragon { position: absolute; transform: skewY(7deg); background: linear-gradient(145deg,var(--pink),#ff9d5c); box-shadow: inset -6px -6px 0 rgba(132,34,84,.16), 0 10px 16px rgba(79,38,111,.13); }
.dragon-head { left: 58px; top: 52px; width: 74px; height: 75px; border-radius: 45% 50% 40% 50%; }
.dragon-head::before, .dragon-head::after { content: ""; position: absolute; top: -17px; width: 25px; height: 31px; background: inherit; clip-path: polygon(50% 0,100% 100%,0 75%); }
.dragon-head::before { left: 5px; }
.dragon-head::after { right: 3px; transform: scaleX(-1); }
.segment { width: 57px; height: 57px; border-radius: 45% 55% 48% 52%; }
.s1 { left: 132px; top: 82px; transform: skewY(7deg) rotate(16deg); }
.s2 { left: 183px; top: 103px; transform: skewY(7deg) rotate(28deg); }
.s3 { left: 234px; top: 109px; transform: skewY(7deg) rotate(5deg); }
.s4 { left: 284px; top: 91px; transform: skewY(7deg) rotate(-23deg); }
.s5 { left: 329px; top: 61px; width: 46px; height: 46px; transform: skewY(7deg) rotate(-38deg); }
.nozzle { position: absolute; top: 18px; right: 85px; width: 110px; filter: drop-shadow(0 18px 18px rgba(31,27,67,.18)); }
.nozzle-body { height: 118px; border-radius: 16px 16px 6px 6px; background: linear-gradient(90deg,#4a4a60,#9899ad 48%,#3f3f54); }
.nozzle-tip { width: 40px; height: 42px; margin: -1px auto 0; background: linear-gradient(90deg,#a36f2e,#f7c65d 50%,#96611f); clip-path: polygon(15% 0,85% 0,100% 55%,62% 100%,38% 100%,0 55%); }
.filament-line { width: 8px; height: 110px; margin: -2px auto; background: linear-gradient(var(--pink),#ff9a51); border-radius: 999px; }
.art-note { position: absolute; right: 0; bottom: 0; max-width: 250px; padding: 11px 14px; border-radius: 12px; background: rgba(255,255,255,.88); color: var(--muted); font-size: 11px; box-shadow: var(--shadow); }

.category-strip { position: relative; z-index: 5; margin-top: -34px; }
.category-grid { display: grid; grid-template-columns: repeat(4,1fr); overflow: hidden; border-radius: 22px; background: white; box-shadow: var(--shadow); }
.category-grid a { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 24px; text-decoration: none; border-right: 1px solid var(--line); }
.category-grid a:last-child { border-right: 0; }
.category-grid a:hover { background: #fbf9ff; }
.category-grid span { grid-row: 1/3; font-size: 32px; }
.category-grid strong { line-height: 1.1; }
.category-grid small { color: var(--muted); }

.shop-section { padding: 115px 0; }
.section-heading { display: grid; grid-template-columns: 1fr .65fr; gap: 60px; align-items: end; margin-bottom: 48px; }
.section-heading p:last-child { color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: 0 10px 35px rgba(51,43,100,.06); transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-image { position: relative; min-height: 240px; display: grid; place-items: center; }
.dragon-gradient { background: linear-gradient(145deg,#ffe7f1,#ffd9a6); }
.ocean-gradient { background: linear-gradient(145deg,#dffaff,#c4e5ff); }
.fidget-gradient { background: linear-gradient(145deg,#eee7ff,#dcd1ff); }
.tool-gradient { background: linear-gradient(145deg,#e5fff6,#c8f2e5); }
.utility-gradient { background: linear-gradient(145deg,#fff6cf,#ffe9a9); }
.custom-gradient { background: linear-gradient(145deg,#ffe3ea,#ffd0dc); }
.toy-icon { font-size: 92px; filter: drop-shadow(0 12px 10px rgba(38,34,78,.12)); }
.product-badge { position: absolute; left: 16px; top: 16px; padding: 7px 11px; border-radius: 999px; background: var(--pink); color: white; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.product-badge.practical { background: #15876d; }
.product-info { padding: 24px; }
.product-info h3 { margin-bottom: 10px; }
.product-info > p:not(.product-type) { min-height: 76px; color: var(--muted); font-size: 14px; }
.product-type { margin: 0 0 7px; color: var(--purple); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .09em; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-top: 18px; border-top: 1px solid var(--line); }
.product-bottom strong { font-family: Fredoka; font-size: 22px; }
.add-button { min-width: 70px; padding: 9px 13px; border: 0; border-radius: 10px; background: var(--ink); color: white; font-weight: 900; cursor: pointer; }
.add-button:hover { background: var(--purple); }
.link-button { text-decoration: none; text-align: center; }

.story-section { padding: 105px 0; background: #f3efff; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.story-card { min-height: 430px; padding: 54px; border-radius: 30px; }
.robby-card { background: white; box-shadow: var(--shadow); }
.practical-card { background: var(--ink); color: white; }
.practical-card p:not(.eyebrow), .practical-card li { color: #c9c9d6; }
.story-card ul { margin-top: 30px; padding-left: 20px; }
.story-card li { margin: 10px 0; }

.custom-section { padding: 115px 0; background: linear-gradient(140deg,#fff4d2,#ffe7f0); }
.custom-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; }
.process { display: grid; gap: 12px; margin-top: 34px; }
.process span { display: flex; align-items: center; gap: 12px; font-weight: 900; }
.process b { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--purple); color: white; }
.custom-form { display: grid; gap: 16px; padding: 34px; border-radius: 26px; background: white; box-shadow: var(--shadow); }
.custom-form label { display: grid; gap: 7px; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.custom-form input, .custom-form textarea, .custom-form select { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; background: #fffdfa; outline: none; }
.custom-form input:focus, .custom-form textarea:focus, .custom-form select:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(109,74,255,.12); }
.form-note { margin: 0; color: var(--muted); font-size: 11px; text-transform: none; letter-spacing: normal; }

.cart-toast { position: fixed; z-index: 50; right: 24px; bottom: 24px; max-width: 320px; padding: 14px 18px; border-radius: 14px; color: white; background: var(--ink); box-shadow: var(--shadow); opacity: 0; transform: translateY(20px); pointer-events: none; transition: .2s ease; }
.cart-toast.show { opacity: 1; transform: translateY(0); }
.site-footer { padding: 55px 0; background: #17172a; color: #b9b9c7; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.4fr; align-items: center; gap: 30px; }
.footer-brand { color: white; }
.footer-grid p:last-child { text-align: right; font-size: 12px; }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; padding: 22px; background: var(--paper); flex-direction: column; align-items: stretch; border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .hero-grid, .custom-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .hero-art { min-height: 470px; max-width: 600px; width: 100%; margin-inline: auto; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .category-grid a:nth-child(2) { border-right: 0; }
  .category-grid a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .story-grid { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .container { width: min(100% - 28px, 1180px); }
  .brand { font-size: 19px; }
  .hero { padding-top: 65px; }
  h1 { font-size: 58px; }
  .hero-art { min-height: 370px; }
  .print-bed { left: 0; right: 0; height: 170px; }
  .nozzle { right: 30px; transform: scale(.75); transform-origin: top right; }
  .dragon-head { left: 25px; }
  .s1 { left: 92px; }
  .s2 { left: 137px; }
  .s3 { left: 181px; }
  .s4 { left: 225px; }
  .s5 { left: 267px; }
  .category-grid, .product-grid, .section-heading, .footer-grid { grid-template-columns: 1fr; }
  .category-grid a { border-right: 0; border-bottom: 1px solid var(--line); }
  .category-grid a:last-child { border-bottom: 0; }
  .shop-section, .story-section, .custom-section { padding: 80px 0; }
  .story-card { padding: 34px; }
  .footer-grid p:last-child { text-align: left; }
}
