/* Imided Digital - Website Styles */
/* Modern Minimalism Design System */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* CSS Custom Properties - Design Tokens */
:root {
  /* Colors - Primary */
  --primary-50: #EEF2FF;
  --primary-100: #E0E7FF;
  --primary-500: #6366F1;
  --primary-700: #4338CA;
  --primary-900: #312E81;
  
  /* Colors - Neutral */
  --neutral-50: #F9FAFB;
  --neutral-100: #F3F4F6;
  --neutral-200: #E5E7EB;
  --neutral-600: #4B5563;
  --neutral-800: #1F2937;
  --neutral-900: #111827;
  
  /* Colors - Background */
  --surface-primary: #FFFFFF;
  --surface-page: #F9FAFB;
  
  /* Colors - Semantic */
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --info: #3B82F6;
  
  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  
  /* Font Sizes */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 32px;
  --text-4xl: 48px;
  --text-5xl: 64px;
  
  /* Font Weights */
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* Line Heights */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;
  
  /* Spacing */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  /* Box Shadow */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 12px 32px rgba(99, 102, 241, 0.12);
  --shadow-modal: 0 24px 48px rgba(0, 0, 0, 0.16);
  
  /* Animation */
  --duration-fast: 200ms;
  --duration-normal: 300ms;
  --duration-slow: 400ms;
  --easing-default: cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Layout */
  --container-max-width: 1280px;
  --hero-height: 480px;
  --hero-height-mobile: 400px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-regular);
  line-height: var(--leading-normal);
  color: var(--neutral-800);
  background-color: var(--surface-page);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--neutral-900);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--text-5xl);
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-2xl);
}

p {
  margin-bottom: var(--space-md);
  line-height: var(--leading-relaxed);
}

a {
  color: var(--primary-500);
  text-decoration: none;
  transition: color var(--duration-fast) var(--easing-default);
}

a:hover {
  color: var(--primary-700);
}

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

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  height: var(--nav-height);
  background-color: var(--surface-primary);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: box-shadow var(--duration-fast) var(--easing-default);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--neutral-900);
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}

.navbar-menu a {
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  color: var(--neutral-700);
  position: relative;
  padding: var(--space-xs) 0;
}

.navbar-menu a:hover {
  color: var(--primary-700);
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-500);
  transition: width var(--duration-fast) var(--easing-default);
}

.navbar-menu a:hover::after {
  width: 100%;
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: var(--text-2xl);
  cursor: pointer;
  color: var(--neutral-900);
}

/* Hero Section */
.hero {
  min-height: var(--hero-height);
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--surface-primary) 100%);
  display: flex;
  align-items: center;
  padding: var(--space-4xl) 0;
}

.hero-content {
  max-width: 640px;
}

.hero h1 {
  margin-bottom: var(--space-lg);
}

.hero p {
  font-size: var(--text-lg);
  color: var(--neutral-600);
  margin-bottom: var(--space-2xl);
}

/* Section */
.section {
  padding: var(--space-4xl) 0;
}

.section-header {
  text-align: center;
  max-width: 768px;
  margin: 0 auto var(--space-3xl);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--neutral-600);
}

/* Grid */
.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Card */
.card {
  background-color: var(--surface-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--neutral-200);
  transition: all var(--duration-normal) var(--easing-default);
}

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

.card h3 {
  margin-bottom: var(--space-md);
  color: var(--neutral-900);
}

.card p {
  color: var(--neutral-600);
  margin-bottom: var(--space-md);
}

.card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

/* Button */
.btn {
  display: inline-block;
  padding: 16px 32px;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  text-align: center;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-normal) var(--easing-default);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary-500);
  color: var(--surface-primary);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--primary-700);
  color: var(--surface-primary);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.btn-primary:active {
  background-color: var(--primary-900);
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--surface-primary);
  color: var(--neutral-800);
  border: 2px solid var(--neutral-200);
}

