:root {
  --x2-blue-deep: #123a5a;
  --x2-blue-deeper: #0d304b;
  --x2-blue-light: #d9edf8;

  --x2-neutral: #f5f6f4;
  --x2-catalog: #eef2f4;

  --x2-green-accent: #bfe8cc;

  --x2-white: #ffffff;
  --x2-black: #090a0b;

  --x2-ink: #17191c;
  --x2-ink-soft: #4f5961;
  --x2-ink-muted: #717981;

  --x2-border: #d8dee3;
  --x2-border-dark: rgba(255, 255, 255, 0.12);

  --x2-content-width: 1180px;

  --x2-radius-small: 6px;
  --x2-radius: 10px;
}


/* ==========================================================
   RESET
   ========================================================== */

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;

  background: var(--x2-white);

  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;

  min-width: 320px;

  background: var(--x2-white);
  color: var(--x2-ink);

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    system-ui,
    sans-serif;

  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

p,
h1,
h2,
h3,
ul {
  margin: 0;
}

ul {
  padding: 0;
}


/* ==========================================================
   TYPOGRAPHY
   ========================================================== */

h1 {
  font-size: 46px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h2 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.section-label,
.card-label,
.footer-title {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.06em;
}


/* ==========================================================
   GLOBAL
   ========================================================== */

.container {
  width: min(
    calc(100% - 40px),
    var(--x2-content-width)
  );

  margin-inline: auto;
}

.home-section {
  padding-block: 72px;
}

.section-heading {
  max-width: 720px;

  margin-bottom: 32px;
}

.section-heading h2 {
  margin-top: 7px;
}


/* ==========================================================
   HEADER
   ========================================================== */

.site-header {
  background: var(--x2-blue-deep);
  color: var(--x2-white);

  border-bottom: 1px solid var(--x2-border-dark);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;

  gap: 32px;

  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: baseline;

  gap: 6px;

  white-space: nowrap;
}

.brand-x2 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.brand-records {
  font-size: 12px;
  font-weight: 500;
  line-height: 1;

  letter-spacing: 0.06em;

  opacity: 0.72;
}

.main-navigation {
  display: flex;
  justify-content: center;
  align-items: center;

  gap: 28px;
}

.main-navigation a,
.account-navigation a {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.main-navigation a {
  color: rgba(255, 255, 255, 0.82);
}

.account-navigation {
  display: flex;
  align-items: center;

  gap: 18px;
}

.account-navigation > a:first-child {
  color: rgba(255, 255, 255, 0.86);
}

.button-signup {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 7px 14px;

  border-radius: var(--x2-radius-small);

  background: var(--x2-green-accent);
  color: var(--x2-ink);
}


/* ==========================================================
   HERO
   ========================================================== */

.home-hero {
  background: var(--x2-blue-deep);
  color: var(--x2-white);

  padding-block: 70px 76px;
}

.home-hero .section-label {
  margin-bottom: 10px;

  color: rgba(255, 255, 255, 0.58);
}

.home-hero h1 {
  max-width: 850px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 12px;

  margin-top: 28px;
}


/* ==========================================================
   BUTTONS
   ========================================================== */

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 40px;

  padding: 9px 17px;

  border-radius: var(--x2-radius-small);

  font-size: 14px;
  font-weight: 500;
}

.button-primary {
  background: var(--x2-green-accent);
  color: var(--x2-ink);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.24);

  color: var(--x2-white);
}


/* ==========================================================
   ACCESS
   ========================================================== */

.access-section {
  background: var(--x2-neutral);
}

.access-section .section-label {
  color: var(--x2-ink-muted);
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));

  gap: 14px;
}

.access-card {
  display: flex;
  flex-direction: column;

  min-height: 244px;

  padding: 24px;

  border: 1px solid var(--x2-border);
  border-radius: var(--x2-radius);

  background: var(--x2-white);
}

.access-card .card-label {
  margin-bottom: 14px;

  color: var(--x2-ink-muted);
}

.access-card h3 {
  margin-bottom: 18px;
}

