:root {
  color-scheme: dark;
  --bg: #101418;
  --panel: #151b21;
  --panel-2: #11171d;
  --line: #26313c;
  --line-strong: #354454;
  --text: #e8edf2;
  --muted: #9aa8b5;
  --accent: #2f83ff;
  --accent-2: #7db5ff;
  --good: #3ccf8e;
  --warning: #e2b84e;
  --danger: #e56f6f;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

.portal {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  background: #0d1116;
  padding: 18px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-weight: 800;
}

.rail-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand span,
.rail-footer,
.muted,
small,
.section-heading p,
.auth-copy p,
.plan-card p,
.device-item span {
  color: var(--muted);
}

.brand span {
  display: block;
  font-size: 12px;
}

.nav {
  display: grid;
  align-content: start;
  gap: 6px;
}

.nav-item {
  width: 100%;
  text-align: left;
  color: #cbd6e0;
  background: transparent;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.nav-item:hover,
.nav-item.active {
  color: var(--text);
  background: #18212a;
}

.rail-footer {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.rail-footer span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content {
  min-width: 0;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent-2);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 30px;
}

h2 {
  margin-bottom: 6px;
  font-size: 21px;
}

h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.account-chip,
.status-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 10px;
  background: #111923;
  color: #d8e3ee;
  font-size: 12px;
  white-space: nowrap;
}

.status-pill.danger {
  border-color: rgba(229, 111, 111, 0.45);
  color: #ffc8c8;
}

.auth-layout {
  min-height: calc(100vh - 130px);
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 440px);
  gap: 24px;
  align-items: center;
}

.auth-copy h2 {
  max-width: 560px;
  font-size: 38px;
}

.auth-copy p {
  max-width: 560px;
  font-size: 16px;
}

.auth-panel,
.section-band,
.metric,
.plan-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.auth-panel {
  padding: 22px;
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: #c6d1dc;
  font-size: 13px;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #0d1116;
  color: var(--text);
  padding: 10px 12px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
}

.primary,
.secondary,
.ghost,
.danger-button,
.link-button {
  border-radius: 6px;
  padding: 10px 14px;
  cursor: pointer;
  color: white;
}

.primary {
  background: var(--accent);
}

.secondary {
  background: #31404e;
}

.ghost,
.link-button {
  background: transparent;
  color: #cbd6e0;
  border: 1px solid var(--line-strong);
}

.link-button {
  border-color: transparent;
  padding-left: 0;
  text-align: left;
}

.danger-button {
  background: #7d3030;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

a.primary,
a.secondary,
a.ghost,
a.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.small {
  padding: 7px 10px;
  font-size: 12px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.metric {
  padding: 18px;
  display: grid;
  gap: 8px;
}

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

.metric strong {
  font-size: 22px;
}

.section-band {
  padding: 22px;
  margin-bottom: 16px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feature-list {
  display: grid;
  gap: 8px;
}

.feature-list.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2);
}

.feature-row span {
  width: 74px;
  flex: 0 0 auto;
  color: var(--good);
  font-size: 12px;
}

.feature-row.disabled span {
  color: var(--muted);
}

.feature-row strong {
  font-size: 13px;
}

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

.plan-card {
  padding: 18px;
  display: grid;
  gap: 16px;
  box-shadow: none;
}

.plan-card.current {
  border-color: rgba(47, 131, 255, 0.75);
}

.plan-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.limit-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.limit-row span {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 12px;
}

.limit-row strong {
  display: block;
  color: var(--text);
  font-size: 18px;
}

.device-list,
.user-list {
  display: grid;
  gap: 8px;
}

.device-item,
.user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2);
  padding: 12px;
}

.device-item strong,
.user-row strong {
  display: block;
}

.user-row {
  width: 100%;
  text-align: left;
  color: var(--text);
  cursor: pointer;
}

.user-row:hover {
  border-color: var(--accent);
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(420px, 1.2fr);
  gap: 16px;
}

.search {
  margin-bottom: 12px;
}

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

.wide {
  grid-column: 1 / -1;
}

.subsection {
  margin-top: 22px;
}

