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

:root {
  --bg: #111827;
  --surface: #1f2937;
  --muted: #374151;
  --text: #f9fafb;
  --text-muted: #9ca3af;
  --primary: #f97316;
  --primary-ink: #fff7ed;
  --accent: #0ea5e9;
  --success: #22c55e;
  --warning: #eab308;
  --danger: #ef4444;
  --border: #374151;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.grid {
  display: grid;
  gap: 20px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.2);
  border-color: var(--primary);
}
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}
.btn-primary:hover {
  background: #ea580c; /* darker orange */
  border-color: #ea580c;
}
.btn-outline {
  background: transparent;
}
.btn-ghost {
  background: rgba(9, 15, 30, 0.6);
}
.btn-pill {
  border-radius: 999px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 18, 32, 0.85);
  color: var(--text-muted);
}

header.nav {
  position: sticky;
  top: 0;
  backdrop-filter: blur(16px);
  background: rgba(17, 24, 39, 0.85);
  border-bottom: 1px solid var(--border);
  z-index: 40;
}
header.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}
.brand img {
  width: 28px;
  height: 28px;
}
.brand span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 0;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 999px;
  transition: width 0.18s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero {
  padding: 120px 24px 80px;
  text-align: center;
  position: relative;
  /* Background image will be set inline in HTML or via a class modifier */
  background-size: cover;
  background-position: center;
  color: #ffffff;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  border: 1px solid rgba(249, 115, 22, 0.3);
  background: rgba(249, 115, 22, 0.1);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 48px;
  line-height: 1.1;
  margin: 0 0 16px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.hero p {
  margin: 0 auto 32px;
  max-width: 780px;
  color: #e5e7eb;
  font-size: 18px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.hero-metrics {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 32px;
  font-size: 14px;
  color: #e5e7eb;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  backdrop-filter: blur(4px);
}

.section {
  padding: 32px;
}
.section h2 {
  margin: 0 0 8px;
  font-size: 24px;
}
.section-lead {
  margin: 0 0 22px;
  color: var(--text-muted);
}

.feature-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature-pill {
  font-size: 12px;
  color: var(--text-muted);
}
.feature-title {
  font-size: 18px;
}
.feature-body {
  font-size: 14px;
  color: var(--text-muted);
}

.pain-grid {
  padding: 24px;
}
.pain-item {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 14px;
}
.pain-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.roi-grid {
  padding: 24px;
  font-size: 14px;
  color: var(--text-muted);
}
.roi-metric {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.testimonials {
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.testimonial {
  padding: 18px;
  font-size: 13px;
  color: var(--text-muted);
}
.testimonial span {
  display: inline-block;
  margin-top: 10px;
  color: var(--text);
}

.pricing-shell {
  padding: 26px 26px 20px;
}
.plan-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  margin-bottom: 18px;
}
.toggle-pill {
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  min-width: 76px;
  text-align: center;
}
.toggle-pill.active {
  background: var(--primary);
  color: #ffffff;
}
.toggle-label {
  color: var(--text-muted);
}

.plan-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.plan-card h3 {
  margin: 0;
}
.plan-price {
  font-size: 28px;
  font-weight: 700;
}
.plan-meta {
  font-size: 12px;
  color: var(--text-muted);
}
.plan-tagline {
  font-size: 13px;
  color: var(--text-muted);
}
.plan-features {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-muted);
}
.plan-footer {
  margin-top: auto;
}
.plan-badge {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.2);
  color: #fdba74;
  border: 1px solid rgba(249, 115, 22, 0.5);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 13px;
}
.comparison-table th,
.comparison-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.comparison-table th {
  text-align: left;
  color: var(--text-muted);
  font-weight: 600;
}
.comparison-table td:nth-child(2),
.comparison-table td:nth-child(3),
.comparison-table td:nth-child(4) {
  text-align: center;
}

.footer {
  text-align: center;
  padding: 32px;
  color: var(--text-muted);
  font-size: 13px;
}

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
label {
  font-size: 13px;
  color: var(--text-muted);
}
input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(17, 24, 39, 0.5);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}
textarea {
  min-height: 120px;
  resize: vertical;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.muted {
  color: var(--text-muted);
  font-size: 13px;
}

.kpi {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 16px;
}
.kpi-label {
  font-size: 13px;
  color: var(--text-muted);
}
.kpi-value {
  font-size: 22px;
  font-weight: 700;
}
.kpi-trend {
  font-size: 12px;
  color: #a4f1c8;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: calc(100vh - 72px);
}
.sidebar {
  border-right: 1px solid var(--border);
  padding: 20px 18px;
  background: var(--surface);
}
.sidebar-section-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}
.sidebar-link span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sidebar-link.active {
  background: rgba(249, 115, 22, 0.15);
  color: var(--primary);
}
.sidebar-foot {
  margin-top: 28px;
  font-size: 11px;
  color: var(--text-muted);
}

.dashboard-main {
  padding: 24px 26px 32px;
}
.dashboard-main h2 {
  margin: 0 0 4px;
}
.dashboard-subtitle {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--text-muted);
}

.kanban {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.kanban-column {
  padding: 14px;
  border-radius: 14px;
  background: rgba(31, 41, 55, 0.5);
  border: 1px solid var(--border);
}
.kanban-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 13px;
}
.kanban-count {
  font-size: 11px;
  color: var(--text-muted);
}
.kanban-card {
  padding: 10px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  margin-bottom: 8px;
}
.kanban-card-title {
  font-weight: 600;
  margin-bottom: 4px;
}
.kanban-card-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.chart-card {
  padding: 18px 18px 16px;
}
.chart-legend {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--text-muted);
}
.chart-canvas {
  width: 100%;
  height: 160px;
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.5);
  position: relative;
  overflow: hidden;
}
.chart-line {
  position: absolute;
  left: 6%;
  right: 4%;
  top: 12%;
  bottom: 16%;
  border-radius: 999px;
  border: 2px solid var(--accent);
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.3);
  transform-origin: left;
  transform: scaleX(0);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  font-size: 11px;
}
.calendar-day {
  padding: 6px;
  border-radius: 10px;
  border: 1px solid var(--border);
  min-height: 60px;
}
.calendar-day-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.calendar-slot {
  margin-top: 3px;
  padding: 3px 4px;
  border-radius: 6px;
  background: rgba(14, 165, 233, 0.2);
  color: #7dd3fc;
}

.automation-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}
.textarea-shell {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.score-display {
  font-size: 32px;
  font-weight: 700;
}
.score-label {
  font-size: 13px;
  color: var(--text-muted);
}
.score-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.1);
  color: #7dd3fc;
  font-size: 11px;
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.integrations-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}
.integration-item {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(8, 12, 24, 0.96);
  font-size: 13px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.status-pill.ok {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
  color: #4ade80;
}
.status-pill.off {
  background: rgba(170, 170, 170, 0.08);
  border-color: rgba(170, 170, 170, 0.3);
  color: #d5d5d5;
}

.hidden {
  display: none !important;
}

@media (max-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .dashboard-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    display: none;
  }
}

@media (max-width: 720px) {
  .container {
    padding: 18px;
  }
  header.nav .container {
    padding-inline: 18px;
  }
  .hero {
    padding-top: 56px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero-metrics {
    flex-direction: column;
    align-items: center;
  }
  .grid-3,
  .grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }
  .kanban {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .calendar-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .automation-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

