/* ==========================================================================
   Tandem Home Page Section-Specific Styles
   ========================================================================== */
/* ==========================================================================
   1. Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  overflow: visible;
  min-height: 100vh;
}

.hero-section .section-header {
  max-width: 80%;
}

.hero-right-col {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 550px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  z-index: 10;
}

@media (max-width: 1280px) {
  .hero-section .split-grid {
    display: flex;
    flex-direction: column;
  }

  .hero-section .section-header {
    max-width: 100%;
    order: 2;
  }

  .hero-right-col {
    display: contents;
  }
}

.hero-video-wrapper {
  position: absolute;
  top: calc(50% - 475px);
  left: calc(50% - 700px);
  width: 950px;
  height: 950px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 1600px) {
  .hero-video-wrapper {
    width: 760px;
    height: 760px;
    top: calc(50% - 380px);
    left: calc(50% - 620px);
  }
}

@media (max-width: 1400px) {
  .hero-video-wrapper {
    width: 660px;
    height: 660px;
    top: calc(50% - 330px);
    left: calc(50% - 540px);
  }
}

@media (max-width: 1280px) {
  .hero-video-wrapper {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    max-width: 480px;
    grid-column: span 1;
    order: 1;
  }
}

@media (max-width: 768px) {
  .hero-video-wrapper {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: calc(100% + 2 * var(--space-lg));
    height: auto;
    aspect-ratio: 1;
    max-width: calc(100% + 2 * var(--space-lg));
    grid-column: span 1;
    order: 1;
  }
}

.hero-video-blend {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  position: relative;
}

@media (max-width: 1280px) {
  .hero-video-blend {
    aspect-ratio: 1;
    transform: scale(1.25);
  }
}

@media (max-width: 768px) {
  .hero-video-blend {
    transform: scale(1.4);
  }
}

.hero-lcp-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  z-index: 0;
  transform: scale(0.36);
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  position: relative;
  z-index: 1;
  transition: transform 0.15s ease-out;
}

.hero-video.poster-active {
  transform: scale(0.36);
}

@media (max-width: 1280px) {
  .hero-video {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 768px) {
  .hero-video {
    width: 100%;
    height: auto;
    max-width: 100%;
  }
}

.hero-video-wrapper.has-glow::before {
  width: var(--glow-size);
  height: var(--glow-size);
  z-index: -1;
}

.hero-card-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  width: 100%;
  right: -200px;
  position: absolute;
  z-index: 5;
}

@media (max-width: 1280px) {
  .hero-card-stack {
    position: relative;
    right: auto;
    flex-direction: row;
    justify-content: center;
    gap: var(--space-lg);
    width: 100%;
    order: 3;
  }
}

@media (max-width: 992px) {
  .hero-card-stack {
    flex-direction: column;
    gap: var(--space-lg);
    order: 3;
  }
}

.hero-card-stack .glass-card {
  width: 480px;
  max-width: 100%;
  box-sizing: border-box;
}

.hero-card-stack .glass-card:nth-child(2) {
  margin-left: calc(var(--space-3xl) + var(--space-md));
}

@media (max-width: 1600px) {
  .hero-card-stack .glass-card {
    width: 420px;
  }

  .hero-card-stack .glass-card:nth-child(2) {
    margin-left: calc(var(--space-3xl) + var(--space-xs));
  }
}

@media (max-width: 1280px) {
  .hero-card-stack .glass-card {
    flex: 1;
    max-width: 420px;
  }

  .hero-card-stack .glass-card:nth-child(2) {
    margin-left: 0;
  }
}

@media (max-width: 992px) {
  .hero-card-stack .glass-card {
    width: 100%;
    max-width: 100%;
  }
}

/* ==========================================================================
   2. Ecosystem Section
   ========================================================================== */
.ecosystem-section {
  position: relative;
  overflow: visible;
}

.ecosystem-visuals {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}