.empty {
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  padding: 18px;
  color: var(--muted);
  background: var(--panel-2);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  max-width: min(420px, calc(100vw - 32px));
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 12px 14px;
  background: #0d1116;
  color: var(--text);
  box-shadow: var(--shadow);
}

.landing-page {
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #0d1116 0%, #101418 42%, #0e1318 100%);
}

.landing-page main {
  display: grid;
  gap: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(53, 68, 84, 0.72);
  background: rgba(13, 17, 22, 0.86);
  backdrop-filter: blur(18px);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 850;
  text-decoration: none;
}

.site-brand img {
  display: block;
  width: auto;
  max-width: 198px;
  height: 46px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 32px);
}

.site-nav a,
.footer-links a {
  color: #cbd6e0;
  text-decoration: none;
}

.site-nav a:hover,
.footer-links a:hover {
  color: var(--text);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid rgba(47, 131, 255, 0.72);
  border-radius: 6px;
  padding: 0 16px;
  color: #ffffff;
  background: rgba(47, 131, 255, 0.22);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.header-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 12px;
  color: #cbd6e0;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
}

.header-link:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(24, 33, 42, 0.78);
}

.button-link {
  font: inherit;
}

.landing-hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(420px, 1.2fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(38px, 7vw, 92px) clamp(18px, 5vw, 72px) clamp(28px, 6vw, 76px);
}

.hero-copy {
  max-width: 690px;
}

.hero-copy h1 {
  max-width: 680px;
  margin-bottom: 20px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.98;
}

.hero-lede {
  max-width: 610px;
  color: #c2ced8;
  font-size: 19px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.large {
  min-height: 48px;
  padding: 13px 20px;
  font-weight: 800;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-proof span {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 12px;
  color: #d9e4ee;
  background: rgba(17, 25, 35, 0.72);
  font-size: 13px;
}

.hero-visual img,
.visual-stack img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.hero-visual {
  min-width: 0;
}

.logo-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.logo-strip span {
  display: grid;
  min-height: 78px;
  place-items: center;
  color: #bac7d3;
  background: #11171d;
  font-size: clamp(13px, 2vw, 18px);
  font-weight: 750;
}

.section {
  padding: clamp(54px, 8vw, 106px) clamp(18px, 5vw, 72px);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(360px, 1.22fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
}

.split-section h2,
.security-band h2,
.download-section h2,
.section-heading.centered h2 {
  max-width: 780px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.08;
}

.split-section p,
.security-band p,
.download-section p {
  max-width: 640px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
}

.visual-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.visual-stack img:nth-child(2) {
  margin-top: 42px;
}

.section-heading.centered {
  display: grid;
  justify-items: center;
  text-align: center;
  margin-bottom: 30px;
}

.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #151b21;
}

.feature-card h3 {
  margin-top: 32px;
  font-size: 21px;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.58;
}

.feature-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: #2f83ff;
  font-weight: 900;
}

.security-band,
.download-section {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(300px, 0.7fr);
  align-items: center;
  gap: 28px;
  background: #11171d;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px 16px;
  color: #dce7f2;
  background: #0d1116;
}

.download-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #151b21;
  box-shadow: var(--shadow);
}

.download-panel span {
  color: var(--muted);
  font-size: 13px;
}

.landing-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(210px, 320px);
  align-items: center;
  gap: 28px;
  padding: 34px clamp(18px, 5vw, 72px);
  background: #0d1116;
  border-top: 1px solid var(--line);
}

.landing-footer p {
  max-width: 470px;
  margin: 12px 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.make-india {
  justify-self: end;
}

.make-india img {
  display: block;
  width: min(260px, 100%);
  height: auto;
}

.auth-page,
.commerce-page,
.license-page {
  background: #0d1116;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(340px, 520px);
}

.login-visual {
  display: grid;
  align-content: space-between;
  padding: clamp(28px, 5vw, 72px);
  background:
    linear-gradient(140deg, rgba(47, 131, 255, 0.22), transparent 38%),
    #101418;
}

.login-visual h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
}

.login-visual p:not(.eyebrow) {
  max-width: 560px;
  color: #c2ced8;
  font-size: 18px;
  line-height: 1.62;
}

