/* Edginsoft — components: dial, sections, bento, process, panels, CTA */

/* Dial panel */

.dial {
  position: relative;
  padding: clamp(1.25rem, 0.8rem + 2vw, 2rem);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgb(255 255 255 / 0.09), rgb(255 255 255 / 0.02));
  backdrop-filter: blur(16px);
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.6), inset 0 1px 0 rgb(255 255 255 / 0.1);
}

.dial svg {
  width: min(100%, 22rem);
  height: auto;
  margin-inline: auto;
  overflow: visible;
}

.dial-ring,
.dial-bar {
  fill: none;
  stroke: var(--signal);
  stroke-width: 22;
  stroke-linecap: round;
  filter: drop-shadow(0 0 18px rgb(241 89 42 / 0.55));
}

.dial-tick {
  stroke: var(--on-dark);
  stroke-width: 5;
  stroke-linecap: round;
  opacity: 0.18;
  transition:
    opacity var(--duration-normal) ease,
    stroke var(--duration-normal) ease;
}

.dial-tick.is-lit {
  stroke: var(--cyan);
  stroke-width: 7;
  opacity: 1;
  filter: drop-shadow(0 0 6px rgb(56 198 244 / 0.8));
}

.dial-core {
  font-family: var(--font-display);
  fill: var(--on-dark);
}

.dial-core-count {
  font-size: 68px;
  font-weight: 600;
  letter-spacing: -2px;
}

.dial-core-label {
  font-size: 17px;
  fill: var(--on-dark-muted);
}

@media (prefers-reduced-motion: no-preference) {
  .dial.is-armed:not(.is-ready) .dial-ring,
  .dial.is-armed:not(.is-ready) .dial-bar {
    opacity: 0;
  }

  .dial.is-ready .dial-ring {
    stroke-dasharray: var(--ring-length);
    stroke-dashoffset: var(--ring-length);
    animation: ring-draw 1.4s var(--ease-out-expo) 0.15s forwards;
  }

  .dial.is-ready .dial-bar {
    transform: translateY(-40px);
    opacity: 0;
    animation: bar-drop 0.7s var(--ease-out-expo) 1.05s forwards;
  }
}

@keyframes ring-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes bar-drop {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.dial-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.dial-legend button {
  display: grid;
  width: 100%;
  gap: 0.1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 0.03);
  color: var(--on-dark);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition:
    border-color var(--duration-fast) ease,
    background-color var(--duration-fast) ease;
}

.dial-legend button span {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--on-dark-muted);
}

.dial-legend button:hover {
  border-color: rgb(255 255 255 / 0.3);
}

.dial-legend button[aria-pressed="true"] {
  border-color: rgb(56 198 244 / 0.7);
  background: rgb(56 198 244 / 0.1);
  box-shadow: 0 0 0 3px rgb(56 198 244 / 0.12);
}

.dial-summary {
  min-height: 3.2em;
  margin: 1rem 0 0;
  font-size: var(--text-sm);
  color: var(--on-dark-muted);
}

/* ---------- Sections ---------- */

.section {
  padding-block: var(--space-section);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

.section-head.is-centered {
  margin-inline: auto;
  text-align: center;
}

.section-head.is-centered p {
  margin-inline: auto;
}

.section-head h2 {
  font-size: var(--text-h2);
}

.section-head p {
  margin-top: 1rem;
  font-size: var(--text-lg);
  color: var(--muted);
}

.on-dark .section-head p {
  color: var(--on-dark-muted);
}

/* ---------- Bento (practices) ---------- */

.bento {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 60rem) {
  .bento {
    grid-template-columns: repeat(12, 1fr);
  }

  .tile-strategy {
    grid-column: span 5;
  }

  .tile-engineering {
    grid-column: span 7;
  }

  .tile-ai {
    grid-column: span 7;
  }

  .tile-cloud {
    grid-column: span 5;
  }
}

.tile {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.tile-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.tile-badge {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #fff1eb, #ffe0d3);
  color: var(--signal);
}

.tile-badge .icon {
  width: 1.4rem;
  height: 1.4rem;
}

.tile h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
}

.tile > p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.tile-services {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 40rem) {
  .tile-engineering .tile-services,
  .tile-ai .tile-services {
    grid-template-columns: 1fr 1fr;
  }
}

.tile-services a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--mist);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.35;
  text-decoration: none;
  transition:
    border-color var(--duration-fast) ease,
    background-color var(--duration-fast) ease,
    transform var(--duration-normal) var(--ease-out-expo);
}

