/* =========================================================================
   DigiFlux — Section Styles
   Hero • About • Stages • Stats • Partners • CTA Band
   ========================================================================= */

/* ============================== [2] HERO ============================== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(46, 134, 255, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(244, 123, 32, 0.12) 0%, transparent 55%),
    linear-gradient(135deg, var(--df-navy) 0%, var(--df-blue-deep) 100%);
  color: var(--df-white);
  padding: 3.5rem 0 6rem;
  isolation: isolate;
}

/* Subtle dot pattern overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 1) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.06;
  pointer-events: none;
  z-index: -1;
}

/* Decorative animated blobs */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: blob-drift 14s ease-in-out infinite;
}

.hero-blob-1 {
  width: 380px; height: 380px;
  top: -120px; right: -100px;
  background: radial-gradient(circle, var(--df-blue-bright) 0%, transparent 70%);
}

.hero-blob-2 {
  width: 320px; height: 320px;
  bottom: -100px; left: -80px;
  background: radial-gradient(circle, var(--df-orange) 0%, transparent 70%);
  animation-delay: -7s;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  color: var(--df-white);
  margin-bottom: 1.25rem;
  font-weight: 800;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  font-size: 1.0625rem;
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-cta .btn { width: 100%; }

/* ----- Hero visual: orbiting 5 stages ----- */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
}

.hero-orbit {
  position: absolute;
  inset: 0;
}

.hero-orbit-svg {
  width: 100%;
  height: 100%;
  animation: orbit-spin 80s linear infinite;
  transform-origin: center;
}

.hero-orbit-svg .orbit-ring {
  fill: none;
  stroke-dasharray: 4 6;
  stroke-width: 1;
}

.hero-orbit-svg .orbit-ring-inner {
  fill: none;
  stroke-dasharray: 2 4;
  stroke-width: 1;
}

/* ----- Pulse rings around center ----- */
.pulse-ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 22%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 2px solid rgba(46, 134, 255, 0.45);
  transform: translate(-50%, -50%);
  animation: pulse-ring 3.5s var(--ease-out) infinite;
  pointer-events: none;
}

.pulse-ring-2 {
  border-color: rgba(255, 169, 77, 0.4);
  animation-delay: 1.7s;
}

/* ----- Center logo ----- */
.hero-orbit-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
}

.hero-center-logo {
  width: 26%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%,
              rgba(255, 255, 255, 0.98) 0%,
              rgba(244, 246, 251, 0.9) 100%);
  display: grid;
  place-items: center;
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.08),
    0 0 36px rgba(46, 134, 255, 0.55),
    0 8px 28px rgba(0, 0, 0, 0.4);
}

.hero-center-logo img {
  width: 78%;
  height: auto;
}

/* ----- Stage badges ----- */
.stage-badge {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--df-white);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.35),
    0 0 0 4px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translate(-50%, -50%);
  transition: transform var(--t-med), box-shadow var(--t-med);
  cursor: default;
  animation: badge-pop 4s ease-in-out infinite;
}

