/* Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
  color: #111111;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Layout */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section-muted {
  background: #f7f7f7;
}

.section-divided {
  border-top: 1px solid #e3e3e3;
  border-bottom: 1px solid #e3e3e3;
}

.section-header {
  text-align: left;
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.section-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eee;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-name {
  font-weight: 600;
  font-size: 1.05rem;
}

.brand-tagline {
  font-size: 0.7rem;
  color: #777;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.nav-link {
  color: #333;
}

.nav-link-muted {
  color: #777;
}

.nav-link:hover {
  color: #000;
}

.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0;
  gap: 4px;
}

.nav-toggle span {
  width: 14px;
  height: 1px;
  background: #111;
}

/* Hero */

.hero {
  padding: 4.5rem 0 4.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 3.5rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 3vw + 1.5rem, 3.4rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: #555;
  max-width: 34rem;
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-footnote {
  font-size: 0.8rem;
  color: #777;
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  border-radius: 18px;
  border: 1px solid #ddd;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
  background: #fafafa;
  max-width: 430px;
  width: 100%;
}

.hero-card-header {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid #eee;
  display: flex;
  gap: 0.25rem;
}

.hero-card-header .dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: 1px solid #bbb;
}

.hero-card-body {
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.arrow {
  font-size: 0.7rem;
  color: #555;
}

.hero-card-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.panel {
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 0.78rem;
  line-height: 1.4;
}

.panel-muted {
  background: #f9f9f9;
}

.panel-strong {
  background: #111;
  color: #f7f7f7;
}

.panel-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #777;
  margin-bottom: 0.3rem;
}

.panel-strong .panel-label {
  color: #aaa;
}

.hero-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Typography helpers */

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  color: #777;
  margin-bottom: 0.6rem;
}

/* Buttons */

.btn {
  border-radius: 999px;
  border: 1px solid #111;
  padding: 0.55rem 1.3rem;
  font-size: 0.9rem;
  font-weight: 500;
  background: #111;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.btn:hover {
  filter: brightness(1.03);
}

.btn-primary {
  background: #111;
  color: #fff;
}

.btn-outline {
  background: #fff;
  color: #111;
}

.btn-outline:hover {
  background: #f2f2f2;
}

.btn-ghost {
  background: transparent;
  border-color: #d5d5d5;
  color: #333;
}

.btn-ghost:hover {
  background: #f4f4f4;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
}

.btn-xs {
  padding: 0.25rem 0.8rem;
  font-size: 0.75rem;
}

.btn-block {
  width: 100%;
}

/* Pills / badges */

.pill {
  padding: 0.18rem 0.7rem;
  font-size: 0.75rem;
  border-radius: 999px;
  border: 1px solid #ccc;
  background: #f7f7f7;
}

.pill-muted {
  background: #f0f0f0;
  color: #666;
}

.pill-strong {
  background: #111;
  color: #f7f7f7;
  border-color: #111;
}

.badge {
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  border: 1px solid #ddd;
  background: #fff;
}

.badge-soft {
  background: #111;
  color: #f7f7f7;
  border-color: #111;
}

/* Cards */

.card {
  border-radius: 16px;
  border: 1px solid #e2e2e2;
  background: #fff;
  padding: 1.2rem 1.3rem;
  font-size: 0.9rem;
}

.card h3,
.card h4 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

/* Feature grid */

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.feature-card p {
  margin-top: 0;
  margin-bottom: 0.7rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8rem;
  color: #555;
}

.feature-list li {
  padding-left: 1.1rem;
  position: relative;
  margin-bottom: 0.3rem;
}

.feature-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: #aaa;
}

/* How it works */

.how-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.how-step h3 {
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.how-step p {
  font-size: 0.85rem;
  color: #555;
}

.how-number {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #999;
}

/* Pricing */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.pricing-card {
  position: relative;
}

.pricing-card-highlight {
  border-width: 1.5px;
  border-color: #111;
  background: #fdfdfd;
}

.pricing-price {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0.1rem 0;
}

.pricing-note {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 0.7rem;
}

.pricing-list {
  list-style: none;
  padding-left: 1rem;
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: #555;
}

.pricing-list li {
  margin-bottom: 0.3rem;
}

.pricing-list li::marker {
  content: "• ";
}

.pricing-card .badge-soft {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

/* Dashboard */

.dashboard-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1.5rem;
}

.dashboard-sidebar {
  border-radius: 16px;
  border: 1px solid #e2e2e2;
  padding: 1rem 1rem 1.2rem;
  background: #fafafa;
}

.dashboard-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-user-name {
  font-size: 0.9rem;
  font-weight: 500;
}

.dashboard-user-role {
  font-size: 0.75rem;
  color: #777;
}

.dashboard-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.dashboard-nav-item {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.45rem 0.8rem;
  font-size: 0.8rem;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.dashboard-nav-item.active {
  border-color: #111;
}

.dashboard-main {
  border-radius: 16px;
  border: 1px solid #e2e2e2;
  padding: 1.2rem 1.3rem 1.3rem;
}

.dashboard-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.dashboard-header-row h3 {
  margin: 0;
  font-size: 1rem;
}

.dashboard-filters {
  display: flex;
  gap: 0.4rem;
}

.dashboard-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.dashboard-column h4 {
  margin-top: 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #777;
  margin-bottom: 0.6rem;
}

.dashboard-card {
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  padding: 0.8rem 0.9rem;
  background: #fff;
  margin-bottom: 0.6rem;
}

.dashboard-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.4rem;
}

.dashboard-card-title {
  margin: 0 0 0.2rem;
  font-size: 0.88rem;
  font-weight: 500;
}

.dashboard-card-meta {
  margin: 0;
  font-size: 0.75rem;
  color: #777;
}

/* Login / demo form */

.login-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.9rem;
}

.field-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #777;
}

input,
select {
  border-radius: 999px;
  border: 1px solid #d5d5d5;
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  outline: none;
  background: #fff;
}

input:focus,
select:focus {
  border-color: #111;
}

.login-form .form-footnote {
  font-size: 0.75rem;
  color: #777;
  margin-top: 0.4rem;
}

.login-aside {
  font-size: 0.9rem;
  color: #555;
}

/* UI Kit section */

.section-ui-kit {
  border-top: 1px solid #eee;
  padding-bottom: 4rem;
}

.ui-kit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  font-size: 0.9rem;
}

.ui-kit-block h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.ui-kit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid #eee;
  padding: 1.2rem 0 1.5rem;
  font-size: 0.78rem;
  color: #777;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-left,
.footer-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-dot {
  opacity: 0.5;
}

/* Responsive */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    justify-content: flex-start;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .how-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-columns {
    grid-template-columns: 1fr 1fr;
  }

  .login-grid {
    grid-template-columns: 1fr;
  }

  .ui-kit-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .header-inner {
    padding: 0.7rem 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    margin-right: 1.5rem;
    background: #fff;
    border-radius: 999px;
    border: 1px solid #eee;
    padding: 0.4rem 0.7rem;
    display: none;
  }

  .nav-open {
    display: flex !important;
  }

  .nav.nav-open {
    gap: 0.7rem;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .features-grid,
  .how-grid,
  .pricing-grid,
  .dashboard-columns,
  .ui-kit-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
