/* Fortuvo — core design system */

:root {
  --bg: #080808;
  --bg-elevated: #111111;
  --bg-card: #141414;
  --line: #2a2a2a;
  --line-soft: #1e1e1e;
  --text: #ece9e2;
  --text-muted: #8f8f8f;
  --text-dim: #5c5c5c;
  --accent: #b89b5e;
  --accent-soft: rgba(184, 155, 94, 0.15);
  --font-display: "Outfit", system-ui, -apple-system, sans-serif;
  --font-body: "Outfit", system-ui, -apple-system, sans-serif;
  --container: 76rem;
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-glow: 0 0 80px rgba(184, 155, 94, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* Film grain overlay */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Typography */
.eyebrow {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text-muted);
}

.section-title {
  margin: 0.75rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-lead {
  margin: 1rem 0 0;
  max-width: 30rem;
  color: var(--text-muted);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.014em;
}

.section-head {
  margin-bottom: 3rem;
}

.section-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.text-link {
  font-size: 0.875rem;
  color: var(--accent);
  transition: opacity 0.2s;
}

.text-link:hover {
  opacity: 0.75;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: rgba(8, 8, 8, 0.72);
  backdrop-filter: blur(16px);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(8, 8, 8, 0.92);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  z-index: 2;
}

.site-logo__mark {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.site-header__right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav__list,
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-muted);
}

.site-nav a,
.site-nav__list a {
  position: relative;
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav__list a:hover {
  color: var(--text);
}

.site-nav a::after,
.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

.site-nav a:hover::after,
.site-nav__list a:hover::after {
  width: 100%;
}

.fortuvo-cart {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color 0.2s;
}

.fortuvo-cart:hover {
  color: var(--accent);
}

.fortuvo-cart__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.25rem;
  background: var(--accent);
  color: #000;
  font-size: 0.6875rem;
  font-weight: 500;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 2;
}

.nav-toggle span {
  display: block;
  width: 1.375rem;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .site-header__right {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: rgba(8, 8, 8, 0.98);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
  }

  body.nav-open .site-header__right {
    opacity: 1;
    visibility: visible;
  }

  .site-nav,
  .site-nav__list {
    flex-direction: column;
    gap: 1.5rem;
    font-size: 1.125rem;
  }

  body.nav-open .nav-toggle span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  body.nav-open .nav-toggle span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }
}

/* Buttons */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8125rem 1.625rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  border: 1px solid var(--accent);
  border-radius: 980px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s;
}

.button:hover {
  background: var(--accent);
  color: #000;
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.button--primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.button--primary:hover {
  background: #c9ab6a;
  border-color: #c9ab6a;
}

.button--ghost {
  border-color: var(--line);
  color: var(--text);
}

.button--ghost:hover {
  background: transparent;
  border-color: var(--text);
  color: var(--text);
  box-shadow: none;
}

.button--small {
  padding: 0.625rem 1.25rem;
  font-size: 0.75rem;
}

.button--large {
  padding: 1.125rem 2.5rem;
  font-size: 0.875rem;
}

/* EU banner */
.eu-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.eu-banner--inline {
  margin-top: 1.75rem;
}

.eu-banner__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
  flex-shrink: 0;
}

/* Hero */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 10vw, 7rem);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }
}

.hero__title {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero__lead {
  margin: 1.25rem 0 0;
  max-width: 26rem;
  color: var(--text-muted);
  font-size: 1.1875rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.018em;
}

.hero__micro {
  margin: 1.5rem 0 0;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-dim);
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.hero__frame {
  position: relative;
  width: 100%;
  max-width: 22rem;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, var(--bg-card) 0%, var(--bg) 100%),
    radial-gradient(ellipse at 30% 20%, var(--accent-soft), transparent 60%);
  box-shadow: var(--shadow-glow);
}

.hero__frame::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid var(--line-soft);
}

.hero__frame-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

.hero__frame-label {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.hero__frame-sub {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 14rem;
  letter-spacing: -0.01em;
}

/* Marquee */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-elevated);
  padding: 0.875rem 0;
}

.marquee__track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-dim);
  animation: marquee 40s linear infinite;
}

