@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg-color: #030303;
  --text-primary: #f0f0f0;
  --text-secondary: #888888;
  --accent-color: #ccff00;
  --accent-hover: #b3e600;
  --secondary-accent: #6f00ff;
  
  --surface-light: rgba(255, 255, 255, 0.03);
  --surface-border: rgba(255, 255, 255, 0.06);
  --glass-bg: rgba(3, 3, 3, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  
  --font-display: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-fast: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-hyphens: none !important;
  -ms-hyphens: none !important;
  hyphens: none !important;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ── Noise/Grain — GPU-composited, no repaint ── */
.noise {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  /* Static PNG noise — no SVG filter = no per-frame cost */
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4t5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c8TV1mAAAAG3RSTlNAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAvEOwtAAAFVklEQVR4XpWWB67c2BUFb3g557T/hRo9/WUMZHlgr4Bg8Z4qQgQJlHI4A8SzFVrapvmTF9O7dmYRFZ60YiBhJRCgh1FYhiLAmdvX0CzTOpNE77ME0Zty/nWWzchDtiqrmQDeuv3powQ5ta2eN0FY0InkqDD73lT9c9lEzwUNqgFHs9VQce3TVClFCQrSTfOiYkVJQBmpbq2L6iZavPnAPcoU0dSw0SUTqz/GtrGuXfbyyBniKykOWQWGqwwma1y3ZfhbSMR1oQmD2VVdUAGSkok4F2KJSO0VC5FhMNGRRDiqqYEFNvWx2mSIp83PUxh/sHCr7mgmT4TGEhV7KXb6HiBFKSBKoIMQpEWnNYzTMExDZX1xqZpuPLHEFPrvS3FX8T88w9OxoBmGLhFnS/RaSCBXo7MxQvJdUgmJRQF5GrYz0pnv7YVUv0jfwH2vMsMnNfbvFKj7GWGc8MeMjCMSdqliTp3RpRRYrJo2HLW4CtRGjH4GcEiWVsNFhCTQpPIqmNa5VzxIMRakKFjU4LQm7/O7jk3GgkJBJIBBCjOtEHJBBUkj5WSnHC4NlnVdSxqlcaXE+dVkWJSMGjTaWQaaNJkEYKULBEBJnWCXyGj7aVFBJdz/eOGrL5WT6P8c6T6sD5EMNT4cWPBOJPiYRJ3HEi14J4Gy0RXBTq5N4ZDkJQh1GbKL1Fj55r2ZKWu4MFvTHXJgw0B/sFzR8hT3r0FhAqxXBZRl9Uv5k/4bOgLw6n7K1aBfCsA44/akpYzX41cLLXAiM3eaLFEWKE0SpI9PEoVYK/0JqT5kF9NolWfO3fF9KhMaT5DW9NJHKJBT96FaHm3GOXKB9IXOIB");
  will-change: auto;
}

/* ── Custom Cursor — use transform instead of left/top ── */
.cursor-dot, .cursor-outline {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  z-index: 10000;
  pointer-events: none;
  will-change: transform;
}

.cursor-dot {
  width: 8px; height: 8px;
  background: var(--accent-color);
  transform: translate(-50%, -50%);
}

.cursor-outline {
  width: 36px; height: 36px;
  border: 1px solid rgba(204, 255, 0, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.02em;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

h1 { font-size: clamp(3rem, 8vw, 7rem); margin-bottom: 2rem; }
h2 { font-size: clamp(2rem, 5vw, 4rem); margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); margin-bottom: 1rem; }
p  { color: var(--text-secondary); font-weight: 300; }
a  { color: var(--text-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-color); }

/* Utilities */
.text-accent { color: var(--accent-color) !important; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 4vw;
}

/* ── Header — transparent until scrolled ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.5rem 4vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  transition: background 0.4s ease, padding 0.4s ease;
}

header.scrolled {
  background: rgba(3,3,3,0.92);
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--surface-border);
}

.logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: -0.05em;
  display: inline-block;
}

.nav-links {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--accent-color);
  transform: translateX(-101%);
  transition: transform var(--transition-fast);
}

.nav-links a:hover::after { transform: translateX(0); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background var(--transition-fast), color var(--transition-fast), transform 0.2s ease;
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn-primary { background: var(--accent-color); color: #000; }
.btn-primary:hover { background: var(--accent-hover); transform: scale(1.04); }

/* Secondary: NO backdrop-filter */
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.15);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
}

