/* ---------------------------------
   CrossLink design variables
---------------------------------- */

:root {
  --background: #f5f7fa;
  --surface: #ffffff;
  --surface-soft: #edf7f5;

  --primary: #087f72;
  --primary-dark: #06665c;
  --primary-light: #d9f2ee;

  --navy: #12233f;
  --text: #182230;
  --text-muted: #667085;

  --border: #e4e7ec;
  --success: #16836d;

  --shadow:
    0 20px 45px rgba(18, 35, 63, 0.10);

  --page-width: 1180px;
}

/* ---------------------------------
   Basic reset
---------------------------------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family:
    Arial,
    Helvetica,
    sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

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

/* ---------------------------------
   Shared layout
---------------------------------- */

.page-container {
  width: min(var(--page-width), 88%);
  margin: 0 auto;
}

/* ---------------------------------
   Header and navigation
---------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--page-width), 88%);
  min-height: 76px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.1;
}

.logo small {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.logo-symbol {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--primary);
  color: white;
  border-radius: 12px;
  font-size: 1.3rem;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.main-navigation a:hover {
  color: var(--primary);
}

.navigation-button {
  padding: 10px 17px;
  background: var(--navy);
  color: white !important;
  border-radius: 8px;
}

/* ---------------------------------
   Hero section
---------------------------------- */

.hero-section {
  padding: 95px 0 110px;
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 70px;
}

.hero-content {
  max-width: 660px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 720px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.7rem, 5.7vw, 5rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.hero-description {
  max-width: 610px;
  margin: 26px 0 0;
  color: var(--text-muted);
  font-size: 1.13rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 21px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--primary);
  color: white;
}

.button-primary:hover {
  background: var(--primary-dark);
}

.button-secondary {
  background: white;
  color: var(--navy);
  border-color: var(--border);
}

.prototype-notice {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ---------------------------------
   Dashboard preview
---------------------------------- */

.hero-visual {
  position: relative;
}

.hero-visual::before {
  position: absolute;
  top: -80px;
  right: -100px;
  width: 380px;
  height: 380px;
  background: var(--primary-light);
  border-radius: 50%;
  content: "";
  filter: blur(3px);
}

.preview-card {
  position: relative;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.preview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.preview-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.preview-header h2 {
  margin: 3px 0 0;
  color: var(--navy);
  font-size: 1.3rem;
}

.status-badge {
  padding: 6px 10px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stat-card {
  padding: 17px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.stat-card span {
  display: block;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.stat-card strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-size: 1.55rem;
}

.activity-box {
  margin-top: 18px;
  padding: 18px;
  background: var(--navy);
  color: white;
  border-radius: 14px;
}

.activity-heading {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
}

.activity-heading strong {
  color: #73dfce;
}

.fake-chart {
  display: flex;
  height: 125px;
  align-items: flex-end;
  gap: 11px;
  margin-top: 20px;
}

.fake-chart span {
  flex: 1;
  min-height: 10px;
  background: linear-gradient(
    to top,
    var(--primary),
    #78e5d3
  );
  border-radius: 6px 6px 2px 2px;
}

/* ---------------------------------
   Role section
---------------------------------- */

.roles-section {
  padding: 100px 0;
  background: var(--surface);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 45px;
}

.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.section-heading > p:last-child {
  color: var(--text-muted);
}

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

.role-card {
  padding: 28px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.role-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(18, 35, 63, 0.08);
}

.role-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 25px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 800;
}

.role-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.3rem;
}

.role-card p {
  min-height: 78px;
  color: var(--text-muted);
}

.role-card a {
  color: var(--primary);
  font-weight: 700;
}

/* ---------------------------------
   Footer
---------------------------------- */

.site-footer {
  padding: 28px 0;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.85rem;
}

/* ---------------------------------
   Responsive design
---------------------------------- */

@media (max-width: 900px) {
  .main-navigation a:not(.navigation-button) {
    display: none;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 620px;
  }

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

  .role-card p {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .hero-section {
    padding: 65px 0 80px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .preview-card {
    padding: 18px;
  }

  .footer-content {
    flex-direction: column;
  }
}
  /* ---------------------------------
   Demo login page
---------------------------------- */

.login-page {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(8, 127, 114, 0.11),
      transparent 35%
    ),
    var(--background);
}

.back-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.back-link:hover {
  color: var(--primary);
}

.login-main {
  display: flex;
  min-height: calc(100vh - 150px);
  align-items: center;
  padding: 70px 0;
}

.login-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 75px;
}

.login-introduction {
  max-width: 530px;
}

.login-introduction h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.login-introduction > p:not(.eyebrow) {
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.prototype-information {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 32px;
  padding: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--primary-light);
  border-radius: 12px;
}

.information-icon {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-weight: 800;
}

.prototype-information strong {
  color: var(--navy);
}

.prototype-information p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.role-login-panel {
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.login-panel-heading {
  margin-bottom: 22px;
}

.login-panel-heading p {
  margin: 0;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.login-panel-heading h2 {
  margin: 4px 0 0;
  color: var(--navy);
  font-size: 1.7rem;
}

.login-role-list {
  display: grid;
  gap: 13px;
}

.login-role-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.login-role-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(18, 35, 63, 0.07);
}

.login-role-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 800;
}

.login-role-content h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.05rem;
}

.login-role-content p {
  margin: 4px 0;
  color: var(--text-muted);
  font-size: 0.83rem;
  line-height: 1.45;
}

.demo-email {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
}

.role-login-button {
  padding: 9px 15px;
  background: var(--navy);
  color: white;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.role-login-button:hover {
  background: var(--primary);
}

@media (max-width: 900px) {
  .login-layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .login-introduction {
    max-width: 680px;
  }
}

@media (max-width: 560px) {
  .login-main {
    padding: 45px 0;
  }

  .back-link {
    font-size: 0;
  }

  .back-link::after {
    content: "← Home";
    font-size: 0.85rem;
  }

  .role-login-panel {
    padding: 18px;
  }

  .login-role-card {
    grid-template-columns: auto 1fr;
  }

  .role-login-button {
    grid-column: 1 / -1;
    width: 100%;
  }
}
/* CrossLink language selector */

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #ffffff;
}

.language-button {
  min-width: 32px;
  padding: 6px 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.language-button:hover {
  background: #f2f5f8;
}

.language-button.active {
  background: #173f5f;
  color: #ffffff;
}