@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500&display=swap');

:root {
  --bg: #f4f0e8;
  --surface: #fffdf9;
  --ink: #171714;
  --muted: #696960;
  --line: rgba(23, 23, 20, .14);
  --accent: #ff5b46;
  --accent-2: #c9ff55;
  --display: 'Manrope', sans-serif;
  --body: 'DM Sans', sans-serif;
  --radius: 24px;
  --shadow: 0 24px 80px rgba(15, 18, 20, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--ink); font-family: var(--body); text-rendering: optimizeLegibility; }
body.menu-open, body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; max-width: 100%; object-fit: cover; }
button { color: inherit; }
::selection { background: var(--accent); color: #fff; }

.demo-shell { min-height: 100svh; }
.demo-container { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.demo-section { padding: clamp(5rem, 9vw, 9rem) 0; }
.demo-kicker { display: inline-flex; gap: .55rem; align-items: center; margin: 0 0 1rem; color: var(--accent); font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.demo-kicker::before { width: 26px; height: 1px; content: ''; background: currentColor; }
.demo-title { max-width: 920px; margin: 0; font-family: var(--display); font-size: clamp(3rem, 7vw, 7rem); font-weight: 500; letter-spacing: -.065em; line-height: .92; }
.demo-lede { max-width: 650px; margin: 1.5rem 0 0; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.65; }
.demo-grid { display: grid; gap: 1rem; }
.demo-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.demo-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.demo-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px rgba(255,255,255,.25) inset; }
.demo-card__body { padding: clamp(1.25rem, 3vw, 2.25rem); }
.demo-card h3 { margin: 0 0 .65rem; font-family: var(--display); font-size: 1.35rem; letter-spacing: -.035em; }
.demo-card p { margin: 0; color: var(--muted); line-height: 1.6; }

.demo-nav { position: fixed; z-index: 80; top: 14px; right: 0; left: 0; display: flex; width: min(1180px, calc(100% - 1rem)); min-height: 62px; align-items: center; gap: 1rem; margin: auto; border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); border-radius: 999px; padding: 7px 8px 7px 15px; background: color-mix(in srgb, var(--surface) 82%, transparent); box-shadow: 0 14px 50px rgba(0,0,0,.08); backdrop-filter: blur(20px) saturate(145%); }
.demo-brand { display: inline-flex; min-width: max-content; align-items: center; gap: .7rem; margin-right: auto; font-family: var(--display); font-weight: 700; letter-spacing: -.035em; }
.demo-brand__mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--ink); color: var(--surface); font-size: .85rem; }
.demo-nav__links { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 2rem); }
.demo-nav__links a { color: var(--muted); font-size: .72rem; font-weight: 600; }
.demo-nav__links a:hover { color: var(--accent); }
.demo-actions { display: flex; align-items: center; gap: 6px; }
.demo-icon-button, .demo-menu-toggle { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer; }
.demo-menu-toggle { position: relative; display: none; }
.demo-menu-toggle span { position: absolute; width: 17px; height: 1px; background: currentColor; transition: transform .3s ease; }
.demo-menu-toggle span:first-child { transform: translateY(-3px); }
.demo-menu-toggle span:last-child { transform: translateY(3px); }
.demo-menu-toggle[aria-expanded='true'] span:first-child { transform: rotate(45deg); }
.demo-menu-toggle[aria-expanded='true'] span:last-child { transform: rotate(-45deg); }

.demo-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: .75rem; border: 1px solid var(--ink); border-radius: 999px; padding: .8rem 1.25rem; background: var(--ink); color: var(--surface); cursor: pointer; font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.demo-button:hover { transform: translateY(-2px); box-shadow: 0 14px 35px rgba(0,0,0,.14); }
.demo-button--accent { border-color: var(--accent); background: var(--accent); color: #fff; }
.demo-button--ghost { background: transparent; color: var(--ink); }
.demo-button--small { min-height: 40px; padding: .55rem 1rem; font-size: .68rem; }
.demo-badge { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--line); border-radius: 999px; padding: .45rem .75rem; background: color-mix(in srgb, var(--surface) 80%, transparent); font-size: .68rem; font-weight: 650; }
.demo-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent); }

