:root {
  --color-bg: #ffffff;
  --color-bg-warm: #fdfbf7;
  --color-surface: #fafaf9;
  --color-border: #e5e7eb;
  --color-text-main: #111827;
  --color-text-muted: #6b7280;
  --color-primary: #e8734a;
  --color-primary-hover: #d4633d;
  --color-accent: #fbbf24;
  --color-success: #10b981;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.1);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --spacing-section: clamp(3rem, 6vw, 6rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--color-text-main);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  word-break: break-word;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: var(--spacing-section) 0; }
.section-title {
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.section-desc {
  color: var(--color-text-muted);
  font-size: clamp(1rem, 0.9rem + 0.25vw, 1.125rem);
  max-width: 720px;
  margin-bottom: 2.5rem;
}

/* Header & Nav */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img { width: 140px; height: 40px; object-fit: contain; }
.brand-text { font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; }
.nav-list { display: flex; gap: 2rem; }
.nav-link {
  font-size: 0.95rem; font-weight: 500; color: var(--color-text-muted);
  transition: color 0.2s;
}
.nav-link:hover, .nav-link:focus-visible { color: var(--color-primary); }
.nav-link[aria-current="page"] { color: var(--color-text-main); font-weight: 600; }
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; }
@media (max-width: 768px) {
  .nav-list { display: none; }
  .mobile-menu-btn { display: block; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: var(--radius-md); font-weight: 600;
  font-size: 0.95rem; border: 1px solid transparent; cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, #f87171 0%, #fb923c 100%);
  color: #fff; box-shadow: 0 4px 12px rgba(248,113,113,0.35);
}
.btn-primary:hover, .btn-primary:focus-visible {
  transform: translateY(-2px); box-shadow: 0 6px 16px rgba(248,113,113,0.45);
}
.btn-outline {
  background: transparent; border-color: var(--color-border); color: var(--color-text-main);
}
.btn-outline:hover, .btn-outline:focus-visible { border-color: var(--color-primary); color: var(--color-primary); }

/* Cards & Bento Grid */
.bento-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-icon {
  width: 40px; height: 40px; margin-bottom: 1rem; color: var(--color-primary);
}
.card-title { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
.card-body { color: var(--color-text-muted); font-size: 0.95rem; }
ul.feature-list li {
  position: relative; padding-left: 1.25rem; margin-bottom: 0.75rem;
}
ul.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55rem;
  width: 6px; height: 6px; background: var(--color-accent);
  transform: rotate(45deg);
}
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  word-break: break-all;
}

/* Table */
.platform-table { width: 100%; border-collapse: collapse; margin-top: 1rem; table-layout: auto; }
.platform-table th, .platform-table td {
  padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--color-border);
  word-break: break-word;
}
.platform-table th { font-weight: 600; color: var(--color-text-main); background: var(--color-surface); }
.platform-table td { color: var(--color-text-muted); }

/* FAQ */
.faq-container { max-width: 800px; }
details {
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  margin-bottom: 1rem; background: var(--color-surface); overflow: hidden;
}
summary {
  padding: 1rem 1.25rem; cursor: pointer; font-weight: 600; outline: none;
  list-style: none; display: flex; align-items: center; justify-content: space-between;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; font-size: 1.25rem; font-weight: 400; color: var(--color-primary);
  transition: transform 0.2s;
}
details[open] summary::after { transform: rotate(45deg); }
details[open] summary { border-bottom: 1px solid var(--color-border); }
.faq-answer { padding: 1rem 1.25rem; color: var(--color-text-muted); line-height: 1.6; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.news-card { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.5rem; background: #fff; }
.news-date { font-family: var(--font-mono); font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: 0.5rem; }
.news-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.75rem; }
.news-excerpt { font-size: 0.9rem; color: var(--color-text-muted); margin-bottom: 1rem; }
.news-link { font-size: 0.9rem; color: var(--color-primary); font-weight: 500; display: inline-flex; align-items: center; gap: 0.25rem; }
.news-link:hover { text-decoration: underline; }

/* Related */
.related-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem 2rem; }
.related-item { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.75rem; border-radius: var(--radius-sm); }
.related-item:hover { background: var(--color-surface); }
.related-link { font-weight: 500; color: var(--color-text-main); }
.related-desc { font-size: 0.85rem; color: var(--color-text-muted); }

/* Footer */
.site-footer {
  background: #f8fafc; border-top: 1px solid var(--color-border);
  padding: 3rem 0 2rem; margin-top: 2rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand { max-width: 300px; color: var(--color-text-muted); font-size: 0.9rem; }
.footer-heading { font-weight: 600; margin-bottom: 1rem; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--color-text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--color-primary); }
.footer-bottom { border-top: 1px solid var(--color-border); padding-top: 1.5rem; text-align: center; font-size: 0.85rem; color: var(--color-text-muted); }

/* SVG Animations */
.contour-line {
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-dasharray: 1; stroke-dashoffset: 0;
  opacity: 0.6;
}
@keyframes contourFlow {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}
.anim-delay-1 { animation: contourFlow 6s linear infinite alternate; }
.anim-delay-2 { animation: contourFlow 8s linear infinite alternate-reverse; }
.anim-delay-3 { animation: contourFlow 7s linear infinite alternate; }

@media (prefers-reduced-motion: reduce) {
  .contour-line { animation: none !important; }
  .btn, .card { transition: none !important; transform: none !important; }
}

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
