/* Ceecore — Brand CSS */
:root {
  --bg: #0d1117;
  --bg2: #161b22;
  --bg3: #21262d;
  --text: #c9d1d9;
  --text-dim: #8b949e;
  --text-bright: #f0f6fc;
  --accent: #ff7b72;
  --accent2: #ffa657;
  --purple: #d2a8ff;
  --blue: #79c0ff;
  --green: #7ee787;
  --border: #30363d;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: rgba(13,17,23,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-bright);
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex; gap: 32px; list-style: none;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-bright); }

.nav-cta {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.04em;
}
.nav-cta:hover { background: var(--accent); color: #0d1117; }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,123,114,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,123,114,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 100%);
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-bright);
  letter-spacing: -0.02em;
  max-width: 900px;
  margin-bottom: 24px;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 48px;
  line-height: 1.7;
}

.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
}

.btn-primary {
  padding: 14px 32px;
  background: var(--accent);
  color: #0d1117;
  font-weight: 700;
  font-size: 15px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  letter-spacing: 0.02em;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-ghost {
  padding: 14px 32px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--text-dim); color: var(--text-bright); }

.hero-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-dim);
}

/* ── SECTION BASE ── */
section {
  padding: 100px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: var(--text-bright);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-body {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 640px;
  line-height: 1.75;
}

/* ── DIVIDER ── */
.full-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* ── PROBLEM SECTION ── */
#problem {
  border-top: 1px solid var(--border);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 64px;
  align-items: start;
}

.problem-col h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.problem-col.bad h3 { color: var(--text-dim); }
.problem-col.good h3 { color: var(--accent); }

.problem-item {
  display: flex; gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.problem-icon {
  width: 32px; height: 32px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}
.bad .problem-icon { background: rgba(139,148,158,0.1); color: var(--text-dim); }
.good .problem-icon { background: rgba(255,123,114,0.1); color: var(--accent); }

.problem-item h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 4px;
}
.problem-item p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ── ARCHITECTURE ── */
#architecture {
  border-top: 1px solid var(--border);
}

.arch-visual {
  margin-top: 64px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.arch-visual::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(255,123,114,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.arch-row {
  display: flex; gap: 16px; align-items: center;
  margin-bottom: 16px;
}

.arch-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  width: 100px;
  flex-shrink: 0;
}

.arch-boxes {
  display: flex; gap: 12px; flex-wrap: wrap;
}

.arch-box {
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid;
}
.arch-box.engine {
  background: rgba(255,123,114,0.08);
  border-color: rgba(255,123,114,0.3);
  color: var(--accent);
}
.arch-box.system {
  background: rgba(210,168,255,0.08);
  border-color: rgba(210,168,255,0.3);
  color: var(--purple);
}
.arch-box.hw {
  background: rgba(121,192,255,0.08);
  border-color: rgba(121,192,255,0.3);
  color: var(--blue);
}
.arch-box.agent {
  background: rgba(126,231,135,0.08);
  border-color: rgba(126,231,135,0.3);
  color: var(--green);
}

.arch-connector {
  width: 100px;
  display: flex; align-items: center; justify-content: center;
  color: var(--border);
  font-size: 18px;
}

/* ── LIFECYCLE ── */
#lifecycle {
  border-top: 1px solid var(--border);
}

.lifecycle-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 64px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.lifecycle-step {
  padding: 32px 24px;
  border-right: 1px solid var(--border);
  position: relative;
}
.lifecycle-step:last-child { border-right: none; }

.step-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 16px;
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ── QUOTE ── */
#manifesto {
  border-top: 1px solid var(--border);
  text-align: center;
}

.manifesto-quote {
  font-size: clamp(22px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.4;
  max-width: 800px;
  margin: 0 auto 32px;
  letter-spacing: -0.01em;
}
.manifesto-quote em {
  font-style: normal;
  color: var(--accent);
}

.manifesto-attr {
  font-size: 14px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

/* ── PRICING ── */
#pricing {
  border-top: 1px solid var(--border);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 64px;
}

.pricing-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--accent);
}
.pricing-card.featured::before {
  content: 'RECOMMENDED';
  position: absolute;
  top: -1px; right: 24px;
  background: var(--accent);
  color: #0d1117;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  padding: 4px 12px;
  border-radius: 0 0 6px 6px;
}

.pricing-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.pricing-price {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-bright);
  line-height: 1;
  margin-bottom: 8px;
}
.pricing-price sup {
  font-size: 24px;
  font-weight: 600;
  vertical-align: super;
}
.pricing-price .period {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-dim);
}

.pricing-desc {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 32px;
  line-height: 1.6;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
}
.pricing-features li {
  font-size: 14px;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex; gap: 10px; align-items: center;
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── AGENT VERSION ── */
#agent-version {
  border-top: 1px solid var(--border);
}

.agent-block {
  margin-top: 48px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.agent-block-header {
  padding: 16px 24px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}

.agent-block-header .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.agent-block-header span {
  font-size: 13px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-left: 8px;
}

.agent-block-body {
  padding: 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--text);
}

.agent-block-body .key { color: var(--blue); }
.agent-block-body .val { color: var(--green); }
.agent-block-body .str { color: var(--accent2); }
.agent-block-body .comment { color: var(--text-dim); }
.agent-block-body .num { color: var(--purple); }

/* ── CTA ── */
#cta {
  border-top: 1px solid var(--border);
  text-align: center;
}

.cta-title {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 800;
  color: var(--text-bright);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.cta-title em { font-style: normal; color: var(--accent); }

.cta-sub {
  font-size: 18px;
  color: var(--text-dim);
  margin-bottom: 48px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-logo {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-bright);
}
.footer-logo span { color: var(--accent); }

.footer-links {
  display: flex; gap: 32px; list-style: none;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-bright); }

.footer-copy {
  font-size: 12px;
  color: var(--text-dim);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  section { padding: 64px 20px; }
  .problem-grid { grid-template-columns: 1fr; }
  .lifecycle-steps { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 24px; text-align: center; }
  .arch-visual { padding: 24px; }
  .arch-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .lifecycle-steps { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
}
