/* Hero — desktop-first base (1280px–1536px), both columns given room to breathe */

.hero {
  padding: 8rem 0 var(--space-16);
  min-height: 0;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.05), transparent 32%),
    radial-gradient(circle at left top, rgba(124, 58, 237, 0.04), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 72%);
}

.hero .container {
  max-width: 1380px;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 4rem;
  min-height: 0;
}

.hero-text {
  max-width: 720px;
  min-width: 0;
}

.hero-topline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.75);
  color: var(--text-gray-900);
  box-shadow: var(--shadow-sm);
}

.badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--success);
  font-size: 0.9rem;
}

.badge-text {
  font-size: var(--text-sm);
  font-weight: 700;
}

.hero-mini-proof {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: var(--space-2) var(--space-4);
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text-gray-600);
  box-shadow: var(--shadow-sm);
  font-size: var(--text-sm);
  font-weight: 600;
}

.hero-mini-proof i {
  color: #f59e0b;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: var(--space-5);
  margin-bottom: var(--space-4);
  font-size: clamp(2.85rem, 3.6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.hero-title-brand {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.5rem;
}

.hero-title-shield {
  flex-shrink: 0;
  width: 2.75rem;
  height: auto;
  object-fit: contain;
  display: block;
  margin-top: -0.12em;
}

.hero-title-name {
  white-space: nowrap;
}

.hero-title-break {
  display: block;
  font-size: 0.9em;
  line-height: 1.06;
  margin-top: 0.05em;
}

.hero-description {
  max-width: 46rem;
  margin-bottom: var(--space-6);
  font-size: var(--text-lg);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.hero-actions .btn-primary {
  min-width: 15rem;
}

.hero-actions .btn-secondary {
  border-color: rgba(17, 24, 39, 0.12);
  background: rgba(255, 255, 255, 0.88);
}

/* Strong values — 4 items: encryption, no logs, no sign-up, one-tap connect */
.hero-strong-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6) var(--space-8);
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-6);
}

.strong-value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.strong-value-item i {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  font-size: 1.25rem;
}

.strong-value-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.strong-value-text strong {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-gray-900);
  line-height: 1.3;
  display: block;
}

.strong-value-text span {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-gray-600);
  line-height: 1.35;
  display: block;
}

.hero-proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  max-width: 42rem;
  margin-bottom: var(--space-5);
}

.hero-proof-item {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.hero-proof-item strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--text-gray-900);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-proof-item span {
  color: var(--text-gray-600);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
}

.hero-benefits {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-3);
}

.hero-benefits li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 40px;
  padding: var(--space-2) var(--space-4);
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-gray-600);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.3;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  flex-shrink: 0;
  white-space: nowrap;
}

.hero-benefits li span {
  white-space: nowrap;
}

.hero-benefits i {
  color: var(--primary);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
}

/* Default (mobile/tablet): flexible layout; overridden below 1025px */
.hero-visual-panel {
  position: relative;
  width: min(100%, 440px);
  padding: var(--space-6);
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 255, 0.96));
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-device-stack {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-device {
  margin: 0;
}

.hero-device-primary .hero-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 22px;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.1);
}