.stage-badge:hover {
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.4),
    0 0 0 6px rgba(255, 255, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* 5 badges positions on the outer ring */
.stage-badge[data-stage="think"]    { background: linear-gradient(135deg, #5BA8FF, var(--df-think));    top: 8%;  left: 50%; animation-delay: 0s; }
.stage-badge[data-stage="dialogue"] { background: linear-gradient(135deg, #9DD64A, var(--df-dialogue)); top: 38%; left: 92%; animation-delay: 0.8s; }
.stage-badge[data-stage="do"]       { background: linear-gradient(135deg, var(--df-amber), var(--df-do));       top: 88%; left: 72%; animation-delay: 1.6s; }
.stage-badge[data-stage="research"] { background: linear-gradient(135deg, #3D72D9, var(--df-research)); top: 88%; left: 28%; animation-delay: 2.4s; }
.stage-badge[data-stage="reading"]  { background: linear-gradient(135deg, #FF6B5C, var(--df-reading));  top: 38%; left: 8%;  animation-delay: 3.2s; }

/* ----- Floating particles ----- */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.hero-particles span {
  position: absolute;
  display: block;
  width: 6px;
  height: 6px;
  background: var(--df-amber);
  border-radius: 50%;
  opacity: 0.6;
  filter: drop-shadow(0 0 4px currentColor);
  animation: float-up 6s ease-in-out infinite;
}

.hero-particles span:nth-child(1) { top: 10%; left: 14%; animation-delay: 0s;   }
.hero-particles span:nth-child(2) { top: 70%; left: 6%;  animation-delay: 1.2s; background: var(--df-blue-bright); }
.hero-particles span:nth-child(3) { top: 18%; left: 86%; animation-delay: 2.4s; }
.hero-particles span:nth-child(4) { top: 78%; left: 88%; animation-delay: 3.6s; background: var(--df-dialogue); }
.hero-particles span:nth-child(5) { top: 50%; left: 4%;  animation-delay: 4.8s; background: var(--df-reading); width: 4px; height: 4px; }
.hero-particles span:nth-child(6) { top: 45%; left: 96%; animation-delay: 1.8s; width: 4px; height: 4px; }

/* ----- Bottom wave divider ----- */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
  pointer-events: none;
}
.hero-wave svg {
  display: block;
  width: 100%;
  height: 60px;
}

/* ============================== [3] ABOUT + FEATURES ============================== */
.about {
  background-color: var(--df-white);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

/* ============================== [4] STAGES ============================== */
.stages {
  background: linear-gradient(180deg, var(--df-gray-100) 0%, #EEF2FB 100%);
  position: relative;
}

.stages::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(27, 77, 168, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.stages > .container {
  position: relative;
  z-index: 1;
}

.stages-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}

.stage-card {
  position: relative;
  background-color: var(--df-white);
  border: 1px solid var(--df-gray-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  transition:
    transform var(--t-med),
    box-shadow var(--t-med),
    border-color var(--t-med);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Top accent bar (gradient using stage color) */
.stage-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: currentColor;
  opacity: 1;
}

/* Subtle gradient wash behind icon */
.stage-card::after {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.05;
  filter: blur(20px);
  pointer-events: none;
  transition: opacity var(--t-med);
}

.stage-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.stage-card:hover::after { opacity: 0.15; }

.stage-card[data-stage="think"]    { color: var(--df-think); }
.stage-card[data-stage="dialogue"] { color: var(--df-dialogue); }
.stage-card[data-stage="do"]       { color: var(--df-do); }
.stage-card[data-stage="research"] { color: var(--df-research); }
.stage-card[data-stage="reading"]  { color: var(--df-reading); }

.stage-card .stage-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, currentColor 10%, transparent);
  color: currentColor;
  margin-bottom: 1rem;
  position: relative;
  transition: transform var(--t-med);
}

.stage-card .stage-icon::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: currentColor;
  opacity: 0;
  filter: blur(12px);
  z-index: -1;
  transition: opacity var(--t-med);
}

.stage-card:hover .stage-icon {
  transform: scale(1.08) rotate(-4deg);
}
.stage-card:hover .stage-icon::after {
  opacity: 0.4;
}

.stage-card .chip {
  align-self: flex-start;
  margin-bottom: 0.75rem;
}

.stage-card .stage-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
  color: currentColor;
  letter-spacing: -0.01em;
}

.stage-card .stage-desc {
  font-size: 0.9375rem;
  color: var(--df-gray-500);
  line-height: 1.55;
  margin: 0;
}

.stage-card .chip-core {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  z-index: 2;
}

.stage-card.is-core {
  border-color: rgba(244, 123, 32, 0.3);
  box-shadow: 0 8px 24px rgba(244, 123, 32, 0.18);
}

/* Connector arrows */
.stage-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--df-gray-500);
  opacity: 0.55;
  user-select: none;
  transition: opacity var(--t-med);
}

.stage-arrow svg { color: inherit; }

/* ============================== [5] STATS ============================== */
.stats {
  background:
    radial-gradient(ellipse at 30% 40%, rgba(46, 134, 255, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 60%, rgba(244, 123, 32, 0.12) 0%, transparent 50%),
    linear-gradient(135deg, var(--df-navy) 0%, #14246B 100%);
  color: var(--df-white);
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.85) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.04;
  pointer-events: none;
}

.stats > .container { position: relative; z-index: 1; }

.stats .section-head {
  margin-bottom: 2.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1rem;
  position: relative;
}

.stat-item {
  text-align: center;
  padding: 0.75rem 0.5rem;
  position: relative;
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 5.4vw, 3.75rem);
  line-height: 1.1;
  background: linear-gradient(135deg, var(--df-amber) 0%, var(--df-orange) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.stat-prefix,
.stat-suffix {
  -webkit-text-fill-color: var(--df-amber);
}
.stat-suffix {
  font-size: 0.55em;
  margin-left: 0.15em;
  font-weight: 700;
  letter-spacing: 0;
}

.stat-label {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.stat-extra {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.25rem;
}

/* ============================== [6] PARTNERS ============================== */
.partners {
  background-color: var(--df-white);
}

.partners-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.partner-card {
  position: relative;
  background-color: var(--df-white);
  border: 1px solid var(--df-gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem 1.5rem;
  transition:
    transform var(--t-med),
    box-shadow var(--t-med),
    border-color var(--t-med);
  display: flex;
  flex-direction: column;
  text-align: center;
  overflow: hidden;
}

.partner-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--df-blue-bright), var(--df-orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 500ms var(--ease-out);
}

.partner-card:hover {
  transform: translateY(-6px);
  border-color: rgba(46, 134, 255, 0.35);
  box-shadow: var(--shadow-lg);
}
.partner-card:hover::before { transform: scaleX(1); }

.partner-flag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.partner-card .chip-coord {
  position: absolute;
  top: -0.65rem;
  left: 1rem;
  font-size: 0.6875rem;
}

.partner-logo {
  height: 90px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  transition: transform var(--t-med);
}
.partner-card:hover .partner-logo { transform: scale(1.05); }

/* Real logo image inside .partner-logo (anasayfa partner-card) */
.partner-logo-img {
  width: auto;
  height: 80px;
  max-width: 200px;
  object-fit: contain;
  border-radius: 8px;
  background-color: #fff;
  padding: 6px 10px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  transition: transform var(--t-med);
  display: block;
}

.partner-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--df-navy);
  margin: 0 0 0.25rem;
  line-height: 1.3;
}

.partner-location {
  font-size: 0.8125rem;
  color: var(--df-gray-500);
  margin: 0;
}

/* ============================== [7] CTA BAND ============================== */
.cta-band {
  background:
    linear-gradient(135deg, var(--df-blue-deep) 0%, #6B4DCC 50%, var(--df-orange) 100%);
  color: var(--df-white);
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 1) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.06;
  pointer-events: none;
}

.cta-band-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  animation: blob-drift 12s ease-in-out infinite;
}

.cta-blob-1 {
  width: 320px; height: 320px;
  top: -100px; left: 10%;
  background: radial-gradient(circle, var(--df-amber) 0%, transparent 70%);
}
.cta-blob-2 {
  width: 280px; height: 280px;
  bottom: -100px; right: 10%;
  background: radial-gradient(circle, var(--df-blue-bright) 0%, transparent 70%);
  animation-delay: -6s;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

.cta-card {
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform var(--t-med), background-color var(--t-med), border-color var(--t-med);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 30px rgba(0, 0, 0, 0.15);
}

.cta-card:hover {
  transform: translateY(-4px);
  background-color: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
}

.cta-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  background-color: rgba(255, 255, 255, 0.18);
  color: var(--df-white);
  margin-bottom: 0.5rem;
  transition: transform var(--t-med);
}

.cta-card:hover .cta-icon-wrap {
  transform: scale(1.08) rotate(-4deg);
}

.cta-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--df-white);
  margin: 0;
  letter-spacing: -0.01em;
}

.cta-card p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9375rem;
  margin: 0 0 0.75rem;
  line-height: 1.6;
}

.cta-card .btn { align-self: flex-start; }