/* ── Hero ── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding-top: 10vh;
  overflow: hidden;
}

/* Mesh gradient — static, no animation */
.mesh-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 60%, rgba(204,255,0,0.07) 0%, transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(111,0,255,0.10) 0%, transparent 50%);
  z-index: -1;
  /* No animation — saves GPU */
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
  word-break: break-word;
}

.hero h1 span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.2);
  transition: color var(--transition-slow), -webkit-text-stroke var(--transition-slow);
}

.hero h1 span:hover {
  color: var(--accent-color);
  -webkit-text-stroke: 0px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 500px;
  margin-bottom: 3rem;
  font-weight: 400;
  line-height: 1.8;
}

/* ── Marquee — only translate animates (compositor-only) ── */
.marquee-container {
  width: 100%;
  overflow: hidden;
  padding: 2rem 0;
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
  background: var(--surface-light);
  margin: 5rem 0;
}

.marquee {
  display: flex;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
  will-change: transform;
}

.marquee span {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0 2rem;
  color: transparent;
  -webkit-text-stroke: 1px var(--text-primary);
}

.marquee span.filled {
  color: var(--accent-color);
  -webkit-text-stroke: 0;
}

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

/* ── Grid & Products ── */
.grid { display: grid; gap: 2vw; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.product-card { position: relative; display: block; }

.product-img-wrapper {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 1rem;
  background: #111;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  opacity: 0.8;
  will-change: transform;
}

.product-card:hover .product-img { transform: scale(1.06); opacity: 1; }

.product-info {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.product-brand {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.product-title {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* ── Brand Profile Header ── */
.brand-profile-header {
  min-height: 70vh; /* changed from fixed height to min-height */
  height: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding-top: 120px;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--surface-border);
  margin-bottom: 4rem;
}

.brand-cover {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg-color) 0%, transparent 100%),
    url('https://images.unsplash.com/photo-1550684848-fac1c5b4e853?q=80&w=2000&auto=format&fit=crop') center/cover;
  z-index: -1;
  opacity: 0.5;
}

/* ── Forms ── */
.auth-wrapper {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-box {
  width: 100%;
  max-width: 500px;
  padding: 4rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--surface-border);
  border-radius: 2rem;
  /* No backdrop-filter */
}

.form-group {
  margin-bottom: 2rem;
  position: relative;
}

.form-control {
  width: 100%;
  padding: 1rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--surface-border);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1.1rem;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-bottom-color: var(--accent-color);
}

.form-label {
  position: absolute;
  top: -1.2rem; 
  left: 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  pointer-events: none;
}

.form-control:focus ~ .form-label {
  color: var(--accent-color);
}

/* ── Autocomplete (browser autofill) dark override ── */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
.form-control:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px var(--bg-color) inset !important;
  box-shadow: 0 0 0 1000px var(--bg-color) inset !important;
  -webkit-text-fill-color: var(--text-primary) !important;
  caret-color: var(--text-primary);
  border-bottom-color: var(--surface-border);
  transition: background-color 9999s ease-in-out 0s;
}

/* ── Utilities ── */
.text-accent { color: var(--accent-color); }
.mt-4 { margin-top: 4rem; }
.mb-4 { margin-bottom: 4rem; }
.pt-10 { padding-top: 10rem; }

/* ── Image placeholders ── */
.img-placeholder-1 { background: url('https://images.unsplash.com/photo-1523398002811-999aa8e95709?q=80&w=800&auto=format&fit=crop') center/cover; }
.img-placeholder-2 { background: url('https://images.unsplash.com/photo-1509319117193-57bab727e09d?q=80&w=800&auto=format&fit=crop') center/cover; }
.img-placeholder-3 { background: url('https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?q=80&w=800&auto=format&fit=crop') center/cover; }
.img-placeholder-4 { background: url('https://images.unsplash.com/photo-1552374196-1ab2a1c593e8?q=80&w=800&auto=format&fit=crop') center/cover; }

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  z-index: 1100;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.25s ease;
  transform-origin: center;
  will-change: transform;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu — NO backdrop-filter */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(3,3,3,0.97);
  z-index: 1050;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: -0.02em;
  transition: color 0.25s ease;
}

