@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/Cormorant_Garamond/static/CormorantGaramond-Regular.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/Cormorant_Garamond/static/CormorantGaramond-Medium.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat/static/Montserrat-Light.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 300;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat/static/Montserrat-Regular.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Bad Script";
  src: url("../fonts/Bad_Script/BadScript-Regular.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

:root {
  color-scheme: dark;
  --page-bg: #28292b;
  --top-chrome: #1e1f20;
  --text: #f3f1ee;
  --muted: rgba(243, 241, 238, 0.72);
  --glass-top: rgba(116, 116, 116, 0.53);
  --glass-bottom: rgba(46, 47, 48, 0.73);
  --line: rgba(244, 242, 238, 0.72);
  --radius-lg: 28px;
  --radius-md: 24px;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-width: 320px;
  height: 100%;
  overflow: hidden;
  background: var(--top-chrome);
}

body {
  width: 100%;
  min-width: 320px;
  height: 100svh;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background:
    linear-gradient(180deg, rgba(28, 29, 31, 0.08), rgba(33, 34, 36, 0.26)),
    url("../images/site-background.png") center / cover fixed no-repeat;
  color: var(--text);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.page {
  display: flex;
  width: min(100%, 440px);
  height: 100svh;
  height: 100dvh;
  min-height: 0;
  margin: 0 auto;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  overflow: hidden;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(16, 17, 17, 0.05), rgba(16, 17, 17, 0.38) 61%, rgba(22, 23, 24, 0.96)),
    var(--page-bg);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.32);
}

.hero {
  position: relative;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  flex: 1 1 auto;
  background-color: var(--page-bg);
  background-image: url("../images/hero-reference.png");
  background-position: top center;
  background-repeat: no-repeat;
  background-size: 100% auto;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 19%;
  background: linear-gradient(
    180deg,
    rgba(36, 37, 38, 0) 0%,
    rgba(36, 37, 38, 0.08) 25%,
    rgba(36, 37, 38, 0.48) 68%,
    rgba(36, 37, 38, 0.96) 100%
  );
  content: "";
  pointer-events: none;
}

.language-toggle {
  position: absolute;
  top: 1.5%;
  right: 2%;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  width: 66px;
  min-width: 66px;
  height: 26px;
  padding: 0 22px 0 0;
  border: 0;
  color: rgba(248, 247, 244, 0.84);
  background: transparent;
  font: 400 11px/1 "Montserrat", Arial, sans-serif;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  cursor: pointer;
}

.language-toggle:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

.language-toggle::after {
  position: absolute;
  top: 4px;
  right: 0;
  width: 25px;
  height: 14px;
  border-radius: 50%;
  background: rgba(140, 120, 116, 0.96);
  content: "";
  filter: blur(4px);
  pointer-events: none;
}

.connections {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  padding: 0 4.7%;
  
}

.glass-card {
  border: 1px solid rgba(245, 244, 242, 0.28);
  background:
    linear-gradient(145deg, var(--glass-top), transparent 44%),
    linear-gradient(155deg, rgba(64, 65, 66, 0.74), var(--glass-bottom));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -16px 28px rgba(0, 0, 0, 0.12),
    0 12px 20px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.contact-card {
  display: grid;
  min-height: clamp(64px, 9.07dvh, 84px);
  grid-template-columns: clamp(62px, 8.85dvh, 82px) minmax(0, 1fr) 22px;
  align-items: center;
  gap: clamp(7px, 1.19dvh, 11px);
  padding: clamp(7px, 1.08dvh, 10px) 12px clamp(7px, 1.08dvh, 10px) 13px;
  border-radius: 25px;
}

.contact-icon {
  display: grid;
  width: clamp(48px, 6.48dvh, 60px);
  height: clamp(48px, 6.48dvh, 60px);
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(104, 104, 104, 0.72));
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.8), 0 3px 7px rgba(0, 0, 0, 0.22);
}

.contact-icon img {
  width: clamp(28px, 3.67dvh, 34px);
  height: clamp(26px, 3.46dvh, 32px);
}

.card-copy,
.social-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.card-title {
  font-size: clamp(25px, 6.6vw, 30px);
  font-weight: 500;
  line-height: 1;
}

.card-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(13px, 3.5vw, 16px);
  font-weight: 300;
  line-height: 1.1;
}

.arrow {
  color: rgba(246, 244, 240, 0.86);
  font-family: Arial, sans-serif;
  font-size: 34px;
  font-weight: 200;
  line-height: 0.65;
  transform: translateY(-2px);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(6px, 0.86dvh, 8px);
  margin-top: clamp(6px, 0.86dvh, 8px);
}

.social-card {
  display: grid;
  min-width: 0;
  min-height: clamp(42px, 5.72dvh, 53px);
  grid-column: span 2;
  grid-template-columns: 34px minmax(0, 1fr) 10px;
  align-items: center;
  gap: 6px;
  padding: clamp(5px, 0.76dvh, 7px) 7px clamp(5px, 0.76dvh, 7px) 9px;
  border-radius: 21px;
}

