/* =========================================================
   hero-style.css — Nav + hero section
   ========================================================= */

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 12px 20px;
}

.nav-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(247,246,242,0.62);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 999px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #181815;
  color: #fff;
  font-family: var(--font-sans, 'Geist', system-ui, sans-serif);
  font-size: 14px;
  font-weight: 600;
  padding: 0 20px;
  height: 36px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s;
  letter-spacing: -0.2px;
}

.nav-download-btn:hover {
  background: #2e2e2b;
}

.nav-download-btn svg {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  nav {
    padding: 0;
  }
  .nav-inner {
    max-width: 100%;
    border-radius: 0;
    height: 64px;
    padding: 0 20px;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }
  .hero-v2 {
    padding-top: 64px !important;
  }
}

/* HERO */
.hero-v2 {
  /* override the global `section { max-width: 1200px; margin: 0 auto; }` */
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;

  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 76px !important; /* floating nav: 12px gap + 52px pill + 12px gap */
  background-color: #c5d9ec; /* sky-blue fallback */
}

/* Background image lives on a pseudo-element so it can be blurred
   without blurring the hero content on top of it. */
.hero-v2::before {
  content: '';
  position: absolute;
  /* bleed past the edges so the blur doesn't feather in at the borders */
  top: -20px; right: -20px; bottom: -20px; left: -20px;
  z-index: 0;
  background-image: url('../img/hero_img_large_2.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  filter: blur(3px);
}

.hero-v2-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 740px;
  margin: 0 auto;
  padding: 72px 28px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Heading ── */
.hero-v2-heading {
  font-family: var(--font-sans, 'Geist', system-ui, sans-serif);
  font-size: clamp(40px, 7.5vw, 72px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -2.5px;
  color: #0d0d0b;
  margin: 0 0 22px;
}

/* ── Subtitle ── */
.hero-v2-sub {
  font-family: var(--font-sans, 'Geist', system-ui, sans-serif);
  font-size: clamp(20px, 3.5vw, 34px);
  font-weight: 400;
  color: #4a4a4a;
  line-height: 1.2;
  max-width: 480px;
  margin: 0 0 36px;
}

/* ── CTA Button ── */
.hero-v2-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #181815;
  color: #fff;
  font-family: var(--font-sans, 'Geist', system-ui, sans-serif);
  font-size: 16px;
  font-weight: 600;
  padding: 15px 34px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  margin-bottom: 18px;
  letter-spacing: -0.2px;
}

.hero-v2-btn:hover {
  background: #2e2e2b;
  transform: translateY(-1px);
}

.hero-v2-btn svg {
  flex-shrink: 0;
}

/* ── Mockup image ── */
.hero-v2-mockup {
  width: 120%;            /* +20% */
  max-width: 1536px;      /* 1280px +20% */
  margin-top: -40px;      /* pull the mockup up a bit */
}

.hero-v2-mockup img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .hero-v2-content {
    padding: 22px 20px 0;
  }

  .hero-v2-heading {
    letter-spacing: -1.5px;
  }

  .hero-v2-btn {
    padding: 13px 28px;
    font-size: 15px;
  }

  .hero-v2-mockup {
    width: 100%;
    margin-top: -24px;
  }

  .hero-v2-mockup img {
    width: 180%; /* 150% +20% */
    height: auto;
    display: block;
    margin-left: -40%; /* center the overflow: -(180% - 100%) / 2 */
    padding-bottom: 0px;
  }
}

/* =========================================================
   FEATURE CARDS (feature area)
   ========================================================= */

.feature-area .section-title,
.network-area .section-title {
  margin-bottom: 0;
}

/* Fixed height for the technologie image, roughly matching the text column. */
@media (min-width: 768px) {
  .network-area .net-img-col .img-area {
    text-align: center;
  }
  .network-area .net-img-col .img-area img {
    height: 320px;
    width: auto;
    max-width: 100%;
    object-fit: cover;
  }
}

.feature-v2-intro {
  font-family: var(--font-sans, 'Geist', system-ui, sans-serif);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.4;
  opacity: 0.9;
  max-width: 760px;
  margin: 0 auto;
}

@media (max-width: 575.98px) {
  .feature-v2-intro {
    font-size: 17px;
  }
}

.feature-v2-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;      /* all cards share the tallest card's height */
  gap: 24px;
}

.feature-v2-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 44px 38px 0;
  border-radius: 32px;
  overflow: hidden;          /* crops the appshot at the card's bottom edge */
  background: linear-gradient(180deg, #e9edfa 0%, #eef1fa 46%, #f7f5f1 100%);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.feature-v2-text {
  text-align: left;
}

