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

:root {
  --bg-primary: #0a0a0b;
  --bg-secondary: #111113;
  --bg-card: #161618;
  --text-primary: #fafafa;
  --text-secondary: #a1a1a6;
  --text-muted: #636366;
  --accent-warm: #e8c4a0;
  --accent-timer: #ff6b4a;
  --accent-n8n: #5865f2;
  --accent-calendar: #10b981;
  --accent-scanner: #3b82f6;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Film grain overlay */
.grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.03;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Background gradient */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(232, 196, 160, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(88, 101, 242, 0.05), transparent),
    radial-gradient(ellipse 50% 30% at 20% 80%, rgba(255, 107, 74, 0.04), transparent);
  pointer-events: none;
  z-index: 0;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 2rem;
  z-index: 100;
  background: linear-gradient(to bottom, var(--bg-primary) 0%, transparent 100%);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  font-size: 1.5rem;
  color: var(--accent-warm);
}

.logo-text {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* Hero Section */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  text-align: center;
}

.hero-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.title-line {
  display: block;
  font-size: clamp(3rem, 10vw, 6rem);
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease-out forwards;
}

.title-line:nth-child(2) {
  animation-delay: 0.15s;
}

.title-accent {
  color: var(--accent-warm);
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease-out 0.3s forwards;
}

/* Products Section */
.products {
  padding: 2rem 2rem 6rem;
  position: relative;
  z-index: 1;
}

.products-header {
  text-align: center;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.6s ease-out 0.5s forwards;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

/* Product Cards */
.product-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.6s ease-out forwards;
}

.product-card:nth-child(1) { animation-delay: 0.6s; }
.product-card:nth-child(2) { animation-delay: 0.75s; }
.product-card:nth-child(3) { animation-delay: 0.9s; }
.product-card:nth-child(4) { animation-delay: 1.05s; }

.product-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.02) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

[data-product="timer"] .card-glow {
  background: radial-gradient(circle at center, rgba(255, 107, 74, 0.15), transparent 40%);
}

[data-product="n8n"] .card-glow {
  background: radial-gradient(circle at center, rgba(88, 101, 242, 0.15), transparent 40%);
}

[data-product="calendar"] .card-glow {
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.15), transparent 40%);
}

[data-product="scanner"] .card-glow {
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.15), transparent 40%);
}

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

.card-content {
  position: relative;
  z-index: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease, background 0.3s ease;
}

[data-product="timer"] .card-icon {
  background: rgba(255, 107, 74, 0.1);
  color: var(--accent-timer);
}

[data-product="n8n"] .card-icon {
  background: rgba(88, 101, 242, 0.1);
  color: var(--accent-n8n);
}

[data-product="calendar"] .card-icon {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-calendar);
}

[data-product="scanner"] .card-icon {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-scanner);
}

.product-card:hover .card-icon {
  transform: scale(1.1);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.card-description {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: gap 0.3s ease;
}

[data-product="timer"] .card-link { color: var(--accent-timer); }
[data-product="n8n"] .card-link { color: var(--accent-n8n); }
[data-product="calendar"] .card-link { color: var(--accent-calendar); }
[data-product="scanner"] .card-link { color: var(--accent-scanner); }

.card-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.product-card:hover .card-link {
  gap: 0.75rem;
}

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

/* Footer */
.footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-tagline {
  font-style: italic;
  color: var(--text-secondary);
}

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

/* Responsive */
@media (max-width: 768px) {
  .nav {
    padding: 1rem 1.5rem;
  }
  
  .hero {
    min-height: 60vh;
    padding: 6rem 1.5rem 3rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .products {
    padding: 2rem 1.5rem 4rem;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .product-card {
    padding: 2rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