.hero-device-secondary .hero-image-secondary {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.hero-image-secondary {
  border-radius: 14px;
}

.hero-device-note {
  position: absolute;
  z-index: 3;
  padding: 10px 14px;
  border: 1px solid rgba(17, 24, 39, 0.04);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.hero-device-note-top {
  top: 0;
  left: 0;
}

.hero-device-note-bottom {
  right: 0;
  bottom: 0;
}

.hero-note-label {
  display: block;
  margin-bottom: 2px;
  color: var(--text-gray-500);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-device-note strong {
  display: block;
  color: var(--text-gray-900);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
}

/* ── Desktop only (993px+): short frame, phone only focal, no clip, no back card ── */
@media (min-width: 993px) {
  .hero .hero-visual-panel {
    box-sizing: border-box !important;
    width: min(100%, 360px) !important;
    height: 300px !important;
    min-height: 300px !important;
    max-height: 300px !important;
    padding: 24px !important;
    overflow: hidden;
  }

  .hero .hero-visual-panel::before {
    content: "";
    position: absolute;
    top: 8px;
    right: 12px;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.04);
    filter: blur(12px);
    pointer-events: none;
  }

  .hero .hero-visual-panel::after {
    content: "";
    position: absolute;
    left: 8px;
    bottom: 12px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.03);
    filter: blur(10px);
    pointer-events: none;
  }

  .hero .hero-device-stack {
    width: 100% !important;
    height: 252px !important;
    min-height: 252px !important;
    max-height: 252px !important;
    box-sizing: border-box;
    overflow: hidden;
    flex-shrink: 0;
  }

  .hero .hero-device-primary {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    z-index: 2;
    width: auto;
    max-width: 140px;
    height: 252px !important;
    max-height: 252px !important;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
  }

  .hero .hero-device-primary .hero-image {
    width: auto !important;
    max-width: 140px !important;
    height: 252px !important;
    max-height: 252px !important;
    object-fit: contain !important;
    object-position: center center;
    display: block;
  }

  /* Back card (secondary device) hidden on desktop — phone is sole focal point */
  .hero .hero-device-secondary {
    display: none !important;
  }

  .hero .hero-device-note {
    max-width: 96px;
    padding: 6px 10px;
  }

  .hero .hero-device-note strong {
    font-size: 0.65rem;
  }
}

/* Trust strip */
.trust-strip {
  padding: 0 0 var(--space-20);
}

.trust-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-6);
  background: var(--bg-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.trust-value {
  color: var(--text-gray-900);
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.trust-label {
  color: var(--text-gray-600);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.5;
}

/* Tablet and below: stacked layout; do not override desktop (993px+) hero artwork */
@media (max-width: 992px) {
  .hero {
    padding-top: var(--space-16);
    padding-bottom: var(--space-14);
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .hero-text {
    max-width: none;
    text-align: center;
  }

  .hero-topline,
  .hero-actions,
  .hero-benefits {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-strong-values {
    grid-template-columns: repeat(2, 1fr);
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-description,
  .hero-proof-strip {
    margin-inline: auto;
  }

  .hero-visual-panel {
    width: min(100%, 440px);
    height: auto;
    min-height: 400px;
    max-height: none;
    padding: var(--space-7);
  }

  .hero-device-stack {
    min-height: 420px;
    max-height: none;
  }

  .hero-device-primary {
    position: absolute;
    top: 18px;
    right: 52px;
    width: 270px;
  }

  .hero-device-primary .hero-image {
    max-height: none;
  }

  .hero-device-secondary {
    left: 18px;
    bottom: 20px;
    width: 165px;
    opacity: 0.7;
  }

  .hero-device-secondary .hero-image-secondary {
    max-height: 240px;
  }

  .trust-strip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: var(--space-14);
    padding-bottom: var(--space-12);
  }

  .hero-title {
    max-width: none;
    font-size: clamp(2.45rem, 9vw, 3.6rem);
    line-height: 1;
  }

  .hero-title-shield {
    width: 2.25rem;
  }

  .hero-description {
    font-size: var(--text-base);
    max-width: 31rem;
    line-height: 1.65;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .hero-actions .btn-primary {
    min-width: 0;
  }

  .hero-strong-values {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5) var(--space-6);
    margin-bottom: var(--space-5);
    max-width: 36rem;
  }

  .hero-proof-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
    max-width: 100%;
  }

  .hero-benefits {
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    justify-content: center;
    gap: var(--space-2);
  }

  .hero-proof-item {
    flex: 1 1 30%;
    min-width: 104px;
  }

  .hero-proof-item strong {
    font-size: 1rem;
  }

  .hero-proof-item span {
    font-size: 0.74rem;
  }

  .hero-benefits li {
    width: auto;
    min-height: 40px;
    padding: var(--space-2) var(--space-3);
    justify-content: center;
    font-size: 0.82rem;
    white-space: normal;
    flex-shrink: 1;
  }

  .hero-benefits li span {
    white-space: normal;
  }

  .hero-visual-panel {
    padding: var(--space-6);
    border-radius: 28px;
  }

  .hero-device-stack {
    min-height: auto;
    padding-top: var(--space-10);
  }

  .hero-device-primary {
    position: relative;
    top: auto;
    right: auto;
    width: min(100%, 250px);
    margin: 0 auto;
  }

  .hero-device-secondary,
  .hero-device-note {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: var(--space-12);
  }

  .hero-title {
    margin-top: var(--space-4);
    margin-bottom: var(--space-3);
  }

  .hero-topline {
    justify-content: center;
  }

  .hero-mini-proof {
    padding-inline: var(--space-3);
  }

  .hero-proof-item {
    flex-basis: calc(50% - var(--space-2));
  }

  .hero-proof-item:last-child {
    flex-basis: 100%;
  }

  .trust-strip-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Small mobile: 480px and below ===== */
@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(1.75rem, 7.5vw, 2.45rem);
  }

  .hero-title-shield {
    width: 1.75rem;
  }

  .hero-description {
    font-size: var(--text-sm);
    max-width: 100%;
  }

  .hero-strong-values {
    grid-template-columns: 1fr;
    gap: var(--space-3);
    max-width: 100%;
  }

  .hero-proof-item {
    min-width: 80px;
  }

  .hero-proof-item strong {
    font-size: 0.9rem;
  }

  .hero-proof-item span {
    font-size: 0.68rem;
  }

  .hero-visual-panel {
    padding: var(--space-4);
    width: 100%;
  }

  .hero-actions {
    gap: var(--space-3);
  }

  .hero-benefits li {
    font-size: 0.75rem;
    padding: var(--space-1) var(--space-2);
  }
}
