﻿:root {
  --bg: #f8f8f8;
  --paper: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --accent: #f97316; /* Slightly more vibrant orange */
  --line: #e5e7eb;
  --shadow: 0 10px 20px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.05); /* More neutral and subtle shadow */
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', 'Pretendard Variable', Pretendard, 'Segoe UI', 'Apple SD Gothic Neo', sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, var(--bg) 0%, #fefefe 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 1px solid rgba(58, 49, 36, 0.2);
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  background: var(--paper);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.3s ease-out; /* Added transition */
}

button:hover {
  border-color: rgba(58, 49, 36, 0.38);
  transform: translateY(-2px); /* Lift effect */
  box-shadow: var(--shadow); /* Apply new shadow */
}

.hero-button.secondary:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(58, 49, 36, 0.25);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 54px;
  border-radius: 18px;
  background: #31281d;
  color: #fffdf8;
  font-weight: 800;
  letter-spacing: 0.12em;
  box-shadow: var(--shadow);
}

.brand-text {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  gap: 12px;
}

.site-nav a,
.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(58, 49, 36, 0.16);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 253, 248, 0.84);
  box-shadow: var(--shadow);
}

.landing-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.landing-main {
  padding: 18px 28px 32px;
  display: grid;
  gap: 20px;
}

.hero-panel,
.feature-card,
.snippet-panel,
.hero-side-card,
.compare-card,
.use-card,
.cta-band,
.showcase-card {
  border: 1px solid var(--line);
  border-radius: 28px; /* Standardize card radius for a softer look */
  background: var(--paper);
  box-shadow: var(--shadow);
  transition: all 0.3s ease-out; /* Add transition for smooth effects */
}

/* Hover effects for interactive cards */
.feature-card:hover,
.compare-card:hover,
.use-card:hover,
.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12), 0 6px 12px rgba(0, 0, 0, 0.08); /* Slightly more pronounced shadow on hover */
}

.hero-panel {
  padding: 38px;
  background: var(--paper); /* Cleaner background */
}

.hero-panel h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero-copy {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 14px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.hero-button.primary {
  background: #31281d;
  color: #fffdf8;
}

.hero-button.secondary {
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid rgba(58, 49, 36, 0.16);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 24px;
}

.feature-card h2,
.snippet-panel h2,
.panel-header h1,
.panel-header h2 {
  margin: 0;
}

.feature-card p:last-child,
.snippet-panel p:last-child {
  margin-bottom: 0;
}

.feature-card.wide {
  grid-column: span 2;
}

.inline-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--accent);
  font-weight: 700;
}

.snippet-panel {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
}

.snippet-panel pre {
  margin: 0;
  overflow: auto;
  border-radius: 24px;
  padding: 20px;
  background: #211b14;
  color: #f7efe2;
  font: 15px/1.7 Consolas, "Courier New", monospace;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(320px, 42%) minmax(420px, 58%);
  min-height: 100vh;
}

.editor-panel,
.canvas-panel {
  padding: 24px;
}

.editor-panel {
  border-right: 1px solid rgba(58, 49, 36, 0.1);
  background: rgba(255, 253, 248, 0.72);
  backdrop-filter: blur(10px);
}

.canvas-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-header h1,
.panel-header h2 {
  font-size: 28px;
}

