/* ============================================================
   ATTRIBUTES — vertical gradient (light → navy deep)
   Continues the showcase's light blue gradient into the dark
   Products section below. Cards float as glass tiles, with
   icons + numbers.
   ============================================================ */

.attrs.attrs--gradient {
  background: #FFFFFF;
  border-top: 0;
  padding: clamp(72px, 10vh, 120px) clamp(20px, 4vw, 56px) clamp(96px, 12vh, 140px);
  position: relative;
  overflow: hidden;
  color: var(--ink);
}

/* No top fade — we want the boundary with the showcase to be invisible */
.attrs.attrs--gradient::before { content: none; }

/* Section header sits on the light half */
.attrs.attrs--gradient .section-header { position: relative; z-index: 2; }
.attrs.attrs--gradient .eyebrow { color: var(--blue-deep); }
.attrs.attrs--gradient .section-title { color: var(--ink); }

/* Grid: keep 5 columns but space the cards apart so the gradient
   shows through. Override the bordered-strip look from styles.css. */
.attrs.attrs--gradient .attrs-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  border-top: 0;
}
.attrs.attrs--gradient .attr-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  padding: 28px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 18px 36px -18px rgba(3,16,30,0.35),
    0 4px 12px -4px rgba(3,16,30,0.15);
  transition: transform 220ms cubic-bezier(0.25, 0.8, 0.35, 1),
              box-shadow 220ms cubic-bezier(0.25, 0.8, 0.35, 1);
}
.attrs.attrs--gradient .attr-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 24px 44px -16px rgba(3,16,30,0.42),
    0 6px 14px -4px rgba(3,16,30,0.18);
}

/* Icon plate */
.attrs.attrs--gradient .attr-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(43,96,184,0.10), rgba(82,140,214,0.04));
  border: 1px solid rgba(43,96,184,0.18);
  color: var(--blue-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.attrs.attrs--gradient .attr-icon svg { display: block; }

.attrs.attrs--gradient .attr-num {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.attrs.attrs--gradient .attr-name {
  font-family: var(--font-d);
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.attrs.attrs--gradient .attr-desc {
  font-family: var(--font-d);
  font-size: 13.5px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 2px;
}

/* Reset legacy border-strip styling on attrs-grid */
.attrs.attrs--gradient .attr-card:last-child,
.attrs.attrs--gradient .attr-card:nth-child(2n) {
  border-right: 1px solid rgba(255, 255, 255, 0.6);
}
.attrs.attrs--gradient .attr-card { border-right: 1px solid rgba(255, 255, 255, 0.6); }

/* Responsive — consolidated to 2-tier system (1200 / 430). */
@media (max-width: 899px) {
  /* Mobile + tablet: 5 attributes stack into a single column with
     compact horizontal cards (icon left, copy right) so the whole
     section — header + 5 cards — fits in one viewport. */
  .attrs.attrs--gradient {
    padding-top: clamp(48px, 8vh, 80px);
    padding-bottom: clamp(48px, 8vh, 80px);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
  }
  .attrs.attrs--gradient .attrs-inner {
    width: 100%;
  }
  .attrs.attrs--gradient .section-header {
    margin-bottom: 20px !important;
  }
  .attrs.attrs--gradient .section-title {
    font-size: clamp(24px, 4.2vw, 32px);
    line-height: 1.1;
  }
  .attrs.attrs--gradient .attrs-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 1fr;
    gap: 16px;
  }

  /* Compact horizontal card. Icon column is fixed; copy column fills.
     min-height locks every card to the same vertical size (sized to fit
     a 2-line desc) so 1-line and 2-line entries match. */
  .attrs.attrs--gradient .attr-card {
    display: grid;
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 2px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 14px;
    min-height: 100px;
  }
  .attrs.attrs--gradient .attr-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 44px;
    height: 44px;
    margin-bottom: 0;
    border-radius: 10px;
    align-self: center;
  }
  .attrs.attrs--gradient .attr-icon svg {
    width: 22px;
    height: 22px;
  }
  .attrs.attrs--gradient .attr-num {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    font-size: 10px;
    align-self: end;
  }
  .attrs.attrs--gradient .attr-name {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    /* Place name beside num — but easier: hide num and put name on row 1.
       Actually keep num small inline above name. Override below. */
    font-size: clamp(15px, 2.2vw, 18px);
    line-height: 1.15;
    margin: 0;
  }
  /* Re-flow so num sits above name: give name its own row. */
  .attrs.attrs--gradient .attr-card {
    grid-template-rows: auto auto auto;
  }
  .attrs.attrs--gradient .attr-icon {
    grid-row: 1 / span 3;
  }
  .attrs.attrs--gradient .attr-num    { grid-row: 1; align-self: end; }
  .attrs.attrs--gradient .attr-name   { grid-row: 2; align-self: start; }
  .attrs.attrs--gradient .attr-desc {
    grid-column: 2;
    grid-row: 3;
    font-size: 12px;
    line-height: 1.35;
    margin-top: 2px;
    /* Trim to two lines so the card stays predictable in height. */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* Slightly relax sizing on small tablets so the desc can breathe. */
@media (min-width: 600px) and (max-width: 899px) {
  .attrs.attrs--gradient .attr-card {
    padding: 18px 22px;
    grid-template-columns: 52px 1fr;
    column-gap: 18px;
    min-height: 112px;
  }
  .attrs.attrs--gradient .attr-icon {
    width: 52px;
    height: 52px;
  }
  .attrs.attrs--gradient .attr-icon svg {
    width: 26px;
    height: 26px;
  }
  .attrs.attrs--gradient .attr-name {
    font-size: 20px;
  }
  .attrs.attrs--gradient .attr-desc {
    font-size: 13.5px;
    -webkit-line-clamp: 3;
  }
}