.access-card p {
  color: var(--x2-ink-soft);
}

.access-card p + p {
  margin-top: 3px;
}

.access-card a {
  margin-top: auto;
  padding-top: 24px;

  font-size: 14px;
  font-weight: 500;

  color: var(--x2-blue-deep);
}


/* ==========================================================
   X2 PLATFORM
   ========================================================== */

.platform-section {
  background: var(--x2-blue-light);
}

.platform-section .section-label {
  color: rgba(23, 25, 28, 0.62);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 16px;
}

.platform-card {
  padding: 28px;

  border: 1px solid rgba(18, 58, 90, 0.14);
  border-radius: var(--x2-radius);

  background: rgba(255, 255, 255, 0.44);
}

.platform-card h3 {
  margin-bottom: 20px;
}

.platform-card ul {
  display: grid;

  gap: 8px;

  list-style: none;

  color: var(--x2-ink-soft);
}

.platform-card li {
  padding-bottom: 8px;

  border-bottom: 1px solid rgba(18, 58, 90, 0.10);
}

.platform-card a {
  display: inline-block;

  margin-top: 24px;

  font-size: 14px;
  font-weight: 500;

  color: var(--x2-blue-deep);
}


/* ==========================================================
   X2 CATALOG
   ========================================================== */

.catalog-section {
  background: var(--x2-catalog);
}

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);

  gap: 56px;

  align-items: start;
}

.catalog-intro .section-label {
  margin-bottom: 7px;

  color: var(--x2-ink-muted);
}

.catalog-intro h2 {
  max-width: 430px;
}

.catalog-functions {
  display: flex;
  flex-wrap: wrap;

  gap: 8px;

  margin-top: 26px;
}

.catalog-functions span {
  display: inline-flex;

  padding: 7px 11px;

  border: 1px solid var(--x2-border);
  border-radius: 999px;

  background: var(--x2-white);

  font-size: 13px;
  font-weight: 500;
}

.catalog-content {
  border: 1px solid var(--x2-border);
  border-radius: var(--x2-radius);

  overflow: hidden;

  background: var(--x2-white);
}

.catalog-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.catalog-content-grid > div {
  padding: 18px 20px;

  border-bottom: 1px solid var(--x2-border);

  font-size: 14px;
  font-weight: 500;
}

.catalog-content-grid > div:nth-child(odd) {
  border-right: 1px solid var(--x2-border);
}

.catalog-content-grid > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}


/* ==========================================================
   CATALOG FLOW
   ========================================================== */

.catalog-flow {
  display: grid;

  grid-template-columns:
    1fr auto
    1fr auto
    1fr auto
    1fr;

  align-items: center;

  gap: 14px;

  margin-top: 42px;
  padding: 22px 24px;

  border: 1px solid var(--x2-border);
  border-radius: var(--x2-radius);

  background: var(--x2-white);
}

.catalog-flow-item {
  text-align: center;

  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.055em;

  color: var(--x2-blue-deep);
}

.catalog-flow-arrow {
  color: var(--x2-ink-muted);
}


/* ==========================================================
   CATALOG EXPORT
   ========================================================== */

.catalog-export {
  display: grid;
  grid-template-columns: 120px 1fr;

  gap: 26px;

  align-items: start;

  margin-top: 18px;
  padding: 22px 24px;

  border: 1px solid var(--x2-border);
  border-radius: var(--x2-radius);

  background: var(--x2-white);
}

.catalog-export .section-label {
  color: var(--x2-ink-muted);
}

.catalog-export p {
  max-width: 680px;

  color: var(--x2-ink-soft);
}


/* ==========================================================
   CATALOG PLANS
   ========================================================== */

.catalog-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 14px;

  margin-top: 18px;
}

.catalog-plan {
  padding: 22px 24px;

  border: 1px solid var(--x2-border);
  border-radius: var(--x2-radius);

  background: var(--x2-white);
}

.catalog-plan .card-label {
  margin-bottom: 8px;

  color: var(--x2-ink-muted);
}

.catalog-link {
  margin-top: 22px;
}