.tile-services a .icon {
  color: var(--signal);
}

.tile-services a:hover {
  border-color: var(--signal);
  background: var(--surface);
  transform: translateX(3px);
}

/* The AI tile is the dark one: depth through contrast, not more decoration */
.tile-ai {
  border-color: transparent;
  background:
    radial-gradient(28rem 18rem at 100% 0%, rgb(56 198 244 / 0.22), transparent 60%),
    radial-gradient(24rem 16rem at 0% 100%, rgb(241 89 42 / 0.2), transparent 60%),
    var(--navy);
  color: var(--on-dark);
  box-shadow: var(--shadow-lift);
}

.tile-ai > p {
  color: var(--on-dark-muted);
}

.tile-ai .tile-badge {
  background: rgb(56 198 244 / 0.15);
  color: var(--cyan);
}

.tile-ai .tile-services a {
  border-color: var(--glass-line);
  background: var(--glass);
}

.tile-ai .tile-services a .icon {
  color: var(--cyan);
}

.tile-ai .tile-services a:hover {
  border-color: var(--cyan);
  background: rgb(56 198 244 / 0.08);
}

/* ---------- Process ---------- */

.process {
  position: relative;
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 60rem) {
  .process {
    grid-template-columns: repeat(4, 1fr);
  }

  .process::before {
    content: "";
    position: absolute;
    top: 2.75rem;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, var(--signal), var(--cyan));
    opacity: 0.35;
  }
}

.process li {
  position: relative;
  counter-increment: step;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.process li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--surface);
  font-family: var(--font-display);
  font-weight: 600;
  box-shadow: 0 0 0 6px var(--mist);
}

.process h3 {
  font-size: var(--text-h3);
  margin-bottom: 0.5rem;
}

.process p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
}

/* ---------- Security panel ---------- */

.panel-dark {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 1rem + 4vw, 4.5rem);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(40rem 24rem at 100% 0%, rgb(241 89 42 / 0.18), transparent 60%),
    linear-gradient(160deg, var(--navy-2), var(--night));
  color: var(--on-dark);
  box-shadow: var(--shadow-lift);
}

.panel-split {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 60rem) {
  .panel-split {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: center;
  }
}

.panel-dark h2 {
  font-size: var(--text-h2);
}

.panel-dark .lede {
  margin-top: 1rem;
  color: var(--on-dark-muted);
  font-size: var(--text-lg);
}

.pillars {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pillars li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-md);
  background: var(--glass);
}

.pillars .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--signal);
}

.pillars h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.3rem;
}

.pillars p {
  margin: 0;
  color: var(--on-dark-muted);
  font-size: var(--text-sm);
}

/* ---------- CTA + contact cards ---------- */

.cta {
  display: grid;
  gap: 2rem;
  padding: clamp(2rem, 1rem + 4vw, 4rem);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(30rem 20rem at 0% 0%, rgb(255 255 255 / 0.25), transparent 60%),
    linear-gradient(135deg, var(--signal-2), var(--signal) 55%, #c8441b);
  color: #1a0c05;
  box-shadow: 0 30px 60px -30px rgb(241 89 42 / 0.7);
}

@media (min-width: 60rem) {
  .cta {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.cta h2 {
  font-size: var(--text-h2);
  max-width: 16ch;
}

.cta p {
  margin-top: 1rem;
  font-size: var(--text-lg);
  color: #3b1a0c;
}

.cta .btn-dark {
  background: var(--night);
  color: var(--surface);
}

.cta .btn-dark:hover {
  background: var(--navy-2);
}

.cta .btn-ghost {
  border-color: rgb(26 12 5 / 0.25);
  background: rgb(255 255 255 / 0.2);
}

.contact-cards {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgb(255 255 255 / 0.9);
  box-shadow: 0 8px 24px -12px rgb(26 12 5 / 0.4);
  color: var(--text);
}

.contact-card .badge {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--surface);
}

.contact-card .label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}

.contact-card a,
.contact-card address {
  font-style: normal;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-card a:hover {
  text-decoration: underline;
}


.section.is-flush-top {
  padding-top: 0;
}
