:root {
  --bg: #ffffff;
  --surface: #f7f9fc;
  --surface-strong: #eef3f8;
  --text: #101828;
  --muted: #5d6878;
  --line: #dfe5ec;
  --brand: #2f80ed;
  --brand-dark: #1768cf;
  --shadow: 0 18px 50px rgba(16, 24, 40, 0.08);
  --radius-lg: 30px;
  --radius-md: 22px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: #fff;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 96px 0;
  scroll-margin-top: 90px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(223, 229, 236, 0.78);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: 200px;
  height: auto;
}

.primary-nav,
.footer-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.primary-nav a,
.footer-nav a {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--brand);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: var(--text);
}

.hero {
  padding-top: 76px;
}

.hero-grid {
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(36px, 5vw, 64px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(3.1rem, 6.8vw, 6.1rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.25rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-text {
  max-width: 660px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.store-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button {
  padding: 0 20px;
}

.button-primary {
  background: var(--text);
  color: #fff;
}

.button-primary:hover {
  transform: translateY(-1px);
  background: #273244;
}

.button-secondary {
  border: 1px solid var(--line);
  background: #fff;
}

.button-secondary:hover {
  border-color: #bcc6d2;
}

.hero-art {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.products {
  overflow: hidden;
  background: var(--surface);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  align-items: end;
  gap: 60px;
  margin-bottom: 42px;
}

.section-heading h2 {
  max-width: 760px;
  margin-bottom: 0;
}

.section-heading > p {
  margin-bottom: 8px;
  color: var(--muted);
}

.product-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 375px);
  gap: 20px;
  overflow-x: auto;
  padding: 4px 2px 22px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #c8d1dc transparent;
  overscroll-behavior-inline: contain;
}

.product-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  min-height: 620px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 8px 30px rgba(16, 24, 40, 0.04);
}

.app-icon-shell {
  width: 86px;
  height: 86px;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid rgba(16, 24, 40, 0.09);
  border-radius: 22%;
  background: #fff;
  box-shadow:
    0 10px 24px rgba(16, 24, 40, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.app-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-type {
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card h3 {
  margin-bottom: 5px;
  font-size: 1.55rem;
}

.product-tagline {
  margin-bottom: 17px;
  color: #263449;
  font-weight: 700;
}

.product-summary,
.product-card details p {
  color: var(--muted);
}

.product-card details {
  margin: 2px 0 24px;
}

.product-card summary {
  width: max-content;
  color: var(--text);
  font-weight: 750;
  cursor: pointer;
}

.product-card details p {
  margin: 12px 0 0;
  font-size: 0.96rem;
}

.store-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.store-button {
  width: 100%;
  padding: 11px 15px;
  background: var(--text);
  color: #fff;
  font-size: 0.9rem;
  text-align: center;
}

.store-button:hover {
  transform: translateY(-1px);
  background: #273244;
}

.store-button.disabled {
  background: #9aa4b2;
  cursor: not-allowed;
  pointer-events: none;
}

.store-status {
  display: block;
  text-align: center;
  color: #7c8795;
  font-size: 0.84rem;
  font-weight: 650;
}

.mission-panel {
  padding: clamp(38px, 6vw, 76px);
  border-radius: var(--radius-lg);
  background: var(--text);
  color: #fff;
}

.mission-panel .eyebrow {
  color: #8abaff;
}

.mission-panel h2 {
  max-width: 970px;
}

.mission-panel > p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: #c8d0dc;
  font-size: 1.08rem;
}

.principles {
  padding-top: 0;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.principle-card {
  min-height: 280px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.card-number {
  display: inline-flex;
  margin-bottom: 70px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.principle-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.contact {
  padding-top: 12px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  align-items: center;
  gap: 60px;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.contact-panel h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.contact-panel > p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  min-height: 160px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 26px 40px;
  padding-top: 32px;
  padding-bottom: 32px;
}

.footer-brand img {
  width: 155px;
  height: auto;
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  color: #7b8694;
  font-size: 0.86rem;
}

@media (max-width: 960px) {
  .section {
    padding: 76px 0;
  }

  .hero-grid,
  .section-heading,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    gap: 30px;
  }


  .section-heading {
    gap: 20px;
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }

  .principle-card {
    min-height: 0;
  }

  .card-number {
    margin-bottom: 34px;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 64px 0;
  }

  .nav-wrap {
    min-height: 70px;
  }

  .brand-logo {
    width: 162px;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .primary-nav.open {
    display: flex;
  }

  .primary-nav a {
    padding: 12px 14px;
    border-radius: 10px;
  }

  .primary-nav a:hover {
    background: var(--surface);
  }

  .hero {
    padding-top: 54px;
  }

  h1 {
    font-size: clamp(2.8rem, 14vw, 4.6rem);
  }


  .product-scroller {
    grid-auto-columns: minmax(84vw, 84vw);
    margin-right: -14px;
  }

  .product-card {
    min-height: 600px;
    padding: 22px;
  }

  .mission-panel,
  .contact-panel {
    padding: 30px 24px;
    border-radius: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 16px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* ---------- Hero artwork frame ---------- */

.hero-frame {
  position: relative;
  width: 100%;
  max-width: 640px;
  padding: clamp(10px, 1.4vw, 16px);
  overflow: hidden;
  border: 1px solid rgba(47, 128, 237, 0.18);
  border-radius: 38px;
  background: #ffffff;
  box-shadow:
    0 30px 70px rgba(16, 24, 40, 0.12),
    0 8px 24px rgba(47, 128, 237, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.85);
}

.hero-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    145deg,
    rgba(47, 128, 237, 0.08),
    rgba(255, 255, 255, 0) 42%
  );
}

.hero-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  border-radius: 26px;
}

/* ---------- Contact page ---------- */
.contact-page-main {
  min-height: calc(100vh - 238px);
}

.contact-hero {
  padding-top: 86px;
  padding-bottom: 96px;
}

.contact-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  align-items: start;
  gap: 72px;
}

.contact-intro {
  position: sticky;
  top: 126px;
}

.contact-intro h1 {
  max-width: 640px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 6vw, 5.4rem);
}

.contact-intro-text {
  max-width: 570px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.1rem;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-dark);
  font-weight: 750;
  text-decoration: none;
}

.contact-email:hover,
.contact-email:focus-visible {
  text-decoration: underline;
}

.contact-form-shell {
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.contact-form {
  display: grid;
  gap: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 750;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid #ccd5df;
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.form-field input,
.form-field select {
  min-height: 50px;
  padding: 0 14px;
}

.form-field textarea {
  min-height: 180px;
  padding: 13px 14px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(47, 128, 237, 0.12);
}

.contact-submit {
  width: 100%;
  min-height: 52px;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.form-note {
  margin: -4px 0 0;
  color: #7c8795;
  font-size: 0.84rem;
}

.honeypot-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ---------- Thank-you page ---------- */
.thanks-main {
  min-height: calc(100vh - 238px);
  display: grid;
  place-items: center;
  padding: 80px 0;
}

.thanks-card {
  max-width: 760px;
  padding: clamp(38px, 7vw, 72px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
}

.thanks-card h1 {
  margin-inline: auto;
  font-size: clamp(2.8rem, 6vw, 5rem);
}

.thanks-card p:not(.eyebrow) {
  max-width: 580px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 1.06rem;
}

@media (max-width: 960px) {
  .hero-art {
    justify-content: center;
  }

  .hero-frame {
    width: 100%;
    max-width: 620px;
  }

  .contact-page-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .contact-intro {
    position: static;
  }
}

@media (max-width: 720px) {
  .hero-frame {
    width: 100%;
    max-width: none;
    padding: 10px;
    border-radius: 28px;
  }
  
  .hero-frame img {
    width: 100%;
    height: auto;
    border-radius: 20px;
  }

  .contact-hero {
    padding-top: 56px;
    padding-bottom: 64px;
  }

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

  .contact-form-shell {
    padding: 24px 20px;
    border-radius: 24px;
  }
}