.demo-hero { position: relative; display: grid; min-height: 100svh; align-items: end; overflow: hidden; padding: 8rem 0 3rem; }
.demo-hero__media { position: absolute; z-index: -2; inset: 0; }
.demo-hero__media img { height: 100%; }
.demo-hero__shade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.74), rgba(0,0,0,.08)); }
.demo-hero__content { max-width: 900px; }
.demo-hero--image { color: #fff; }
.demo-hero--image .demo-lede { color: rgba(255,255,255,.78); }
.demo-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.demo-hero__meta { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 2.5rem; }

.demo-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0; }
.demo-filter button { border: 1px solid var(--line); border-radius: 999px; padding: .65rem .95rem; background: transparent; cursor: pointer; color: var(--muted); font-size: .72rem; }
.demo-filter button[aria-pressed='true'] { border-color: var(--accent); background: var(--accent); color: #fff; }
.demo-price { font-size: 1.1rem; font-weight: 700; }
.demo-card__image { aspect-ratio: 4 / 3; overflow: hidden; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.demo-card__image img { height: 100%; transition: transform .7s cubic-bezier(.16,1,.3,1); }
.demo-card:hover .demo-card__image img { transform: scale(1.045); }

.demo-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.demo-stat { padding: 2rem; border-right: 1px solid var(--line); }
.demo-stat:last-child { border-right: 0; }
.demo-stat strong { display: block; font-family: var(--display); font-size: clamp(2rem, 4vw, 4.2rem); letter-spacing: -.06em; }
.demo-stat span { color: var(--muted); font-size: .75rem; }

.demo-panel { border-radius: calc(var(--radius) * 1.25); padding: clamp(1.5rem, 4vw, 4rem); background: var(--ink); color: var(--surface); }
.demo-panel .demo-lede { color: color-mix(in srgb, var(--surface) 68%, transparent); }
.demo-form { display: grid; gap: .8rem; }
.demo-field { display: grid; gap: .4rem; }
.demo-field label { color: var(--muted); font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.demo-field :is(input, select, textarea) { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 14px; padding: .8rem .9rem; background: var(--surface); color: var(--ink); outline: none; }
.demo-field textarea { min-height: 110px; resize: vertical; }
.demo-field :is(input, select, textarea):focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.demo-form--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.demo-form--2 .demo-field--wide { grid-column: 1 / -1; }

.demo-modal { position: fixed; z-index: 120; inset: 0; display: none; place-items: center; padding: 1rem; background: rgba(0,0,0,.72); backdrop-filter: blur(10px); }
.demo-modal.is-open { display: grid; }
.demo-modal__dialog { position: relative; width: min(620px, 100%); max-height: calc(100dvh - 2rem); overflow: auto; border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 3rem); background: var(--surface); box-shadow: var(--shadow); }
.demo-modal__close { position: sticky; z-index: 2; top: 0; display: grid; width: 42px; height: 42px; place-items: center; float: right; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer; }
.demo-toast { position: fixed; z-index: 140; right: 1rem; bottom: 1rem; max-width: 320px; border-radius: 16px; padding: 1rem 1.2rem; background: var(--ink); color: var(--surface); box-shadow: var(--shadow); opacity: 0; transform: translateY(18px); pointer-events: none; transition: .3s ease; }
.demo-toast.is-visible { opacity: 1; transform: none; }

.demo-marquee { display: flex; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1rem 0; }
.demo-marquee__track { display: flex; min-width: max-content; gap: 2.5rem; animation: demo-marquee 24s linear infinite; }
.demo-marquee__track span { font-family: var(--display); font-size: clamp(1.4rem, 3vw, 3rem); letter-spacing: -.045em; }
@keyframes demo-marquee { to { transform: translateX(-50%); } }

.demo-reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s cubic-bezier(.16,1,.3,1); }
.demo-reveal.is-visible { opacity: 1; transform: none; }
[data-tilt] { transform-style: preserve-3d; transition: transform .2s ease; }

.demo-footer { padding: 4rem 0 2rem; background: var(--ink); color: var(--surface); }
.demo-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 3rem; }
.demo-footer h2 { max-width: 650px; margin: 0; font-family: var(--display); font-size: clamp(2.5rem, 5vw, 5.5rem); letter-spacing: -.06em; line-height: .95; }
.demo-footer small { color: color-mix(in srgb, var(--surface) 55%, transparent); }

@media (max-width: 900px) {
  .demo-nav__links { position: fixed; inset: 0; display: none; min-height: 100dvh; flex-direction: column; align-items: stretch; justify-content: center; gap: 0; padding: 6rem 1.25rem 2rem; background: var(--surface); }
  .demo-nav__links.is-open { display: flex; }
  .demo-nav__links a { border-bottom: 1px solid var(--line); padding: .8rem 0; font-family: var(--display); font-size: clamp(2.4rem, 10vw, 5rem); letter-spacing: -.05em; }
  .demo-menu-toggle { z-index: 2; display: grid; }
  .demo-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .demo-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .demo-footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .demo-container { width: min(100% - 1.2rem, 1180px); }
  .demo-nav { top: 6px; min-height: 56px; }
  .demo-brand > span:last-child { display: none; }
  .demo-grid--3, .demo-grid--4, .demo-form--2 { grid-template-columns: 1fr; }
  .demo-form--2 .demo-field--wide { grid-column: auto; }
  .demo-stats { grid-template-columns: repeat(2, 1fr); }
  .demo-stat:nth-child(2) { border-right: 0; }
  .demo-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .demo-hero { padding-top: 6.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .demo-reveal { opacity: 1; transform: none; }
}
