@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ═══════════════════════════════════════
   PREMIUM BESPOKE THEME (Apple / Vercel style)
   ═══════════════════════════════════════ */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #fafafa;
  --bg-tertiary: #f5f5f7;
  
  --text-primary: #111111;
  --text-secondary: #666666;
  --text-tertiary: #999999;
  
  --border-light: #eaeaea;
  --border-focus: #999999;
  
  --accent: #0070f3;
  --accent-hover: #0051a8;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.06);
  --shadow-xl: 0 30px 60px rgba(0,0,0,0.08);
  
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1200px;
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 5%;
}

/* ═══════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════ */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

header.scrolled {
  border-bottom: 1px solid var(--border-light);
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--text-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 16px;
  height: 16px;
  fill: var(--bg-primary);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

.nav-cta {
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.875rem;
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--text-secondary);
  color: var(--bg-primary);
}

/* ═══════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════ */
.hero {
  padding: 200px 5% 120px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% -20%, rgba(0, 112, 243, 0.08), transparent 60%);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.badge .dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.05;
  color: var(--text-primary);
  max-width: 900px;
  margin-bottom: 24px;
}

.hero h1 span {
  color: var(--text-tertiary);
}

.hero p {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 48px;
  line-height: 1.6;
  letter-spacing: -0.02em;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 32px;
  background: var(--text-primary);
  color: var(--bg-primary);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: var(--transition);
  box-shadow: 0 4px 14px 0 rgba(0,0,0,0.1);
}

.btn-primary:hover {
  background: rgba(0,0,0,0.8);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 32px;
  background: var(--bg-primary);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

/* ═══════════════════════════════════════
   BENTO GRID (ACTIVE DEPLOYMENT)
   ═══════════════════════════════════════ */
.section-pad {
  padding: 120px 0;
}

.section-bg {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
}

.bento-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-focus);
}

.bento-card.wide {
  grid-column: span 8;
}

.bento-card.narrow {
  grid-column: span 4;
}

.bento-card.full {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.bento-content {
  position: relative;
  z-index: 2;
}

.bento-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.bento-card p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.bento-visual {
  margin-top: 40px;
  flex-grow: 1;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══════════════════════════════════════
   METRICS SECTION (MINIMAL)
   ═══════════════════════════════════════ */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.metric-card {
  background: var(--bg-primary);
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.metric-value {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--text-primary);
  line-height: 1;
}

.metric-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════
   ARCHITECTURE / PROCESS (LIST LAYOUT)
   ═══════════════════════════════════════ */
.architecture-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.arch-item {
  display: flex;
  gap: 40px;
  padding: 40px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.arch-item:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
  background: #ffffff;
}

.arch-number {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}

.arch-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.arch-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ═══════════════════════════════════════
   TESTIMONIALS (EDITORIAL STYLE)
   ═══════════════════════════════════════ */
.testimonial-editorial {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-quote {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 40px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
}

.author-info {
  text-align: left;
}

.author-name {
  font-weight: 600;
  font-size: 0.9375rem;
}

.author-title {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.site-footer {
  padding: 80px 5% 40px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-primary);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 0.875rem;
  max-width: 300px;
  line-height: 1.6;
}

.footer-heading {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
  color: var(--text-tertiary);
  font-size: 0.8125rem;
}

/* ═══════════════════════════════════════
   ANIMATIONS & REVEAL
   ═══════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ═══════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .bento-card.wide,
  .bento-card.narrow {
    grid-column: span 12;
  }
  
  .bento-card.full {
    grid-template-columns: 1fr;
  }
  
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 160px 5% 80px;
  }
  
  nav {
    display: none; /* Hide on mobile for simplicity in this demo */
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .arch-item {
    flex-direction: column;
    gap: 16px;
    padding: 24px;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
