:root {
  --font-main: Inter, Avenir, "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --color-bg: #e8f2f8;
  --color-bg-deep: #d9edf9;
  --color-card: transparent;
  --color-surface: rgba(255, 255, 255, 0.9);
  --color-surface-strong: #ffffff;
  --color-text: #16344f;
  --color-muted: #61778b;
  --color-primary: #008ef1;
  --color-primary-dark: #12496f;
  --color-accent: #17beb4;
  --color-line: rgba(22, 52, 79, 0.12);
  --radius-card: 30px;
  --radius-module: 28px;
  --radius-modal: 32px;
  --radius-button: 18px;
  --desktop-left-width: 430px;
  --desktop-right-width: 430px;
  --shadow-card: 0 24px 70px rgba(22, 52, 79, 0.18);
  --shadow-soft: 0 12px 32px rgba(22, 52, 79, 0.1);
  --page-top-padding: 22px;
  --header-top: 32px;
  --header-x-padding: 16px;
  --logo-height: 40px;
  --utility-icon-size: 18px;
  --social-icon-size: 24px;
  --button-height: 60px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--color-bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-main);
  background:
    radial-gradient(circle at 50% -10%, rgba(0, 142, 241, 0.24), transparent 42%),
    linear-gradient(180deg, var(--color-bg-deep), var(--color-bg));
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
a,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.card-shell {
  width: 100%;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  padding: var(--page-top-padding) 14px 30px;
}

.digital-card {
  position: relative;
  width: min(100%, 430px);
  display: grid;
  gap: 14px;
}

.card-header-utils {
  position: absolute;
  top: var(--header-top);
  left: 0;
  z-index: 20;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--header-x-padding);
  pointer-events: none;
}

.util-icon {
  pointer-events: auto;
}

.util-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(10, 74, 117, 0.48);
  box-shadow: 0 10px 26px rgba(3, 53, 91, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.util-icon:hover,
.util-icon:focus-visible {
  transform: translateY(-1px);
  background: rgba(0, 142, 241, 0.72);
  outline: 3px solid rgba(255, 255, 255, 0.34);
  outline-offset: 2px;
}

.util-icon svg {
  width: var(--utility-icon-size);
  height: var(--utility-icon-size);
  fill: currentColor;
}

.hero-module {
  position: relative;
  overflow: hidden;
  min-height: 374px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-card);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  display: grid;
  align-items: end;
  text-align: center;
}

.hero-media,
.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-module::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(0, 142, 241, 0.48) 0%, rgba(0, 142, 241, 0.22) 38%, rgba(255, 255, 255, 0.9) 62%, #ffffff 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  padding: 60px 24px 32px;
}

.profile-mark {
  width: 124px;
  height: 124px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 6px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(22, 52, 79, 0.18);
}

.profile-mark img {
  width: 76%;
  height: 76%;
  object-fit: contain;
}

