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

:root {
  --bg-primary: #fafaf8;
  --bg-surface: #ffffff;
  --bg-nav: rgba(255, 255, 255, 0.9);
  --bg-card: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-muted: #999999;
  --accent-teal: #0d9488;
  --accent-teal-light: #14b8a6;
  --accent-teal-dim: rgba(13, 148, 136, 0.08);
  --accent-teal-glow: rgba(13, 148, 136, 0.15);
  --accent-amber: #f59e0b;
  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-hover: rgba(13, 148, 136, 0.25);
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.06);
  --radius-pill: 100px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max-width: 1200px;
  --nav-height: 72px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; font-family: inherit; }
input { font-family: inherit; }

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
}

.nav-logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo .logo-icon {
  filter: drop-shadow(0 2px 8px rgba(13, 148, 136, 0.3));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(13, 148, 136, 0.06);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.active span:first-child { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:last-child { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  padding: 24px 32px;
  flex-direction: column;
  gap: 4px;
  z-index: 99;
}

.mobile-menu.active { display: flex; }
.mobile-menu a {
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}
.mobile-menu a:last-child { border-bottom: none; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 140px 40px 80px;
  overflow: hidden;
  background: linear-gradient(180deg, #f5f5f4 0%, var(--bg-primary) 100%);
}

.hero-canvas-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-canvas-wrap canvas { display: block; width: 100%; height: 100%; }

.hero-wave-canvas {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  z-index: 0;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent-teal);
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: var(--accent-teal);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.25);
}

.hero-cta:hover {
  background: var(--accent-teal-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(13, 148, 136, 0.35);
}

.hero-cta svg { width: 18px; height: 18px; transition: transform 0.3s; }
.hero-cta:hover svg { transform: translateX(4px); }

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
  margin: 0 10%;
}

.section { padding: 100px 40px; position: relative; }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 64px; }

.section-badge {
  display: inline-block;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-teal);
  background: var(--accent-teal-dim);
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent-teal);
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: var(--border-hover);
}

.service-visual {
  height: 200px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.service-content { padding: 28px; }

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-teal-dim);
  border-radius: 14px;
  margin-bottom: 18px;
  color: var(--accent-teal);
}

.service-icon svg { width: 24px; height: 24px; }

.service-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.service-content p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

.card-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(50% 50%, rgba(13, 148, 136, 0.05) 0%, transparent 100%);
  pointer-events: none;
}

/* Chart SVG */
.chart-svg { width: 90%; height: 80%; position: absolute; bottom: 10px; left: 5%; }

.chart-line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawLine 2s ease forwards;
  animation-play-state: paused;
}
.service-card:hover .chart-line, .animate-in.visible .chart-line { animation-play-state: running; }

.chart-area { opacity: 0; animation: fadeArea 1s ease 1.2s forwards; animation-play-state: paused; }
.service-card:hover .chart-area, .animate-in.visible .chart-area { animation-play-state: running; }

.chart-dot { opacity: 0; transform-origin: center; }
.chart-dot.cd-1 { animation: popDot 0.4s ease 1s forwards; }
.chart-dot.cd-2 { animation: popDot 0.4s ease 1.2s forwards; }
.chart-dot.cd-3 { animation: popDot 0.4s ease 1.4s forwards; }
.chart-dot.cd-4 { animation: popDot 0.4s ease 1.6s forwards; }
.animate-in.visible .chart-dot.cd-1, .animate-in.visible .chart-dot.cd-2,
.animate-in.visible .chart-dot.cd-3, .animate-in.visible .chart-dot.cd-4 { animation-play-state: running; }
.chart-dot { animation-play-state: paused; }

.chart-ring { opacity: 0; animation: ringPulse 2s ease-in-out 1.6s infinite; animation-play-state: paused; }
.animate-in.visible .chart-ring { animation-play-state: running; }

.chart-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.15);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-teal);
  opacity: 0;
  transform: translateY(10px);
  animation: badgeIn 0.5s ease 1.8s forwards;
  animation-play-state: paused;
}
.animate-in.visible .chart-badge { animation-play-state: running; }
.chart-arrow { font-size: 10px; margin-right: 2px; }

/* Card Grid */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s;
}

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

.card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-teal-dim);
  border-radius: 14px;
  margin-bottom: 20px;
  color: var(--accent-teal);
}

.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 20px; font-weight: 600; color: var(--text-primary); margin-bottom: 12px; }
.card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* Feature Rows */
.feature-row { display: flex; gap: 28px; margin-bottom: 28px; }

.feature-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all 0.3s;
}

.feature-card:hover { border-color: var(--border-hover); }
.feature-card.wide { flex: 2; }

.feature-tag {
  display: inline-block;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-teal);
  background: var(--accent-teal-dim);
  border-radius: var(--radius-sm);
  margin: 0 6px 8px 0;
}

.feature-card h3 { font-size: 22px; font-weight: 600; color: var(--text-primary); margin-bottom: 12px; margin-top: 16px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* CTA Section */
.cta-section { padding: 120px 40px; text-align: center; position: relative; background: linear-gradient(180deg, var(--bg-primary), #f5f5f4); }

.cta-section h2 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.cta-section h2 em { font-family: var(--font-serif); font-style: italic; color: var(--accent-teal); }

.cta-section > p { color: var(--text-secondary); font-size: 18px; margin-bottom: 40px; }

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  background: var(--accent-teal);
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
  border-radius: var(--radius-pill);
  transition: all 0.3s;
  box-shadow: 0 4px 24px rgba(13, 148, 136, 0.25);
}

.cta-btn:hover {
  background: var(--accent-teal-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(13, 148, 136, 0.35);
}

.cta-glow {
  position: absolute;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 200px;
  background: radial-gradient(50% 50%, rgba(13, 148, 136, 0.06) 0%, transparent 100%);
  pointer-events: none;
}

/* Footer */
.footer { padding: 48px 40px; border-top: 1px solid var(--border-subtle); }
.footer-inner { max-width: var(--max-width); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-brand { font-size: 18px; font-weight: 600; color: var(--text-primary); }
.footer-copy { font-size: 14px; color: var(--text-muted); }

/* Animations */
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes fadeArea { from { opacity: 0; } to { opacity: 1; } }
@keyframes popDot { 0% { opacity: 0; r: 0; } 70% { opacity: 1; r: 5.5; } 100% { opacity: 1; r: 4; } }
@keyframes ringPulse { 0% { opacity: 0; r: 4; } 50% { opacity: 0.6; r: 12; } 100% { opacity: 0; r: 20; } }
@keyframes badgeIn { to { opacity: 1; transform: translateY(0); } }

.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 900px) {
  .nav-inner { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  
  .hero { padding: 120px 24px 60px; }
  .section { padding: 60px 24px; }
  .cta-section { padding: 80px 24px; }
  
  .services-grid, .card-grid { grid-template-columns: 1fr; }
  .feature-row { flex-direction: column; }
  .feature-card.wide { flex: 1; }
  .service-visual { height: 180px; }
  
  .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
}
