/* =====================================================
   Rooks Labs - Main Stylesheet
   ===================================================== */

:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-primary-light: #3b82f6;
  --color-secondary: #0ea5e9;
  --color-accent: #06b6d4;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-text: #1e293b;
  --color-text-light: #64748b;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-border: #e2e8f0;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1200px;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --gradient-primary: linear-gradient(135deg, #1d4ed8 0%, #0ea5e9 100%);
  --gradient-hero: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 50%, #ecfeff 100%);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-icon {
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text-light);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--color-primary);
}

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

.hero-illustration {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: var(--shadow);
  font-weight: 500;
  color: var(--color-text);
}

.hero-badge-icon {
  font-size: 1.25rem;
}

/* Products Section */
.products {
  padding: 100px 0;
}

.products h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
}

.product-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px;
  transition: box-shadow 0.3s, transform 0.3s;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-card.featured {
  border: none;
  background: linear-gradient(white, white) padding-box,
              var(--gradient-primary) border-box;
  border: 2px solid transparent;
  position: relative;
}

.product-card.featured::before {
  content: '⭐ Featured';
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--gradient-primary);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.product-card.placeholder {
  background: var(--color-bg-alt);
  border-style: dashed;
}

.product-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.product-card h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.product-tagline {
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 16px;
}

.product-description {
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.feature {
  background: var(--color-bg-alt);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  color: var(--color-text);
}

.product-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.store-badges {
  display: flex;
  gap: 12px;
  align-items: center;
}

.coming-soon {
  color: var(--color-text-light);
  font-size: 0.875rem;
  font-style: italic;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-secondary {
  background: var(--color-bg);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: white;
}

/* About Section */
.about {
  padding: 100px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
  position: relative;
}

.about h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
}

.about-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  color: var(--color-text-light);
  margin-bottom: 20px;
  font-size: 1.125rem;
}

.about-values {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.value-icon {
  width: 64px;
  height: 64px;
  background: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: var(--shadow);
}

.value-label {
  font-weight: 600;
  color: var(--color-text);
}

/* Contact Section */
.contact {
  padding: 100px 0;
  text-align: center;
  background: white;
}

.contact h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.contact p {
  color: var(--color-text-light);
  margin-bottom: 24px;
  font-size: 1.125rem;
}

.contact-card {
  max-width: 500px;
  margin: 0 auto;
  background: var(--gradient-hero);
  padding: 48px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: white;
  padding: 60px 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1.125rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hero {
    padding: 120px 0 60px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .products, .about, .contact {
    padding: 60px 0;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .product-card {
    padding: 24px;
  }
  
  h2 {
    font-size: 1.75rem !important;
    margin-bottom: 40px !important;
  }
}
