/* -------------------------------------------------------
   Global Reset & Base
------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
               sans-serif;
  background: #f8f9fb;
  color: #1a1a1a;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* -------------------------------------------------------
   Header
------------------------------------------------------- */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-mark {
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 4px;
}

.logo-text {
  font-weight: 600;
  font-size: 18px;
  color: #111827;
}

.main-nav a {
  margin-left: 24px;
  text-decoration: none;
  color: #374151;
  font-size: 15px;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: #111827;
}

/* -------------------------------------------------------
   Hero Section
------------------------------------------------------- */
.hero {
  padding: 80px 0;
  background: #ffffff;
}

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  align-items: center;
}

.hero-copy {
  flex: 1 1 480px;
}

.hero-copy h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #111827;
}

.hero-subtitle {
  font-size: 20px;
  margin-bottom: 20px;
  color: #4b5563;
}

.hero-body {
  margin-bottom: 16px;
  color: #4b5563;
  font-size: 17px;
}

.hero-cta {
  margin-top: 24px;
  display: flex;
  gap: 12px;
}

.hero-note {
  margin-top: 16px;
  font-size: 14px;
  color: #6b7280;
}

.hero-demo {
  flex: 1 1 420px;
}

.hero-demo-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.hero-demo-label {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 8px;
}

#shape-canvas {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
}

.hero-demo-actions {
  margin-top: 12px;
  display: flex;
  gap: 12px;
}

.analysis-result {
  margin-top: 16px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.analysis-status {
  font-weight: 600;
  margin-bottom: 6px;
}

.analysis-details {
  font-size: 14px;
  color: #6b7280;
}

/* -------------------------------------------------------
   Buttons
------------------------------------------------------- */
.btn {
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: #6366f1;
  color: #ffffff;
}

.btn-primary:hover {
  background: #4f46e5;
}

.btn-ghost {
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: #374151;
}

.btn-ghost:hover {
  background: #f3f4f6;
}

.btn-small {
  padding: 8px 14px;
  font-size: 14px;
}

/* -------------------------------------------------------
   Sections
------------------------------------------------------- */
.section {
  padding: 80px 0;
}

.section-alt {
  background: #f3f4f6;
}

.section h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #111827;
}

.section p {
  font-size: 17px;
  color: #4b5563;
  margin-bottom: 20px;
}

.section-note {
  margin-top: 20px;
  font-size: 15px;
  color: #6b7280;
}

/* -------------------------------------------------------
   Steps Grid
------------------------------------------------------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.step-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
}

.step-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
  color: #111827;
}

.step-card p {
  font-size: 15px;
  color: #4b5563;
}

/* -------------------------------------------------------
   Examples Grid
------------------------------------------------------- */
.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.example-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
}

.example-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.example-card ul {
  list-style: disc;
  padding-left: 20px;
}

.example-card li {
  margin-bottom: 8px;
  color: #4b5563;
}

/* -------------------------------------------------------
   FAQ
------------------------------------------------------- */
.faq-item {
  margin-bottom: 28px;
}

.faq-item h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: #111827;
}

.faq-item p {
  font-size: 16px;
  color: #4b5563;
}

/* -------------------------------------------------------
   Footer
------------------------------------------------------- */
.site-footer {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  padding: 40px 0;
  margin-top: 60px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left .logo-text {
  font-weight: 600;
  font-size: 18px;
}

.footer-note {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: #6b7280;
}

.footer-meta {
  font-size: 14px;
  color: #6b7280;
}

/* -------------------------------------------------------
   Responsive
------------------------------------------------------- */
@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
  }

  .main-nav {
    display: none;
  }
}

.icon-svg {
  width: 28px;
  height: 28px;
  color: #4b5563;
}
