/* RWA Management System — business site */
:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --surface-2: #243044;
  --text: #e8eef6;
  --muted: #94a3b8;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --success: #22c55e;
  --negative: #f87171;
  --border: rgba(148, 163, 184, 0.2);
  --radius: 12px;
  --font: "DM Sans", system-ui, sans-serif;
  --font-display: "Outfit", var(--font);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 20, 25, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: var(--accent);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.nav-desktop a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
}

.nav-desktop a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--text);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0 1.25rem;
  border-top: 1px solid var(--border);
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  color: var(--muted);
  padding: 0.5rem 0;
  font-weight: 500;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .nav-mobile {
    display: none !important;
  }
}

/* Hero */
.hero {
  padding: 4rem 0 5rem;
  background: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(59, 130, 246, 0.25), transparent),
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 55%);
  border-bottom: 1px solid var(--border);
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 38rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-meta {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-meta strong {
  display: block;
  color: var(--text);
  font-size: 1.1rem;
}

/* Sections */
section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}

.section-intro {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-intro h2 {
  margin-bottom: 0.75rem;
}

/* Grid cards */
.grid-3 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
}

.card h3 {
  color: var(--text);
  margin-bottom: 0.5rem;
}

.card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.card ul li {
  margin-bottom: 0.35rem;
}

/* Platforms */
.platform-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.pill {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

/* Pricing */
.pricing-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.price-card .plan-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.price-card .setup {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.5rem 0 0.25rem;
}

.price-card .amount {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  font-family: var(--font-display);
}

.price-card .period {
  font-size: 0.85rem;
  color: var(--muted);
}

.price-card .period-detail {
  display: block;
  margin-top: 0.2rem;
}

.plan-tagline {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 1rem;
  line-height: 1.45;
}

.amount-custom {
  font-size: 1.5rem;
}

.plan-features {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  flex: 1;
}

.plan-features li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.45rem;
  color: var(--muted);
  line-height: 1.4;
}

.plan-features li:last-child {
  margin-bottom: 0;
}

.plan-features .feat-yes {
  color: var(--text);
}

.plan-features .feat-yes::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.plan-features .feat-no {
  color: var(--muted);
  opacity: 0.85;
}

.plan-features .feat-no::before {
  content: "✗";
  position: absolute;
  left: 0;
  color: var(--negative);
  font-weight: 700;
}

.plan-cta {
  margin-top: 1.25rem;
  text-align: center;
  width: 100%;
  justify-content: center;
}

.popular-foot {
  margin-top: auto;
  padding-top: 1.5rem;
  margin-bottom: 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.price-card .includes {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--muted);
}

.price-card .includes ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.price-card .sla {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--success);
}

/* Table */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-top: 1.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}

td {
  color: var(--muted);
}

tr:last-child td {
  border-bottom: none;
}

/* Terms list */
.terms-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.terms-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.65rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.terms-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Infra */
.infra-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 600px) {
  .infra-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.infra-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.infra-item h3 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.infra-item p {
  font-size: 0.88rem;
  margin: 0;
}

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  text-align: center;
  padding: 4rem 1.25rem;
}

.cta h2 {
  margin-bottom: 0.75rem;
}

.cta p {
  max-width: 520px;
  margin: 0 auto 1.5rem;
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
