@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=DM+Mono:wght@300;400;500&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

/* ─── Design Tokens ─────────────────────────────────────────── */
:root {
  --surface:        #F7F6F4;
  --surface-dim:    #EDECEA;
  --surface-bright: #FDFCFA;
  --container:      #EDECEA;
  --container-high: #E3E2DF;
  --outline:        #C4C3C0;
  --outline-var:    #DDDCDA;
  --on-surface:     #1C1B19;
  --on-surface-var: #4A4946;
  --primary:        #2C2B29;
  --primary-dim:    #5C5B58;
  --accent:         #9A8F7A;
  --accent-dim:     #C5BC9E;
  --glass-bg:       rgba(253,252,250,0.72);
  --glass-border:   rgba(255,255,255,0.65);
  --shadow-sm:      0 1px 3px rgba(28,27,25,0.04), 0 1px 2px rgba(28,27,25,0.06);
  --shadow-md:      0 4px 16px rgba(28,27,25,0.06), 0 2px 6px rgba(28,27,25,0.04);
  --shadow-lg:      0 12px 40px rgba(28,27,25,0.08), 0 4px 12px rgba(28,27,25,0.04);
  --shadow-xl:      0 24px 64px rgba(28,27,25,0.10), 0 8px 24px rgba(28,27,25,0.06);
  --font-display:   'Syne', system-ui, sans-serif;
  --font-body:      'DM Sans', system-ui, sans-serif;
  --font-mono:      'DM Mono', monospace;
  --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth:    cubic-bezier(0.2, 0, 0, 1);
  --ease-out:       cubic-bezier(0, 0, 0.3, 1);
}

/* ─── Base Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--surface);
  color: var(--on-surface);
  overflow-x: hidden;
}

::selection { background: var(--container-high); color: var(--primary); }

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

/* ─── Glass Morphism Components ─────────────────────────────── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
}

.glass-card {
  background: rgba(253,252,250,0.60);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: var(--shadow-md);
  transition: transform 0.6s var(--ease-smooth), box-shadow 0.6s var(--ease-smooth), border-color 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(255,255,255,0.80);
}

/* ─── Header ─────────────────────────────────────────────────── */
#site-header {
  background: rgba(247,246,244,0.75);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border-bottom: 1px solid rgba(196,195,192,0.25);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

#site-header.scrolled {
  background: rgba(247,246,244,0.92);
  box-shadow: 0 1px 0 rgba(196,195,192,0.35), var(--shadow-sm);
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-surface-var);
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--on-surface);
  transition: width 0.35s var(--ease-smooth);
}

.nav-link:hover { color: var(--on-surface); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--on-surface); }
.nav-link.active::after { width: 100%; }

/* ─── Hero ───────────────────────────────────────────────────── */
.hero-parallax {
  position: relative;
  height: 100vh;
  min-height: 800px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: -10%;
  background-image: url('img/11.png');
  background-size: cover;
  background-position: center top;
  will-change: transform;
  transition: transform 0.1s linear;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(247,246,244,0.65) 0%,
    rgba(237,236,234,0.40) 40%,
    rgba(28,27,25,0.25) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
}

/* ─── Section Labels ─────────────────────────────────────────── */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

/* ─── Product Image Cards ────────────────────────────────────── */
.product-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}

.product-card-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform 0.8s var(--ease-smooth), filter 0.6s ease;
  display: block;
}

.product-card:hover .product-card-img {
  transform: scale(1.06);
  filter: brightness(0.88);
}

.product-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(28,27,25,0.85) 0%,
    rgba(28,27,25,0.30) 45%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.5s var(--ease-smooth);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}

.product-card:hover .product-card-overlay { opacity: 1; }

.product-card-label {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: rgba(253,252,250,0.96);
  transform: translateY(12px);
  transition: transform 0.5s var(--ease-spring);
  letter-spacing: -0.01em;
}

.product-card:hover .product-card-label { transform: translateY(0); }

.product-card-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(197,188,158,0.90);
  margin-top: 4px;
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.5s var(--ease-spring) 0.06s, opacity 0.5s ease 0.06s;
}

.product-card:hover .product-card-sub { transform: translateY(0); opacity: 1; }

/* ─── Before/After Comparison ────────────────────────────────── */
.comparison-wrapper {
  position: relative;
  overflow: hidden;
  user-select: none;
  border-radius: 4px;
}