@media (max-width: 1280px) {
  .ecosystem-section .split-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
  }

  .ecosystem-visuals {
    height: auto;
    justify-content: center;
  }
}

.ecosystem-visuals.has-glow::before {
  left: auto;
  right: -150px;
  top: 50%;
  translate: 0 -50%;
}

.ring-decor-img {
  position: absolute;
  width: 380px;
  height: auto;
  bottom: -220px;
  right: calc(var(--card-max-width) / 2 - 300px);
  z-index: 6;
  pointer-events: none;
}

@media (max-width: 1280px) {
  .ring-decor-img {
    width: 260px;
    bottom: -130px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .ring-decor-img {
    width: 200px;
    bottom: -100px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
}

.ball-decor-img {
  position: absolute;
  width: 160px;
  height: auto;
  bottom: -100px;
  right: calc(var(--card-max-width) / 1 - 240px);
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 1280px) {
  .ball-decor-img {
    width: 80px;
    bottom: -40px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .ball-decor-img {
    width: 60px;
    bottom: -30px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
}

.glass-tube-decor {
  position: absolute;
  left: -160px;
  bottom: -150px;
  width: 458px;
  height: 374px;
  z-index: 2;
  pointer-events: none;
  transform: rotate(49.11deg);
}

@media (max-width: 1280px) {
  .glass-tube-decor {
    width: 340px;
    height: 278px;
    left: -80px;
    bottom: -100px;
  }
}

@media (max-width: 768px) {
  .glass-tube-decor {
    width: 240px;
    height: 196px;
    left: -40px;
    bottom: -60px;
  }
}

.glass-tube-decor img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ==========================================================================
   3. About Positioning Section & Why Choose Us Section
   ========================================================================== */
.positioning-section {
  position: relative;
  overflow: visible;
}

.positioning-grid-relative {
  position: relative;
  width: 100%;
}

.positioning-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xs);
  background-color: transparent;
  width: 100%;
  position: relative;
  z-index: 3;
}

@media (max-width: 768px) {
  .positioning-grid {
    grid-template-columns: 1fr;
  }
}

.positioning-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: var(--space-xl);
}

.traffic-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.traffic-tag {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-white);
  border-radius: var(--radius-sharp);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  white-space: nowrap;
}

.why-choose-us-section {
  position: relative;
  overflow: visible;
}

.why-choose-us-cards-relative {
  position: relative;
  width: 100%;
}

.why-choose-us-section .card-grid {
  position: relative;
  z-index: 3;
}

@media (max-width: 768px) {
  .why-choose-us-section .grid-card {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: var(--space-xl) var(--space-2xl);
    gap: var(--space-xl);
  }

  .why-choose-us-section .grid-card-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
  }
}

.crystal-wrapper-decor {
  position: absolute;
  left: 65%;
  top: -92px;
  width: 182px;
  height: 184px;
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 1280px) {
  .crystal-wrapper-decor {
    width: 146px;
    height: 147px;
    top: -73px;
    left: 60%;
  }
}

@media (max-width: 768px) {
  .crystal-wrapper-decor {
    width: 100px;
    height: 101px;
    top: -50px;
    left: 65%;
  }
}

.crystal-crop-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  transform: rotate(75.68deg);
}

.crystal-sheet-img {
  position: absolute;
  width: 663.66%;
  height: 444.06%;
  left: -24.4%;
  top: -323.86%;
  max-width: none;
}

.many-corners-decor-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ==========================================================================
   4. What We Do Section
   ========================================================================== */
.what-we-do-section {
  position: relative;
  overflow: visible;
}

@media (max-width: 1280px) {
  .what-we-do-section .split-grid .section-header {
    order: -1;
  }
}