.social-card--wide {
  grid-column: span 3;
}

.social-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.social-title {
  overflow: hidden;
  font-size: clamp(14px, 3.8vw, 18px);
  font-weight: 500;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(6px, 1.25vw, 6px);
  font-weight: 300;
  letter-spacing: 0.15em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.social-card .arrow {
  font-size: 27px;
}

.social-card:not(.social-card--wide) .social-title {
  font-size: clamp(9px, 2.55vw, 11px);
  letter-spacing: -0.06em;
  text-overflow: clip;
}

.promo {
  display: block;
  position: relative;
  min-height: clamp(78px, 10.8dvh, 100px);
  margin: clamp(9px, 1.51dvh, 14px) 4.7% 0;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-image:
    linear-gradient(90deg, rgba(31, 32, 32, 0.97) 0%, rgba(32, 33, 33, 0.86) 34%, rgba(32, 33, 33, 0.22) 75%, rgba(22, 22, 22, 0.03) 100%),
    url("../images/promo-background.png");
  background-position: center, 72% 30%;
  background-repeat: no-repeat;
  background-size: cover, cover;
}

.promo-copy {
  position: relative;
  z-index: 1;
  padding: clamp(7px, 1.08dvh, 10px) 19px;
}

.promo h2 {
  margin: 0;
  font-size: clamp(21px, 5.6vw, 26px);
  font-weight: 400;
  line-height: 1;
}

.promo-line {
  display: block;
  width: 45px;
  height: 2px;
  margin: clamp(3px, 0.54dvh, 5px) 0;
  background: rgba(244, 242, 238, 0.72);
}

.promo p {
  margin: 0;
  color: var(--muted);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 7px;
  font-weight: 300;
  letter-spacing: 0.18em;
  line-height: 1.4;
}

.promo-arrow {
  position: absolute;
  top: 50%;
  right: 14px;
  z-index: 1;
  transform: translateY(-50%);
}

.benefits {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr) 1px minmax(0, 1fr);
  align-items: center;
  gap: clamp(5px, 0.76dvh, 7px);
  margin: clamp(9px, 1.51dvh, 14px) 7% 0;
  flex: 0 0 auto;
}

.benefit {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.benefit img {
  width: clamp(24px, 3.13dvh, 29px);
  height: clamp(26px, 3.46dvh, 32px);
  margin-bottom: clamp(4px, 0.76dvh, 7px);
  object-fit: contain;
  filter: brightness(1.2) grayscale(1);
}

.benefit:nth-of-type(3) img {
  width: clamp(25px, 3.35dvh, 31px);
  height: clamp(27px, 3.56dvh, 33px);
}

.benefit p {
  margin: 0;
  font-size: clamp(11px, 2.9vw, 14px);
  line-height: 1.2;
}

.benefit-divider {
  width: 1px;
  height: clamp(34px, 4.86dvh, 45px);
  background: var(--line);
}

.footer {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  padding: clamp(8px, 1.73dvh, 16px) 0 clamp(8px, 1.62dvh, 15px);
}

.footer-line {
  width: 105px;
  height: 2px;
  margin-bottom: clamp(8px, 1.62dvh, 15px);
  background: var(--line);
}

.footer p {
  margin: 0;
  color: rgba(243, 241, 238, 0.68);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.4em;
  line-height: 1;
  text-indent: 0.4em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


@media (max-width: 599px) {
  html,
  body {
    background: #151617;
  }

  .page {
    padding-bottom: 0;
    box-shadow: none;
  }

  /* Mobile page is full-viewport with no margins, so the flex-growing hero
     would otherwise fill it entirely and pin the content stack to the bottom. */
  .hero {
    max-height: 45dvh;
  }

  .footer {
    padding-bottom: 2px;
  }
}

@media (display-mode: standalone) and (max-width: 599px) {
  html,
  body {
    width: 100%;
    height: 100lvh;
    min-height: 100lvh;
    overflow: hidden;
    background: #151617;
  }

  .page {
    width: 100%;
    max-width: 430px;
    height: 100lvh;
    min-height: 100lvh;
    margin: 0 auto;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .hero {
    background-position: top center;
  }
}

@media (min-width: 600px) {
  .page {
    height: calc(100dvh - 48px);
    margin-top: 24px;
    margin-bottom: 24px;
    border-radius: 26px;
  }
}

@media (max-height: 700px) {
  .card-title {
    font-size: clamp(22px, 6vw, 26px);
  }

  .card-subtitle {
    font-size: clamp(11px, 3vw, 14px);
  }

  .promo h2 {
    font-size: clamp(18px, 5vw, 22px);
  }

  .benefit p {
    font-size: clamp(10px, 2.65vw, 12px);
  }

  .footer p {
    font-size: 8px;
  }
}

@media (max-width: 360px) {
  .social-grid {
    gap: 9px;
  }

  .social-card {
    gap: 5px;
    padding-right: 6px;
    padding-left: 8px;
  }

  .social-icon {
    width: 35px;
    height: 35px;
  }

  .social-card {
    grid-template-columns: 36px minmax(0, 1fr) 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
