/* ═══════════════════════════════════════════════
   public_html/assets/home.css

   aqumo — home page only.

   The home page presents aqumo as one platform for SMEs:
   sector software (arteMES, arteLEX, arteFIN), applied AI,
   private cloud, telecommunications and security, on
   infrastructure we own.

   Loaded AFTER style.css and only by it/index.php and
   en/index.php. Everything here builds on the tokens and
   the atoms already defined in style.css (buttons,
   section-head, dark-section, phases, recog-card, …);
   only what the home page adds lives here.

   No inline style= attributes are used by the new markup,
   in line with the planned removal of 'unsafe-inline'
   from style-src (see .kb/CLAUDE.md).
   ═══════════════════════════════════════════════ */


/* ── HERO VISUAL: the aqumo stack ───────────────
   Six layers read top-down, from the applications a
   user sees to the datacenter we own. Lightness
   increases towards the top, so the foundation is
   the heaviest band. */
.stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stack-layer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 16px 20px;
  border-radius: 6px;
  border: 1px solid transparent;
}
.stack-text { display: flex; flex-direction: column; gap: 3px; }
.stack-n {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.stack-name {
  font-family: var(--f-cond);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.05;
}
.stack-meta {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .6px;
}

.stack-layer.l6 { background: var(--bg-white); border-color: var(--border-blue); box-shadow: 0 18px 44px -30px rgba(10,22,40,.35); }
.stack-layer.l5 { background: var(--blue-50);  border-color: var(--border-blue); }
.stack-layer.l4 { background: var(--blue-100); }
.stack-layer.l3 { background: var(--blue-200); }
.stack-layer.l2 { background: var(--blue-dk); color: #fff; }
.stack-layer.l1 { background: var(--blue-dp); color: #fff; padding: 20px; }

.stack-layer.l6 .stack-n,
.stack-layer.l5 .stack-n,
.stack-layer.l4 .stack-n,
.stack-layer.l3 .stack-n   { color: var(--blue-dk); }
.stack-layer.l6 .stack-meta,
.stack-layer.l5 .stack-meta,
.stack-layer.l4 .stack-meta,
.stack-layer.l3 .stack-meta { color: var(--text-mid); }
.stack-layer.l2 .stack-n,
.stack-layer.l1 .stack-n    { color: var(--blue-200); }
.stack-layer.l2 .stack-meta { color: rgba(255,255,255,.82); }
.stack-layer.l1 .stack-name { font-weight: 800; font-size: 22px; }

.stack-products { display: flex; flex-wrap: wrap; gap: 6px; }
.stack-product {
  font-family: var(--f-cond);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  background: var(--blue-50);
  border: 1px solid var(--border-blue);
  padding: 5px 10px;
  border-radius: 3px;
}
.stack-product span { color: var(--blue); }

.stack-badge {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .8px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  padding: 6px 10px;
  border-radius: 3px;
}


/* ── PROOF STRIP ───────────────────────────────── */
.proof-section {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-soft);
  padding: 44px 0;
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.proof-item { padding-right: 24px; border-right: 1px solid var(--border-soft); }
.proof-item:last-child { border-right: none; }
.proof-num {
  font-family: var(--f-cond);
  font-weight: 900;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.5px;
  color: var(--blue);
}
.proof-num sup { font-size: 18px; font-weight: 700; }
.proof-label {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-mid);
  margin-top: 10px;
}


/* ── PLATFORMS: the arte family ────────────────── */
.platform-section { padding: 110px 0 96px; background: var(--bg-white); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.product-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 32px 30px 26px;
  position: relative;
  transition: border-color .22s, transform .22s, box-shadow .22s;
}
.product-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--blue);
  border-radius: 6px 6px 0 0;
}
.product-card.mes::before { background: var(--blue-dp); }
.product-card.lex::before { background: var(--blue); }
.product-card.fin::before { background: var(--teal); }
.product-card:hover {
  border-color: var(--border-blue);
  transform: translateY(-3px);
  box-shadow: 0 18px 44px -26px rgba(10,22,40,.28);
}

.product-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.product-name {
  font-family: var(--f-cond);
  font-weight: 900;
  font-size: 34px;
  line-height: 1;
  color: var(--text);
}
.product-name span { color: var(--blue); }
.product-sector {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-mid);
  background: var(--bg);
  border: 1px solid var(--border-soft);
  padding: 5px 9px;
  border-radius: 3px;
}
.product-desc { font-size: 15px; line-height: 1.65; color: var(--text-mid); }

.product-points { list-style: none; display: flex; flex-direction: column; }
.product-points li {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  padding: 10px 0 10px 16px;
  border-top: 1px solid var(--border-soft);
  position: relative;
}
.product-points li::before {
  content: ''; position: absolute; left: 0; top: 19px;
  width: 6px; height: 1px; background: var(--blue);
}

.product-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--blue);
  text-decoration: none;
}
.product-link svg { width: 12px; height: 12px; transition: transform .22s; }
.product-link:hover svg { transform: translateX(3px); }

/* The shared base under the three products */
.foundation-bar {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 30px;
  background: var(--bg);
  border: 1px dashed var(--border-blue);
  border-radius: 6px;
}
.foundation-title {
  font-family: var(--f-cond);
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
}
.foundation-items { display: flex; flex-wrap: wrap; gap: 8px; }
.foundation-items span {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-mid);
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  padding: 7px 11px;
  border-radius: 3px;
}


/* ── AI SOLUTIONS ──────────────────────────────── */
.ai-section { padding: 110px 0; background: var(--bg2); }
.ai-layout {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 64px;
  align-items: start;
}
.ai-principle {
  margin-top: 30px;
  background: var(--blue-dp);
  border-radius: 6px;
  padding: 24px 26px;
}
.ai-principle p {
  font-family: var(--f-cond);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.25;
  color: #fff;
}
.ai-principle span { color: var(--blue-200); }

.ai-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.ai-card {
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 26px 24px;
}
.ai-card-n {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--blue);
  margin-bottom: 12px;
}
.ai-card h3 {
  font-family: var(--f-cond);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 8px;
}
.ai-card p { font-size: 14px; line-height: 1.65; color: var(--text-mid); }


/* ── INFRASTRUCTURE (dark) ─────────────────────── */
.infra-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px;
  overflow: hidden;
}
.infra-item { background: var(--ink); padding: 28px 24px; }
.infra-kind {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--blue-200);
  margin-bottom: 12px;
}
.infra-item h3 {
  font-family: var(--f-cond);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 9px;
}
.infra-item p { font-size: 13.5px; line-height: 1.65; color: rgba(255,255,255,.78); }

.trust-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.trust-tags span {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255,255,255,.30);
  padding: 8px 13px;
  border-radius: 3px;
}

.infra-cta { margin-top: 36px; }

.dark-section .section-head { margin-bottom: 48px; }
.dark-section .section-head .section-desc { margin-top: 0; }


/* ── RESPONSIVE ────────────────────────────────── */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: 1fr; }
  .ai-layout { grid-template-columns: 1fr; gap: 40px; }
  .infra-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-item:nth-child(2n) { border-right: none; }
}

@media (max-width: 720px) {
  .platform-section, .ai-section { padding: 68px 0; }
  .ai-grid, .infra-grid { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; gap: 22px; }
  .proof-item { border-right: none; padding-right: 0; }
  .foundation-bar { padding: 20px; }
  .stack-layer { padding: 14px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .product-card, .product-link svg { transition: none; }
  .product-card:hover { transform: none; }
}
