/* ButterExt Ultra Sleek Developer / Tooling Theme */
:root {
  --bg-base: #0B0C0E;
  --bg-surface: #111216;
  --bg-card: #15171C;
  --bg-card-hover: #1A1D24;
  --bg-input: #0A0B0D;
  
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-glow: rgba(88, 101, 242, 0.4);
  
  --brand: #5865F2;
  --brand-light: #7983F5;
  --brand-glow: rgba(88, 101, 242, 0.35);
  
  --text-primary: #FFFFFF;
  --text-secondary: #D1D5DB;
  --text-muted: #8E9297;
  --text-faint: #4E5058;
  
  --status-success: #23A55A;
  --status-success-bg: rgba(35, 165, 90, 0.15);
  --status-warning: #F0B232;
  --status-danger: #F23F43;

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --transition: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background-color: var(--bg-base);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(ellipse at 50% 0%, rgba(88, 101, 242, 0.15) 0%, transparent 60%),
    linear-gradient(to bottom, transparent 0%, var(--bg-base) 100%);
}

.landing-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-badge {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  box-shadow: 0 2px 10px var(--brand-glow);
}

.brand-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-pill {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-pill:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
  background: var(--bg-card);
}

/* Hero Section */
.hero {
  padding: 48px 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(35, 165, 90, 0.1);
  border: 1px solid rgba(35, 165, 90, 0.25);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--status-success);
}

.chip-dot {
  width: 6px;
  height: 6px;
  background-color: var(--status-success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--status-success);
}

.hero-title {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.8px;
  max-width: 700px;
}

.hero-desc {
  font-size: 15.5px;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.55;
}

/* Announcement Ticker */
.announcement-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(88, 101, 242, 0.1);
  border: 1px solid rgba(88, 101, 242, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.announcement-box.hidden {
  display: none;
}

/* Hero CTAs */
.hero-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 16px var(--brand-glow);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #6875F5 0%, #5865F2 100%);
  box-shadow: 0 6px 22px rgba(88, 101, 242, 0.5);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
  background: var(--bg-card);
  border-color: var(--border-medium);
}

.btn-danger {
  background: rgba(242, 63, 67, 0.15);
  color: var(--status-danger);
  border: 1px solid rgba(242, 63, 67, 0.3);
}

.btn-danger:hover {
  background: rgba(242, 63, 67, 0.25);
}

.btn-full {
  width: 100%;
}

/* Interactive Preview Showcase */
.preview-showcase {
  margin: 32px 0 48px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.mockup-wrapper {
  border-radius: var(--radius-lg);
  padding: 6px;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.3) 0%, rgba(255, 255, 255, 0.05) 100%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(88, 101, 242, 0.2);
}

.mockup-frame {
  width: 380px;
  height: 520px;
  border-radius: 12px;
  border: none;
  background-color: #1E1F22;
  display: block;
}

/* Visual Feature Cards (Not generic AI boxes) */
.features-section {
  margin-bottom: 50px;
}

.features-grid-v2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feature-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all var(--transition);
}

.feature-widget:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
}

.widget-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.widget-icon-pill {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(88, 101, 242, 0.15);
  color: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.widget-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.widget-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Mini Interactive Visual Previews inside Cards */
.widget-visual {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.visual-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.visual-code {
  color: #7983F5;
}

.visual-badge {
  background: var(--status-success-bg);
  color: var(--status-success);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
}

.account-bubbles {
  display: flex;
  align-items: center;
  gap: 8px;
}

.acc-bubble {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #5865F2;
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.acc-bubble.alt {
  background: #23A55A;
}

.acc-bubble.bot {
  background: #F0B232;
}

/* Admin Dashboard Section */
.admin-card {
  max-width: 400px;
  margin: 40px auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
}

.admin-card h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.admin-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.dashboard-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 100%;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.dash-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

.edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input, .form-group textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  transition: all var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.25);
}

.color-picker-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-picker-group input[type="color"] {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: transparent;
  cursor: pointer;
}

.color-picker-group input[type="text"] {
  flex: 1;
}

/* Maintenance Box */
.maintenance-panel {
  background: rgba(240, 178, 50, 0.05);
  border: 1px solid rgba(240, 178, 50, 0.2);
  border-radius: var(--radius-md);
  padding: 14px;
}

.maint-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.maint-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

.toggle-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  user-select: none;
}

.toggle-control input {
  display: none;
}

.toggle-slider {
  position: relative;
  width: 32px;
  height: 18px;
  background-color: var(--bg-input);
  border-radius: 18px;
  border: 1px solid var(--border-medium);
  transition: all var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  background-color: var(--text-muted);
  border-radius: 50%;
  transition: all var(--transition);
}

.toggle-control input:checked + .toggle-slider {
  background-color: var(--brand);
  border-color: var(--brand);
}

.toggle-control input:checked + .toggle-slider::before {
  transform: translateX(14px);
  background-color: #FFFFFF;
}

.dash-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.preview-box {
  margin-top: 24px;
  text-align: left;
}

.preview-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.preview-box pre {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #A6ACCD;
  overflow-x: auto;
}

.error-text {
  color: var(--status-danger);
  font-size: 12px;
  margin-top: 8px;
  font-weight: 600;
}

.hidden {
  display: none !important;
}

/* Footer */
.footer {
  margin-top: auto;
  padding: 24px 0 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-muted);
}

.footer-brand {
  font-weight: 700;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .features-grid-v2 {
    grid-template-columns: 1fr;
  }
  .edit-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
}
