/* StackAgent.cloud - Global Styles */
/* Modern, clean startup aesthetic with AWS color accents */

:root {
  --primary: #0073e6;
  --primary-dark: #005bb5;
  --accent: #ff9900;
  --accent-light: #ffb84d;
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-gray: #f1f5f9;
  --text-dark: #1a1a2e;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  padding: 0 24px;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-dark);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
  animation: spin 3s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  gap: 8px;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--bg-light);
  color: var(--text-dark);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-gray);
  border-color: var(--text-light);
}

.btn-accent {
  background: var(--accent);
  color: white;
}

.btn-accent:hover {
  background: var(--accent-light);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: all 0.3s ease;
}

/* ========== HERO ========== */
.hero {
  padding: 140px 24px 80px;
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero-badge span {
  color: var(--accent);
  font-weight: 600;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-visual {
  margin-top: 60px;
  position: relative;
}

.hero-visual img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ========== SECTIONS ========== */
.section {
  padding: 100px 24px;
}

.section-light {
  background: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ========== FEATURES GRID ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--bg-light), var(--bg-gray));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ========== ARCHITECTURE ========== */
.arch-stack {
  max-width: 900px;
  margin: 0 auto;
}

.arch-layer {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 16px;
  position: relative;
}

.arch-layer::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 16px;
  background: var(--border);
}

.arch-layer:last-child::after {
  display: none;
}

.arch-layer.highlight {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(0,115,230,0.03), rgba(255,153,0,0.03));
}

.arch-layer-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.arch-layer-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
}

.arch-layer-header .badge {
  padding: 4px 10px;
  background: var(--accent);
  color: white;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.arch-services {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.arch-service {
  padding: 8px 14px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-dark);
  font-weight: 500;
}

.arch-service.aws {
  background: linear-gradient(135deg, #232f3e, #3d5a80);
  color: white;
  border: none;
}

/* ========== DOCS ========== */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.doc-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.doc-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.doc-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.doc-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
  flex-grow: 1;
}

.doc-card a {
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-form {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
  background: white;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ========== USE CASES VERTICAL ========== */
.use-cases-vertical {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.use-case-row {
  display: flex;
  align-items: center;
  gap: 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 32px;
  transition: all 0.2s ease;
}

.use-case-row:hover {
  border-color: var(--primary);
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}

.use-case-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  width: 60px;
  text-align: center;
}

.use-case-content {
  flex: 1;
}

.use-case-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.use-case-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.use-case-compute {
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .use-case-row {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .use-case-row:hover {
    transform: translateY(-4px);
  }
}

/* ========== USE CASES ========== */
.use-cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.use-case-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
}

.use-case-card .icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.use-case-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.use-case-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.use-case-card .compute {
  margin-top: 12px;
  padding: 6px 12px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  display: inline-block;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
}

/* ========== STATS ========== */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
  padding: 40px 0;
}

.stat-item {
  text-align: center;
}

.stat-item .number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-item .label {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ========== AWS BADGE ========== */
.aws-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #232f3e, #3d5a80);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
}

.aws-badge svg {
  width: 20px;
  height: 20px;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 60px 24px 30px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-light);
  margin: 16px 0 24px;
  font-size: 0.95rem;
  max-width: 300px;
}

.footer-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255,153,0,0.15);
  border: 1px solid rgba(255,153,0,0.3);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--accent);
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  color: white;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: var(--text-light);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  color: var(--text-light);
  font-size: 0.875rem;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.2s ease;
}

.social-links a:hover {
  background: var(--primary);
}

/* ========== CODE BLOCK ========== */
.code-block {
  background: #1e293b;
  border-radius: var(--radius-md);
  padding: 24px;
  overflow-x: auto;
}

.code-block pre {
  margin: 0;
  color: #e2e8f0;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.875rem;
  line-height: 1.7;
}

.code-block .comment {
  color: #64748b;
}

.code-block .keyword {
  color: #c084fc;
}

.code-block .string {
  color: #86efac;
}

.code-block .function {
  color: #60a5fa;
}

/* ========== CTA SECTION ========== */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 80px 24px;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn {
  background: white;
  color: var(--primary);
}

.cta-section .btn:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 968px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
  
  .hero {
    padding: 120px 20px 60px;
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .section {
    padding: 60px 20px;
  }
  
  .section-header h2 {
    font-size: 1.875rem;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .stats-row {
    gap: 40px;
  }
  
  .stat-item .number {
    font-size: 2.25rem;
  }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
