@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-600.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 700; font-display: swap; src: url("fonts/ibm-plex-sans-700.woff2") format("woff2"); }

:root {
  --midnight: #182c41;
  --card: #172a3b;
  --deep: #101d2a;
  --tile: #253f55;
  --steel: #486c8d;
  --steel-dark: #3a5a78;
  --ice: #adcbe1;
  --paper: #fdfdf9;
  --paper-alt: #f3f4ee;
  --border: #e2e4dc;
  --text: #182c41;
  --muted: #56636f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(24, 44, 65, .05), 0 6px 20px rgba(24, 44, 65, .07);
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; color: var(--midnight); font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -.015em; }
h3 { font-size: 1.15rem; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
a { color: var(--steel-dark); }
img { max-width: 100%; }

.container { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }

/* "01 | LABEL" eyebrow, as on the brand sheet */
.eyebrow {
  display: flex;
  align-items: center;
  gap: .7em;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--midnight);
  margin-bottom: 1em;
}
.eyebrow span {
  color: var(--steel);
  font-weight: 500;
  letter-spacing: .04em;
  padding-right: .7em;
  border-right: 1px solid #c9ced3;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: .8em 1.5em;
  border-radius: 9px;
  background: var(--midnight);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--midnight);
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover, .btn:focus-visible { background: var(--steel-dark); border-color: var(--steel-dark); }
.btn-ghost { background: transparent; color: var(--midnight); border-color: #c4cbd1; }
.btn-ghost:hover, .btn-ghost:focus-visible { background: transparent; color: var(--midnight); border-color: var(--midnight); }
.btn-small { padding: .45em 1.1em; font-size: .95rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(253, 253, 249, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.logo { display: flex; align-items: center; }
.logo img { height: 32px; width: auto; display: block; }
.logo .logo-mark { display: none; }
.nav { display: flex; align-items: center; gap: 1.8rem; list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--steel); }

/* Hero */
.hero { padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3.5rem, 7vw, 5.5rem); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: 3.5rem; align-items: center; }
.lead { font-size: 1.2rem; max-width: 34em; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; list-style: none; margin: 2.4rem 0 0; padding: 0; color: var(--muted); font-size: .95rem; }
.hero-facts li { display: flex; align-items: center; gap: .5rem; }
.hero-facts li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--steel); }

