@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg: #0f0f0f;
  --surface: #161616;
  --surface-hover: #1f1f1f;
  --border: #2a2a2a;
  --text: #ffffff;
  --text-muted: #a0a0a0;
  --text-dim: #6a6a6a;
  --radius: 8px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: #ffffff;
  color: #000000;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.35;
}

.orb-1 {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(120, 130, 255, 0.4), transparent 70%);
  top: -120px;
  right: -60px;
  animation: drift 16s ease-in-out infinite;
}

.orb-2 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(70, 110, 230, 0.25), transparent 70%);
  bottom: -120px;
  left: 16%;
  animation: drift 20s ease-in-out infinite reverse;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-26px, 34px); }
}

.layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 350px 1fr;
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 60px 28px 80px;
  height: 100vh;
  border-right: 1px solid var(--border);
}

.side-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-16px);
  animation: slideIn 0.6s var(--ease) forwards;
}

.sidebar .side-button:nth-child(1) { animation-delay: 0.1s; }
.sidebar .side-button:nth-child(2) { animation-delay: 0.2s; }
.sidebar .side-button:nth-child(3) { animation-delay: 0.3s; }
.sidebar .side-button:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.side-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.side-button:hover {
  background: var(--surface-hover);
  border-color: #3a3a3a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.side-button:hover::before {
  opacity: 1;
}

.side-button:active {
  transform: translateY(0);
  transition-duration: 0.05s;
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 6px;
  background: #0f0f0f;
  color: var(--text-muted);
  transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.btn-icon svg {
  width: 17px;
  height: 17px;
}

.btn-icon-logo img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.side-button:hover .btn-icon {
  color: #ffffff;
  background: #0a0a0a;
  transform: scale(1.06);
}

.btn-label {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  flex: 1;
}

.btn-arrow {
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-6px);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text-dim);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.side-button:hover .btn-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--text);
}

.content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  height: 100vh;
  padding: 80px 40px;
  overflow-y: auto;
}

.brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #888892 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.15s forwards;
}

.tagline {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.35s forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.preview-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.55s forwards;
  perspective: 1000px;
}

.preview-wrapper {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.1s ease-out;
}

.product-preview {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  pointer-events: none;
  user-select: none;
}

.preview-glow {
  position: absolute;
  inset: -5px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 1), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  border-radius: 20px;
  z-index: -1;
}

.preview-shine {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: transparent;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.preview-container:hover .preview-glow {
  opacity: 1;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 100;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 32px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  transform: translateY(12px) scale(0.96);
  transition: transform 0.3s var(--ease);
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.modal-button {
  padding: 11px 26px;
  border: none;
  border-radius: 6px;
  background: #ffffff;
  color: #000000;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.modal-button:hover {
  background: #e0e0e0;
  transform: translateY(-1px);
}

.modal-button:active {
  transform: translateY(0);
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg);
  color: var(--text-dim);
  text-align: left;
  padding: 10px 16px;
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  z-index: 5;
}

@media (max-width: 820px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    height: auto;
    padding: 96px 22px 32px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .content {
    height: auto;
    min-height: 100vh;
    padding: 60px 22px 96px;
  }
  
  .preview-container {
    max-width: 100%;
  }
}