:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --text: #172033;
  --muted: #667085;
  --line: #d0d5dd;
  --accent: #2563eb;
  --danger: #b42318;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--accent); text-decoration: none; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 56px;
  padding: 0 24px;
  background: #101828;
  color: #fff;
}
.brand { color: #fff; font-weight: 700; }
.topbar nav { display: flex; gap: 16px; align-items: center; }
.topbar a { color: #fff; }
.topbar form { margin: 0; }
.container { max-width: 1120px; margin: 32px auto; padding: 0 20px; }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}
.subpanel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin: 12px 0;
  background: #fbfcfe;
}
.disabled-account {
  color: var(--muted);
  background: #f2f4f7;
}
.disabled-account input,
.disabled-account select,
.disabled-account textarea {
  color: var(--muted);
  background: #eef1f5;
}
.info {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-left: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  cursor: help;
}
.notice-ok {
  border-color: #16a34a;
  background: #ecfdf3;
}
.notice-error {
  border-color: var(--danger);
  background: #fef3f2;
  color: var(--danger);
}
.inline-form { margin-top: 10px; }
.narrow { max-width: 420px; margin: 64px auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.stack { display: grid; gap: 14px; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; align-items: end; }
label { display: grid; gap: 6px; font-weight: 600; }
input, select, textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}
button {
  padding: 10px 14px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  cursor: pointer;
}
.button-link {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  margin-right: 8px;
}
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; }
.metric { font-size: 36px; font-weight: 700; margin: 0; }
.error { color: var(--danger); }
.muted { color: var(--muted); }
.summary { line-height: 1.55; }

.landing-body {
  background: #f4f0ea;
  color: #172033;
}
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
  padding: 0 min(6vw, 72px);
  background: #121317;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.landing-nav nav { display: flex; gap: 22px; align-items: center; }
