:root {
  --bg: #030507;
  --screen-bg: #091018;
  --panel: #101720;
  --panel-2: #141d27;
  --gold: #cc9836;
  --gold-light: #e8bc59;
  --gold-soft: rgba(232, 188, 89, 0.18);
  --text: #ffffff;
  --muted: #c7ced8;
  --line: rgba(255, 255, 255, 0.12);
  --green: #25d366;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(20, 36, 54, 0.85), transparent 35%),
    linear-gradient(180deg, #05080b 0%, #010203 100%);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px 12px;
}

.phone-frame {
  width: min(100%, 430px);
  border-radius: 38px;
  padding: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.20), rgba(255,255,255,0.05));
  box-shadow: 0 24px 70px rgba(0,0,0,0.55), inset 0 0 1px rgba(255,255,255,0.55);
}

.phone-screen {
  position: relative;
  min-height: 850px;
  border-radius: 32px;
  overflow: hidden;
  padding: 26px 15px 20px;
  background:
    radial-gradient(circle at 50% -5%, rgba(31, 73, 114, 0.55), transparent 35%),
    linear-gradient(180deg, #07101a 0%, #060c12 100%);
  border: 1px solid rgba(255,255,255,0.10);
}

.phone-screen::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 122px;
  height: 28px;
  border-radius: 0 0 18px 18px;
  background: #020305;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.06);
}

.top-header {
  text-align: center;
  padding-top: 18px;
  margin-bottom: 12px;
}
.top-header h1 {
  margin: 0;
  color: var(--gold-light);
  letter-spacing: 2.3px;
  font-size: 25px;
  font-weight: 700;
}
.top-header p {
  margin: 4px 0 0;
  color: #f2f2f2;
  font-size: 14px;
}

.hero-stage {
  min-height: 205px;
  border-radius: 18px;
  padding: 14px 10px 10px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
  align-items: end;
  background:
    radial-gradient(circle at 48% 15%, rgba(238, 186, 83, 0.26), transparent 25%),
    linear-gradient(90deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 20%),
    linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.02) 42%, rgba(0,0,0,0.34));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 -14px 35px rgba(0,0,0,0.35);
}
.hero-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 170px;
}
.hero-visual {
  width: 100%;
  min-height: 150px;
  border-radius: 12px 12px 8px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
  background:
    radial-gradient(circle at 50% 0%, rgba(232,188,89,0.24), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--gold-light);
  font-size: 58px;
  box-shadow: 0 10px 18px rgba(0,0,0,0.22);
}
.hero-visual img,
.tile-icon img,
.modal-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hero-item:nth-child(2) .hero-visual { color: #9ed0ff; }
.hero-item:nth-child(3) .hero-visual { transform: translateY(-6px); }
.hero-item small {
  margin-top: 5px;
  color: rgba(255,255,255,0.84);
  font-size: 10px;
}

.front-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 13px;
}

.grid-tile {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.015) 30%),
    linear-gradient(180deg, #121b25, #0c131b);
  min-height: 96px;
  padding: 10px 6px 8px;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}
.grid-tile:active { transform: scale(0.98); }
.tile-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--gold-light);
  font-size: 32px;
}
.grid-tile span.label {
  display: block;
  text-align: center;
  font-size: 13px;
  line-height: 1.2;
}

.save-pill {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 13px 14px;
  border-radius: 28px;
  border: 1px solid rgba(232,188,89,0.55);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01));
  color: var(--gold-light);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.save-pill::before {
  content: "👤";
  margin-right: 10px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 99;
}
.modal-card {
  position: relative;
  width: min(100%, 390px);
  border-radius: 22px;
  padding: 20px 16px 18px;
  background: linear-gradient(180deg, #101720, #0b1016);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 60px rgba(0,0,0,0.5);
}
.close-btn {
  position: absolute;
  right: 12px;
  top: 10px;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
}
.modal-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 10px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  color: var(--gold-light);
  font-size: 34px;
}
.modal-card h2 {
  margin: 0;
  text-align: center;
  color: var(--gold-light);
  font-size: 20px;
}
.modal-card p {
  margin: 10px 0 0;
  color: #e2e7ec;
  line-height: 1.5;
  font-size: 14px;
  text-align: center;
}
.modal-subtitle { margin-bottom: 14px !important; }
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}
.modal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: white;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  font-size: 13px;
}

.inquiry-card label {
  display: block;
  margin-bottom: 10px;
  color: #e8e8e8;
  font-size: 14px;
}
.inquiry-card input,
.inquiry-card select,
.inquiry-card textarea {
  width: 100%;
  margin-top: 5px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px;
  background: #0a1016;
  color: #fff;
  padding: 11px 12px;
  font-size: 14px;
}
.inquiry-card textarea { resize: vertical; }
.whatsapp-btn {
  width: 100%;
  margin-top: 5px;
  border: 0;
  border-radius: 14px;
  padding: 13px 14px;
  background: var(--green);
  color: #07210f;
  font-size: 18px;
  font-weight: 700;
}

@media (max-width: 380px) {
  .phone-screen { min-height: 780px; }
  .hero-stage { grid-template-columns: repeat(5, minmax(0,1fr)); }
  .grid-tile { min-height: 78px; }
}