.catalog-link a {
  font-size: 14px;
  font-weight: 600;

  color: var(--x2-blue-deep);
}


/* ==========================================================
   GET STARTED
   ========================================================== */

.get-started-section {
  background: var(--x2-blue-deeper);
  color: var(--x2-white);
}

.get-started-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;

  align-items: center;

  gap: 48px;
}

.get-started-section .section-label {
  margin-bottom: 8px;

  color: rgba(255, 255, 255, 0.54);
}

.get-started-section h2 {
  max-width: 690px;
}

.get-started-actions {
  display: flex;
  align-items: center;

  gap: 12px;
}


/* ==========================================================
   FOOTER
   ========================================================== */

.site-footer {
  background: var(--x2-black);
  color: var(--x2-white);

  padding-block: 50px 24px;
}

.footer-grid {
  display: grid;

  grid-template-columns:
    1.2fr
    1.2fr
    0.9fr
    0.9fr;

  gap: 48px;
}

.footer-product-title {
  margin-bottom: 16px;

  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.035em;

  color: var(--x2-white);
}

.footer-title {
  margin-bottom: 16px;

  color: rgba(255, 255, 255, 0.42);
}

.footer-grid nav {
  display: grid;

  gap: 9px;
}

.footer-grid nav a {
  width: fit-content;

  font-size: 13px;
  font-weight: 400;

  color: rgba(255, 255, 255, 0.68);
}

