* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* The hidden attribute must always win, even over an element's own
   `display: flex` — otherwise the browser's default [hidden] rule loses
   the cascade to a same-origin author rule with equal specificity. */
[hidden] {
  display: none !important;
}

body {
  position: relative;
  background: #101010;
  color: #F7F6F2;
  font-family: 'Hanken Grotesk', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 198, 41, .94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(16, 16, 16, .14);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 32px);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #101010;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #101010;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.5px;
}

.badge-date {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(16, 16, 16, .7);
  white-space: nowrap;
}

/* Glow */

.glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.glow-top {
  top: 40px;
  left: -80px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 198, 41, .12) 0%, transparent 70%);
}

.glow-bottom {
  bottom: -100px;
  right: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 198, 41, .07) 0%, transparent 70%);
}

/* Hero */

.hero {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 32px);
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.hero-copy {
  position: relative;
  animation: rise .7s ease both;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 198, 41, .12);
  border: 1px solid rgba(255, 198, 41, .25);
  border-radius: 30px;
  padding: 6px 14px;
  margin-bottom: clamp(18px, 3vh, 26px);
}

.pill span:last-child {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .8px;
  color: #FFC629;
  text-transform: uppercase;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FFC629;
  flex-shrink: 0;
}

h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(42px, 5.2vw, 68px);
  line-height: 1.02;
  letter-spacing: -2.2px;
  color: #FFFFFF;
  margin-bottom: 22px;
}

h1 .accent {
  color: #FFC629;
}

.subcopy {
  font-size: 18px;
  line-height: 1.6;
  color: #9C9B94;
  max-width: 430px;
  margin-bottom: 32px;
  font-weight: 400;
  text-wrap: pretty;
}

/* Form */

.form-wrap {
  width: 100%;
  max-width: 440px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#email {
  flex: 1;
  min-width: 190px;
  box-sizing: border-box;
  background: #181818;
  border: 1.5px solid #2C2C2C;
  border-radius: 30px;
  padding: 16px 22px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #F7F6F2;
  outline: none;
}
#email::placeholder {
  color: #8B8A84;
}
#email:focus {
  border-color: #FFC629;
  background: #1C1B18;
}

#submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FFC629;
  color: #101010;
  border: none;
  border-radius: 30px;
  padding: 16px 28px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 24px -6px rgba(255, 198, 41, .45);
}
#submit-btn:hover:not(:disabled) {
  background: #FFE08A;
}
#submit-btn:disabled {
  opacity: .6;
  cursor: default;
}

.form-error {
  text-align: left;
  font-size: 13px;
  color: #F2A0A0;
  margin-top: 10px;
}

.success {
  display: flex;
  align-items: center;
  gap: 13px;
  background: rgba(18, 165, 148, .1);
  border: 1.5px solid rgba(18, 165, 148, .35);
  border-radius: 22px;
  padding: 14px 22px;
  min-height: 58px;
  box-sizing: border-box;
  text-align: left;
  animation: rise .5s ease both;
}

.success-title {
  font-size: 15px;
  font-weight: 800;
  color: #F7F6F2;
}

.success-sub {
  font-size: 13px;
  color: #9C9B94;
  margin-top: 2px;
}

.disclaimer {
  font-size: 13px;
  color: #8B8A84;
  margin-top: 14px;
  font-weight: 500;
}

/* Hero visual / phone mockup */

.hero-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 22px;
}

.phone-float {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: float 6s ease-in-out infinite;
}

.phone-frame {
  position: relative;
  width: 300px;
  height: 630px;
  border-radius: 52px;
  background: linear-gradient(150deg, #2a2a2c, #0c0c0d);
  padding: 9px;
  box-shadow:
    0 2px 0 0 rgba(255, 255, 255, .08) inset,
    0 60px 120px -30px rgba(0, 0, 0, .6),
    0 10px 30px -8px rgba(0, 0, 0, .5);
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 43px;
  overflow: hidden;
  background: #EFEDE5;
}

.view {
  position: absolute;
  inset: 0;
}

/* Map view */

.map-bg {
  position: absolute;
  inset: 0;
  display: block;
}

.map-pin {
  position: absolute;
}

.pin-shadow {
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .28));
}