.eyebrow {
  margin: 12px 0 0;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  color: var(--color-primary-dark);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 18px rgba(4, 55, 94, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 300px;
  margin: 0;
  color: var(--color-text);
  font-size: clamp(25px, 6.6vw, 31px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
  text-transform: none;
  text-shadow: none;
}

.tagline {
  margin: 13px 0 0;
  color: var(--color-primary-dark);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-shadow: none;
}

.actions-module {
  overflow: hidden;
  padding: 14px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-module);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 52px rgba(22, 52, 79, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.link-list,
.contact-card,
.instagram-module,
.social-footer {
  margin-inline: 16px;
}

.left-meta {
  display: contents;
}

.focus-row:hover,
.focus-row:focus-visible {
  transform: translateY(-2px);
  outline: 3px solid rgba(0, 142, 241, 0.18);
  outline-offset: 2px;
}

.link-list {
  display: grid;
  gap: 10px;
}

.focus-row {
  position: relative;
  min-height: var(--button-height);
  display: flex;
  align-items: center;
  width: 100%;
  padding: 9px 42px 9px 10px;
  border: 1px solid rgba(229, 237, 244, 0.8);
  border-radius: 18px;
  color: var(--color-text);
  background: linear-gradient(145deg, #ffffff 0%, #f7f9fc 100%);
  box-shadow: 0 8px 22px rgba(22, 52, 79, 0.06), inset 0 2px 4px rgba(255, 255, 255, 0.8);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.focus-row:hover,
.focus-row:focus-visible {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 16px 32px rgba(22, 52, 79, 0.12), inset 0 2px 4px rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 142, 241, 0.3);
}

.focus-row:active {
  transform: translateY(-1px) scale(0.99);
  box-shadow: 0 6px 16px rgba(22, 52, 79, 0.08);
}

.focus-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  margin-right: 12px;
  border-radius: 14px;
  background: #edf8ff;
}

.focus-icon img,
.focus-icon svg {
  width: 26px;
  height: 26px;
  object-fit: contain;
  fill: var(--color-primary);
}

.focus-copy {
  min-width: 0;
}

.focus-copy strong,
.focus-copy small {
  display: block;
}

.instagram-module {
  padding: 14px;
  border: 1px solid var(--color-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.section-head h2 {
  margin: 0;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
}

.section-head a {
  color: var(--color-primary-dark);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.lightwidget-widget {
  width: 100% !important;
  min-height: 320px;
  display: block;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  position: absolute;
  top: 0;
  left: 0;
}

.instagram-frame-wrap {
  width: 100%;
  aspect-ratio: 3.1 / 1;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(0, 142, 241, 0.08), rgba(23, 190, 180, 0.08)),
    #ffffff;
}

.focus-copy strong {
  font-size: 16.5px;
  font-weight: 900;
  line-height: 1.14;
}

.focus-copy small {
  margin-top: 4px;
  color: #4a5b6b;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.25;
}

.chevron {
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  opacity: 0.28;
  transform: translateY(-50%) rotate(45deg);
}

.contact-card {
  padding: 14px;
  border: 1px solid var(--color-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.contact-card p {
  margin: 11px 0 0;
  color: #4a5b6b;
  font-size: 15px;
  line-height: 1.35;
}

.phone-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.phone-row a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: #ffffff;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
}

.social-footer {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.social-footer a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  color: var(--color-accent);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(22, 52, 79, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.social-footer a:hover,
.social-footer a:focus-visible {
  transform: translateY(-2px);
  outline: 3px solid rgba(0, 142, 241, 0.18);
  outline-offset: 2px;
}

.social-footer svg {
  width: var(--social-icon-size);
  height: var(--social-icon-size);
  fill: currentColor;
}

.powered-by {
  text-align: center;
  font-size: 11px;
  color: var(--color-muted);
  margin-top: 6px;
  margin-bottom: 6px;
  padding-bottom: 8px;
}
.powered-by a {
  color: var(--color-primary-dark);
  text-decoration: none;
  font-weight: 800;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.modal-overlay.active {
  display: flex;
  animation: overlayFadeIn 0.3s ease forwards;
}

.modal-box {
  position: relative;
  width: min(100%, 380px);
  max-height: min(86svh, 720px);
  overflow: auto;
  padding: 56px 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 32px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(11, 50, 82, 0.76), rgba(11, 50, 82, 0.46));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-align: center;
}

.form-modal {
  width: min(100%, 440px);
}

.modal-overlay.active .modal-box {
  animation: modalTransformersIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.modal-box:focus {
  outline: none;
}

.modal-x {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.25s ease;
}

.modal-x:hover {
  color: #ffffff;
  transform: rotate(90deg) scale(1.15);
}

.qr-frame {
  width: fit-content;
  margin: 10px auto 18px;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
}

.modal-box h2,
.modal-title {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.05;
}

.modal-box p,
.modal-subtitle {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.45;
}

.close-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.primary-submit {
  border-color: transparent;
  color: var(--color-primary-dark);
  background: #ffffff;
}

.secondary {
  background: rgba(255, 255, 255, 0.08);
}

.exchange-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  text-align: left;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-group {
  display: grid;
  gap: 6px;
}

.form-group label,
.checkbox-group legend {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.form-group select option {
  color: #16344f;
}

.form-group textarea {
  resize: vertical;
}

.checkbox-group {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
}

.checkbox-group legend {
  padding: 0 4px;
}

.checkbox-group label {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 1.25;
}

.checkbox-group input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  accent-color: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(255, 255, 255, 0.54);
}

.modal-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.wide-modal {
  width: min(100%, 760px);
}

.map-frame {
  width: 100%;
  height: 320px;
  display: block;
  border: 0;
  border-radius: 20px;
  background: #ffffff;
}

.map-link {
  width: fit-content;
  margin-top: 16px;
}

.bcard-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  z-index: 9999;
  padding: 12px 20px;
  border-radius: 100px;
  color: #ffffff;
  background: #1e2329;
  font-size: 0.88rem;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(20px);
  transition: opacity 0.25s, transform 0.25s;
}

.bcard-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.bcard-toast--success {
  background: #166534;
}

.bcard-toast--error {
  background: #991b1b;
}

@keyframes overlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalTransformersIn {
  0% {
    opacity: 0;
    transform: perspective(1000px) rotateX(-20deg) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: perspective(1000px) rotateX(0deg) scale(1);
  }
}

@media (min-width: 850px) {
  :root {
    --header-x-padding: 24px;
    --logo-height: 42px;
    --page-top-padding: 34px;
  }

  .digital-card {
    width: min(94vw, calc(var(--desktop-left-width) + var(--desktop-right-width) + 22px));
    grid-template-columns: var(--desktop-left-width) var(--desktop-right-width);
    grid-template-areas:
      "hero actions"
      "leftmeta rightmeta"
      "footer footer";
    align-items: stretch;
    align-content: start;
    gap: 18px 22px;
  }

  .card-header-utils {
    width: var(--desktop-left-width);
  }

  .hero-module {
    grid-area: hero;
    min-height: 374px;
  }

  .hero-module::after {
  background:
      linear-gradient(180deg, rgba(0, 142, 241, 0.48) 0%, rgba(0, 142, 241, 0.22) 38%, rgba(255, 255, 255, 0.9) 62%, #ffffff 100%);
  }

  .actions-module {
    grid-area: actions;
    padding: 18px 0;
  }

  .left-meta {
    grid-area: leftmeta;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    align-self: stretch;
  }

  .social-footer {
    margin: 0;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 14px 34px rgba(22, 52, 79, 0.09);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .contact-card {
    margin: 0;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 14px 34px rgba(22, 52, 79, 0.08);
  }

  .instagram-module {
    grid-area: rightmeta;
    margin: 0;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 14px 34px rgba(22, 52, 79, 0.09);
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .instagram-frame-wrap {
    border-radius: 12px;
  }

  .powered-by {
    grid-area: footer;
    margin-top: 10px;
  }

  .link-list {
    margin-inline: 18px;
  }

  .lightwidget-widget {
    min-height: 190px;
  }

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

@media (max-width: 360px) {
  .card-shell {
    padding-inline: 10px;
  }

  .hero-module {
    min-height: 344px;
  }

  .profile-mark {
    width: 94px;
    height: 94px;
  }

  .hero-content {
    padding-top: 80px;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .focus-copy strong {
    font-size: 14px;
  }

  .focus-copy small {
    font-size: 11px;
  }
}

/* Splash Screen Intro */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: url('assets/back.png') center/cover no-repeat;
  display: grid;
  place-items: center;
  animation: splashFadeOut 0.7s cubic-bezier(0.65, 0, 0.35, 1) 1.8s forwards;
  pointer-events: auto;
}

.splash-logo {
  width: 240px;
  max-width: 85vw;
  height: auto;
  opacity: 0;
  animation: splashLogoAnim 1.6s cubic-bezier(0.25, 1, 0.5, 1) 0.1s forwards;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
}

@media (min-width: 850px) {
  .splash-logo {
    width: 360px;
  }
}

@keyframes splashFadeOut {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

@keyframes splashLogoAnim {
  0% {
    opacity: 0;
    transform: scale(0.85);
  }
  30% {
    opacity: 1;
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.card-shell {
  animation: cardEntrance 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1.5s backwards;
}

@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
