/* ============================================================
   luminaess — Design System
   Brand: PINNETX PTY LTD
   Palette extracted from official logo
   ============================================================ */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* Brand colours (from logo) */
  --brand-blue:      #0E4FA8;
  --brand-blue-600:  #0C4494;
  --brand-blue-400:  #2A6BC4;
  --brand-blue-200:  #9DBCE4;
  --brand-yellow:    #FCB428;
  --brand-yellow-400:#FFC85C;
  --brand-teal:      #0A9BA8;
  --brand-green:     #0CA890;

  /* Neutrals */
  --navy-900:  #05132E;
  --navy-800:  #071A3D;
  --navy-700:  #0A2450;
  --navy-600:  #123168;
  --ink:       #0F1B2D;
  --ink-soft:  #334762;
  --muted:     #6B7C93;
  --line:      #E3E8EF;
  --surface:   #F5F7FA;
  --surface-2: #EDF1F7;
  --white:     #FFFFFF;

  /* Gradients */
  --grad-brand:  linear-gradient(135deg, #05132E 0%, #0A2450 45%, #0E4FA8 100%);
  --grad-deep:   linear-gradient(160deg, #05132E 0%, #071A3D 55%, #0A2450 100%);
  --grad-accent: linear-gradient(90deg, #0E4FA8 0%, #0A9BA8 100%);
  --grad-warm:   linear-gradient(90deg, #FCB428 0%, #FFD070 100%);

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", Arial, sans-serif;
  --fs-hero: clamp(2.1rem, 4.6vw, 3.9rem);
  --fs-h2:   clamp(1.6rem, 2.9vw, 2.5rem);
  --fs-h3:   clamp(1.15rem, 1.6vw, 1.45rem);
  --fs-body: clamp(0.95rem, 1.05vw, 1.06rem);
  --fs-sm:   0.875rem;

  /* Space */
  --sp-1: 0.5rem;  --sp-2: 1rem;   --sp-3: 1.5rem;
  --sp-4: 2rem;    --sp-5: 3rem;   --sp-6: 4.5rem;  --sp-7: 6.5rem;
  --wrap: 1240px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);

  /* Effects */
  --radius:    14px;
  --radius-lg: 22px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 3px rgba(5,19,46,.06), 0 1px 2px rgba(5,19,46,.04);
  --shadow:    0 8px 26px rgba(5,19,46,.09);
  --shadow-lg: 0 22px 60px rgba(5,19,46,.16);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- 2. Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.68;
  color: var(--ink-soft);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .22s var(--ease); }
h1,h2,h3,h4 { color: var(--ink); margin: 0 0 var(--sp-2); line-height: 1.2; font-weight: 700; letter-spacing: -.022em; }
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p  { margin: 0 0 var(--sp-2); }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 3px solid var(--brand-yellow); outline-offset: 3px; border-radius: 4px; }

/* ---------- 3. Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sp-7); }
.section--tight { padding-block: var(--sp-6); }
.section--surface { background: var(--surface); }
.section--dark { background: var(--grad-deep); color: rgba(255,255,255,.78); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .lead { color: rgba(255,255,255,.72); }
.center { text-align: center; }
.lead { font-size: clamp(1rem, 1.25vw, 1.16rem); color: var(--muted); max-width: 62ch; }
.center .lead { margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--brand-blue);
  margin-bottom: var(--sp-2);
}
.eyebrow::before {
  content: ""; width: 26px; height: 3px; border-radius: 2px;
  background: var(--grad-warm);
}
.section--dark .eyebrow { color: var(--brand-yellow-400); }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .82rem 1.7rem; border-radius: 100px;
  font-size: .94rem; font-weight: 650; letter-spacing: .005em;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
              background .22s var(--ease), color .22s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--brand-blue); color: #fff; box-shadow: 0 6px 18px rgba(14,79,168,.28); }
.btn--primary:hover { background: var(--brand-blue-600); box-shadow: 0 10px 26px rgba(14,79,168,.36); }
.btn--yellow { background: var(--brand-yellow); color: var(--navy-900); box-shadow: 0 6px 18px rgba(252,180,40,.32); }
.btn--yellow:hover { background: var(--brand-yellow-400); }
.btn--ghost { border: 1.5px solid rgba(255,255,255,.4); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.7); }
.btn--outline { border: 1.5px solid var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.btn--sm { padding: .55rem 1.15rem; font-size: .86rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-3); }

/* Text link with arrow */
.tlink { display: inline-flex; align-items: center; gap: .4rem; font-weight: 650; color: var(--brand-blue); }
.tlink::after { content: "→"; transition: transform .22s var(--ease); }
.tlink:hover::after { transform: translateX(4px); }
.section--dark .tlink { color: var(--brand-yellow-400); }

/* ---------- 5. Header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s var(--ease), box-shadow .3s var(--ease),
              border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.hdr__inner {
  display: flex; align-items: center; gap: var(--sp-4);
  height: 76px;
}
.hdr.is-solid {
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 22px rgba(5,19,46,.06);
}

/* Logo */
.brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand__mark { height: 40px; width: auto; }
.brand__mark--white { display: none; }
.brand__text {
  display: flex; flex-direction: column; line-height: 1;
}
.brand__name {
  font-size: 1.32rem; font-weight: 750; letter-spacing: -.03em;
  color: var(--brand-blue);
}
.brand__sub {
  font-size: .58rem; font-weight: 700; letter-spacing: .19em;
  text-transform: uppercase; color: var(--muted); margin-top: 3px;
}
.hdr:not(.is-solid) .brand__name { color: #fff; }
.hdr:not(.is-solid) .brand__sub { color: rgba(255,255,255,.6); }
.hdr:not(.is-solid) .brand__mark--color { display: none; }
.hdr:not(.is-solid) .brand__mark--white { display: block; }

/* Nav */
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: .3rem; }
.nav__item { position: relative; }
.nav__link {
  display: flex; align-items: center; gap: .32rem;
  padding: .6rem .82rem; border-radius: 8px;
  font-size: .93rem; font-weight: 600; color: var(--ink-soft);
}
.nav__link:hover { color: var(--brand-blue); background: var(--surface); }
.hdr:not(.is-solid) .nav__link { color: rgba(255,255,255,.9); }
.hdr:not(.is-solid) .nav__link:hover { color: #fff; background: rgba(255,255,255,.12); }
.nav__link[aria-expanded="true"] { color: var(--brand-blue); }
.hdr:not(.is-solid) .nav__link[aria-expanded="true"] { color: #fff; }

/* caret */
.caret { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .25s var(--ease); opacity: .65; }
.nav__item.is-open .caret { transform: rotate(-135deg) translateY(-2px); }

/* Dropdown */
.drop {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: .55rem;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.nav__item.is-open .drop { opacity: 1; visibility: visible; transform: translateY(0); }
.drop__link {
  display: block; padding: .62rem .82rem; border-radius: var(--radius-sm);
  font-size: .91rem; font-weight: 550; color: var(--ink-soft);
}
.drop__link:hover { background: var(--surface); color: var(--brand-blue); }
.drop__link small { display: block; font-size: .76rem; color: var(--muted); font-weight: 450; margin-top: 1px; }

/* Header CTA + burger */
.hdr__cta { margin-left: .6rem; }
.burger { display: none; width: 42px; height: 42px; border-radius: 10px; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; transition: .25s var(--ease); }
.hdr:not(.is-solid) .burger span { background: #fff; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  padding-block: 8rem 5rem; overflow: hidden;
  background: var(--grad-deep);
}
.hero__bg {
  position: absolute; inset: 0; opacity: .5;
}
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(5,19,46,.94) 0%, rgba(5,19,46,.82) 42%, rgba(5,19,46,.45) 100%);
}
.hero__inner { position: relative; z-index: 2; max-width: 720px; color: #fff; }
.hero h1 { color: #fff; margin-bottom: var(--sp-3); }
.hero__lead { font-size: clamp(1.02rem, 1.35vw, 1.2rem); color: rgba(255,255,255,.8); max-width: 56ch; }
.hero__badges { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); margin-top: var(--sp-4); }
.hero__badge { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: rgba(255,255,255,.75); }
.hero__badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-yellow); flex-shrink: 0; }

/* ---------- 7. Cards ---------- */
.grid { display: grid; gap: var(--sp-3); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__media { aspect-ratio: 4/3; overflow: hidden; background: var(--surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.card:hover .card__media img { transform: scale(1.055); }
.card__body { padding: var(--sp-3); flex: 1; display: flex; flex-direction: column; }
.card__body h3 { margin-bottom: .4rem; }
.card__body p { font-size: .94rem; color: var(--muted); margin-bottom: var(--sp-2); }
.card__body .tlink { margin-top: auto; font-size: .92rem; }

/* Wide feature card (2-col image + text) */
.feature {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center;
  gap: var(--sp-5); background: #fff; border-radius: var(--radius-lg); overflow: hidden;
}
.feature--flip .feature__media { order: 2; }
.feature__media { aspect-ratio: 4/3.2; overflow: hidden; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__body { padding: var(--sp-4) var(--sp-4) var(--sp-4) 0; }
.feature--flip .feature__body { padding: var(--sp-4) 0 var(--sp-4) var(--sp-4); }

/* Solution tiles (dark, big) */
.tile {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  min-height: 380px; display: flex; align-items: flex-end;
  color: #fff; background: var(--navy-800);
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,19,46,.92) 8%, rgba(5,19,46,.35) 55%, rgba(5,19,46,.05) 100%); }
.tile:hover img { transform: scale(1.06); }
.tile__body { position: relative; z-index: 2; padding: var(--sp-4); }
.tile__body h3 { color: #fff; margin-bottom: .35rem; }
.tile__body p { color: rgba(255,255,255,.78); font-size: .94rem; margin-bottom: var(--sp-2); }

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
.stat { text-align: center; padding: var(--sp-3) var(--sp-2); }
.stat__num { font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 780; letter-spacing: -.035em; color: #fff; line-height: 1; }
.stat__num span { color: var(--brand-yellow); }
.stat__label { font-size: .86rem; color: rgba(255,255,255,.62); margin-top: .55rem; }

/* Step list */
.steps { counter-reset: s; display: grid; gap: var(--sp-3); grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding-top: var(--sp-4); }
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-size: 1.5rem; font-weight: 780; letter-spacing: -.04em;
  color: var(--brand-blue); opacity: .28;
}
.step h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.step p { font-size: .9rem; color: var(--muted); margin: 0; }

/* CTA band */
.cta {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--grad-accent); padding: var(--sp-6) var(--sp-5);
  text-align: center; color: #fff;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.86); max-width: 56ch; margin-inline: auto; }
.cta .btn-row { justify-content: center; }

/* ---------- 8. Footer ---------- */
.ftr { background: var(--navy-900); color: rgba(255,255,255,.6); padding-top: var(--sp-6); font-size: .9rem; }
.ftr__top { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: var(--sp-4); padding-bottom: var(--sp-5); }
.ftr__brand .brand__name { color: #fff; }
.ftr__brand .brand__sub { color: rgba(255,255,255,.45); }
.ftr__about { margin-top: var(--sp-3); max-width: 34ch; font-size: .88rem; line-height: 1.65; }
.ftr h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .11em; margin-bottom: var(--sp-2); font-weight: 700; }
.ftr li { margin-bottom: .55rem; }
.ftr a:hover { color: var(--brand-yellow); }
.ftr__bottom {
  border-top: 1px solid rgba(255,255,255,.09); padding-block: var(--sp-3);
  display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: space-between;
  font-size: .84rem; color: rgba(255,255,255,.45);
}
.ftr__bottom a:hover { color: var(--brand-yellow); }

/* ---------- 9. Page hero (inner pages) ---------- */
.phero { background: var(--grad-deep); color: #fff; padding-block: 9.5rem 4.5rem; position: relative; overflow: hidden; }
.phero::after { content: ""; position: absolute; right: -8%; top: -30%; width: 46%; height: 160%; background: radial-gradient(circle, rgba(14,79,168,.5) 0%, transparent 68%); }
.phero__inner { position: relative; z-index: 2; }
.phero h1 { color: #fff; margin-bottom: var(--sp-2); }
.phero p { color: rgba(255,255,255,.74); max-width: 60ch; }
.crumb { font-size: .85rem; color: rgba(255,255,255,.55); margin-bottom: var(--sp-2); }
.crumb a:hover { color: var(--brand-yellow); }

/* ---------- 10. Reveal animation ----------
   Scoped to .js so that if JavaScript fails to load, content stays visible.
   The <head> of every page adds class="js" to <html> inline. */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 11. Responsive ---------- */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps   { grid-template-columns: repeat(2, 1fr); }
  .ftr__top { grid-template-columns: repeat(3, 1fr); }
  .ftr__brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav, .hdr__cta { display: none; }
  .burger { display: block; margin-left: auto; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature--flip .feature__media { grid-template-columns: 1fr; }
  .feature--flip .feature__media { order: 0; }
  .feature__body, .feature--flip .feature__body { padding: 0 var(--sp-3) var(--sp-3); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .ftr__top { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: auto; padding-block: 7rem 4rem; }
  .section { padding-block: var(--sp-6); }
}

/* ---------- 12. Mobile drawer ---------- */
.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(88vw, 380px); z-index: 200;
  background: #fff; box-shadow: -14px 0 50px rgba(5,19,46,.2);
  transform: translateX(102%); transition: transform .32s var(--ease);
  padding: var(--sp-4) var(--sp-3); overflow-y: auto;
}
.drawer.is-open { transform: none; }
.drawer__close { position: absolute; top: var(--sp-2); right: var(--sp-2); width: 40px; height: 40px; font-size: 1.5rem; color: var(--muted); }
.drawer nav { margin-top: var(--sp-4); }
.drawer details { border-bottom: 1px solid var(--line); }
.drawer summary { padding: .9rem 0; font-weight: 650; color: var(--ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary::after { content: "+"; color: var(--brand-blue); font-weight: 700; }
.drawer details[open] summary::after { content: "−"; }
.drawer details a { display: block; padding: .55rem 0 .55rem var(--sp-2); font-size: .93rem; color: var(--muted); }
.drawer details a:hover { color: var(--brand-blue); }
.drawer > nav > a { display: block; padding: .9rem 0; font-weight: 650; color: var(--ink); border-bottom: 1px solid var(--line); }
.scrim { position: fixed; inset: 0; z-index: 150; background: rgba(5,19,46,.5); opacity: 0; visibility: hidden; transition: .3s var(--ease); }
.scrim.is-open { opacity: 1; visibility: visible; }
