/* AgentNode.link - Edge AI Gateway
   Oriental Minimalist Design System
   Deep Ink Green + Vermillion Red
   ============================================= */

:root {
  --ink-green: #0D1F17;
  --ink-green-light: #162B20;
  --ink-green-lighter: #1E3829;
  --vermillion: #C53D3D;
  --vermillion-dark: #A33232;
  --vermillion-light: #D65A5A;
  --cream: #F5F2EB;
  --cream-dark: #E8E4D9;
  --gold: #D4A84B;
  --text-light: rgba(245, 242, 235, 0.9);
  --text-muted: rgba(245, 242, 235, 0.6);
  --text-dim: rgba(245, 242, 235, 0.4);
  --border: rgba(245, 242, 235, 0.1);
  --border-light: rgba(245, 242, 235, 0.15);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --transition: all 0.3s ease;
  --radius: 4px;
  --radius-lg: 8px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
  font-family: 'Noto Serif', Georgia, serif; 
  background: var(--ink-green); 
  color: var(--text-light); 
  line-height: 1.8; 
  -webkit-font-smoothing: antialiased; 
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 { 
  font-family: 'Noto Serif', Georgia, serif;
  font-weight: 500; 
  line-height: 1.3; 
  color: var(--cream); 
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 400; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 400; }
h3 { font-size: 1.25rem; font-weight: 500; }
p { color: var(--text-muted); font-size: 1.0625rem; line-height: 1.9; }

.text-vermillion { color: var(--vermillion); }
.text-gold { color: var(--gold); }
.text-cream { color: var(--cream); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 32px; }

/* Header */
.header { 
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; 
  background: rgba(13, 31, 23, 0.95); 
  backdrop-filter: blur(16px); 
  border-bottom: 1px solid var(--border); 
}
.header-inner { 
  display: flex; align-items: center; justify-content: space-between; 
  max-width: 1140px; margin: 0 auto; padding: 20px 32px; 
}

.logo { display: flex; align-items: center; gap: 16px; }
.logo-mark { 
  width: 44px; height: 44px; 
  background: linear-gradient(135deg, var(--vermillion), var(--vermillion-dark)); 
  border-radius: var(--radius); 
  display: flex; align-items: center; justify-content: center; 
  font-family: 'Noto Serif', serif;
  font-size: 1.125rem; font-weight: 600; color: var(--cream); 
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text span:first-child { 
  font-family: 'Noto Serif', serif;
  font-size: 1.25rem; font-weight: 500; color: var(--cream); letter-spacing: 0.02em; 
}
.logo-text .link { 
  font-size: 0.6875rem; color: var(--vermillion); 
  text-transform: uppercase; letter-spacing: 0.15em; font-weight: 400;
}

.nav { display: flex; align-items: center; gap: 12px; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a { 
  padding: 10px 20px; color: var(--text-muted); 
  font-size: 0.9375rem; border-radius: var(--radius); 
  transition: var(--transition); font-weight: 400;
}
.nav-links a:hover, .nav-links a.active { color: var(--cream); background: var(--ink-green-light); }

/* Buttons */
.btn { 
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; 
  padding: 14px 32px; font-weight: 500; font-size: 0.9375rem; 
  border-radius: var(--radius); border: none; cursor: pointer; 
  transition: var(--transition); font-family: 'Noto Serif', serif;
}
.btn-primary { background: var(--vermillion); color: var(--cream); }
.btn-primary:hover { background: var(--vermillion-dark); box-shadow: var(--shadow); }
.btn-outline { 
  background: transparent; color: var(--cream); 
  border: 1px solid var(--border-light); 
}
.btn-outline:hover { background: var(--ink-green-light); border-color: var(--vermillion); }
.btn-lg { padding: 18px 40px; font-size: 1rem; }

.menu-toggle { display: none; flex-direction: column; gap: 6px; cursor: pointer; padding: 8px; }
.menu-toggle span { width: 24px; height: 1px; background: var(--cream); }

/* Hero */
.hero { 
  padding: 180px 0 120px; 
  background: linear-gradient(180deg, var(--ink-green) 0%, var(--ink-green-light) 100%);
  position: relative;
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(197, 61, 61, 0.08) 0%, transparent 50%);
  pointer-events: none;
}
.hero-content { max-width: 720px; position: relative; z-index: 1; }
.hero-tag { 
  display: inline-flex; align-items: center; gap: 12px; 
  padding: 10px 20px; background: var(--ink-green-lighter); 
  border: 1px solid var(--border); border-radius: var(--radius); 
  font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 36px; 
}
.hero-tag .dot { width: 6px; height: 6px; background: var(--vermillion); border-radius: 50%; }
.hero h1 { margin-bottom: 28px; }
.hero p { font-size: 1.1875rem; margin-bottom: 48px; max-width: 560px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 16px; }

/* Stats */
.stats-section { 
  background: var(--ink-green-light); 
  border-top: 1px solid var(--border); 
  border-bottom: 1px solid var(--border); 
  padding: 64px 0; 
}
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.stat-item { text-align: center; }
.stat-number { 
  font-size: 2.75rem; font-weight: 400; color: var(--cream); 
  margin-bottom: 8px; font-family: 'Noto Serif', serif;
}
.stat-number .accent { color: var(--vermillion); }
.stat-label { font-size: 0.875rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; }

/* Sections */
.section { padding: 120px 0; }
.section-dark { background: var(--ink-green); }
.section-darker { background: var(--ink-green-light); }
.section-header { margin-bottom: 64px; }
.section-header.centered { text-align: center; max-width: 600px; margin-left: auto; margin-right: auto; }
.section-label { 
  display: inline-block; padding: 8px 16px; 
  background: rgba(197, 61, 61, 0.15); border-radius: var(--radius); 
  font-size: 0.75rem; color: var(--vermillion); 
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 20px; 
}
.section-header h2 { margin-bottom: 16px; }

/* Feature Cards */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { 
  background: var(--ink-green-light); 
  border: 1px solid var(--border); border-radius: var(--radius-lg); 
  padding: 36px; transition: var(--transition); 
}
.feature-card:hover { border-color: var(--vermillion); transform: translateY(-4px); }
.feature-icon { 
  width: 56px; height: 56px; 
  background: linear-gradient(135deg, var(--vermillion), var(--vermillion-dark)); 
  border-radius: var(--radius); 
  display: flex; align-items: center; justify-content: center; margin-bottom: 28px; 
}
.feature-icon svg { width: 26px; height: 26px; color: var(--cream); }
.feature-card h3 { margin-bottom: 14px; }

/* Use Cases - Vertical List */
.use-cases { display: flex; flex-direction: column; gap: 20px; }
.use-case { 
  display: flex; align-items: center; gap: 28px; 
  padding: 32px 36px; background: var(--ink-green-lighter); 
  border: 1px solid var(--border); border-radius: var(--radius-lg); 
  transition: var(--transition); 
}
.use-case:hover { border-color: var(--gold); }
.use-case-number { 
  font-size: 3rem; font-weight: 300; color: var(--vermillion); 
  opacity: 0.5; font-family: 'Noto Serif', serif; width: 80px; flex-shrink: 0;
}
.use-case-content { flex: 1; }
.use-case-content h4 { font-size: 1.25rem; margin-bottom: 8px; color: var(--cream); }
.use-case-content p { margin: 0; font-size: 0.9375rem; }
.use-case-tag { 
  padding: 8px 16px; background: var(--ink-green); 
  border-radius: var(--radius); font-size: 0.75rem; 
  color: var(--gold); text-transform: uppercase; letter-spacing: 0.05em; 
}

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pricing-card { 
  background: var(--ink-green-light); 
  border: 1px solid var(--border); border-radius: var(--radius-lg); 
  padding: 40px; position: relative; 
}
.pricing-card.featured { border-color: var(--vermillion); }
.pricing-badge { 
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%); 
  padding: 6px 20px; background: var(--vermillion); border-radius: var(--radius); 
  font-size: 0.6875rem; font-weight: 600; color: var(--cream); 
  text-transform: uppercase; letter-spacing: 0.05em; 
}
.pricing-tier { 
  font-size: 0.75rem; color: var(--text-dim); 
  text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 8px; 
}
.pricing-price { font-size: 2.5rem; font-weight: 400; color: var(--cream); margin-bottom: 8px; }
.pricing-price span { font-size: 1rem; color: var(--text-muted); }
.pricing-desc { font-size: 0.9375rem; color: var(--text-muted); margin-bottom: 28px; }
.pricing-features { margin-bottom: 32px; }
.pricing-features li { 
  display: flex; align-items: center; gap: 12px; 
  padding: 14px 0; font-size: 0.9375rem; color: var(--text-muted); 
  border-bottom: 1px solid var(--border); 
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li svg { width: 18px; height: 18px; color: var(--vermillion); flex-shrink: 0; }

/* Code Block */
.code-block { background: #0A1610; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.code-header { 
  display: flex; align-items: center; justify-content: space-between; 
  padding: 14px 20px; background: var(--ink-green-lighter); 
}
.code-dots { display: flex; gap: 8px; }
.code-dot { width: 10px; height: 10px; border-radius: 50%; }
.code-dot.r { background: var(--vermillion); } 
.code-dot.y { background: var(--gold); } 
.code-dot.g { background: #4A7C59; }
.code-title { font-size: 0.75rem; color: var(--text-dim); font-family: 'IBM Plex Mono', monospace; }
.code-content { 
  padding: 24px; font-family: 'IBM Plex Mono', monospace; 
  font-size: 0.8125rem; line-height: 1.9; color: var(--text-muted); overflow-x: auto; 
}
.code-content .comment { color: var(--text-dim); }
.code-content .keyword { color: var(--vermillion); }
.code-content .string { color: var(--gold); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-info h3 { margin-bottom: 32px; }
.contact-item { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 28px; }
.contact-icon { 
  width: 48px; height: 48px; background: var(--ink-green-lighter); 
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center; 
}
.contact-icon svg { width: 20px; height: 20px; color: var(--vermillion); }
.contact-text h4 { margin-bottom: 4px; color: var(--cream); font-size: 1rem; }
.contact-text p { margin: 0; font-size: 0.9375rem; }
.contact-text a { color: var(--vermillion); }
.contact-text a:hover { color: var(--vermillion-light); }

.contact-form { 
  background: var(--ink-green-light); 
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; 
}
.form-group { margin-bottom: 24px; }
.form-group label { display: block; margin-bottom: 10px; font-size: 0.875rem; color: var(--cream); }
.form-group input, .form-group textarea, .form-group select { 
  width: 100%; padding: 14px 18px; 
  background: var(--ink-green); border: 1px solid var(--border); border-radius: var(--radius); 
  color: var(--text-light); font-family: inherit; font-size: 1rem; transition: var(--transition); 
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { 
  outline: none; border-color: var(--vermillion); 
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* Footer */
.footer { background: var(--ink-green-light); color: var(--text-light); padding: 80px 0 40px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 60px; }
.footer-brand p { margin: 20px 0; color: var(--text-muted); font-size: 0.9375rem; max-width: 280px; }
.footer-col h4 { 
  margin-bottom: 24px; font-size: 0.75rem; 
  text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-dim); font-weight: 400;
}
.footer-col ul li { margin-bottom: 14px; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.9375rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--cream); }
.footer-bottom { 
  display: flex; justify-content: space-between; align-items: center; 
  padding-top: 40px; border-top: 1px solid var(--border); 
}
.footer-bottom p { font-size: 0.875rem; color: var(--text-dim); margin: 0; }
.footer-badges { display: flex; gap: 12px; }
.footer-badge { 
  padding: 8px 16px; background: var(--ink-green); 
  border-radius: var(--radius); font-size: 0.75rem; color: var(--text-muted); 
}
.footer-badge .accent { color: var(--vermillion); }

/* Mobile Nav */
.mobile-nav { 
  position: fixed; inset: 0; background: var(--ink-green); 
  z-index: 999; display: none; flex-direction: column; 
  align-items: center; justify-content: center; gap: 32px; 
}
.mobile-nav.active { display: flex; }
.mobile-nav a { font-size: 1.5rem; color: var(--cream); font-weight: 400; }
.mobile-nav a:hover { color: var(--vermillion); }
.mobile-nav-close { 
  position: absolute; top: 20px; right: 32px; 
  width: 44px; height: 44px; background: var(--ink-green-light); 
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center; 
  cursor: pointer; color: var(--cream); font-size: 1.25rem;
}

/* Page Header */
.page-header { 
  padding: 180px 0 80px; 
  background: linear-gradient(180deg, var(--ink-green) 0%, var(--ink-green-light) 100%); 
  border-bottom: 1px solid var(--border); 
}
.page-header h1 { margin-bottom: 16px; }
.page-header p { max-width: 560px; }

/* Doc Section */
.doc-section { padding: 40px 0; border-bottom: 1px solid var(--border); }
.doc-section:last-child { border-bottom: none; }
.doc-section h2 { font-size: 1.5rem; margin-bottom: 20px; }
.doc-section h3 { font-size: 1.125rem; margin: 28px 0 14px; }
.doc-section p { margin-bottom: 14px; }
.doc-section ul { margin-left: 20px; margin-bottom: 14px; }
.doc-section ul li { 
  color: var(--text-muted); margin-bottom: 10px; 
  padding-left: 16px; position: relative; 
}
.doc-section ul li::before { 
  content: ''; position: absolute; left: 0; top: 12px; 
  width: 6px; height: 6px; background: var(--vermillion); border-radius: 50%; 
}

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .hero { padding: 160px 0 100px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .section { padding: 80px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
  .use-case { flex-direction: column; align-items: flex-start; gap: 16px; }
  .use-case-tag { align-self: flex-start; }
}
@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; width: 100%; }
  .btn { width: 100%; }
  .stats-row { grid-template-columns: 1fr; }
}

.text-center { text-align: center; }
.mt-48 { margin-top: 48px; }
