/* Support R2 presentation layer. Shared site chrome and service components stay canonical. */

/* Hero and channel chooser */
.support-r2-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(58px, 6.2vw, 92px) 0 clamp(68px, 7.5vw, 108px);
  color: #eaf2fa;
  background:
    radial-gradient(circle at 12% 3%, rgba(36, 95, 157, .44), transparent 31%),
    radial-gradient(circle at 88% 29%, rgba(72, 137, 196, .18), transparent 27%),
    linear-gradient(132deg, #061426 0%, #0a223d 48%, #102f4d 100%);
}

.support-r2-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(177, 203, 229, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(177, 203, 229, .045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(135deg, #000, transparent 72%);
}

.support-r2-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -14%;
  bottom: -32%;
  width: min(980px, 74vw);
  aspect-ratio: 1;
  pointer-events: none;
  border: 1px solid rgba(147, 218, 73, .07);
  border-radius: 50%;
  box-shadow:
    0 0 0 54px rgba(130, 181, 94, .022),
    0 0 0 108px rgba(92, 141, 189, .02),
    0 0 0 162px rgba(92, 141, 189, .016);
}

.support-r2-atmosphere {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.support-r2-atmosphere::before,
.support-r2-atmosphere::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .32;
}

.support-r2-atmosphere::before {
  top: -260px;
  left: 30%;
  border: 1px solid rgba(147, 218, 73, .32);
  box-shadow: 0 0 90px rgba(147, 218, 73, .08);
}

.support-r2-atmosphere::after {
  right: 8%;
  bottom: -335px;
  border: 1px solid rgba(113, 175, 230, .3);
  box-shadow: 0 0 100px rgba(62, 126, 184, .1);
}

.support-r2-shell {
  position: relative;
  z-index: 1;
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(320px, .72fr) minmax(560px, 1.28fr);
  grid-template-areas:
    "intro network"
    "channels channels";
  column-gap: clamp(48px, 6vw, 98px);
  row-gap: clamp(38px, 4.2vw, 64px);
  align-items: center;
}

.support-r2-intro {
  grid-area: intro;
  max-width: 590px;
}

.support-r2-kicker {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .17em;
}

.support-r2-kicker::before {
  content: "";
  width: 42px;
  height: 2px;
  flex: 0 0 auto;
  background: var(--lime);
  box-shadow: 14px 0 0 rgba(147, 218, 73, .26);
}

.support-r2-intro h1 {
  max-width: 680px;
  margin-top: 20px;
  color: var(--white);
  font-size: clamp(52px, 5.15vw, 80px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.058em;
  text-wrap: balance;
}

.support-r2-lead {
  max-width: 590px;
  margin-top: 28px;
  color: #dce8f4;
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.65;
  text-wrap: balance;
}

.support-r2-prompt {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 27px;
  color: #afc2d5;
  font-size: 13px;
  font-weight: 700;
}

.support-r2-prompt::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(147, 218, 73, .11);
}

/* Decorative 24/7 network */
.support-oracle-network {
  grid-area: network;
  position: relative;
  min-width: 0;
  padding: 14px 20px 17px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018));
  border: 1px solid rgba(198, 220, 240, .14);
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 28px 70px rgba(0, 7, 20, .22);
}

.support-oracle-network::before {
  content: "SUPPORT INTELLIGENCE NETWORK";
  position: absolute;
  top: 19px;
  left: 24px;
  color: rgba(213, 227, 241, .54);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
}

.support-oracle-network svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.support-network-grid path {
  fill: none;
  stroke: rgba(150, 185, 218, .23);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-dasharray: 3 7;
}

.support-network-node rect {
  fill: rgba(7, 24, 43, .72);
  stroke: rgba(167, 199, 228, .24);
  stroke-width: 1;
  transition: fill var(--transition), stroke var(--transition);
}

.support-network-node circle {
  fill: rgba(147, 218, 73, .12);
  stroke: rgba(147, 218, 73, .68);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
  animation: support-node-breathe 7s ease-in-out infinite;
}