.pin-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-search {
  position: absolute;
  top: 68px;
  left: 14px;
  right: 14px;
  background: #fff;
  border-radius: 14px;
  padding: 11px 14px;
  box-shadow: 0 8px 22px -8px rgba(0, 0, 0, .18);
  display: flex;
  align-items: center;
  gap: 10px;
}
.map-search span {
  font-size: 13px;
  color: #8B8A84;
  font-weight: 500;
  flex: 1;
}
.map-search-btn {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #101010;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-chips {
  position: absolute;
  top: 124px;
  left: 14px;
  display: flex;
  gap: 7px;
}
.map-chip {
  background: rgba(255, 255, 255, .85);
  border-radius: 30px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #5B5A54;
  white-space: nowrap;
}
.map-chip-active {
  background: #FFC629;
  font-weight: 700;
  color: #101010;
}

.place-card {
  position: absolute;
  bottom: 70px;
  left: 14px;
  right: 14px;
  background: #fff;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .22);
}
.place-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.place-name {
  font-weight: 700;
  font-size: 14px;
  color: #101010;
}
.place-meta {
  font-size: 11px;
  color: #8B8A84;
  margin-top: 2px;
}
.place-safe {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.place-safe span {
  font-size: 9px;
  font-weight: 800;
  color: #12A594;
  letter-spacing: .3px;
}
.place-tags {
  display: flex;
  gap: 5px;
}
.place-tag {
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
}
.place-tag-amber {
  background: #FBF1D6;
  color: #9A7B1E;
}
.place-tag-blue {
  background: #E2EBF6;
  color: #3F6FB0;
}

/* Scan view */

.view-scan {
  background: #0B0B0C;
  overflow: hidden;
}

.scan-viewfinder {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 382px;
  background: linear-gradient(180deg, #1a1a1c, #0B0B0C);
  overflow: hidden;
}
.scan-grain {
  position: absolute;
  inset: 0;
  opacity: .5;
  background: repeating-linear-gradient(180deg, #2a2a2d 0 55px, #1b1b1d 55px 61px);
}
.scan-rows {
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 15px;
  opacity: .45;
}
.scan-row {
  display: flex;
  gap: 6px;
}
.scan-cell {
  flex: 1;
  height: 41px;
  border-radius: 2px;
}

.scan-topbar {
  position: absolute;
  top: 48px;
  left: 0;
  right: 0;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.scan-brand {
  display: flex;
  align-items: center;
  gap: 5px;
}
.scan-brand span {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 12px;
  color: #fff;
  letter-spacing: -.2px;
}
.scan-topbar-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scan-frame {
  position: absolute;
  top: 148px;
  left: 50%;
  transform: translateX(-50%);
  width: 170px;
  height: 110px;
}
.scan-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 3px solid #FFC629;
}
.scan-corner-tl { top: 0; left: 0; border-right: none; border-bottom: none; border-radius: 9px 0 0 0; }
.scan-corner-tr { top: 0; right: 0; border-left: none; border-bottom: none; border-radius: 0 9px 0 0; }
.scan-corner-bl { bottom: 0; left: 0; border-right: none; border-top: none; border-radius: 0 0 0 9px; }
.scan-corner-br { bottom: 0; right: 0; border-left: none; border-top: none; border-radius: 0 0 9px 0; }
.scan-beam {
  position: absolute;
  top: 50%;
  left: 6px;
  right: 6px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #FFC629, transparent);
  box-shadow: 0 0 10px #FFC629;
  animation: beam 2.4s ease-in-out infinite;
}
@keyframes beam {
  0%, 100% { opacity: .7; transform: translateY(-40px); }
  50% { opacity: 1; transform: translateY(40px); }
}

.scan-hint {
  position: absolute;
  top: 276px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, .75);
  font-size: 10px;
  font-weight: 500;
}

.scan-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 224px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  z-index: 5;
}
.scan-control {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F3F2EE;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scan-control-main {
  width: 52px;
  height: 52px;
  background: #FFC629;
  box-shadow: 0 8px 18px -5px rgba(255, 198, 41, .7);
}

.scan-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 212px;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 13px 13px 0;
}
.scan-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}
.scan-sheet-head span:first-child {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: #101010;
}
.scan-sheet-clear {
  font-size: 10px;
  font-weight: 700;
  color: #9A998F;
}
.scan-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
}
.scan-item-icon {
  width: 33px;
  height: 33px;
  border-radius: 9px;
  background: #F3F2EE;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.scan-item-body {
  flex: 1;
  min-width: 0;
}
.scan-item-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #101010;
}
.scan-item-time {
  font-size: 9px;
  color: #9A998F;
}
.scan-item-divider {
  height: 1px;
  background: #F0EFEB;
}
.scan-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 8.5px;
  font-weight: 800;
  padding: 4px 7px;
  border-radius: 6px;
  white-space: nowrap;
}
.scan-badge-safe {
  color: #0E8C7E;
  background: rgba(18, 165, 148, .12);
}
.scan-badge-unsafe {
  color: #C0353A;
  background: rgba(229, 72, 77, .12);
}

