/* ============================================================
   CRAVEOPS DESIGN SYSTEM — Premium Digital Engineering
   Aesthetic: Deep Charcoal, Amber Glow, Glassmorphism
   Fonts: Outfit (Heading) + Inter (Body)
   ============================================================ */

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

:root {
  /* Color Palette */
  --bg-dark:      #050505;
  --bg-card:      rgba(15, 15, 15, 0.6);
  --border-light: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  
  --primary:      #e8860a;
  --primary-glow: rgba(232, 134, 10, 0.3);
  --accent-blue:  #3b82f6;
  --accent-purple: #8b5cf6;

  --text-main:    #f9f9f9;
  --text-muted:   #a1a1aa;
  --text-dim:     #52525b;

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Spacing */
  --container-max: 1100px;
  --section-padding: 120px;
}

/* --- Base --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.glow-top {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 800px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

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

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 1rem;
  display: block;
}

/* --- Header --- */
.header {
  padding: 2rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo:hover { transform: scale(1.02); }

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.05em;
}

.logo-accent { color: var(--primary); }

/* --- Hero --- */
.hero {
  padding: 80px 0 100px;
  text-align: center;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(to bottom, #fff 40%, #888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
}

/* --- Products --- */
.products {
  padding-bottom: var(--section-padding);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.card-image {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 12px;
  margin-bottom: 2rem;
  object-fit: cover;
  border: 1px solid var(--border-light);
}

.card-title {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.card-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--primary);
  font-family: var(--font-display);
}

.card-footer svg {
  transition: transform 0.3s ease;
}

.card:hover .card-footer svg {
  transform: translateX(4px);
}

/* --- Legal Footer --- */
.footer {
  border-top: 1px solid var(--border-light);
  padding: 4rem 0;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-link:hover { color: var(--text-main); }

.copyright {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .products-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 3rem; }
  .card { padding: 1.5rem; }
}

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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