.what-we-do-section .cube-decor-wrapper {
  position: absolute;
  top: 50%;
  left: 43%;
  transform: translate(-50%, -50%) rotate(24.63deg);
  width: 310px;
  height: 290px;
  pointer-events: none;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1280px) {
  .what-we-do-section .cube-decor-wrapper {
    display: block;
    position: absolute;
    top: auto;
    bottom: -80px;
    right: 10px;
    left: auto;
    transform: rotate(24.63deg);
    width: 200px;
    height: 185px;
    z-index: 1;
  }
}

.what-we-do-section .cube-decor-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.what-we-do-section .cube-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(146, 58, 255, 0.25) 0%, rgba(146, 58, 255, 0) 75%);
  transform: rotate(-31deg);
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 1280px) {
  .what-we-do-section .cube-glow {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-31deg);
  }
}

/* ==========================================================================
   5. Partners Section
   ========================================================================== */
.partners-section {
  position: relative;
  overflow: visible;
}

.partners-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  width: 100%;
}

.partners-section .text-lead-sm {
  min-height: 96px;
}

@media (max-width: 1280px) {
  .partners-section .text-lead-sm {
    min-height: auto;
  }

  .partners-section .partners-column:nth-child(2) {
    margin-top: var(--space-3xl);
  }
}

.partners-section .glass-card {
  max-width: 100%;
}

.partners-section .cone-decor-wrapper {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translate(-50%, 0) rotate(18deg);
  width: 250px;
  height: 250px;
  pointer-events: none;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1280px) {
  .partners-section .cone-decor-wrapper {
    position: absolute;
    bottom: -60px;
    left: auto;
    right: 20px;
    transform: rotate(18deg);
    width: 180px;
    height: 180px;
    z-index: 2;
  }
}

.partners-section .cone-decor-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.partners-section .cone-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(146, 58, 255, 0.2) 0%, rgba(146, 58, 255, 0) 75%);
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 1280px) {
  .partners-section .cone-glow {
    width: 300px;
    height: 300px;
  }
}

/* ==========================================================================
   6. How It Works Section
   ========================================================================== */
.how-it-works-section {
  position: relative;
  overflow: visible;
}

.how-it-works-section .how-it-works-flow {
  width: 100%;
  max-width: 800px;
}

@media (max-width: 1280px) {
  .how-it-works-section .how-it-works-flow {
    max-width: 100%;
  }
}

.how-it-works-section .flow-decor-img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.how-it-works-section .how-it-works-right {
  position: relative;
}

.how-it-works-section .glass-card {
  max-width: 100%;
}

.how-it-works-section .how-it-works-glow-1 {
  position: absolute;
  width: 600px;
  height: 600px;
  left: -200px;
  top: 100px;
  background: radial-gradient(circle, rgba(146, 58, 255, 0.15) 0%, rgba(146, 58, 255, 0) 70%);
  pointer-events: none;
  z-index: -1;
}

.how-it-works-section .how-it-works-glow-2 {
  position: absolute;
  width: 700px;
  height: 700px;
  right: -250px;
  bottom: -150px;
  background: radial-gradient(circle, rgba(146, 58, 255, 0.15) 0%, rgba(146, 58, 255, 0) 70%);
  pointer-events: none;
  z-index: -1;
}

/* ==========================================================================
   7. Technology Section
   ========================================================================== */
.technology-section {
  position: relative;
  overflow: visible;
}

.technology-section .text-highlight-coral {
  color: var(--color-accent-coral);
  font-weight: 500;
}

.technology-section .ampersand-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 160px;
  max-height: 100%;
  flex-shrink: 0;
}

.technology-section .ampersand-icon {
  width: auto;
  height: 100%;
  max-height: 140px;
  object-fit: contain;
}

.technology-section .technology-desc-block {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.technology-section .glass-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-xl);
}

@media (max-width: 1280px) {
  .technology-section .split-grid.relative {
    gap: var(--space-xl);
  }

  .technology-section .technology-desc-block {
    max-width: 100%;
  }
}

