/* Composia holding site: v02 dark theme
   Colours taken from the Composia brand palette (Resources/colour-poc.html). */

:root {
  color-scheme: dark;

  --brand-50:  #EBF2FA;
  --brand-100: #C4D9EE;
  --brand-200: #8FB8DB;
  --brand-400: #51749F;
  --brand-600: #234A77;
  --brand-800: #1A3D68;
  --brand-900: #122E50;
  --brand-950: #0B1E36;
  --brand-975: #07152A;

  --surface-page:  var(--brand-950);
  --surface-hero:  var(--brand-900);
  --surface-card:  #10284A;
  --border:        #22446F;

  --text-primary:   #FFFFFF;
  --text-secondary: #B9CCE2;
  --accent:         #FF3B3B;

  /* Logo row keeps the original artwork colours on white */
  --logo-ground:  #FFFFFF;
  --logo-name:    #000000;
  --logo-tagline: #959EA9;

  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--surface-page);
}

.container {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

h1, h2, h3 {
  line-height: 1.2;
  margin: 0;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--brand-100);
}

a:focus-visible {
  outline: 3px solid var(--brand-200);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Logo row ---------- */

.brand-bar {
  background: var(--logo-ground);
  padding-block: clamp(2.5rem, 7vw, 4rem);
}

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

.hero {
  background:
    radial-gradient(ellipse 80% 70% at 85% 0%, rgba(81, 116, 159, 0.28), transparent 70%),
    linear-gradient(180deg, var(--surface-hero), var(--surface-page));
  border-bottom: 1px solid var(--border);
  padding-block: clamp(3rem, 8vw, 5rem);
}

/* Logo lockup, rebuilt from ComposiaIconAndText.svg so the text stays crisp and selectable.
   --s drives the whole lockup's size. */
.lockup {
  --s: clamp(3.25rem, 13vw, 6.5rem);
  display: inline-grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto auto;
  column-gap: calc(var(--s) * 0.03);
  align-items: center;
  margin: 0;
  font-weight: 700;
}

.lockup-icon {
  grid-row: 1;
  grid-column: 1;
  height: calc(var(--s) * 0.92);
  width: auto;
  display: block;
}

/* Icon intro animation, based on Resources/loader-poc.html.
   The six panels pulse clockwise for two cycles when the page opens,
   then each settles to full opacity in turn and stays still. */
.lockup-icon {
  --anim-cycle: 2.4s;
  --anim-cycles: 2;
  --anim-dim: 0.18;
  --anim-start: 0.3s;
}

.cp {
  --d: calc(var(--anim-start) + var(--i) * var(--anim-cycle) / 6);
  animation:
    composia-wave var(--anim-cycle) ease-in-out var(--d) var(--anim-cycles) backwards,
    composia-settle 0.6s ease-out calc(var(--d) + var(--anim-cycle) * var(--anim-cycles)) 1 forwards;
}

.cp0 { --i: 0; }
.cp1 { --i: 1; }
.cp2 { --i: 2; }
.cp3 { --i: 3; }
.cp4 { --i: 4; }
.cp5 { --i: 5; }

@keyframes composia-wave {
  0%   { opacity: var(--anim-dim); }
  18%  { opacity: 1; }
  55%  { opacity: 1; }
  82%  { opacity: var(--anim-dim); }
  100% { opacity: var(--anim-dim); }
}

@keyframes composia-settle {
  from { opacity: var(--anim-dim); }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .cp { animation: none; }
}

.lockup-name {
  grid-row: 1;
  grid-column: 2;
  font-size: var(--s);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--logo-name);
  /* Nudge so the icon sits against the cap height, as in the original artwork */
  margin-top: calc(var(--s) * -0.08);
}

.lockup-tagline {
  grid-row: 2;
  grid-column: 2;
  justify-self: end;
  font-size: calc(var(--s) * 0.3);
  line-height: 1.1;
  color: var(--logo-tagline);
  margin-top: calc(var(--s) * 0.12);
}

.lockup-swoosh {
  grid-row: 3;
  grid-column: 2;
  justify-self: end;
  width: 58%;
  height: calc(var(--s) * 0.09);
  margin-top: calc(var(--s) * 0.02);
  display: block;
}

.coming-soon {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-50);
  background: rgba(143, 184, 219, 0.12);
  border: 1px solid rgba(143, 184, 219, 0.35);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.25rem;
}

.coming-soon-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--accent);
  transform: rotate(45deg);
}

.hero-lead {
  max-width: 38rem;
  font-size: clamp(1.125rem, 2.4vw, 1.375rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.button {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--brand-800);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.button:hover {
  background: var(--brand-100);
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(3rem, 8vw, 5rem);
}

.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: var(--text-primary);
  margin-bottom: 1.75rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-top: 4px solid var(--brand-200);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2rem);
}

.card h3 {
  font-size: 1.35rem;
  color: var(--text-primary);
  margin-block: 0.75rem 0.75rem;
}

.card p {
  color: var(--text-secondary);
}

.card p:last-child {
  margin-bottom: 0;
}

.card-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-50);
  background: var(--brand-600);
  border: 1px solid var(--brand-400);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
}

.card-label--soon {
  color: var(--brand-100);
  background: transparent;
  border-style: dashed;
  border-color: var(--brand-200);
}

.card-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.card-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.6rem;
  color: var(--text-secondary);
}

.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--brand-200);
  transform: rotate(45deg);
}

.card-list strong {
  color: var(--text-primary);
}

/* ---------- Contact ---------- */

.section--contact {
  background: var(--surface-hero);
  border-top: 1px solid var(--border);
}

.contact-text {
  max-width: 36rem;
  color: var(--text-secondary);
}

.contact-email {
  display: inline-block;
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  font-weight: 600;
  color: var(--text-primary);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  overflow-wrap: anywhere;
}

.contact-email:hover {
  color: var(--brand-100);
}

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

.footer {
  background: var(--brand-975);
  border-top: 1px solid var(--border);
  color: var(--brand-200);
  font-size: 0.875rem;
  line-height: 1.6;
  padding-block: 2.5rem;
}

.footer p {
  max-width: 48rem;
  margin-bottom: 0.75rem;
}

.footer-copy {
  color: var(--brand-100);
  margin-bottom: 0;
}