.marquee__sep {
  margin: 0 1.5rem;
  color: var(--accent);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Manifesto */
.manifesto {
  padding: clamp(4rem, 10vw, 8rem) 0;
}

.manifesto__inner {
  max-width: 48rem;
  text-align: center;
  margin: 0 auto;
}

.manifesto__quote {
  margin: 1.5rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.024em;
  color: var(--text);
  border: 0;
}

.manifesto__cite {
  margin: 2rem 0 0;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Collections editorial */
.collections-block {
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
}

.collections-editorial {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.collection-editorial {
  display: grid;
  gap: 1.5rem;
  padding: 2rem 1.5rem;
  background: var(--bg);
  transition: background 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.collection-editorial::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--collection-accent, var(--accent));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}

.collection-editorial:hover {
  background: var(--bg-card);
}

.collection-editorial:hover::before {
  transform: scaleY(1);
}

@media (min-width: 768px) {
  .collection-editorial {
    grid-template-columns: 4rem 1fr;
    padding: 2.5rem 2rem;
    align-items: start;
  }
}

.collection-editorial__index {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-dim);
}

.collection-editorial__tagline {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-muted);
}

.collection-editorial__title {
  margin: 0.375rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.collection-editorial__story {
  margin: 0.625rem 0 0;
  max-width: 36rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: -0.011em;
}

.collection-editorial__mood {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--text);
}

.collection-editorial__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  transition: gap 0.25s var(--ease);
}

.baseline-block__cta,
.essentials-block__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  margin-top: 2.5rem;
}

.collection-editorial:hover .collection-editorial__cta {
  gap: 0.875rem;
}

/* Process */
.process {
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.process__steps {
  display: grid;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .process__steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.process__steps li {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.process__num {
  display: block;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-muted);
}

.process__steps h3 {
  margin: 0.75rem 0 0;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.process__steps p {
  margin: 0.625rem 0 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Featured grid shell */
.featured {
  padding: clamp(4rem, 8vw, 6rem) 0;
  border-top: 1px solid var(--line);
}

.featured__grid {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Final CTA */
.final-cta {
  padding: clamp(5rem, 12vw, 9rem) 0;
  background:
    radial-gradient(ellipse at 50% 100%, var(--accent-soft), transparent 55%),
    var(--bg-elevated);
  border-top: 1px solid var(--line);
  text-align: center;
}

.final-cta__inner {
  max-width: 40rem;
  margin: 0 auto;
}

.final-cta__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.final-cta__lead {
  margin: 1rem auto 0;
  max-width: 24rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.final-cta .button {
  margin-top: 2rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 4rem 0 2rem;
  background: var(--bg);
}

.site-footer__top {
  display: grid;
  gap: 3rem;
}

@media (min-width: 900px) {
  .site-footer__top {
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
  }
}

.site-footer__logo {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-footer__tagline {
  margin: 1rem 0 0;
  max-width: 18rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.65;
}

.site-footer__cols {
  display: grid;
  gap: 2rem;
}

@media (min-width: 600px) {
  .site-footer__cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

.site-footer__heading {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.site-footer__links {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.site-footer__links li + li {
  margin-top: 0.5rem;
}

.site-footer__links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.site-footer__links a:hover {
  color: var(--text);
}

.site-footer__note {
  margin: 1rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.site-footer__legal {
  display: flex;
  gap: 0.75rem;
}

.site-footer__legal a {
  color: var(--text-muted);
}

.site-footer__legal a:hover {
  color: var(--text);
}

/* Page templates */
.page-hero {
  padding: clamp(3rem, 8vw, 5rem) 0 2rem;
}

.page-hero__title {
  margin: 0.75rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
}

.page-content {
  max-width: 42rem;
  padding-bottom: 4rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.page-content h2,
.page-content h3 {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 500;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 0;
}

.error-page h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 500;
  margin: 0;
}

.error-page p {
  margin: 1rem 0 0;
  color: var(--text-muted);
}

/* Prose content pages */
.site-main--page {
  padding-bottom: 5rem;
}

.prose {
  max-width: 42rem;
  padding-bottom: 2rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.prose h2,
.prose h3 {
  margin: 2.5rem 0 0.75rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
}

.prose p,
.prose ul,
.prose ol {
  margin: 1rem 0 0;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover {
  opacity: 0.85;
}

/* FAQ accordion */
.faq-list {
  margin-top: 0.5rem;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 0.25rem 0;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-family: var(--font-body);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0 0 1rem;
  padding-right: 2rem;
}

/* Size guide table */
.size-table-wrap {
  overflow-x: auto;
  margin-top: 1.5rem;
  border: 1px solid var(--line);
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.size-table th,
.size-table td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}

.size-table th {
  background: var(--bg-card);
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.size-table tr:last-child td {
  border-bottom: 0;
}

.size-note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

/* Cookie bar */
.cookie-bar {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 200;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 36rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  background: rgba(17, 17, 17, 0.96);
  backdrop-filter: blur(12px);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.cookie-bar[hidden] {
  display: none !important;
}

@media (min-width: 640px) {
  .cookie-bar {
    left: auto;
    right: 1.5rem;
  }
}