.support-network-node text {
  fill: #dce8f4;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.support-node-workflows circle,
.support-node-images circle { animation-delay: -2.3s; }

.support-node-troubleshooting circle,
.support-node-files circle { animation-delay: -4.6s; }

.support-network-hub > circle:first-child {
  fill: url(#support-hub-gradient);
  stroke: rgba(147, 218, 73, .72);
  stroke-width: 1.5;
}

.support-hub-ring {
  fill: none;
  stroke: rgba(147, 218, 73, .32);
  stroke-width: 1;
  stroke-dasharray: 3 6;
  transform-box: fill-box;
  transform-origin: center;
  animation: support-hub-breathe 6s ease-in-out infinite;
}

.support-hub-time,
.support-hub-label {
  fill: var(--white);
  font-family: "Montserrat", Arial, sans-serif;
  text-anchor: middle;
}

.support-hub-time {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.04em;
}

.support-hub-label {
  fill: #aac0d4;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .13em;
}

.support-pulse {
  fill: var(--lime);
  opacity: 0;
  filter: drop-shadow(0 0 5px rgba(147, 218, 73, .75));
  transform-box: fill-box;
  transform-origin: center;
  animation: support-pulse-flow 6.8s cubic-bezier(.3, .05, .3, 1) infinite;
}

.support-pulse-1 { --support-pulse-x: 218px; --support-pulse-y: 101px; }
.support-pulse-2 { --support-pulse-x: 223px; --support-pulse-y: 0px; animation-delay: -1.1s; }
.support-pulse-3 { --support-pulse-x: 206px; --support-pulse-y: -98px; animation-delay: -2.2s; }
.support-pulse-4 { --support-pulse-x: -218px; --support-pulse-y: 101px; animation-delay: -3.3s; }
.support-pulse-5 { --support-pulse-x: -223px; --support-pulse-y: 0px; animation-delay: -4.4s; }
.support-pulse-6 { --support-pulse-x: -206px; --support-pulse-y: -98px; animation-delay: -5.5s; }

.support-route-line {
  fill: none;
  stroke-linecap: round;
  stroke-width: 2;
  stroke-dasharray: 7 9;
  transition: opacity var(--transition), stroke-width var(--transition), stroke var(--transition);
  animation: support-route-drift 12s linear infinite;
}

.support-route-gpt {
  stroke: url(#support-flow-gradient);
  stroke-width: 3;
}

.support-route-web { stroke: rgba(130, 174, 214, .58); }

.support-route-dot {
  transform-box: fill-box;
  transform-origin: center;
  transition: fill var(--transition), opacity var(--transition);
  animation: support-route-dot-breathe 4.8s ease-in-out infinite;
}

.support-route-dot-gpt {
  fill: var(--lime);
  filter: drop-shadow(0 0 6px rgba(147, 218, 73, .7));
}

.support-route-dot-web { fill: #6ea5d4; animation-delay: -2.4s; }

[data-support-channels][data-active-route="gpt"] .support-route-gpt,
[data-support-channels][data-active-route="web"] .support-route-web {
  opacity: 1;
  stroke-width: 4;
}

[data-support-channels][data-active-route="gpt"] .support-route-web,
[data-support-channels][data-active-route="web"] .support-route-gpt { opacity: .25; }

[data-support-channels][data-active-route="web"] .support-route-dot-gpt,
[data-support-channels][data-active-route="gpt"] .support-route-dot-web { opacity: .36; }

.support-network-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin-top: -5px;
  color: #91a9c0;
  font-size: 10px;
  font-weight: 700;
}

.support-network-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.support-network-legend i {
  width: 17px;
  height: 2px;
  background: #6b9bc4;
}

.support-network-legend i.is-primary {
  height: 3px;
  background: linear-gradient(90deg, var(--lime), #64a9e3);
}

/* Channel cards */
.support-channel-grid {
  grid-area: channels;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
  gap: clamp(18px, 2vw, 30px);
  align-items: stretch;
}

.support-channel-card {
  position: relative;
  min-width: 0;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  padding: clamp(27px, 2.5vw, 38px);
  overflow: hidden;
  color: #34465a;
  background: linear-gradient(150deg, #f9fbfd, #edf3f8);
  border: 1px solid rgba(178, 200, 220, .72);
  border-radius: 20px;
  box-shadow: 0 22px 54px rgba(0, 10, 27, .19);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.support-channel-card::after {
  content: "";
  position: absolute;
  right: -92px;
  bottom: -118px;
  width: 230px;
  height: 230px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(56, 119, 176, .1), transparent 69%);
  border-radius: 50%;
}

.support-channel-card:hover,
.support-channel-card:focus-within {
  z-index: 1;
  border-color: rgba(126, 165, 199, .88);
  box-shadow: 0 30px 68px rgba(0, 10, 27, .27);
  transform: translateY(-5px);
}

.support-channel-card-featured {
  color: #334659;
  background:
    linear-gradient(115deg, rgba(147, 218, 73, .12), transparent 34%),
    linear-gradient(145deg, #fff, #f4f9f0);
  border-color: rgba(147, 198, 104, .72);
  border-top: 4px solid var(--lime);
  box-shadow: 0 26px 64px rgba(0, 10, 27, .25), 0 0 0 1px rgba(147, 218, 73, .06);
}

.support-channel-card-featured::before {
  content: "";
  position: absolute;
  top: -94px;
  left: 46%;
  width: 340px;
  height: 180px;
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(147, 218, 73, .18), transparent 68%);
}

.support-channel-card-top {
  position: relative;
  z-index: 1;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.support-channel-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--brand-blue);
  background: rgba(255, 255, 255, .78);
  border: 1px solid #cbd8e4;
  border-radius: 14px;
  box-shadow: 0 9px 20px rgba(19, 41, 75, .08);
}

.support-channel-card-featured .support-channel-icon {
  color: var(--navy);
  background: var(--lime);
  border-color: var(--lime);
  box-shadow: 0 10px 24px rgba(93, 144, 48, .22);
}

.support-channel-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support-channel-badge {
  min-height: 29px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: #315f24;
  background: #e9f6db;
  border: 1px solid #b7d796;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-align: center;
}

.support-channel-badge-secondary {
  color: #365d7e;
  background: #eaf2f8;
  border-color: #bfd1e0;
}

.support-channel-card h2 {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin-top: 23px;
  color: var(--navy);
  font-size: clamp(25px, 2.25vw, 35px);
  font-weight: 700;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.support-channel-card:not(.support-channel-card-featured) h2 { font-size: clamp(23px, 1.9vw, 30px); }

.support-channel-card > p {
  position: relative;
  z-index: 1;
  max-width: 710px;
  margin-top: 13px;
  color: #526275;
  font-size: 15px;
  line-height: 1.6;
}

.support-channel-card > .support-channel-supporting {
  margin-top: 9px;
  color: #69788a;
  font-size: 12px;
  font-weight: 600;
}

.support-channel-action {
  position: relative;
  z-index: 1;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  gap: 12px;
  margin-top: auto;
  padding: 0 21px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition);
}

.support-channel-action span {
  font-size: 18px;
  line-height: 1;
  transition: transform var(--transition);
}

.support-channel-action:hover span { transform: translate(2px, -1px); }

.support-channel-action-primary {
  min-width: 220px;
  color: var(--white);
  background: var(--navy);
  border: 1px solid var(--navy);
  box-shadow: 0 11px 25px rgba(19, 41, 75, .17);
}

.support-channel-action-primary:hover {
  color: var(--navy);
  background: var(--lime);
  border-color: var(--lime);
}

.support-channel-action-secondary {
  min-width: 210px;
  color: var(--brand-blue);
  background: rgba(255, 255, 255, .82);
  border: 1px solid #91abc1;
}

.support-channel-action-secondary:hover {
  color: var(--navy);
  background: #e7f0f7;
  border-color: var(--brand-blue);
}

@keyframes support-node-breathe {
  0%, 100% { opacity: .58; transform: scale(.88); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes support-hub-breathe {
  0%, 100% { opacity: .45; transform: scale(.94) rotate(0deg); }
  50% { opacity: .9; transform: scale(1.04) rotate(5deg); }
}

@keyframes support-pulse-flow {
  0%, 8% { opacity: 0; transform: translate(0, 0) scale(.7); }
  18% { opacity: .95; }
  82% { opacity: .7; }
  100% { opacity: 0; transform: translate(var(--support-pulse-x), var(--support-pulse-y)) scale(1.12); }
}

@keyframes support-route-drift { to { stroke-dashoffset: -64; } }

@keyframes support-route-dot-breathe {
  0%, 100% { opacity: .55; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Compact alternative routes */
.support-r2-resources {
  padding: clamp(50px, 5.5vw, 76px) 0;
  background: linear-gradient(180deg, #fff, #f8fafc);
  border-bottom: 1px solid #e0e6ed;
}

.support-r2-resource-shell {
  width: var(--shell);
  margin-inline: auto;
}

.support-r2-resource-shell > h2 {
  color: #44546a;
  font-size: clamp(20px, 1.8vw, 27px);
  font-weight: 650;
  letter-spacing: -.03em;
}

.support-r2-resource-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid #d7e0e8;
  border-radius: 12px;
  box-shadow: 0 13px 35px rgba(19, 41, 75, .055);
}

.support-r2-resource {
  min-width: 0;
  min-height: 118px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  gap: 13px;
  align-items: center;
  padding: 20px 18px;
  color: var(--navy);
  background: var(--white);
  border: 0;
  border-right: 1px solid #dfe6ed;
  border-radius: 0;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition), background var(--transition), box-shadow var(--transition);
}

.support-r2-resource:last-child { border-right: 0; }

.support-r2-resource:hover,
.support-r2-resource:focus-visible {
  position: relative;
  z-index: 1;
  color: var(--brand-blue);
  background: #f3f8fc;
  box-shadow: inset 0 -3px 0 var(--lime);
}

.support-r2-resource-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #3e6f9d;
  background: #eff5fa;
  border: 1px solid #d0dce7;
  border-radius: 11px;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.support-r2-resource:hover .support-r2-resource-icon,
.support-r2-resource:focus-visible .support-r2-resource-icon {
  color: var(--navy);
  background: #e9f6db;
  border-color: #b9d995;
}

.support-r2-resource-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support-r2-resource > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.support-r2-resource strong {
  color: currentColor;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: -.02em;
}

.support-r2-resource small {
  color: #667486;
  font-size: 11px;
  line-height: 1.48;
}

.support-r2-resource > i {
  color: #4c7c9e;
  font-size: 16px;
  font-style: normal;
  transition: transform var(--transition);
}

.support-r2-resource:hover > i,
.support-r2-resource:focus-visible > i { transform: translate(2px, -1px); }

@media (max-width: 1220px) {
  .support-r2-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "network"
      "channels";
    row-gap: 42px;
  }

  .support-r2-intro { max-width: 850px; }
  .support-r2-lead { max-width: 760px; }

  .support-oracle-network {
    width: min(900px, 100%);
    justify-self: center;
  }

  .support-r2-resource-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .support-r2-resource:nth-child(2n) { border-right: 0; }
  .support-r2-resource:nth-child(-n + 2) { border-bottom: 1px solid #dfe6ed; }
}

@media (max-width: 1020px) {
  .support-r2-hero { padding-top: 68px; }
  .support-r2-intro h1 { font-size: clamp(50px, 8vw, 72px); }
  .support-channel-grid { grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr); }
  .support-channel-card { padding: 28px; }
  .support-channel-card h2 { font-size: clamp(25px, 3vw, 32px); }
  .support-channel-card:not(.support-channel-card-featured) h2 { font-size: clamp(23px, 2.7vw, 28px); }
}

@media (max-width: 860px) {
  .support-channel-grid { gap: 16px; }
  .support-channel-card { min-height: 330px; padding: 25px; }
  .support-channel-action { width: 100%; align-self: stretch; }
}

@media (max-width: 720px) {
  .support-r2-hero { padding: 52px 0 64px; }
  .support-r2-shell { row-gap: 32px; }
  .support-r2-intro h1 { margin-top: 16px; font-size: clamp(43px, 12.5vw, 62px); }
  .support-r2-lead { margin-top: 22px; font-size: 17px; }
  .support-r2-prompt { align-items: flex-start; margin-top: 22px; line-height: 1.5; }

  .support-oracle-network { padding: 18px 8px 15px; border-radius: 17px; }
  .support-oracle-network::before { top: 13px; left: 16px; font-size: 8px; }
  .support-network-legend { gap: 8px 15px; margin-top: 0; }

  .support-channel-grid { grid-template-columns: 1fr; gap: 16px; }
  .support-channel-card { min-height: 0; padding: 25px 22px 23px; border-radius: 16px; }
  .support-channel-card:hover,
  .support-channel-card:focus-within { transform: translateY(-2px); }
  .support-channel-card h2,
  .support-channel-card:not(.support-channel-card-featured) h2 { font-size: clamp(25px, 7.5vw, 31px); }
  .support-channel-card > p { font-size: 14px; }
  .support-channel-action { margin-top: 25px; }

  .support-r2-resource-list { grid-template-columns: 1fr; }
  .support-r2-resource,
  .support-r2-resource:nth-child(2n) {
    min-height: 104px;
    border-right: 0;
    border-bottom: 1px solid #dfe6ed;
  }
  .support-r2-resource:last-child { border-bottom: 0; }

}

@media (max-width: 390px) {
  .support-r2-hero { padding-top: 44px; }
  .support-r2-kicker { font-size: 11px; }
  .support-r2-intro h1 { font-size: clamp(41px, 13vw, 50px); }
  .support-oracle-network { margin-inline: -4px; }
  .support-channel-card-top { align-items: flex-start; }
  .support-channel-badge { max-width: 150px; line-height: 1.25; }
  .support-channel-action { min-width: 0; width: 100%; padding-inline: 15px; }
  .support-r2-resource { grid-template-columns: 40px minmax(0, 1fr) 16px; padding-inline: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .support-r2-hero *,
  .support-r2-hero *::before,
  .support-r2-hero *::after,
  .support-r2-resources * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .support-pulse { opacity: .56; }
  .support-route-line { stroke-dasharray: none; }
}
