* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  color: #ffffff;
  background:
    radial-gradient(circle at 88% 4%, rgba(237, 35, 22, 0.42), transparent 24%),
    radial-gradient(circle at 12% 88%, rgba(0, 82, 255, 0.42), transparent 32%),
    linear-gradient(135deg, rgba(3, 8, 23, 0.2), rgba(11, 10, 35, 0.16)),
    url("assets/sendiri-gallery.webp") center center / cover fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 36px 18px;
}

.phone-card {
  width: min(100%, 430px);
  min-height: auto;
  overflow: hidden;
  position: relative;
  border-radius: 28px;
  padding: 30px 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.22));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px) saturate(135%);
}

.phone-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: inherit;
}

.hero {
  min-height: auto;
  padding: 0 0 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: none;
}

.topbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  font-size: 18px;
}

.hero-title {
  max-width: 340px;
  margin: 0;
  text-align: center;
  font-size: clamp(24px, 6.5vw, 33px);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.hero-title em {
  display: inline-block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.08em;
  font-weight: 600;
  letter-spacing: -0.05em;
}

.link-list {
  display: grid;
  gap: 11px;
  padding: 0;
}

.link-button {
  min-height: 70px;
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 18px;
  color: #101828;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
  backdrop-filter: none;
  cursor: pointer;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.link-button:hover,
.link-button:focus-visible {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
  outline: none;
}

.featured-link {
  border-color: #ffffff;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
}

.featured-link .ai-icon {
  background: #101828;
}

.featured-link .ai-icon svg {
  stroke: #ffffff;
}

.link-button strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: #101828;
  text-shadow: none;
}

.link-button small {
  display: block;
  color: rgba(16, 24, 40, 0.62);
  line-height: 1.35;
  font-size: 11px;
  font-weight: 500;
}

.icon {
  display: grid;
  place-items: center;
  border-radius: 7px;
}

.icon {
  width: 40px;
  height: 40px;
  background: rgba(16, 24, 40, 0.06);
  box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.12);
}

.icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #101828;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-footer {
  margin: 24px 0 0;
  text-align: center;
  font-family: "Times New Roman", Times, serif;
  font-size: 12px;
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0;
}

.chat-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.chat-modal[hidden] {
  display: none;
}

.chat-modal.is-open {
  pointer-events: auto;
  opacity: 1;
}

.chat-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(18px);
}

.chat-panel {
  width: min(100%, 390px);
  max-height: min(720px, calc(100vh - 40px));
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  background: rgba(248, 250, 252, 0.94);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.24);
  transform: translateY(16px) scale(0.98);
  transition: transform 180ms ease;
}

.chat-modal.is-open .chat-panel {
  transform: translateY(0) scale(1);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.chat-header p {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: #667085;
}

.chat-header h2 {
  margin: 0;
  font-size: 19px;
  letter-spacing: 0;
  color: #101828;
}

.chat-close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 50%;
  color: #111827;
  background: #ffffff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.chat-messages {
  min-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 16px;
}

.message {
  max-width: 82%;
  padding: 12px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.ai-message {
  align-self: flex-start;
  color: #111827;
  background: #ffffff;
}

.user-message {
  align-self: flex-end;
  color: #ffffff;
  background: #111827;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.74);
}

.chat-form input {
  min-width: 0;
  height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  padding: 0 16px;
  color: #111827;
  background: #ffffff;
  outline: none;
}

.chat-form input:focus {
  border-color: rgba(17, 24, 39, 0.28);
  box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.06);
}

.chat-form button {
  height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: #ffffff;
  background: #111827;
  cursor: pointer;
  font-weight: 700;
}

@media (max-width: 430px) {
  .page {
    padding: 18px;
    align-items: center;
  }

  .phone-card {
    width: 100%;
    border-radius: 24px;
    padding: 28px 18px 22px;
  }

  .hero {
    padding-bottom: 22px;
  }

  .link-list {
    padding-inline: 0;
  }

  .brand-footer {
    margin-bottom: 0;
  }

  .chat-modal {
    padding: 12px;
  }

  .chat-panel {
    max-height: calc(100vh - 24px);
    border-radius: 26px;
  }
}
