:root {
  --bg-color: #f8fafc;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --surface: #ffffff;
  --border: #e2e8f0;
  --term-bg: #0f172a;
  --term-text: #38bdf8;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.site-header {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

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

.branding {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
}

.branding h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
}

.site-header nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 500;
}

.site-header nav a:hover {
  color: var(--primary);
}

.hero {
  padding: 4rem 0 2rem;
  text-align: center;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto;
}

.app-section {
  padding: 2rem 0 4rem;
}

.wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .wrapper {
    grid-template-columns: 1fr;
  }
}

.builder-panel, .output-panel {
  background: var(--surface);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

select, input[type="text"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-sans);
}

.options-container .option-group {
  margin-bottom: 1rem;
}

.options-container label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 500;
}

.terminal-window {
  background-color: var(--term-bg);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.terminal-header {
  background: #1e293b;
  padding: 0.5rem 1rem;
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.close { background: #ff5f56; }
.dot.min { background: #ffbd2e; }
.dot.max { background: #27c93f; }

.terminal-body {
  padding: 1.5rem;
  color: var(--term-text);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  min-height: 100px;
  word-wrap: break-word;
}

.btn-primary {
  width: 100%;
  padding: 0.75rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.copy-status {
  text-align: center;
  margin-top: 1rem;
  color: #10b981;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s;
}

.ad-container {
  margin-top: 2rem;
  text-align: center;
  min-height: 120px;
}

.guide-section, .faq-section {
  padding: 3rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.guide-section h2, .faq-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.guide-section p {
  margin-bottom: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 768px){
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.guide-card {
  background: var(--bg-color);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.guide-card h4 {
  margin-bottom: 0.75rem;
}

.faq-item {
  margin-bottom: 2rem;
}

.faq-item h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.site-footer {
  background: #0f172a;
  color: var(--surface);
  padding: 2rem 0;
  text-align: center;
}

.site-footer p {
  margin-bottom: 1rem;
  color: #94a3b8;
}

.site-footer nav a {
  color: var(--surface);
  text-decoration: none;
  margin: 0 1rem;
  font-size: 0.9rem;
}

.site-footer nav a:hover {
  text-decoration: underline;
}


/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
