*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}

:root {
  --blue: #0054a6;
  --blue-glow: #1a7fd4;
  --green: #8bc53f;
  --green-light: #b5e06a;
  --gold: #c9a962;
  --gold-light: #e8d5a3;
  --gold-dark: #8a6d32;
  --navy: #0a1628;
  --navy-mid: #0f1f3d;
  --navy-card: #0c1829;
  --white: #f8f6f1;
  --muted: rgba(248, 246, 241, 0.5);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

html {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--navy);
  color: var(--white);
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}

/* Background */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 84, 166, 0.22), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(139, 197, 63, 0.12), transparent),
    var(--navy);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
}

.orb-1 { width: 260px; height: 260px; background: var(--blue); top: 5%; left: -20%; }
.orb-2 { width: 220px; height: 220px; background: var(--green); bottom: 10%; right: -20%; }

/* Page shell */
.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 auto;
  padding:
    calc(8px + var(--safe-top))
    calc(8px + var(--safe-right))
    calc(8px + var(--safe-bottom))
    calc(8px + var(--safe-left));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Card */
.card {
  position: relative;
  height: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  padding: 22px 18px 18px;
  border-radius: 24px;
  border: 1px solid rgba(201, 169, 98, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 18%),
    linear-gradient(165deg, #101e36 0%, var(--navy-card) 45%, #070e1a 100%);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: visible;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.7;
  z-index: 3;
}

.card-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(201, 169, 98, 0.04) 48%,
    rgba(255, 255, 255, 0.03) 50%,
    rgba(201, 169, 98, 0.04) 52%,
    transparent 65%
  );
  background-size: 200% 100%;
  animation: shine 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shine {
  0%, 100% { background-position: 150% center; }
  50% { background-position: -50% center; }
}

/* Corners */
.corner {
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
  z-index: 3;
}

.corner::before,
.corner::after {
  content: '';
  position: absolute;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  opacity: 0.85;
}

.corner-tl { top: 14px; left: 14px; }
.corner-tl::before { top: 0; left: 0; width: 14px; height: 1px; }
.corner-tl::after  { top: 0; left: 0; width: 1px; height: 14px; }

.corner-tr { top: 14px; right: 14px; }
.corner-tr::before { top: 0; right: 0; width: 14px; height: 1px; }
.corner-tr::after  { top: 0; right: 0; width: 1px; height: 14px; }

.corner-bl { bottom: 14px; left: 14px; }
.corner-bl::before { bottom: 0; left: 0; width: 14px; height: 1px; }
.corner-bl::after  { bottom: 0; left: 0; width: 1px; height: 14px; }

.corner-br { bottom: 14px; right: 14px; }
.corner-br::before { bottom: 0; right: 0; width: 14px; height: 1px; }
.corner-br::after  { bottom: 0; right: 0; width: 1px; height: 14px; }

/* Hero */
.hero {
  text-align: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 18px;
  padding: 14px 28px;
  margin-bottom: 14px;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(201, 169, 98, 0.2),
    0 0 40px rgba(0, 84, 166, 0.15);
}

.logo {
  height: 44px;
  width: auto;
  display: block;
}

.brand-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 64%;
  max-width: 190px;
  margin: 0 auto 13px;
}

.brand-divider .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 98, 0.8), transparent);
}

.brand-divider .diamond {
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(201, 169, 98, 0.5);
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.48rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 1.22;
  margin-bottom: 8px;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.region {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-light);
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(201, 169, 98, 0.1);
  border: 1px solid rgba(201, 169, 98, 0.22);
}

/* Quick contact */
.quick-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 16px 0 14px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 12px 8px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 169, 98, 0.2);
  text-decoration: none;
  transition: transform 0.15s, background 0.15s;
  min-width: 0;
  text-align: center;
}

.quick-btn:active {
  transform: scale(0.97);
  background: rgba(201, 169, 98, 0.1);
}

.quick-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(201, 169, 98, 0.12);
  border: 1px solid rgba(201, 169, 98, 0.2);
  color: var(--gold);
}

.quick-icon svg {
  width: 16px;
  height: 16px;
}

.quick-text small {
  display: block;
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
}

.quick-text strong {
  display: block;
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.25;
}