.mobile-menu a:hover { color: var(--accent-color); }

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
  will-change: opacity, transform;
}

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

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .container { padding: 0 5vw; }
  .hero-subtitle { max-width: 90%; }
  .brand-profile-header { height: 55vh; }
  .auth-box { padding: 3rem 2.5rem; }
}

@media (max-width: 768px) {
  .cursor-dot, .cursor-outline { display: none; }
  * { cursor: auto; }

  header {
    padding: 1.2rem 5vw;
    border-bottom: 1px solid var(--surface-border);
  }

  .logo { font-size: 1.5rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; gap: 1.5rem; }

  .hero {
    min-height: 100svh;
    padding-top: 12vh;
    padding-bottom: 4rem;
    align-items: flex-start;
    justify-content: flex-end;
  }

  .hero h1 { font-size: clamp(3rem, 14vw, 5rem); margin-bottom: 1rem; }
  .hero-subtitle { font-size: 1rem; max-width: 100%; margin-bottom: 2rem; }
  
  .hero-buttons {
    flex-direction: column !important;
    width: 100%;
  }
  .hero-buttons .btn { width: 100%; }
  
  .marquee span { font-size: 1.8rem; }
  .marquee-container { margin: 3rem 0; }
  .product-title { font-size: 1rem; }
  .brand-profile-header { min-height: 60vh; padding-top: 120px; padding-bottom: 2rem; }
  .auth-wrapper { align-items: flex-end; padding: 0; }
  .auth-box { border-radius: 2rem 2rem 0 0; padding: 2.5rem 1.8rem; border-bottom: none; max-width: 100%; }
  .pt-10 { padding-top: 6rem; }
  .mt-4 { margin-top: 2rem; }
  .mb-4 { margin-bottom: 2rem; }
  .btn { padding: 1rem 2rem; min-height: 48px; }
  .form-control { font-size: 1rem; padding: 1.2rem 0; }
}

@media (max-width: 400px) {
  .logo { font-size: 1.3rem; }
  .hero h1 { font-size: 2.5rem; }
  .mobile-menu a { font-size: 2.2rem; }
}

/* ── Custom Toasts ── */
#toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  pointer-events: none;
}

.toast {
  background: var(--surface-light);
  color: var(--text-primary);
  border: 1px solid var(--surface-border);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  pointer-events: auto;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.toast-success {
  border-left: 4px solid var(--accent-color);
}

.toast.toast-error {
  border-left: 4px solid #ff4444;
}

.toast.toast-info {
  border-left: 4px solid #44aaff;
}

.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-success .toast-icon { color: var(--accent-color); }
.toast-error .toast-icon { color: #ff4444; }
.toast-info .toast-icon { color: #44aaff; }

@media (max-width: 768px) {
  #toast-container {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    align-items: center;
  }
  .toast {
    width: 100%;
    max-width: 400px;
  }
}

@keyframes fadeUpBlur { 0% { opacity: 0; transform: translateY(40px); filter: blur(10px); } 100% { opacity: 1; transform: translateY(0); filter: blur(0); } } .hero-anim { animation: fadeUpBlur 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; } .hero-anim-delay-1 { animation-delay: 0.2s; } .hero-anim-delay-2 { animation-delay: 0.4s; }

@keyframes fadeUpWord {
  from { opacity: 0; transform: translateY(15px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0px); }
}

.word-anim {
  display: inline-block;
  opacity: 0;
  animation: fadeUpWord 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ── Skeleton Loader ── */
@keyframes shimmer {
  0%   { background-position: -700px 0; }
  100% { background-position:  700px 0; }
}

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.04) 0%,
    rgba(255,255,255,0.10) 40%,
    rgba(255,255,255,0.04) 80%
  );
  background-size: 700px 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: 8px;
}

.skeleton-card {
  border-radius: 1.5rem;
  overflow: hidden;
  background: #0e0e0e;
  border: 1px solid var(--surface-border);
}