.landing-nav a { color: #fff; font-weight: 700; }
.landing-brand { color: #fff; font-weight: 900; font-size: 22px; }
.landing-login {
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 8px;
}
.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 46px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 64px min(6vw, 72px);
  background:
    linear-gradient(115deg, rgba(18,19,23,0.96) 0%, rgba(18,19,23,0.9) 58%, rgba(255,111,89,0.85) 100%),
    linear-gradient(145deg, #121317 0%, #1aa6a6 52%, #f5ce4a 100%);
  color: #fff;
}
.hero-content h1 {
  max-width: 880px;
  font-size: 58px;
  line-height: 1.02;
  margin: 0 0 22px;
}
.lead { max-width: 720px; font-size: 20px; line-height: 1.58; color: #e7ebea; }
.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 900;
  color: #f5ce4a;
}
.eyebrow.dark { color: #0f8f8d; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin-top: 30px; }
.primary-cta {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 8px;
  background: #f5ce4a;
  color: #121317;
  font-weight: 900;
}
.text-cta { color: #fff; font-weight: 900; }
.hero-showcase {
  background: #fff;
  color: #172033;
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(0,0,0,0.32);
  overflow: hidden;
  transform: rotate(1.2deg);
}
.showcase-header {
  display: flex;
  justify-content: space-between;
  padding: 18px 20px;
  background: #121317;
  color: #fff;
}
.showcase-main { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 18px; }
.showcase-stat, .showcase-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.showcase-stat span { display: block; color: #475467; font-weight: 700; }
.showcase-stat strong { display: block; font-size: 42px; margin-top: 8px; }
.accent-cyan { border-top: 6px solid #1aa6a6; }
.accent-coral { border-top: 6px solid #ff6f59; }
.showcase-summary { grid-column: 1 / -1; background: #f9faf9; }
.showcase-summary h2 { font-size: 24px; line-height: 1.2; margin: 8px 0 12px; }
.showcase-summary ul { margin: 0; padding-left: 20px; color: #475467; }
.mini-label { color: #0f8f8d; font-weight: 900; margin: 0; }
.landing-section { max-width: 1180px; margin: 0 auto; padding: 78px 24px; }
.section-heading { max-width: 780px; margin-bottom: 28px; }
.section-heading h2, .workflow-copy h2, .security-showcase h2 {
  font-size: 40px;
  line-height: 1.12;
  margin: 0;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.service-card {
  min-height: 260px;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid rgba(18,19,23,0.12);
}
.service-number { font-size: 42px; font-weight: 900; opacity: 0.28; }
.service-card h3 { font-size: 24px; margin: 34px 0 12px; }
.service-card p { line-height: 1.55; }
.color-cyan { background: #d8f4f2; }
.color-lime { background: #e7f4bc; }
.color-coral { background: #ffe1d8; }
.color-ink { background: #17191f; color: #fff; }
.workflow-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 32px;
  padding: 72px min(6vw, 72px);
  background: #fff;
}
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.workflow-steps div {
  border-left: 6px solid #ff6f59;
  padding: 18px;
  background: #f8faf9;
  border-radius: 8px;
}
.workflow-steps strong { display: block; font-size: 20px; margin-bottom: 6px; }
.workflow-steps span { color: #475467; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.pricing-card {
  background: #fff;
  border: 1px solid rgba(18,19,23,0.12);
  border-radius: 8px;
  padding: 26px;
  box-shadow: 0 18px 45px rgba(18,19,23,0.08);
}
.pricing-card h3 { font-size: 28px; margin: 0; }
.plan-kicker { color: #0f8f8d; font-weight: 900; margin-top: 0; }
.price { font-size: 36px; font-weight: 900; margin: 12px 0; }
.price span { font-size: 16px; color: var(--muted); }
.pricing-card ul { padding-left: 20px; color: #475467; line-height: 1.7; }
.featured-plan { border-top: 8px solid #f5ce4a; }
.security-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 42px;
  padding: 76px min(6vw, 72px);
  background: #121317;
  color: #fff;
}
.security-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.security-list p {
  margin: 0;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  font-weight: 800;
}

@media (max-width: 980px) {
  .landing-hero, .workflow-section, .security-showcase { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-content h1 { font-size: 44px; }
}

@media (max-width: 640px) {
  .landing-nav { padding: 0 16px; }
  .landing-nav nav { gap: 10px; font-size: 14px; }
  .landing-nav nav a:not(.landing-login):nth-child(2),
  .landing-nav nav a:not(.landing-login):nth-child(3) { display: none; }
  .landing-hero { padding: 42px 18px; }
  .hero-content h1 { font-size: 36px; }
  .lead { font-size: 18px; }
  .hero-showcase { transform: none; }
  .showcase-main, .service-grid, .workflow-steps, .security-list { grid-template-columns: 1fr; }
  .section-heading h2, .workflow-copy h2, .security-showcase h2 { font-size: 31px; }
  .landing-section { padding: 56px 18px; }
}

/* Internal app visual system */
.app-shell {
  min-height: 100vh;
  background:
    linear-gradient(140deg, rgba(18,19,23,0.05), rgba(26,166,166,0.08) 42%, rgba(255,111,89,0.08)),
    #f4f0ea;
}
.app-shell .topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  min-height: 68px;
  padding: 0 min(5vw, 48px);
  background: #121317;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 12px 30px rgba(18,19,23,0.18);
}
.app-shell .brand {
  font-size: 21px;
  font-weight: 900;
}
.app-shell .brand span { color: #f5ce4a; }
.app-shell .topbar nav {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.app-shell .topbar a {
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 700;
}
.app-shell .topbar nav > a:hover { background: rgba(255,255,255,0.1); }
.app-shell .logout-button {
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,0.28);
  background: transparent;
  box-shadow: none;
}
.app-shell .logout-button:hover { background: rgba(255,255,255,0.1); }
.app-shell .container {
  max-width: 1240px;
  margin: 34px auto;
  padding: 0 22px;
}
.app-shell .container > h1 {
  margin: 0 0 24px;
  font-size: 38px;
  line-height: 1.1;
}
.app-shell .panel {
  border: 1px solid rgba(18,19,23,0.12);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(18,19,23,0.08);
}
.app-shell .panel h1,
.app-shell .panel h2,
.app-shell .panel h3 { margin-top: 0; }
.app-shell .panel h2 {
  font-size: 22px;
  line-height: 1.2;
}
.app-shell .panel:nth-of-type(4n + 1) { border-top: 6px solid #1aa6a6; }
.app-shell .panel:nth-of-type(4n + 2) { border-top: 6px solid #f5ce4a; }
.app-shell .panel:nth-of-type(4n + 3) { border-top: 6px solid #ff6f59; }
.app-shell .panel:nth-of-type(4n + 4) { border-top: 6px solid #17191f; }
.app-shell .panel.notice-ok,
.app-shell .panel.notice-error {
  border-top-width: 1px;
  box-shadow: none;
}
.app-shell .subpanel {
  border: 1px solid rgba(18,19,23,0.11);
  padding: 16px;
  background: #fbfaf7;
}
.app-shell .disabled-account {
  background: #efebe3;
}
.app-shell .grid { gap: 22px; }
.app-shell label {
  gap: 7px;
  font-weight: 800;
}
.app-shell input,
.app-shell select,
.app-shell textarea {
  padding: 11px 12px;
  border: 1px solid #cfc6b7;
  background: #fffefa;
}
.app-shell label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 36px;
}
.app-shell input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 0;
  accent-color: #0f8f8d;
}
.app-shell label:has(input[type="checkbox"]) .info {
  margin-left: 0;
}
.app-shell input:focus,
.app-shell select:focus,
.app-shell textarea:focus {
  outline: 3px solid rgba(26,166,166,0.22);
  border-color: #1aa6a6;
}
.app-shell button {
  border-radius: 8px;
  background: #121317;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(18,19,23,0.14);
}
.app-shell button:hover { background: #0f8f8d; }
.app-shell button:disabled {
  background: #b8b2a8;
  cursor: not-allowed;
  box-shadow: none;
}
.app-shell .button-row button:nth-of-type(2) { background: #0f8f8d; }
.app-shell .button-row button:nth-of-type(3) { background: #ff6f59; }
.app-shell .button-row button:nth-of-type(4) { background: #6b4d00; }
.app-shell .button-row button:hover { filter: brightness(0.95); }
.app-shell .button-link {
  border-radius: 8px;
  background: #121317;
  font-weight: 900;
}
.app-shell table {
  border: 1px solid rgba(18,19,23,0.1);
  border-radius: 8px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: #fff;
}
.app-shell th,
.app-shell td {
  border-bottom: 1px solid #ece6dc;
  padding: 12px;
  vertical-align: top;
}
.app-shell th {
  background: #121317;
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
}
.app-shell tbody tr:nth-child(even) { background: #fbfaf7; }
.app-shell tbody tr:hover { background: #f3fbfa; }
.app-shell .metric {
  font-size: 44px;
  font-weight: 900;
  color: #121317;
}
.app-shell .inline-form {
  display: inline-block;
  margin-right: 8px;
}
.app-shell .panel ul {
  line-height: 1.7;
  padding-left: 20px;
}
.app-shell .panel code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 10px 12px;
  border-radius: 8px;
  background: #121317;
  color: #f5ce4a;
}
.app-shell .narrow {
  max-width: 470px;
  margin-top: 82px;
  border-top: 8px solid #f5ce4a;
}
.app-shell .narrow h1 {
  font-size: 36px;
}
.app-shell .notice-error {
  background: #fff1ed;
  color: #9f2d20;
}
.app-shell .notice-ok {
  background: #eaf8ef;
  color: #166534;
}
.app-shell .info {
  background: #fff;
}

@media (max-width: 820px) {
  .app-shell .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px 18px;
  }
  .app-shell .topbar nav {
    justify-content: flex-start;
    width: 100%;
  }
  .app-shell .container > h1 { font-size: 32px; }
}
