/* ===== CLAUDE CMS — DARK THEME ===== */
/* Claude orange accent on pure black. */

@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Inter:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg: #000000;
  --surface: #111111;
  --surface-2: #1a1a1a;
  --surface-3: #222222;
  --border: #2a2a2a;
  --border-subtle: rgba(255,255,255,0.06);
  --text: #ffffff;
  --text-secondary: #888888;
  --text-muted: #555555;
  --cyan: #d97757;
  --cyan-dark: #c4623f;
  --cyan-glow: rgba(217,119,87,0.15);
  --font-heading: 'Jost', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', monospace;
}

/* ===== BASE ===== */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body) !important;
  background: var(--bg) !important;
  color: var(--text) !important;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.7;
}

::selection { background: rgba(217,119,87,0.3); color: #fff; }

.page-content h1, .page-content h2, .page-content h3, .page-content h4 {
  font-family: var(--font-heading) !important;
  color: var(--text) !important;
}

.page-content p { color: var(--text-secondary) !important; }
.page-content a:not(.rm-btn):not(.rm-card-link) { color: var(--cyan) !important; text-decoration: none !important; }
.page-content a:not(.rm-btn):not(.rm-card-link):hover { color: #fff !important; }

/* Button text colour overrides — must beat .page-content a */
.page-content a.rm-btn-primary,
a.rm-btn-primary { color: #fff !important; }
.page-content a.rm-btn-ghost,
a.rm-btn-ghost { color: var(--text) !important; }

/* ===== EXPERIENCE TOGGLE ===== */
.xp-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
  margin-left: 1.2rem;
  flex-shrink: 0;
}

.xp-toggle button {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.xp-toggle button:hover { color: var(--text-secondary); }

.xp-toggle button.active {
  background: var(--cyan);
  color: #fff;
  box-shadow: 0 1px 4px rgba(217,119,87,0.3);
}

/* Content switching — hide opposite mode */
body:not(.mode-dev) .xp-dev { display: none !important; }
body.mode-dev .xp-simple { display: none !important; }

/* Smooth transition for swapped content */
.xp-simple, .xp-dev {
  transition: opacity 0.2s ease;
}

/* ===== FULL-WIDTH BREAKOUT ===== */
.rm-diagonal, .rm-diagonal-reverse, .rm-services-bg, .rm-cta-wrap {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* ===== ROTATOR ===== */
.rm-rotator-line {
  display: inline-block;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* ===== LOGO ===== */
.site-logo {
  color: var(--text) !important;
  font-family: var(--font-heading) !important;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none !important;
  padding: 0.7rem 0;
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  position: relative;
}

.site-logo .dot {
  background: transparent !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 0 !important;
  display: block !important;
  margin: 0 !important;
  box-shadow: none !important;
  animation: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 2C12 2 14.5 6.5 18 8.5C14.5 10.5 12 15 12 15C12 15 9.5 10.5 6 8.5C9.5 6.5 12 2 12 2Z' fill='%23d97757'/%3E%3Cpath d='M12 9C12 9 13.5 11.5 15.5 12.5C13.5 13.5 12 16 12 16C12 16 10.5 13.5 8.5 12.5C10.5 11.5 12 9 12 9Z' fill='%23c4623f' opacity='0.6'/%3E%3Cpath d='M19 14C19 14 20 15.5 21.5 16C20 16.5 19 18 19 18C19 18 18 16.5 16.5 16C18 15.5 19 14 19 14Z' fill='%23d97757' opacity='0.5'/%3E%3Cpath d='M6 16C6 16 6.8 17.2 8 17.8C6.8 18.4 6 19.6 6 19.6C6 19.6 5.2 18.4 4 17.8C5.2 17.2 6 16 6 16Z' fill='%23d97757' opacity='0.35'/%3E%3C/svg%3E") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
}

.site-logo .dot::before, .site-logo .dot::after { display: none !important; }
.site-logo::before { display: none !important; }
.site-logo:hover .dot { filter: brightness(1.2) drop-shadow(0 0 8px rgba(217,119,87,0.5)); }

/* ===== HEADER ===== */
.site-header {
  background: rgba(0,0,0,0.8) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle) !important;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

nav { display: flex; gap: 0; height: 100%; align-items: center; }

nav a {
  color: var(--text-secondary) !important;
  text-decoration: none !important;
  font-family: var(--font-body) !important;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 1rem 1.2rem;
  position: relative;
  transition: color 0.2s ease;
  letter-spacing: 0;
}

nav a:hover { color: var(--text) !important; }
nav a.active { color: var(--text) !important; }

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1.2rem;
  right: 1.2rem;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

nav a:hover::after, nav a.active::after { transform: scaleX(1); }

/* ===== HERO ===== */
.rm-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  overflow: hidden;
  padding: 6rem 2rem 4rem;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.rm-hero-bg {
  position: absolute;
  inset: 0;
  background: var(--bg);
  z-index: 0;
}

.rm-hero-bg::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 30%;
  width: 50%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(217,119,87,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.rm-hero-mesh, .rm-hero-orb { display: none; }

.rm-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
}

.rm-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(217,119,87,0.08);
  border: 1px solid rgba(217,119,87,0.15);
  border-radius: 100px;
  padding: 5px 14px 5px 10px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.03em;
  margin-bottom: 2rem;
  animation: fade-up 0.6s ease-out;
}

.rm-hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px rgba(217,119,87,0.6);
}

.rm-hero h1 {
  font-family: var(--font-heading) !important;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.5rem;
  animation: fade-up 0.6s ease-out 0.1s both;
  min-height: 1.1em;
}

.rm-hero h1 .gradient-text {
  font-style: italic;
  background: linear-gradient(180deg, #fff 30%, rgba(255,255,255,0.3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rm-hero-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 580px;
  font-weight: 400;
  animation: fade-up 0.6s ease-out 0.2s both;
  margin-bottom: 2rem;
}

.rm-hero-actions {
  display: flex;
  justify-content: flex-start;
  gap: 0.8rem;
  flex-wrap: wrap;
  animation: fade-up 0.6s ease-out 0.3s both;
}

/* ===== BUTTONS ===== */
.rm-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.rm-btn-primary {
  background: #d97757;
  color: #fff !important;
}

.rm-btn-primary:hover {
  background: #c4623f;
  color: #fff !important;
  transform: translateY(-1px);
}

.rm-btn-ghost {
  background: var(--surface-2);
  color: var(--text) !important;
  border: 1px solid var(--border);
}

.rm-btn-ghost:hover {
  background: var(--surface-3);
  color: var(--text) !important;
  transform: translateY(-1px);
}

.rm-btn-arrow { transition: transform 0.2s; font-size: 0.85em; }
.rm-btn:hover .rm-btn-arrow { transform: translateX(3px); }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== SECTION COMMON ===== */
.rm-section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.rm-section-label {
  font-family: var(--font-mono) !important;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.rm-section-heading {
  font-family: var(--font-heading) !important;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 0.8rem;
}

.rm-section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 400;
  max-width: 580px;
}

/* ===== DIAGONAL DIVIDERS ===== */
.rm-diagonal {
  height: 120px;
  background: linear-gradient(175deg, var(--bg) 49.5%, var(--surface) 50.5%);
  margin: 0;
}
.rm-diagonal-reverse {
  height: 120px;
  background: linear-gradient(175deg, var(--surface) 49.5%, var(--bg) 50.5%);
  margin: 0;
}

/* ===== SERVICE CARDS GRID ===== */
.rm-services-bg {
  background: var(--surface);
  padding: 1px 0;
}

.rm-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-top: 2.5rem;
}

.rm-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.8rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.rm-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: center;
}

.rm-card:hover {
  background: var(--surface-3);
  border-color: rgba(217,119,87,0.15);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

.rm-card:hover::before { transform: scaleX(1); }

.rm-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.rm-card-icon-cms { background: rgba(217,119,87,0.1); }
.rm-card-icon-plugins { background: rgba(217,119,87,0.08); }
.rm-card-icon-coding { background: rgba(255,255,255,0.06); }
.rm-card-icon-search { background: rgba(217,119,87,0.1); }

.rm-card h3 {
  font-family: var(--font-heading) !important;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.rm-card p {
  font-size: 0.85rem;
  color: var(--text-secondary) !important;
  line-height: 1.6;
  font-weight: 400;
}

.rm-card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--cyan) !important;
  text-decoration: none !important;
  transition: all 0.2s;
}

.rm-card-link:hover { color: #fff !important; gap: 8px; }

/* ===== INTEGRATION CARDS ===== */
.rm-integration-card {
  text-align: center;
  padding: 1.5rem 1rem;
}

.rm-integration-logo {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 4px;
}

.rm-integration-logo img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: contain;
}

.rm-integration-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.rm-integration-card p {
  font-size: 0.78rem !important;
  line-height: 1.55;
}

/* ===== PRICING CARD ===== */
.rm-pricing {
  max-width: 400px;
  margin: 2.5rem 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.rm-pricing::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.rm-pricing-trial {
  display: inline-block;
  background: rgba(217,119,87,0.1);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.rm-pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 0.3rem;
}

.rm-pricing-price .amount {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}

.rm-pricing-price .period {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

.rm-pricing-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.rm-pricing-features { list-style: none; padding: 0; margin: 0 0 1.8rem; }
.rm-pricing-features li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 0.4rem 0;
  padding-left: 1.4rem;
  position: relative;
}
.rm-pricing-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.75rem;
}
.rm-pricing .rm-btn { width: 100%; justify-content: center; padding: 12px 22px; }

/* ===== STATS ROW ===== */
.rm-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.rm-stat-num {
  font-family: var(--font-heading) !important;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
  color: var(--text);
}

.rm-stat-num.c1 { color: var(--cyan); }
.rm-stat-num.c2 { color: var(--text); }
.rm-stat-num.c3 { color: var(--cyan); }
.rm-stat-num.c4 { color: var(--text); }
.rm-stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 400; }

/* ===== CTA SECTION ===== */
.rm-cta-wrap {
  background: var(--surface);
  padding: 1px 0;
}

.rm-cta {
  text-align: center;
  padding: 6rem 2rem;
  max-width: 640px;
  margin: 0 auto;
}

.rm-cta h2 {
  font-family: var(--font-heading) !important;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
  line-height: 1.1;
}

.rm-cta h2 .gradient-text {
  font-style: italic;
  background: linear-gradient(180deg, #fff 30%, rgba(255,255,255,0.3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rm-cta p {
  color: var(--text-secondary) !important;
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  margin-bottom: 2rem;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg) !important;
  border-top: 1px solid var(--border) !important;
  color: var(--text-muted) !important;
  padding: 2rem !important;
}
.site-footer a { color: var(--text-muted) !important; }
.site-footer .managed-by { opacity: 0.4; }

/* ===== SCROLL REVEAL ===== */
.rm-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.rm-reveal.show {
  opacity: 1;
  transform: none;
}

/* ===== CARD ICON SIZES ===== */
.rm-card-icon-cms,
.rm-card-icon-plugins,
.rm-card-icon-coding {
  font-size: 1.3rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .rm-cards[style*="repeat(5"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  nav a { padding: 0.8rem 0.7rem; font-size: 0.75rem; }
  .xp-toggle { margin-left: 0.5rem; }
  .xp-toggle button { font-size: 0.6rem; padding: 3px 7px; }
  .rm-hero { min-height: 70vh; padding: 4rem 1.5rem 3rem; }
  .rm-hero h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
  .rm-section { padding: 4rem 1.5rem; }
  .rm-cards { grid-template-columns: 1fr !important; }
  .rm-cards[style*="repeat(5"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .rm-pricing-grid { grid-template-columns: 1fr; }
  .rm-stats { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

@media (max-width: 480px) {
  nav a { padding: 0.6rem 0.5rem; font-size: 0.7rem; }
  .xp-toggle { margin-left: 0.3rem; }
  .xp-toggle button { font-size: 0.58rem; padding: 3px 6px; }
  .rm-hero { min-height: auto; padding: 3rem 1.2rem 2.5rem; }
  .rm-btn { padding: 10px 18px; font-size: 0.8rem; }
  .rm-cards[style*="repeat(5"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