/* Section label */
.section-label {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.75;
  text-align: center;
  margin-bottom: 10px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

/* Links */
.links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-decoration: none;
  transition: transform 0.15s, background 0.15s;
  position: relative;
  overflow: hidden;
  opacity: 1;
}

.link-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--gold);
  opacity: 0.5;
}

.link-card:active {
  transform: scale(0.985);
  background: rgba(255, 255, 255, 0.06);
}

.link-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--gold-light);
}

.link-icon svg {
  width: 20px;
  height: 20px;
}

.link-text {
  flex: 1;
  min-width: 0;
}

.link-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.25;
}

.link-text small {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.go {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--gold-dark);
  background: rgba(201, 169, 98, 0.08);
  border: 1px solid rgba(201, 169, 98, 0.15);
  line-height: 1;
  padding-bottom: 1px;
}

/* Link variants */
.link-card.web {
  background: linear-gradient(135deg, rgba(0, 84, 166, 0.14), rgba(0, 84, 166, 0.04));
  border-color: rgba(0, 84, 166, 0.28);
}
.link-card.web::before { background: var(--blue-glow); opacity: 0.9; }
.link-card.web .link-icon {
  background: rgba(0, 84, 166, 0.2);
  border-color: rgba(77, 163, 255, 0.25);
  color: #6db8ff;
}

.link-card.consult {
  background: linear-gradient(135deg, rgba(139, 197, 63, 0.16), rgba(139, 197, 63, 0.04));
  border-color: rgba(139, 197, 63, 0.32);
}
.link-card.consult::before { background: var(--green-light); opacity: 0.9; }
.link-card.consult .link-icon {
  background: rgba(139, 197, 63, 0.18);
  border-color: rgba(181, 224, 106, 0.3);
  color: var(--green-light);
}

.link-card.wa::before { background: #25d366; opacity: 0.9; }
.link-card.wa .link-icon {
  background: rgba(37, 211, 102, 0.14);
  border-color: rgba(37, 211, 102, 0.28);
  color: #25d366;
}

.link-card.wa .link-icon svg {
  width: 22px;
  height: 22px;
}

.link-card.ig::before { background: #e1306c; opacity: 0.9; }
.link-card.ig .link-icon {
  background: rgba(225, 48, 108, 0.12);
  border-color: rgba(225, 48, 108, 0.25);
  color: #e1306c;
}

.link-card.li::before { background: #0a66c2; opacity: 0.9; }
.link-card.li .link-icon {
  background: rgba(10, 102, 194, 0.14);
  border-color: rgba(10, 102, 194, 0.25);
  color: #4da3ff;
}

/* Footer */
.footer {
  text-align: center;
  padding-top: 14px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.footer-line {
  display: block;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
  margin: 0 auto 10px;
}

.footer p {
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.8;
  line-height: 1.5;
}

.footer-sub {
  font-size: 0.5rem !important;
  opacity: 0.55 !important;
  margin-top: 2px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(201, 169, 98, 0.35);
  background: rgba(201, 169, 98, 0.08);
  color: var(--gold-light);
  font-family: inherit;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.share-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.share-btn:active {
  transform: scale(0.97);
  background: rgba(201, 169, 98, 0.14);
}

.share-btn.is-copied {
  border-color: rgba(139, 197, 63, 0.45);
  color: var(--green-light);
  background: rgba(139, 197, 63, 0.1);
}

/* Small phones */
@media (max-height: 700px) {
  .card { padding: 18px 16px 14px; }
  .logo-wrap { padding: 11px 22px; margin-bottom: 11px; }
  .logo { height: 38px; }
  .hero h1 { font-size: 1.32rem; }
  .quick-row { margin: 12px 0 10px; }
  .link-card { padding: 9px 11px; }
  .link-icon { width: 36px; height: 36px; }
  .link-icon svg { width: 18px; height: 18px; }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 1.28rem; }
  .quick-text strong { font-size: 0.52rem; }
  .link-text strong { font-size: 0.82rem; }
}

/* Desktop — layout only, same sizes as mobile */
@media (min-width: 431px) {
  body {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: #060d18;
    padding: 24px 16px 32px;
  }

  .page {
    height: auto;
    max-height: calc(100dvh - 56px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .card {
    height: auto;
    overflow: visible;
  }
}

@media (min-width: 431px) and (min-height: 820px) {
  body {
    align-items: center;
    padding-top: 24px;
    padding-bottom: 24px;
  }
}
