@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/ibm-plex-sans/IBMPlexSans-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/ibm-plex-sans/IBMPlexSans-SemiBold.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #181817;
  --muted: #606675;
  --line: #d9dde7;
  --accent: #3d59f5;
  --accent-strong: #2841d9;
  --surface-hover: #f7f9fc;
  --panel-shadow: rgba(24, 24, 23, 0.1);
  font-family:
    "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 1rem;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(61, 89, 245, 0.25);
  outline-offset: 3px;
}

button {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
}

.site-header {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 54px;
}

.brand {
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 600;
  text-decoration: none;
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-button,
.store-link {
  width: fit-content;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.contact-button:hover,
.store-link:hover {
  border-color: #c9d2e4;
  background: var(--surface-hover);
}

.store-link {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.store-link:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

.store-link i {
  width: 1.08em;
  color: #ffffff;
  font-size: 1.08em;
  line-height: 1;
  text-align: center;
}

.hero-section {
  display: grid;
  gap: 28px;
}

.hero-copy {
  max-width: 720px;
  display: grid;
  gap: 14px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 4.7rem;
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: 0;
}

.hero-copy p,
.content-section p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.55;
}

.product-preview {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f9fc;
  box-shadow: 0 8px 24px var(--panel-shadow);
}

.content-section {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.content-section h2 {
  margin-bottom: 8px;
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 600;
}

.support-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.support-section a {
  flex: 0 0 auto;
}

.site-footer {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer a {
  color: inherit;
  font-weight: 600;
  text-underline-offset: 4px;
}

.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.78);
}

.modal-backdrop.is-hidden {
  display: none;
}

.contact-modal {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100dvh - 40px);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px var(--panel-shadow);
}

.contact-modal iframe {
  width: 100%;
  min-height: 420px;
  display: block;
  border: 0;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  border-color: #c9d2e4;
  background: var(--surface-hover);
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 18px;
  }

  .site-header,
  .support-section {
    display: grid;
  }

  .site-header {
    margin-bottom: 34px;
  }

  .contact-button,
  .store-link {
    width: 100%;
  }

  h1 {
    font-size: 3.2rem;
  }

  .content-section {
    padding: 18px;
  }

  .modal-backdrop {
    align-items: stretch;
    padding: 10px;
  }

  .contact-modal {
    max-height: calc(100dvh - 20px);
    padding: 12px;
  }
}