.feature-area .feature-v2-card h3 {
  font-family: var(--font-sans, 'Geist', system-ui, sans-serif);
  font-size: clamp(28px, 2.4vw, 38px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1.2px;
  color: #0d0d0b;
  margin: 0 0 14px;
}

.feature-area .feature-v2-card p {
  font-family: var(--font-sans, 'Geist', system-ui, sans-serif);
  font-size: clamp(16px, 1.35vw, 20px);
  font-weight: 400;
  line-height: 1.32;
  color: #4a4a4a;
  margin: 0;
}

/* Appshot sits at the bottom of every card, so the images line up
   no matter how long the title/copy above them is. */
.feature-v2-shot {
  margin-top: auto;
  padding-top: 34px;
  display: flex;
  justify-content: center;
}

.feature-v2-shot img {
  display: block;
  width: 84%;
  max-width: 400px;
  height: auto;
  margin-bottom: -4%;        /* slight bleed past the card edge */
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
  .feature-v2-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .feature-v2-card {
    padding: 36px 30px 0;
    border-radius: 28px;
  }
}

@media (max-width: 640px) {
  .feature-v2-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 420px;
    margin: 0 auto;
  }
  .feature-v2-card {
    padding: 32px 26px 0;
    border-radius: 26px;
  }
  .feature-v2-shot {
    padding-top: 26px;
  }
}

