/* diff.css */

/* ── Section shell ── */
.diff-section {
  position: relative;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #F4F8FD 7%,
    #F4F8FD 93%,
    #ffffff 100%
  );
  padding: clamp(56px, 7vw, 88px) clamp(20px, 5vw, 72px) clamp(56px, 7vw, 88px);
  overflow: hidden;
}

/* Fine dot-grid texture — fades toward left */
.diff-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(8, 31, 77, 0.055) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(120% 90% at 72% 50%, #000 20%, transparent 68%);
          mask-image: radial-gradient(120% 90% at 72% 50%, #000 20%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

/* Subtle accent wash top-right */
.diff-section::after {
  content: '';
  position: absolute;
  top: -8%;
  right: -6%;
  width: 640px;
  height: 520px;
  background: radial-gradient(ellipse 55% 65% at 80% 18%, rgba(0, 174, 239, 0.07), transparent 66%);
  pointer-events: none;
  z-index: 0;
}

/* ── Inner layout ── */
.diff-inner {
  position: relative;
  z-index: 1;
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.55fr);
  gap: clamp(48px, 5.5vw, 96px);
  align-items: start;
}

/* ══════════════════════════════
   LEFT: Sticky intro
   ══════════════════════════════ */
.diff-header {
  position: sticky;
  top: clamp(72px, 10vh, 100px);
  display: flex;
  flex-direction: column;
}

.diff-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent, #00AEEF);
  margin-bottom: 20px;
}

.diff-tag::before {
  content: '';
  width: 28px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--accent, #00AEEF), rgba(0, 174, 239, 0.2));
  border-radius: 2px;
}

.diff-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 4.2vw, 62px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--navy, #081F4D);
  margin-bottom: 26px;
  text-wrap: balance;
}

.diff-title .diff-accent {
  color: transparent;
  background: linear-gradient(115deg, var(--accent-light, #2CC4FF), var(--accent, #00AEEF) 55%, #0079c1);
  -webkit-background-clip: text;
  background-clip: text;
}

.diff-desc {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.25vw, 1.08rem);
  line-height: 1.72;
  color: #64748B;
  max-width: 33ch;
  margin-bottom: 34px;
  text-wrap: pretty;
}

.diff-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.4px;
  color: #fff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  align-self: flex-start;
  background: linear-gradient(135deg, var(--accent-light, #2CC4FF), var(--accent, #00AEEF) 60%, #0085c4);
  box-shadow: 0 12px 32px -10px rgba(0, 174, 239, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.25s cubic-bezier(.2,.7,.2,1), box-shadow 0.25s;
}

.diff-cta svg {
  width: 17px;
  height: 17px;
  transition: transform 0.25s;
  flex-shrink: 0;
}

.diff-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px -10px rgba(0, 174, 239, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.diff-cta:hover svg { transform: translateX(5px); }

/* ══════════════════════════════
   RIGHT: Cards grid
   ══════════════════════════════ */
.diff-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── 2-col grid ── */
.diff-cards-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ── Base card ── */
.diff-item {
  position: relative;
  padding: 22px 24px 18px;
  border: 1px solid #E4ECF5;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 14px rgba(8, 31, 77, 0.04);
  overflow: hidden;
  cursor: default;
  user-select: none;
  transition:
    transform 0.4s cubic-bezier(.2,.7,.2,1),
    border-color 0.35s,
    box-shadow 0.4s;
}

/* Hover radial tint */
.diff-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 220px at 90% 0%, rgba(0, 174, 239, 0.055), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

/* Top accent rule */
.diff-item-rule {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: #E4ECF5;
}

.diff-item-rule::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 1px;
  width: 44px;
  background: linear-gradient(90deg, var(--accent-light, #2CC4FF), var(--accent, #00AEEF));
  box-shadow: 0 0 8px rgba(0, 174, 239, 0.5);
  transition: width 0.5s cubic-bezier(.2,.7,.2,1);
}

.diff-item:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 174, 239, 0.38);
  box-shadow: 0 18px 48px -14px rgba(8, 31, 77, 0.13), 0 0 0 1px rgba(0, 174, 239, 0.1);
}

.diff-item:hover::before { opacity: 1; }
.diff-item:hover .diff-item-rule::after { width: 100%; }

/* Card top row */
.diff-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.diff-cat {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent, #00AEEF);
}

.diff-item-ico {
  width: 32px;
  height: 32px;
  color: var(--accent, #00AEEF);
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1), color 0.4s;
  opacity: 0.82;
}

.diff-item-ico svg { width: 100%; height: 100%; display: block; }
.diff-item:hover .diff-item-ico { transform: translateY(-2px) scale(1.07); opacity: 1; }

.diff-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.0;
  letter-spacing: -0.01em;
  color: var(--navy, #081F4D);
  margin-bottom: 8px;
  text-wrap: balance;
}

.diff-text {
  font-family: var(--font-body);
  font-size: clamp(14px, 1vw, 15px);
  line-height: 1.68;
  color: #4A5568;
  text-wrap: pretty;
}

/* ══════════════════════════════
   Feature tags (partners card)
   ══════════════════════════════ */
.diff-feat-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent, #00AEEF);
  margin-bottom: 14px;
}

.diff-feat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent, #00AEEF);
  box-shadow: 0 0 8px rgba(0, 174, 239, 0.6);
}

/* ══════════════════════════════
   Feature: Partners manifesto
   ══════════════════════════════ */
.diff-partners {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 32px 40px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 174, 239, 0.2);
  background: linear-gradient(135deg, #EFF6FF 0%, #F5FAFF 55%, #EBF4FD 100%);
  box-shadow: 0 4px 24px rgba(8, 31, 77, 0.06);
  cursor: default;
  user-select: none;
  transition: box-shadow 0.35s, transform 0.35s cubic-bezier(.2,.7,.2,1);
}

.diff-partners:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px -12px rgba(8, 31, 77, 0.12);
}

.diff-partners::before {
  content: '';
  position: absolute;
  left: 0; top: 18%; bottom: 18%;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-light, #2CC4FF), #0079c1);
  border-radius: 3px;
}

.diff-partners-body {
  flex: 1;
  min-width: 0;
}

.diff-partners-deco {
  width: clamp(80px, 9vw, 120px);
  height: auto;
  flex-shrink: 0;
  color: var(--accent, #00AEEF);
  opacity: 0.9;
}

.diff-partners h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--navy, #081F4D);
  margin-bottom: 8px;
  text-wrap: balance;
}

.diff-partners h3 em {
  font-style: normal;
  color: var(--accent, #00AEEF);
}

.diff-partners p {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: #4A5568;
  max-width: 58ch;
}

/* ══════════════════════════════
   Reveal animations
   ══════════════════════════════ */
.diff-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
}

.diff-reveal.in {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════
   Responsive
   ══════════════════════════════ */
@media (max-width: 1040px) {
  .diff-inner {
    grid-template-columns: 1fr;
  }
  .diff-header {
    position: static;
  }
  .diff-desc { max-width: 52ch; }
}

@media (max-width: 760px) {
  .diff-section {
    padding: clamp(60px, 10vw, 88px) clamp(18px, 5vw, 32px);
  }
  .diff-cards-2x2 {
    grid-template-columns: 1fr;
  }
  .diff-partners {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 30px 26px;
  }
  .diff-partners::before { display: none; }
  .diff-partners-deco { display: none; }
  .diff-item { padding: 28px 24px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .diff-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
