@import "tailwindcss";

@theme {
  --color-bg: #FFFFFF;
  --color-bg-card: #FFFFFF;
  --color-bg-warm: #FAFAFA;
  --color-bg-dark: #0A0A0A;
  --color-text: #0A0A0A;
  --color-text-secondary: #555555;
  --color-text-muted: #999999;
  --color-text-caption: #ABABAB;
  --color-accent: #0A0A0A;
  --color-sold: #A3A3A3;
  --color-border: #E8E8E8;
  --color-border-hover: #0A0A0A;
  --color-border-fine: #F0F0F0;
  --color-badge-bg: #0A0A0A;
  --color-badge-text: #FFFFFF;

  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Self-hosted fonts (DSGVO compliant) */
@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/SpaceGrotesk-Variable.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/JetBrainsMono-Variable.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* ─── Base ─── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

::selection {
  background-color: var(--color-text);
  color: var(--color-bg);
}

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

/* ─── Animations ─── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes lineGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.animate-fade-up {
  animation: fadeUp 0.8s var(--ease-out-expo) both;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease both;
}

.animate-slide-in {
  animation: slideIn 0.6s var(--ease-out-expo) both;
}

.animate-scale-in {
  animation: scaleIn 0.5s var(--ease-out-expo) both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }

/* ─── Utility ─── */
.font-mono {
  font-family: var(--font-mono);
}

/* ─── Specimen utilities ─── */
.specimen-number {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--color-text-caption);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  color: var(--color-text-caption);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.price-display {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text);
}

.caption {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-text-muted);
}

/* ─── Badge ─── */
.badge {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--color-badge-bg);
  color: var(--color-badge-text);
  line-height: 1;
}

.badge-sold {
  background: var(--color-sold);
  color: #FFFFFF;
}

.badge-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

/* ─── Buttons ─── */
.btn-primary {
  display: block;
  width: 100%;
  padding: 18px 32px;
  background: var(--color-accent);
  color: var(--color-badge-text);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  opacity: 0.85;
}

.btn-primary:active {
  opacity: 0.7;
}

.btn-primary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  border: 1px solid var(--color-text);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

/* ─── Divider ─── */
.divider {
  height: 1px;
  background: var(--color-border);
  border: none;
  margin: 0;
}

.divider-animated {
  transform-origin: left;
  animation: lineGrow 0.8s var(--ease-out-expo) both;
}

/* ─── Hairline ─── */
.hairline {
  height: 1px;
  background: var(--color-border-fine);
}

/* ─── Card hover ─── */
.card-hover {
  transition: border-color 0.3s ease;
}

.card-hover:hover {
  border-color: var(--color-border-hover);
}

/* ─── Specimen card ─── */
.specimen-card {
  border: 1px solid var(--color-border);
  transition: border-color 0.3s ease;
}

.specimen-card:hover {
  border-color: var(--color-border-hover);
}

.specimen-field {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
}

/* ─── Image reveal ─── */
.img-reveal {
  overflow: hidden;
}

.img-reveal img {
  transition: transform 0.7s var(--ease-out-expo);
}

/* ─── Link underline ─── */
.link-underline {
  position: relative;
  display: inline-block;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s var(--ease-out-expo);
}

.link-underline:hover::after {
  width: 100%;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

/* ─── Mobile menu ─── */
.mobile-menu-open {
  display: flex !important;
  animation: fadeIn 0.2s ease;
}

/* ─── Product info card ─── */
.info-card {
  backdrop-filter: blur(20px);
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--color-border);
}

/* ─── Mockup: Signage Wall ─── */
.mockup-signage-wall {
  background: linear-gradient(145deg, #d4d4d4 0%, #b0b0b0 50%, #a3a3a3 100%);
  position: relative;
}

.mockup-signage-wall::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(0,0,0,0.05) 1px, transparent 1px),
    radial-gradient(circle at 60% 70%, rgba(0,0,0,0.04) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 4px 4px, 6px 6px, 8px 8px;
  opacity: 0.6;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.mockup-signage-wall::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15), transparent);
  pointer-events: none;
}

/* ─── Mockup: Business Card ─── */
.mockup-card-surface {
  position: relative;
}

.mockup-card-surface::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent 40%, rgba(0,0,0,0.4));
  border-radius: inherit;
  pointer-events: none;
}

/* ─── Mockup: Foil Logo ─── */
.mockup-foil-logo {
  filter: brightness(0) invert(0.85) contrast(1.1);
  opacity: 0.9;
}

/* ─── Mockup: Label ─── */
.mockup-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  color: var(--color-text-caption);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