/* ── Dark mode ── */
.dark .feature-v2-card {
  background: linear-gradient(180deg, #232326 0%, #1e1e21 55%, #191919 100%);
  border-color: rgba(255, 255, 255, 0.06);
}

.dark .feature-area .feature-v2-card h3 {
  color: rgba(255, 255, 255, 0.95);
}

.dark .feature-area .feature-v2-card p {
  color: rgba(255, 255, 255, 0.7);
}

/* =========================================================
   TEAM PANEL (unser team area)
   ========================================================= */

/* drop the theme's light-blue band behind the section (style.css sets it on
   .testimonial-area); the card provides all the colour this section needs */
.testimonial-area {
  background-color: transparent;
}

/* The whole section sits inside one card, styled like the feature cards. */
.team-v2-panel {
  padding: 60px 50px 64px;
  border-radius: 32px;
  background: linear-gradient(180deg, #e9edfa 0%, #eef1fa 46%, #f7f5f1 100%);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* the section heading sits outside the card, like every other section;
   the card opens with its own, smaller statement headline */
.testimonial-area .team-v2-headline {
  font-family: var(--font-sans, 'Geist', system-ui, sans-serif);
  font-size: clamp(26px, 2.5vw, 36px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -1px;
  color: #0d0d0b;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.team-v2-intro {
  font-family: var(--font-sans, 'Geist', system-ui, sans-serif);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: #4a4a4a;
  text-align: center;
  max-width: 700px;
  margin: 20px auto 0;
}

/* ── Portraits: loosely scattered row ── */
.team-v2-orbit {
  --team-size: clamp(96px, 10vw, 138px);
  --team-accent: #fb7c63;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3.4vw, 52px);
  /* room for the vertical offsets and the hover name tag */
  margin: 46px 0 0;
  padding: 40px 0 30px;
}

.team-v2-node {
  /* every portrait is nudged out of the grid by these two offsets */
  --team-x: 0px;
  --team-y: 0px;
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 50%;
  transform: translate(var(--team-x), var(--team-y));
  transition: transform 0.35s cubic-bezier(0.22, 0.7, 0.3, 1);
}

/* uneven up/down scatter, plus uneven horizontal spacing on top of the gap */
.team-v2-orbit .team-v2-node:nth-of-type(1) { --team-y: 16px; }
.team-v2-orbit .team-v2-node:nth-of-type(2) { --team-y: -32px; margin-left: 12px; }
.team-v2-orbit .team-v2-node:nth-of-type(3) { --team-y: 26px; margin-left: 30px; }
.team-v2-orbit .team-v2-node:nth-of-type(4) { --team-y: -18px; margin-left: -8px; }
.team-v2-orbit .team-v2-node:nth-of-type(5) { --team-y: 8px; margin-left: 22px; }

.team-v2-node:hover {
  transform: translate(var(--team-x), calc(var(--team-y) - 8px)) scale(1.04);
}

/* accent ring that grows in on hover */
.team-v2-node::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 2px solid var(--team-accent);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.team-v2-node:hover::after {
  opacity: 1;
  transform: scale(1);
}

.team-v2-avatar {
  display: block;
  width: var(--team-size);
  height: var(--team-size);
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid #fff;
  box-shadow: 0px 10px 28px 0px rgba(51, 59, 85, 0.16);
  transition: box-shadow 0.35s ease;
}

.team-v2-node:hover .team-v2-avatar {
  box-shadow: 0px 16px 36px 0px rgba(51, 59, 85, 0.24);
}

.team-v2-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* name pill, revealed on hover only */
.team-v2-tag {
  position: absolute;
  left: 50%;
  top: calc(100% + 14px);
  transform: translate(-50%, 6px);
  white-space: nowrap;
  font-family: var(--font-sans, 'Geist', system-ui, sans-serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: #0d0d0b;
  background: #fff;
  padding: 9px 15px;
  border-radius: 999px;
  box-shadow: 0px 6px 18px 0px rgba(51, 59, 85, 0.16);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.team-v2-node:hover .team-v2-tag {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ── Responsive ── */
@media (max-width: 1199.98px) {
  .team-v2-panel {
    padding: 50px 36px 54px;
  }
  .team-v2-orbit {
    margin-top: 34px;
    gap: clamp(14px, 2.4vw, 34px);
  }
  /* tighter offsets so the five portraits still fit on one line */
  .team-v2-orbit .team-v2-node:nth-of-type(2) { margin-left: 6px; }
  .team-v2-orbit .team-v2-node:nth-of-type(3) { margin-left: 16px; }
  .team-v2-orbit .team-v2-node:nth-of-type(4) { margin-left: -4px; }
  .team-v2-orbit .team-v2-node:nth-of-type(5) { margin-left: 12px; }
}

/* mobile: two loose columns, portraits paired up and scattered off the grid */
@media (max-width: 767.98px) {
  .team-v2-panel {
    padding: 44px 26px 46px;
    border-radius: 28px;
  }
  .team-v2-orbit {
    --team-size: clamp(92px, 27vw, 118px);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    align-items: start;
    column-gap: 4px;
    row-gap: 6px;
    margin-top: 20px;
    /* the last row is pushed down by its offset, so leave room for it */
    padding: 10px 0 44px;
  }
  /* pairs sit nearly side by side, each one nudged so no two line up */
  .team-v2-orbit .team-v2-node:nth-of-type(1) { --team-x: 14px;  --team-y: 0px; }
  .team-v2-orbit .team-v2-node:nth-of-type(2) { --team-x: -10px; --team-y: 22px; }
  .team-v2-orbit .team-v2-node:nth-of-type(3) { --team-x: -16px; --team-y: 16px; }
  .team-v2-orbit .team-v2-node:nth-of-type(4) { --team-x: 18px;  --team-y: 44px; }
  .team-v2-orbit .team-v2-node:nth-of-type(5) { --team-x: 34px;  --team-y: 24px; }
  .team-v2-orbit .team-v2-node {
    margin-left: 0;
  }

  /* the name pill would overlap the portrait below, so park it beside instead */
  .team-v2-tag {
    top: 50%;
    left: calc(100% + 14px);
    transform: translate(0, -50%);
  }
  .team-v2-node:hover .team-v2-tag {
    transform: translate(0, -50%);
  }
  .team-v2-orbit .team-v2-node:nth-of-type(even) .team-v2-tag {
    left: auto;
    right: calc(100% + 14px);
  }
}

@media (max-width: 479.98px) {
  .team-v2-panel {
    padding: 38px 22px 40px;
    border-radius: 26px;
  }
  .team-v2-orbit {
    column-gap: 2px;
    row-gap: 4px;
  }
  .team-v2-orbit .team-v2-node:nth-of-type(1) { --team-x: 10px;  --team-y: 0px; }
  .team-v2-orbit .team-v2-node:nth-of-type(2) { --team-x: -8px;  --team-y: 20px; }
  .team-v2-orbit .team-v2-node:nth-of-type(3) { --team-x: -12px; --team-y: 14px; }
  .team-v2-orbit .team-v2-node:nth-of-type(4) { --team-x: 14px;  --team-y: 40px; }
  .team-v2-orbit .team-v2-node:nth-of-type(5) { --team-x: 26px;  --team-y: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .team-v2-node,
  .team-v2-avatar,
  .team-v2-tag {
    transition: none;
  }
}

/* ── Dark mode ── */
.dark .team-v2-panel {
  background: linear-gradient(180deg, #232326 0%, #1e1e21 55%, #191919 100%);
  border-color: rgba(255, 255, 255, 0.06);
}

.dark .testimonial-area .team-v2-headline {
  color: rgba(255, 255, 255, 0.95);
}

.dark .team-v2-intro {
  color: rgba(255, 255, 255, 0.7);
}

.dark .team-v2-avatar {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.dark .team-v2-tag {
  background: #2b2b2f;
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0px 6px 18px 0px rgba(0, 0, 0, 0.45);
}