.login-panel {
  display: grid;
  align-content: center;
  gap: 20px;
  padding: clamp(24px, 5vw, 54px);
  background: #151b21;
  border-left: 1px solid var(--line);
}

.login-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px;
  background: #0d1116;
}

.login-tabs button {
  min-height: 42px;
  border-radius: 6px;
  color: #cbd6e0;
  background: transparent;
  cursor: pointer;
}

.login-tabs button.active {
  color: #ffffff;
  background: var(--accent);
}

.stack-form {
  display: grid;
  gap: 14px;
}

.purchase-main,
.license-main {
  padding: clamp(34px, 6vw, 72px);
}

.purchase-hero {
  max-width: 940px;
  margin-bottom: 30px;
}

.purchase-hero h1 {
  max-width: 880px;
  margin-bottom: 18px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.03;
}

.purchase-hero p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
}

.pricing-table {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 34px;
}

.pricing-card {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #151b21;
  box-shadow: var(--shadow);
}

.pricing-card.featured {
  border-color: rgba(47, 131, 255, 0.86);
  background: #172030;
}

.plan-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.pricing-card h2 {
  font-size: 28px;
}

.pricing-card p,
.pricing-card li {
  color: var(--muted);
  line-height: 1.52;
}

.price-line strong {
  display: block;
  font-size: 34px;
}

.price-line span {
  color: var(--muted);
}

.pricing-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.comparison-wrap,
.jet-panel,
.license-hero-panel,
.success-banner {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #151b21;
  box-shadow: var(--shadow);
}

.comparison-wrap {
  padding: 24px;
}

.comparison-table {
  display: grid;
  overflow-x: auto;
}

.comparison-row {
  min-width: 720px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(120px, 0.5fr));
  border-bottom: 1px solid var(--line);
}

.comparison-row:last-child {
  border-bottom: 0;
}

.comparison-row span,
.comparison-row strong {
  padding: 13px 12px;
}

.comparison-row span:not(:first-child) {
  color: #d7e2ec;
}

.comparison-row.head {
  color: var(--accent-2);
  font-weight: 800;
}

.license-main {
  display: grid;
  gap: 18px;
}

.success-banner {
  display: flex;
  gap: 10px;
  align-items: center;
  border-color: rgba(60, 207, 142, 0.62);
  padding: 16px 18px;
  color: #ccffe8;
  background: rgba(60, 207, 142, 0.1);
}

.license-hero-panel {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  padding: 28px;
}

.license-hero-panel h1 {
  margin-bottom: 8px;
  font-size: clamp(36px, 5vw, 58px);
}

.license-hero-panel p {
  color: var(--muted);
}

.license-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.jet-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.jet-panel {
  padding: 22px;
}

.jet-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.jet-row span {
  color: var(--muted);
}

@media (max-width: 960px) {
  .portal {
    grid-template-columns: 1fr;
  }

  .rail {
    position: static;
    height: auto;
    grid-template-rows: auto auto;
  }

  .rail-footer {
    display: none;
  }

  .nav {
    display: flex;
    overflow-x: auto;
  }

  .nav-item {
    width: auto;
    white-space: nowrap;
  }

  .auth-layout,
  .summary-grid,
  .plan-grid,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .feature-list.compact {
    grid-template-columns: 1fr;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .landing-hero,
  .split-section,
  .security-band,
  .download-section,
  .login-shell,
  .pricing-table,
  .jet-layout,
  .landing-footer {
    grid-template-columns: 1fr;
  }

  .login-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .landing-hero {
    min-height: auto;
  }

  .landing-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .make-india {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .content {
    padding: 18px;
  }

  .topbar,
  .section-heading,
  .device-item,
  .user-row {
    align-items: stretch;
    flex-direction: column;
  }

  .auth-copy h2 {
    font-size: 30px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    padding-top: 32px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-actions,
  .download-panel,
  .license-hero-panel,
  .success-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions a,
  .download-panel a {
    width: 100%;
  }

  .logo-strip,
  .visual-stack,
  .landing-feature-grid {
    grid-template-columns: 1fr;
  }

  .logo-strip span {
    min-height: 52px;
  }

  .visual-stack img:nth-child(2) {
    margin-top: 0;
  }
}
