@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --color-brand-orange: #ff9000;
  --color-brand-accent: #c6c6c6;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

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

body {
  background-color: #ffffff;
  color: #0a0a0a;
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background-color: var(--color-brand-orange);
  color: #ffffff;
}

/* NAVBAR (Exactly like otrobonita.com nav) */
nav.navbar {
  position: sticky;
  top: 0;
  z-index: 160;
  background-color: #ffffff;
  border-bottom: 1px solid rgba(10, 10, 10, 0.05);
  padding: 1rem 1.5rem;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-img {
  height: 24px;
  width: auto;
}

.logo-badge {
  background: rgba(10, 10, 10, 0.05);
  border: 1px solid rgba(10, 10, 10, 0.1);
  color: #0a0a0a;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: #0a0a0a;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.025em;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: rgba(10, 10, 10, 0.6);
}

/* SPLIT HERO SECTION (Matches SplitHero component from otrobonita-official) */
.split-hero {
  display: flex;
  width: 100%;
  min-height: 520px;
}

@media (max-width: 1024px) {
  .split-hero {
    flex-direction: column;
  }
}

.hero-left {
  width: 45%;
  background-color: #171717;
  color: #ffffff;
  padding: 5rem 4rem 4rem 6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 1024px) {
  .hero-left {
    width: 100%;
    padding: 4rem 2rem;
  }
}

.hero-left ::selection {
  background-color: #ffffff;
  color: var(--color-brand-orange);
}

.hero-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.96;
  margin-bottom: 2rem;
  color: #ffffff;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

.text-brand-accent {
  color: var(--color-brand-accent);
}

.hero-description {
  margin-top: 2rem;
}

.hero-description p {
  font-size: 1.2rem;
  line-height: 1.6;
  font-weight: 500;
  color: #ffffff;
  max-width: 600px;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Right Display Box */
.hero-right {
  width: 55%;
  background-color: #18181b;
  color: #ffffff;
  padding: 5rem 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

@media (max-width: 1024px) {
  .hero-right {
    width: 100%;
    padding: 3rem 2rem;
  }
}

.hero-right-content {
  max-width: 440px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  border-radius: 1.5rem;
  backdrop-filter: blur(12px);
}

.hero-right-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-right-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.hero-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-brand-accent);
}

/* BUTTONS (Exact pill styling from otrobonita-official) */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.btn-brand {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.btn-brand:hover {
  background-color: #ffffff;
  color: var(--color-brand-orange);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* MAIN CONTAINER */
.container-main {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* SECTIONS */
.section {
  padding: 6rem 0;
  border-bottom: 1px solid rgba(10, 10, 10, 0.1);
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: rgba(10, 10, 10, 0.6);
  font-size: 1.15rem;
  font-weight: 300;
}

/* CARDS & GRIDS */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 2rem;
}

.card {
  background: rgba(10, 10, 10, 0.03);
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: all 0.25s ease;
}

.card:hover {
  border-color: var(--color-brand-orange);
  background: #ffffff;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.08);
}

.card-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.card-text {
  color: rgba(10, 10, 10, 0.7);
  font-size: 1rem;
  line-height: 1.6;
}

/* CODE BOXES */
.code-box {
  background: #f4f4f2;
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: 0.75rem;
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  overflow-x: auto;
  margin-top: 1.25rem;
  position: relative;
}

.code-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.35rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
}

.code-badge.good {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.code-badge.bad {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

/* 3-TIER PIPELINE */
.pipeline-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pipeline-step {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  background: rgba(10, 10, 10, 0.03);
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: 1.25rem;
  padding: 2rem;
}

.pipeline-number {
  background: #0a0a0a;
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.pipeline-info h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.pipeline-info p {
  color: rgba(10, 10, 10, 0.7);
  font-size: 1rem;
}

.pipeline-tags {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.tag {
  background: #ffffff;
  border: 1px solid rgba(10, 10, 10, 0.1);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: rgba(10, 10, 10, 0.7);
}

/* FORMS & INPUTS */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  background: rgba(10, 10, 10, 0.05);
  border: 1px solid rgba(10, 10, 10, 0.1);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  color: #0a0a0a;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-brand-orange);
  background: #ffffff;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* WORK MODE CHIPS */
.work-mode-chips {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.mode-chip {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(10, 10, 10, 0.1);
  background: #ffffff;
  color: rgba(10, 10, 10, 0.7);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-chip.active, .mode-chip:hover {
  border-color: var(--color-brand-orange);
  color: var(--color-brand-orange);
  background: rgba(255, 144, 0, 0.08);
}

/* TABS */
.tabs {
  display: flex;
  gap: 1.5rem;
  border-bottom: 1px solid rgba(10, 10, 10, 0.1);
  margin-bottom: 2rem;
}

.tab-btn {
  background: none;
  border: none;
  color: rgba(10, 10, 10, 0.6);
  padding: 0.85rem 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.tab-btn.active {
  color: #0a0a0a;
  border-bottom-color: var(--color-brand-orange);
}

/* ARTIFACT WIZARD & EDITOR */
.artifact-chips {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.chip-btn {
  background: rgba(10, 10, 10, 0.03);
  border: 1px solid rgba(10, 10, 10, 0.08);
  color: rgba(10, 10, 10, 0.7);
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip-btn.active, .chip-btn:hover {
  border-color: var(--color-brand-orange);
  color: var(--color-brand-orange);
  background: rgba(255, 144, 0, 0.08);
}

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

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

.editor-textarea, .editor-preview {
  width: 100%;
  height: 380px;
  background: #f4f4f2;
  border: 1px solid rgba(10, 10, 10, 0.1);
  border-radius: 0.75rem;
  padding: 1.25rem;
  color: #0a0a0a;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  overflow-y: auto;
}

.quality-gauge {
  background: rgba(10, 10, 10, 0.03);
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: 1.25rem;
  padding: 2rem;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.gauge-circle {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: conic-gradient(#10b981 var(--score-pct, 0%), rgba(0, 0, 0, 0.1) 0%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gauge-circle-inner {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: #0a0a0a;
}

.gauge-details {
  flex-grow: 1;
}

.gauge-breakdown {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.badge-score {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 0.25rem 0.6rem;
  border-radius: 0.35rem;
  font-weight: 600;
}

.badge-score.pass {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-score.fail {
  background: rgba(244, 63, 94, 0.12);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

/* FOOTER */
footer {
  padding: 4rem 0;
  border-top: 1px solid rgba(10, 10, 10, 0.1);
  background: #ffffff;
  color: rgba(10, 10, 10, 0.5);
  font-size: 0.85rem;
  text-align: center;
}
