/* Aikeeper - Global Styles */
/* Intelligent Workflow Orchestrator for Creative Industries */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  /* Color Palette - Film-like, sophisticated, elegant */
  --color-bg-primary: #FDFCFB;
  --color-bg-secondary: #F8F6F3;
  --color-bg-accent: #EDE9E3;
  
  --color-text-primary: #1A1A1A;
  --color-text-secondary: #4A4A4A;
  --color-text-muted: #7A7A7A;
  
  --color-primary: #2D2D2D;
  --color-primary-light: #4A4A4A;
  --color-accent: #8B7355;
  --color-accent-warm: #A69076;
  
  --color-border: #D4D0C8;
  --color-border-light: #E8E4DD;
  
  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', -apple-system, sans-serif;
  
  /* Spacing - Airy, generous */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-xxl: 8rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 12px 48px rgba(0, 0, 0, 0.12);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s ease;
  --transition-slow: 0.6s ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400;
}

h3 {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 500;
}

h4 {
  font-size: 1.25rem;
  font-weight: 500;
}

p {
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

.section-alt {
  background-color: var(--color-bg-secondary);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 252, 251, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text-primary);
}

.logo span {
  font-weight: 300;
  opacity: 0.7;
}

nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

nav a {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  padding: var(--space-xs) 0;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--transition-medium);
}

nav a:hover {
  color: var(--color-text-primary);
}

nav a:hover::after {
  width: 100%;
}

nav a.active {
  color: var(--color-text-primary);
}

nav a.active::after {
  width: 100%;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: -20%;
  width: 60%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1519741497674-611481863552?w=1200&q=80') center/cover no-repeat;
  opacity: 0.08;
  mask-image: linear-gradient(to right, transparent, black 80%);
  -webkit-mask-image: linear-gradient(to right, transparent, black 80%);
}

.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-bottom: var(--space-md);
  animation: fadeInUp 0.8s ease forwards;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  font-weight: 300;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero-cta {
  display: flex;
  gap: var(--space-sm);
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-medium);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-text-primary);
  background: var(--color-bg-secondary);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-md);
}

.feature-card {
  background: #fff;
  padding: var(--space-lg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition-medium);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
  border-color: var(--color-accent-warm);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--color-bg-accent);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  font-size: 1.5rem;
}

.feature-card h3 {
  margin-bottom: var(--space-sm);
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Social Proof Section */
.social-proof {
  background: var(--color-bg-secondary);
  padding: var(--space-xl) 0;
}

.testimonial {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-style: italic;
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.testimonial-author {
  font-size: 1rem;
  color: var(--color-text-muted);
}

.testimonial-company {
  font-weight: 500;
  color: var(--color-accent);
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* Footer */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-md);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: var(--space-xs);
}

.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Content Pages */
.page-hero {
  padding: calc(80px + var(--space-xl)) 0 var(--space-lg);
  background: var(--color-bg-secondary);
  text-align: center;
}

.page-hero h1 {
  margin-bottom: var(--space-sm);
}

.page-hero p {
  color: var(--color-text-muted);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

.content-section {
  padding: var(--space-lg) 0;
}

.content-section h2 {
  font-size: 1.75rem;
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
}

.content-section h3 {
  font-size: 1.35rem;
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.content-section p {
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.content-section ul {
  margin: var(--space-md) 0;
  padding-left: var(--space-md);
}

.content-section li {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xs);
  line-height: 1.7;
}

.content-block {
  background: #fff;
  padding: var(--space-lg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-light);
  margin-bottom: var(--space-md);
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.contact-info-card {
  background: #fff;
  padding: var(--space-lg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-light);
}

.contact-info-card h3 {
  margin-bottom: var(--space-md);
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--color-bg-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-form {
  background: #fff;
  padding: var(--space-lg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-light);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--space-xs);
  color: var(--color-text-primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

/* API Page */
.api-notice {
  background: linear-gradient(135deg, #2D2D2D 0%, #4A4A4A 100%);
  color: #fff;
  padding: var(--space-lg);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-lg);
}

.api-notice h3 {
  color: #fff;
  margin-bottom: var(--space-sm);
}

.api-notice p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-cta {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }
  
  .footer-brand {
    grid-column: span 2;
    max-width: none;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-brand {
    grid-column: span 1;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-xs);
    text-align: center;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.mt-md { margin-top: var(--space-md); }
.mb-md { margin-bottom: var(--space-md); }