.panel-copy {
  margin: 14px 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

textarea {
  width: 100%;
  min-height: 62vh;
  resize: vertical;
  border: 1px solid rgba(58, 49, 36, 0.14);
  border-radius: 24px;
  padding: 18px 20px;
  font: 15px/1.6 Consolas, "Courier New", monospace;
  color: var(--ink);
  background: rgba(255, 251, 243, 0.95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

textarea:focus {
  outline: 2px solid rgba(180, 95, 6, 0.18);
  border-color: rgba(180, 95, 6, 0.5);
}

.help-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.help-strip span,
.stats {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
}

.canvas-header {
  align-items: flex-start;
}

.error-box {
  border: 1px solid rgba(163, 41, 41, 0.2);
  border-radius: 18px;
  padding: 12px 14px;
  color: #8b1e1e;
  background: rgba(255, 237, 237, 0.92);
  white-space: pre-wrap;
}

.canvas-wrap {
  flex: 1;
  min-height: 70vh;
  border: 1px solid rgba(58, 49, 36, 0.12);
  border-radius: 28px;
  overflow: auto;
  background:
    linear-gradient(rgba(58, 49, 36, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 49, 36, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, #fffdf8, #f9f5ee);
  background-size: 24px 24px, 24px 24px, auto;
  box-shadow: var(--shadow);
}

#diagram {
  display: block;
  width: 100%;
  min-width: 800px;
  min-height: 720px;
}

.node-label {
  font: 600 15px "Segoe UI", sans-serif;
  fill: var(--ink);
}

.node-meta {
  font: 12px Consolas, monospace;
  fill: var(--muted);
}

.header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.debug-panel {
  border: 1px solid rgba(58, 49, 36, 0.12);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.debug-panel summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 600;
  color: var(--ink);
}

#debugOutput {
  margin: 0;
  padding: 0 16px 16px;
  max-height: 280px;
  overflow: auto;
  font: 12px/1.5 Consolas, "Courier New", monospace;
  color: var(--ink);
  white-space: pre-wrap;
}

.primary-action {
  background: #3a3124;
  color: #fffdf8;
  border-color: #3a3124;
}

.primary-action:hover {
  border-color: #3a3124;
  background: #2a241b;
}

.edge-hitbox {
  cursor: pointer;
  pointer-events: stroke;
}

.edge-debug {
  display: none;
}

.edge-debug.edge-debug-visible {
  display: inline;
}

.example-bank {
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(58, 49, 36, 0.12);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: var(--shadow);
}

.example-bank-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.example-bank-copy {
  font-size: 12px;
  color: var(--muted);
}

.example-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.example-buttons button {
  width: 100%;
  border-radius: 10px;
  padding: 6px 8px;
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  box-shadow: none;
}

.example-buttons button:hover {
  background: #fff7ea;
}

.example-buttons button.active {
  background: #3a3124;
  color: #fffdf8;
  border-color: #3a3124;
}

@media (max-width: 960px) {
  .site-header,
  .landing-main,
  .editor-panel,
  .canvas-panel {
    padding-left: 16px;
    padding-right: 16px;
  }

  .feature-grid,
  .snippet-panel,
  .app-shell {
    grid-template-columns: 1fr;
  }

  .feature-card.wide {
    grid-column: auto;
  }

  .editor-panel {
    border-right: 0;
    border-bottom: 1px solid rgba(58, 49, 36, 0.1);
  }

  textarea {
    min-height: 44vh;
  }

  #diagram {
    min-width: 640px;
    min-height: 560px;
  }

  .example-buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 22px;
}

.hero-side-card,
.compare-card,
.use-card,
.cta-band {
  border: 1px solid rgba(58, 49, 36, 0.12);
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.84);
  box-shadow: var(--shadow);
}

.hero-side-card {
  padding: 28px;
  background: var(--paper); /* Cleaner background */
}

.status-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.status-grid span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.74);
}

.capability-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.compare-grid,
.use-grid {
  display: grid;
  gap: 18px;
}

.compare-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compare-card,
.use-card {
  padding: 24px;
}

.use-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
  background: var(--paper); /* Cleaner background */
}

.cta-band h2,
.hero-side-card h2,
.compare-card h2,
.use-card h2 {
  margin: 0;
}

.cta-band p,
.compare-card p:last-child,
.use-card p:last-child {
  margin-bottom: 0;
}

@media (max-width: 960px) {
  .hero-grid,
  .compare-grid,
  .use-grid,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .cta-band {
    align-items: flex-start;
  }
}
.showcase-grid {
  display: grid;
  gap: 18px;
}

.showcase-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 1.1fr);
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(58, 49, 36, 0.12);
  border-radius: 32px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: var(--shadow);
}

.showcase-copy h2 {
  margin: 0 0 10px;
}

.showcase-copy pre {
  margin: 0;
  overflow: auto;
  border-radius: 20px;
  padding: 18px;
  background: #211b14;
  color: #f7efe2;
  font: 14px/1.7 Consolas, "Courier New", monospace;
}