/* Hero showcase: an app window in the brand's dark "in-app" style */
.window {
  background: var(--card);
  border-radius: 18px;
  padding: 1.1rem 1.25rem 1.25rem;
  box-shadow: 0 24px 60px rgba(16, 29, 42, .28), 0 2px 6px rgba(16, 29, 42, .2);
  color: #d5e0ea;
  transform: rotate(1.5deg);
}
.window-bar { display: flex; align-items: center; gap: .45rem; padding-bottom: .9rem; border-bottom: 1px solid rgba(173, 203, 225, .14); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a5268; }
.window-bar p { margin: 0 0 0 .6rem; font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #8ea6bb; }
.app-list { list-style: none; margin: 0; padding: .6rem 0; }
.app-list li { display: flex; align-items: center; gap: .9rem; padding: .6rem .5rem; border-radius: 10px; }
.app-list li:first-child { background: rgba(173, 203, 225, .08); }
.app-list strong { display: block; color: var(--paper); font-weight: 600; line-height: 1.25; }
.app-list small { color: #8ea6bb; font-size: .82rem; }
.publisher { display: flex; align-items: center; gap: 1rem; margin-top: .4rem; padding: 1rem 1rem; border-radius: 12px; background: rgba(37, 63, 85, .55); }
.publisher img { width: 56px; height: 56px; display: block; }
.publisher small { display: block; color: #b8c8d6; font-size: .85rem; }
.publisher strong { display: block; color: var(--paper); font-size: 1.35rem; font-weight: 700; line-height: 1.2; }

/* Front-page hero panel: stacked logo on a faint grid */
.brand-panel {
  background-color: var(--card);
  background-image: linear-gradient(rgba(173, 203, 225, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(173, 203, 225, .05) 1px, transparent 1px);
  background-size: 28px 28px;
  border-radius: 18px;
  padding: 2.75rem 1.5rem 1.25rem;
  box-shadow: 0 24px 60px rgba(16, 29, 42, .28), 0 2px 6px rgba(16, 29, 42, .2);
}
.brand-panel > img { display: block; width: min(260px, 70%); height: auto; margin: 0 auto 2.25rem; }
.brand-panel .app-list { padding: 0; border-top: 1px solid rgba(173, 203, 225, .14); padding-top: .8rem; }
.brand-panel .app-list li:first-child { background: none; }

.app-tile {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--tile);
  display: grid;
  place-items: center;
}
.app-tile svg { width: 22px; height: 22px; fill: none; stroke: var(--ice); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--paper-alt); border-block: 1px solid var(--border); }
.section-head { max-width: 700px; margin-bottom: 2.75rem; }
.section-head p:last-child { color: var(--muted); font-size: 1.1rem; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.card:hover { transform: translateY(-3px); border-color: #cdd3d8; box-shadow: 0 2px 4px rgba(24, 44, 65, .06), 0 14px 30px rgba(24, 44, 65, .1); }
.card p { color: var(--muted); margin: 0; }

.product { display: flex; flex-direction: column; gap: 1rem; }
.product-head { display: flex; align-items: center; gap: 1rem; }
.product-head h3 { margin: 0 0 .25rem; }
.product .app-tile { width: 52px; height: 52px; border-radius: 13px; }
.product .app-tile svg { width: 26px; height: 26px; }
.platforms { display: flex; gap: .4rem; margin: 0; }
.platforms span {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--steel-dark);
  background: #e6edf3;
  border-radius: 5px;
  padding: .15em .55em;
}
.specs { list-style: none; margin: auto 0 0; padding: 1rem 0 0; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; font-size: .88rem; color: var(--muted); }
.specs li strong { color: var(--midnight); font-weight: 600; }

.icon {
  width: 46px;
  height: 46px;
  padding: 11px;
  margin-bottom: 1rem;
  border-radius: 11px;
  background: #e6edf3;
  fill: none;
  stroke: var(--steel-dark);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.point { border-left: 3px solid var(--steel); padding-left: 1.2rem; }
.point p { color: var(--muted); margin: 0; }

.about { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; }
.about p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }

/* Contact */
.section-cta { background: var(--card); color: #c3d2df; }
.section-cta h2 { color: var(--paper); }
.section-cta .eyebrow { color: var(--paper); }
.section-cta .eyebrow span { color: var(--ice); border-color: rgba(173, 203, 225, .3); }
.cta-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.contact li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(37, 63, 85, .55);
  border: 1px solid rgba(173, 203, 225, .14);
  border-radius: 10px;
  color: var(--paper);
}
.contact span { color: #8ea6bb; }
.contact a { color: var(--paper); font-weight: 600; text-decoration: none; }
.contact a:hover { text-decoration: underline; }

/* Footer */
.site-footer { background: var(--deep); color: #8ea2b5; font-size: .9rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.6rem 0; }
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-brand img { height: 22px; width: auto; display: block; }
.site-footer p { margin: 0; }
.site-footer a { color: #c3d2df; }

a:focus-visible, .btn:focus-visible { outline: 3px solid #e0b049; outline-offset: 2px; }

/* Brand assets page */
.page-head { padding: clamp(3rem, 7vw, 5rem) 0 1rem; }
.assets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.asset { margin: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.asset-preview { display: grid; place-items: center; min-height: 220px; padding: 2.5rem; background: var(--paper); border-bottom: 1px solid var(--border); }
.asset-preview img { max-height: 120px; width: auto; }
.asset-preview.on-dark { background: var(--card); }
.asset-preview.on-steel { background: var(--steel); }
.asset-preview.on-grid { background: repeating-conic-gradient(#eef0ea 0 25%, #fff 0 50%) 0 0 / 22px 22px; }
.asset-preview .tall { max-height: 150px; }
.asset-body { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; }
.asset-body h3 { margin: 0; font-size: 1rem; }
.asset-body p { margin: 0; color: var(--muted); font-size: .9rem; }
.downloads { display: flex; gap: .5rem; flex: none; }
.downloads a { font-size: .85rem; font-weight: 600; text-decoration: none; border: 1px solid var(--border); border-radius: 7px; padding: .3em .7em; color: var(--midnight); }
.downloads a:hover { border-color: var(--midnight); }

.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.swatch { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.swatch-color { height: 96px; }
.swatch div:last-child { padding: .75rem .9rem; font-size: .85rem; color: var(--muted); }
.swatch strong { display: block; color: var(--midnight); font-size: .95rem; }
.swatch code { font-size: .85rem; }
.c-midnight { background: #182c41; }
.c-steel { background: #486c8d; }
.c-ice { background: #adcbe1; }
.c-tile { background: #253f55; }
.c-card { background: #172a3b; }
.c-paper { background: #fdfdf9; border-bottom: 1px solid var(--border); }

.type-sample { display: grid; gap: 1.2rem; }
.type-sample p { margin: 0; display: flex; align-items: baseline; gap: 1.5rem; border-bottom: 1px solid var(--border); padding-bottom: 1.2rem; }
.type-sample span { flex: none; width: 9rem; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.type-sample b { color: var(--midnight); }
.type-sample .w700 { font-size: 2rem; font-weight: 700; }
.type-sample .w500 { font-size: 2rem; font-weight: 500; }
.type-sample .w400 { font-size: 1.2rem; font-weight: 400; }

.rules { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.rules li { margin-bottom: .5rem; }
.rules strong { color: var(--midnight); }

@media (max-width: 1000px) {
  .grid, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .swatches { grid-template-columns: repeat(3, 1fr); }
  .hero-inner, .about, .cta-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .window { max-width: 480px; transform: none; }
  .brand-panel { max-width: 480px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid, .grid-2, .grid-4, .assets { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(2, 1fr); }
  .nav li:not(:last-child) { display: none; }
  .logo .logo-full { display: none; }
  .logo .logo-mark { display: block; height: 30px; }
  .contact li, .asset-body { flex-direction: column; align-items: flex-start; gap: .4rem; }
  .type-sample p { flex-direction: column; gap: .3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
  .card:hover { transform: none; }
}