/* Profile view */

.view-profile {
  background: #F7F6F2;
  padding: 48px 13px 0;
}
.profile-title {
  text-align: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: #101010;
  margin-bottom: 10px;
}
.profile-card {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  text-align: center;
  border: 2px solid #101010;
  box-shadow: 0 8px 18px -14px rgba(0, 0, 0, .4);
}
.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2.5px solid #FFC629;
  margin: 0 auto;
  display: block;
  object-fit: cover;
  background: #F0EEE7;
}
.profile-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: #101010;
  margin-top: 8px;
}
.profile-role {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .9px;
  color: #0E8C7E;
  margin-top: 3px;
}
.profile-pro {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FFC629;
  color: #101010;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .4px;
  padding: 4px 8px;
  border-radius: 7px;
  margin-top: 8px;
}
.profile-stats {
  display: flex;
  gap: 7px;
  margin-top: 10px;
}
.profile-stat {
  flex: 1;
  background: #fff;
  border-radius: 11px;
  padding: 9px 0;
  text-align: center;
  border: 1.5px solid #E6E3DA;
}
.profile-stat-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: #101010;
}
.profile-stat-label {
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: .6px;
  color: #9A998F;
  margin-top: 1px;
}
.profile-section-head {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 13px 2px 8px;
}
.profile-section-head span {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 9.5px;
  letter-spacing: .6px;
  color: #101010;
}
.profile-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.profile-row {
  background: #fff;
  border-radius: 12px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1.5px solid #E6E3DA;
}
.profile-row-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.profile-row-body {
  flex: 1;
  min-width: 0;
}
.profile-row-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #101010;
}
.profile-row-sub {
  font-size: 9px;
  color: #9A998F;
}
.profile-toggle {
  width: 36px;
  height: 22px;
  border-radius: 11px;
  background: #FFC629;
  position: relative;
  border: 1.5px solid #101010;
  flex-shrink: 0;
}
.profile-toggle span {
  position: absolute;
  top: 1.5px;
  right: 1.5px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #101010;
}

/* Status bar */

.status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px 0;
  z-index: 10;
}
.status-time {
  font-weight: 700;
  font-size: 13px;
  color: #0A0A0A;
}
.status-notch {
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  width: 86px;
  height: 25px;
  border-radius: 14px;
  background: #000;
}
.status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Bottom tab bar */

.tab-bar {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .84);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .18);
  z-index: 20;
}
.tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 58px;
  padding: 5px 0;
  border-radius: 18px;
  border: none;
  background: transparent;
  color: #9C9C9C;
  cursor: pointer;
  transition: background .18s, color .18s;
  font-family: inherit;
}
.tab-btn span {
  font-size: 9px;
  font-weight: 700;
}
.tab-btn-active {
  background: rgba(255, 198, 41, .16);
  color: #101010;
}

.hint-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 30px;
  padding: 8px 16px;
}
.hint-pill span {
  font-size: 12px;
  font-weight: 700;
  color: #8B8A84;
  letter-spacing: .2px;
}

/* Responsive */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: clamp(28px, 8vw, 48px);
    padding-bottom: 48px;
    min-height: 0;
  }
  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .subcopy {
    max-width: 52ch;
  }
  .form-wrap {
    margin: 0 auto;
  }
  .form-row {
    justify-content: center;
  }
  .form-error,
  .disclaimer {
    text-align: center;
  }
  .hero-visual {
    order: -1;
  }
  .phone-frame {
    transform: scale(.8);
    margin: -63px 0;
  }
}

@media (max-width: 380px) {
  .phone-frame {
    transform: scale(.68);
    margin: -101px 0;
  }
}