.comparison-after {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 50% 0 0);
  transition: none;
}

.comparison-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: white;
  cursor: ew-resize;
  z-index: 20;
  transform: translateX(-50%);
}

.comparison-handle-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
}

/* ─── FAB ────────────────────────────────────────────────────── */
.fab-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 100;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 12px;
}

.fab-main {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--on-surface);
  color: var(--surface-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease, background 0.3s ease;
  border: none;
  outline: none;
}

.fab-main:hover { transform: scale(1.08); box-shadow: var(--shadow-xl); }
.fab-main.open { background: var(--primary-dim); transform: rotate(45deg); }

.fab-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.5s var(--ease-out), opacity 0.35s ease;
  pointer-events: none;
}

.fab-actions.open {
  max-height: 300px;
  opacity: 1;
  pointer-events: auto;
}

.fab-action-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.fab-action-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--on-surface);
  color: var(--surface);
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.fab-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface-bright);
  border: 1px solid var(--outline-var);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  color: var(--on-surface);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
  font-size: 16px;
}

.fab-action-btn:hover { transform: scale(1.1); box-shadow: var(--shadow-md); }

/* ─── Reveal Animations ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-left.active { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-right.active { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-scale.active { opacity: 1; transform: scale(1); }

/* stagger delays */
.d-100 { transition-delay: 100ms; }
.d-200 { transition-delay: 200ms; }
.d-300 { transition-delay: 300ms; }
.d-400 { transition-delay: 400ms; }
.d-500 { transition-delay: 500ms; }
.d-600 { transition-delay: 600ms; }
.d-700 { transition-delay: 700ms; }

/* ─── Mobile Menu ────────────────────────────────────────────── */
#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(247,246,244,0.97);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

#mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--on-surface);
  text-decoration: none;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-spring), color 0.3s ease;
}

#mobile-menu.open .mobile-nav-link { opacity: 1; transform: translateY(0); }
#mobile-menu.open .mobile-nav-link:nth-child(1) { transition-delay: 80ms; }
#mobile-menu.open .mobile-nav-link:nth-child(2) { transition-delay: 150ms; }
#mobile-menu.open .mobile-nav-link:nth-child(3) { transition-delay: 220ms; }
#mobile-menu.open .mobile-nav-link:nth-child(4) { transition-delay: 290ms; }
.mobile-nav-link:hover { color: var(--accent); }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--on-surface);
  color: var(--surface-bright);
  padding: 16px 36px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.3s ease, transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--primary-dim);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-ghost {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: transparent;
  color: var(--on-surface);
  padding: 15px 35px;
  border: 1px solid var(--outline);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.3s ease, transform 0.3s var(--ease-spring), border-color 0.3s ease;
  text-decoration: none;
}

.btn-ghost:hover {
  background: var(--container);
  border-color: var(--on-surface);
  transform: translateY(-2px);
}

/* ─── Stat Numbers ───────────────────────────────────────────── */
.stat-num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--on-surface);
}

/* ─── Contact section ─────────────────────────────────────────── */
.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--surface-bright);
  border: 1px solid var(--outline-var);
  border-radius: 4px;
  text-decoration: none;
  color: var(--on-surface);
  transition: background 0.3s ease, transform 0.3s var(--ease-spring), border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-link:hover {
  background: var(--container);
  border-color: var(--outline);
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

/* ─── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--outline); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--on-surface-var); }

/* ─── Misc Utilities ─────────────────────────────────────────── */
.divider { width: 1px; background: var(--outline-var); }
.divider-h { height: 1px; background: var(--outline-var); }

.surface-container { background: var(--container); }
.surface-high       { background: var(--container-high); }

.text-on      { color: var(--on-surface); }
.text-on-var  { color: var(--on-surface-var); }
.text-accent  { color: var(--accent); }
.text-primary { color: var(--primary); }

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

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

@keyframes slideRight {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}

.hero-animate-1 { animation: fadeUp 1s var(--ease-out) 0.3s both; }
.hero-animate-2 { animation: fadeUp 1s var(--ease-out) 0.5s both; }
.hero-animate-3 { animation: fadeUp 1s var(--ease-out) 0.7s both; }
.hero-animate-4 { animation: fadeUp 1s var(--ease-out) 0.9s both; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .stat-num { font-size: 40px; }
  .mobile-nav-link { font-size: 32px; }
}