.showcase-result {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background:
    linear-gradient(rgba(58, 49, 36, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 49, 36, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, #fffdf8, #f9f5ee);
  background-size: 24px 24px, 24px 24px, auto;
  min-height: 220px;
}

.showcase-result-featured {
  min-height: 320px;
  padding: 8px;
}

.showcase-diagram {
  width: 100%;
  max-width: 380px;
  height: auto;
}

.showcase-label {
  fill: #201911;
  font: 700 16px "Segoe UI", sans-serif;
}

.showcase-line {
  fill: none;
  stroke: #a35e12;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.showcase-line.dashed {
  stroke-dasharray: 10 10;
}

@media (max-width: 960px) {
  .showcase-card {
    grid-template-columns: 1fr;
  }
}
.showcase-meta {
  fill: #6e6253;
  font: 700 13px "Segoe UI", sans-serif;
}
.hero-subtitle {
  margin: 8px 0 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #5a4c3c;
}

.showcase-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 420px;
}
.showcase-image-compact {
  max-width: 300px;
}

.showcase-image-wide {
  max-width: 520px;
}
.showcase-note {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6;
}


.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 24px 28px 36px;
  color: rgba(15, 23, 42, 0.66);
  font-size: 13px;
}

.playground-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.8);
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-nav a {
  color: inherit;
  text-decoration: none;
}

.footer-nav a:hover {
  color: #0f172a;
}

.separator {
  opacity: 0.45;
}

.legal-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(239, 68, 68, 0.08), transparent 34%),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 30%),
    linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

.legal-header {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 24px 0;
  display: flex;
  gap: 12px;
}

.legal-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
}

.legal-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.legal-card h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.legal-card h2 {
  margin: 28px 0 10px;
  font-size: 1.05rem;
}

.legal-card p {
  margin: 0 0 14px;
  color: rgba(15, 23, 42, 0.78);
  line-height: 1.7;
}

.legal-meta {
  color: rgba(15, 23, 42, 0.5);
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .site-footer {
    padding: 20px 18px 28px;
    font-size: 12px;
  }

  .legal-page,
  .legal-header {
    padding-left: 18px;
    padding-right: 18px;
  }

  .legal-card {
    padding: 22px 18px;
    border-radius: 18px;
  }
}


.pricing-shell {
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 32%),
    radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.1), transparent 28%),
    linear-gradient(180deg, #fffaf0 0%, #f8fafc 100%);
}

.pricing-page {
  display: grid;
  gap: 28px;
}

.pricing-hero,
.pricing-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  padding: 30px 32px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.pricing-hero h1,
.pricing-card h2 {
  margin: 0 0 10px;
}

.pricing-copy {
  margin: 0;
  color: rgba(15, 23, 42, 0.76);
  line-height: 1.7;
}

.pricing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.pricing-card-accent {
  background: linear-gradient(180deg, rgba(255, 248, 235, 0.98), rgba(255, 255, 255, 0.96));
}

.pricing-unit {
  margin: -4px 0 18px;
  color: rgba(15, 23, 42, 0.55);
  font-weight: 600;
}

.pricing-list {
  margin: 0;
  padding-left: 18px;
  color: rgba(15, 23, 42, 0.76);
  line-height: 1.7;
}

.pricing-contact-box {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.04);
  display: grid;
  gap: 6px;
}

.pricing-contact-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.46);
}

.pricing-contact-link {
  color: #0f172a;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 820px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-hero,
  .pricing-card {
    padding: 22px 20px;
    border-radius: 18px;
  }
}


.search-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 26px 30px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 248, 235, 0.96), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.06);
}

.search-panel h2 {
  margin: 0 0 10px;
}

.search-panel p {
  margin: 0;
  max-width: 760px;
  color: rgba(15, 23, 42, 0.76);
  line-height: 1.7;
}

.search-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}


.seo-page {
  display: grid;
  gap: 28px;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.seo-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.seo-section {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  padding: 30px 32px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.seo-section h2 {
  margin: 0 0 16px;
}

.seo-card {
  background: rgba(15, 23, 42, 0.03);
  border-radius: 18px;
  padding: 20px;
}

.seo-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.seo-card p {
  margin: 0;
  color: rgba(15, 23, 42, 0.76);
  line-height: 1.7;
}

.seo-bullets {
  margin: 0;
  padding-left: 18px;
  color: rgba(15, 23, 42, 0.78);
  line-height: 1.8;
}

.seo-faq {
  display: grid;
  gap: 16px;
}

@media (max-width: 960px) {
  .seo-grid,
  .seo-grid-3 {
    grid-template-columns: 1fr;
  }

  .seo-section {
    padding: 22px 20px;
    border-radius: 18px;
  }
}