.footer-product nav a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 20px;

  margin-top: 48px;
  padding-top: 20px;

  border-top: 1px solid rgba(255, 255, 255, 0.10);

  font-size: 12px;

  color: rgba(255, 255, 255, 0.42);
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 1040px) {

  .access-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 760px) {

  body {
    overflow-x: hidden;
  }


  /* --------------------------------------------------------
     HEADER
     -------------------------------------------------------- */

  .header-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;

    gap: 12px;

    padding-block: 12px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;

    justify-self: start;
  }

  .account-navigation {
    grid-column: 2;
    grid-row: 1;

    justify-self: end;

    display: flex;
    align-items: center;

    gap: 9px;

    white-space: nowrap;
  }

  .account-navigation a {
    font-size: 13px;
  }

  .button-signup {
    padding: 6px 10px;
  }

  .main-navigation {
    display: none;
  }


  /* --------------------------------------------------------
     TYPOGRAPHY
     -------------------------------------------------------- */

  h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  h2 {
    font-size: 26px;
  }

  h3 {
    font-size: 18px;
  }

  .container {
    width: calc(100% - 28px);
  }


  /* --------------------------------------------------------
     HERO
     -------------------------------------------------------- */

  .home-hero {
    padding-block: 40px 44px;
  }

  .hero-actions {
    margin-top: 22px;
  }


  /* --------------------------------------------------------
     SECTIONS
     -------------------------------------------------------- */

  .home-section {
    padding-block: 44px;
  }

  .section-heading {
    margin-bottom: 22px;
  }


  /* --------------------------------------------------------
     ACCESS
     -------------------------------------------------------- */

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

    gap: 10px;
  }

  .access-card {
    min-height: 168px;

    padding: 16px;
  }

  .access-card:last-child {
    grid-column: 1 / -1;

    min-height: 138px;
  }

  .access-card .card-label {
    margin-bottom: 8px;

    font-size: 10px;
  }

  .access-card h3 {
    margin-bottom: 8px;
  }

  .access-card p {
    font-size: 13px;
    line-height: 1.4;
  }

  .access-card a {
    margin-top: auto;
    padding-top: 14px;

    font-size: 12px;
  }


  /* --------------------------------------------------------
     X2 PLATFORM
     -------------------------------------------------------- */

  .platform-grid {
    grid-template-columns: 1fr;

    gap: 10px;
  }

  .platform-card {
    padding: 17px 18px;
  }

  .platform-card h3 {
    margin-bottom: 10px;
  }

  .platform-card ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 6px;

    font-size: 12px;
  }

  .platform-card li {
    padding: 7px 5px;

    border: 1px solid rgba(18, 58, 90, 0.10);
    border-radius: var(--x2-radius-small);

    text-align: center;
  }

  .platform-card a {
    margin-top: 13px;

    font-size: 12px;
  }


  /* --------------------------------------------------------
     X2 CATALOG
     -------------------------------------------------------- */

  .catalog-layout {
    grid-template-columns: 1fr;

    gap: 24px;
  }

  .catalog-functions {
    margin-top: 16px;
  }

  .catalog-functions span {
    padding: 5px 9px;

    font-size: 11px;
  }

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

  .catalog-content-grid > div {
    min-height: 50px;

    display: flex;
    align-items: center;

    padding: 12px;

    font-size: 12px;
  }

  .catalog-content-grid > div:nth-child(odd) {
    border-right: 1px solid var(--x2-border);
  }

  .catalog-content-grid > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }


  /* --------------------------------------------------------
     CATALOG FLOW
     -------------------------------------------------------- */

  .catalog-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 8px;

    margin-top: 24px;
    padding: 12px;

    background: transparent;
  }

  .catalog-flow-arrow {
    display: none;
  }

  .catalog-flow-item {
    padding: 11px 6px;

    border: 1px solid var(--x2-border);
    border-radius: var(--x2-radius-small);

    background: var(--x2-white);

    font-size: 10px;
  }


  /* --------------------------------------------------------
     EXPORT
     -------------------------------------------------------- */

  .catalog-export {
    grid-template-columns: 1fr;

    gap: 6px;

    padding: 16px;
  }

  .catalog-export p {
    font-size: 13px;
  }


  /* --------------------------------------------------------
     CATALOG PLANS
     -------------------------------------------------------- */

  .catalog-plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 8px;
  }

  .catalog-plan {
    padding: 14px 8px;

    text-align: center;
  }

  .catalog-plan .card-label {
    margin-bottom: 5px;

    font-size: 9px;
  }

  .catalog-plan h3 {
    font-size: 17px;
  }


  /* --------------------------------------------------------
     GET STARTED
     -------------------------------------------------------- */

  .get-started-inner {
    grid-template-columns: 1fr;

    gap: 20px;
  }

  .get-started-actions {
    display: block;
  }


  /* --------------------------------------------------------
     MOBILE FOOTER — 2 × 2
     -------------------------------------------------------- */

  .site-footer {
    padding-block: 28px 18px;
  }

  .footer-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

    gap: 10px !important;
  }

  .footer-grid > section {
    min-width: 0;

    padding: 16px;

    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;

    background: rgba(255, 255, 255, 0.025);
  }

  .footer-product-title,
  .footer-title {
    min-height: 18px;

    margin-bottom: 11px;

    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;

    letter-spacing: 0.05em;
  }

  .footer-product-title {
    color: var(--x2-white);
  }

  .footer-title {
    color: rgba(255, 255, 255, 0.58);
  }

  .footer-grid nav {
    gap: 6px;
  }

  .footer-grid nav a {
    max-width: 100%;

    font-size: 11px;
    line-height: 1.35;

    overflow-wrap: anywhere;

    color: rgba(255, 255, 255, 0.70);
  }

  .footer-product nav a {
    color: rgba(255, 255, 255, 0.78);
  }

  .footer-bottom {
    margin-top: 18px;
    padding-top: 14px;

    font-size: 10px;
  }

}


/* ==========================================================
   VERY SMALL MOBILE
   ========================================================== */

@media (max-width: 360px) {

  .container {
    width: calc(100% - 22px);
  }

  .brand-x2 {
    font-size: 17px;
  }

  .brand-records {
    font-size: 10px;
  }

  .account-navigation {
    gap: 7px;
  }

  .account-navigation a {
    font-size: 12px;
  }

  .button-signup {
    padding: 5px 8px;
  }

  h1 {
    font-size: 31px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

    gap: 8px !important;
  }

  .footer-grid > section {
    padding: 13px;
  }

  .footer-grid nav a {
    font-size: 10.5px;
  }

}