.technology-section .ball-decor-wrapper-right {
  position: absolute;
  top: 90%;
  right: -160px;
  transform: translate(0, -50%) rotate(-31.08deg);
  width: 350px;
  height: 350px;
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1280px) {
  .technology-section .ball-decor-wrapper-right {
    position: absolute;
    bottom: -60px;
    right: 20px;
    left: auto;
    top: auto;
    transform: rotate(-31.08deg);
    width: 180px;
    height: 180px;
    z-index: 1;
  }
}

.technology-section .ball-decor-img-right {
  width: 240px;
  height: 240px;
  object-fit: contain;
}

@media (max-width: 1280px) {
  .technology-section .ball-decor-img-right {
    width: 150px;
    height: 150px;
  }
}

.technology-section .ball-glow-right {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(146, 58, 255, 0.2) 0%, rgba(146, 58, 255, 0) 75%);
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 1280px) {
  .technology-section .ball-glow-right {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 1280px) {
  .technology-section .glass-card {
    gap: var(--space-md);
  }
}

@media (max-width: 768px) {
  .technology-section .glass-card {
    align-items: flex-start;
  }

  .technology-section .ampersand-icon-box {
    max-width: 65px;
    align-items: flex-start;
  }

  .technology-section .ampersand-icon {
    max-height: 70px;
  }

  .technology-section .glass-card h3 {
    font-size: var(--fs-body);
    font-weight: 300;
  }
}

.technology-section .split-grid {
  align-items: start;
}

/* ==========================================================================
   8. Awards Section
   ========================================================================== */
.awards-section {
  position: relative;
  overflow: visible;
}

@media (max-width: 768px) {
  .awards-section .grid-card {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: var(--space-xl) var(--space-2xl);
    gap: var(--space-xl);
  }

  .awards-section .award-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .awards-section .grid-card h3 {
    font-size: var(--fs-body);
    font-weight: 300;
  }
}

/* ==========================================================================
   11. Blog Section
   ========================================================================== */
.blog-section {
  position: relative;
  overflow: visible;
}

.blog-section .split-grid {
  align-items: start;
  position: relative;
}

@media (max-width: 1280px) {
  .blog-section .split-grid {
    gap: 40px;
  }
}

.blog-section .blog-header {
  position: relative;
  z-index: 5;
}

.blog-section .blog-subtitle {
  color: var(--secondary-grey-purple);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: var(--fs-h2);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.blog-section .cube-decor-wrapper {
  position: absolute;
  left: 280px;
  top: 380px;
  width: 320px;
  height: 320px;
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .blog-section .cube-decor-wrapper {
    display: none;
  }
}

.blog-section .cube-decor-img {
  width: 240px;
  height: 240px;
  object-fit: contain;
}

.blog-section .cube-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(146, 58, 255, 0.18) 0%, rgba(146, 58, 255, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

.blog-section .blog-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xl);
  position: relative;
  z-index: 5;
}

.blog-row {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
  width: 100%;
  max-width: 660px;
  cursor: pointer;
  text-decoration: none;
  background: transparent;
  border: none;
}

@media (max-width: 768px) {
  .blog-row {
    gap: var(--space-md);
  }
}

.blog-row-img-wrapper {
  width: 160px;
  height: 140px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--radius-sharp);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .blog-row-img-wrapper {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
  }
}

.blog-row-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.blog-row-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  align-items: start;
  text-align: left;
}

.blog-row-date {
  font-family: var(--font-text);
  font-size: var(--fs-body);
  color: var(--secondary-grey-purple);
  letter-spacing: 0.5px;
}

.blog-row-title {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.3s ease, transform 0.3s ease;
}

@media (max-width: 768px) {
  .blog-row-title {
    font-size: 0.95rem;
  }
}

@media (hover: hover) {
  .blog-row:hover .blog-row-img-wrapper img {
    transform: scale(1.05);
  }

  .blog-row:hover .blog-row-title {
    color: var(--primary-purple);
    transform: translateX(6px);
  }
}

/* Sections 12 and 13 moved to global component sheet (cards.css) */