.btn-secondary:hover {
  border-color: var(--primary-500);
  color: var(--primary-700);
  box-shadow: var(--shadow-sm);
}

.btn-large {
  padding: 20px 48px;
  font-size: var(--text-lg);
}

/* Form */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--neutral-700);
  margin-bottom: var(--space-xs);
}

.form-input,
.form-textarea {
  width: 100%;
  height: 48px;
  padding: 0 var(--space-md);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--neutral-800);
  background-color: var(--surface-primary);
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--easing-default);
}

.form-textarea {
  height: 120px;
  padding: var(--space-md);
  resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input.error,
.form-textarea.error {
  border-color: var(--error);
}

.form-error {
  display: none;
  font-size: var(--text-sm);
  color: var(--error);
  margin-top: var(--space-xs);
}

.form-error.show {
  display: block;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--surface-primary);
  padding: var(--space-lg);
  box-shadow: var(--shadow-modal);
  z-index: 2000;
  display: none;
  animation: slideUp var(--duration-slow) var(--easing-default);
}

.cookie-banner.show {
  display: block;
}

.cookie-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  max-width: 100%;
}

.cookie-banner-text {
  font-size: var(--text-sm);
  color: var(--neutral-700);
  flex: 1;
}

.cookie-banner-actions {
  display: flex;
  gap: var(--space-md);
}

.cookie-banner .btn {
  padding: 12px 24px;
  white-space: nowrap;
}

/* Footer */
.footer {
  background-color: var(--neutral-900);
  color: var(--neutral-200);
  padding: var(--space-4xl) 0 var(--space-xl);
  margin-top: var(--space-4xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-section h3 {
  color: var(--surface-primary);
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
}

.footer-section p,
.footer-section a {
  color: var(--neutral-200);
  font-size: var(--text-sm);
  margin-bottom: var(--space-sm);
}

.footer-section a:hover {
  color: var(--primary-500);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-bottom {
  border-top: 1px solid var(--neutral-800);
  padding-top: var(--space-lg);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--neutral-600);
}

/* Content Page Styles */
.content-page {
  background-color: var(--surface-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  margin: var(--space-3xl) 0;
  box-shadow: var(--shadow-card);
}

.content-page h1 {
  margin-bottom: var(--space-lg);
}

.content-page h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.content-page ul,
.content-page ol {
  margin-left: var(--space-xl);
  margin-bottom: var(--space-md);
}

.content-page li {
  margin-bottom: var(--space-sm);
}

/* Pricing Table */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

.pricing-card {
  background-color: var(--surface-primary);
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  transition: all var(--duration-normal) var(--easing-default);
}

.pricing-card:hover {
  border-color: var(--primary-500);
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

.pricing-card.featured {
  border-color: var(--primary-500);
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--surface-primary) 100%);
}

.pricing-card h3 {
  margin-bottom: var(--space-md);
}

.pricing-price {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  color: var(--primary-500);
  margin-bottom: var(--space-md);
}

.pricing-period {
  font-size: var(--text-base);
  color: var(--neutral-600);
}

.pricing-features {
  list-style: none;
  margin: var(--space-lg) 0;
  text-align: left;
}

.pricing-features li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--neutral-200);
}

/* Animations */
@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --text-5xl: 48px;
    --text-4xl: 36px;
    --text-3xl: 28px;
  }
  
  .container {
    padding: 0 var(--space-md);
  }
  
  .navbar-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background-color: var(--surface-primary);
    flex-direction: column;
    padding: var(--space-lg);
    box-shadow: var(--shadow-card);
    gap: var(--space-md);
  }
  
  .navbar-menu.active {
    display: flex;
  }
  
  .navbar-toggle {
    display: block;
  }
  
  .hero {
    min-height: var(--hero-height-mobile);
    text-align: center;
  }
  
  .cookie-banner .container {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-banner-actions {
    width: 100%;
    flex-direction: column;
  }
  
  .cookie-banner .btn {
    width: 100%;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: var(--space-3xl) 0;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
