:root {
  --blue: #13a6df;
  --blue-dark: #0879b8;
  --purple: #66329b;
  --purple-soft: #8651bd;
  --green: #2aa78b;
  --warm: #f4b35f;
  --ink: #16213a;
  --body: #253044;
  --muted: #667085;
  --line: #e2e7ef;
  --paper: #ffffff;
  --mist: #f6fbfe;
  --shadow: 0 18px 45px rgba(18, 61, 100, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: Inter, Arial, sans-serif;
}

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

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

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(223, 228, 234, 0.75);
  display: grid;
  gap: 24px;
  grid-template-columns: auto 1fr;
  left: 0;
  padding: 18px max(24px, calc((100vw - 1120px) / 2));
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 10;
}

.menu-button {
  align-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: none;
  gap: 7px;
  height: 38px;
  justify-content: center;
  padding: 0;
  width: 38px;
}

.menu-button span {
  background: #222430;
  border-radius: 999px;
  display: block;
  height: 3px;
  width: 30px;
}

.brand {
  align-items: center;
  display: inline-flex;
  position: relative;
}

.brand img {
  height: auto;
  width: 184px;
}

.main-nav {
  align-items: center;
  display: flex;
  gap: 32px;
  justify-content: center;
}

.main-nav a {
  color: #1f2230;
  font-size: 13px;
  font-weight: 500;
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 34px;
  justify-content: flex-end;
}

.main-nav {
  align-items: center;
  display: flex;
  gap: 30px;
  justify-content: flex-end;
}

.auth-actions,
.hero-actions,
.store-buttons {
  align-items: center;
  display: flex;
  gap: 22px;
}

.mobile-nav-actions {
  display: none;
}

.button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  height: 48px;
  justify-content: center;
  min-width: 104px;
  padding: 0 28px;
  white-space: nowrap;
}

.button-outline {
  background: var(--paper);
  border: 1.5px solid var(--blue);
  color: var(--blue-dark);
}

.button-solid {
  background: linear-gradient(135deg, var(--blue), var(--purple-soft));
  box-shadow: 0 12px 23px rgba(19, 166, 223, 0.24);
  color: var(--paper);
}

.button-large {
  height: 57px;
  min-width: 147px;
}

.button-white {
  background: var(--paper);
  color: var(--blue-dark);
  height: 60px;
  min-width: 208px;
}

.hero {
  align-items: center;
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(330px, 430px) minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1120px;
  padding: 22px 16px 82px;
}

.hero h1 {
  color: var(--ink);
  font-size: 49px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.18;
  margin: 0 0 18px;
}

.hero h1 span,
.features h2 {
  color: var(--blue-dark);
}

.hero p {
  color: #354158;
  font-size: 20px;
  line-height: 1.55;
  margin: 0 0 36px;
  max-width: 400px;
}

.hero-media {
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-height: 430px;
  overflow: hidden;
  position: relative;
}

.hero-media::after {
  background: linear-gradient(135deg, rgba(19, 166, 223, 0.08), rgba(102, 50, 155, 0.14));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero-media img {
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  object-position: center 42%;
  width: 100%;
}

.features {
  margin: 0 auto;
  max-width: 1120px;
  padding: 0 16px 104px;
  text-align: center;
}

.features h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 55px;
}

.feature-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(5, 1fr);
}

.feature {
  background: #ffffff;
  border: 1px solid #edf0f5;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(18, 61, 100, 0.08);
  min-height: 292px;
  overflow: hidden;
  padding: 0 0 24px;
  position: relative;
  text-align: left;
}

.feature img {
  height: 128px;
  margin: 0 0 22px;
  object-fit: cover;
  object-position: center 42%;
  width: 100%;
}

.feature:nth-child(2) img {
  object-position: center 22%;
}

.feature:nth-child(3) img {
  object-position: center 48%;
}

.feature:nth-child(4) img,
.feature:nth-child(5) img {
  object-position: center 46%;
}

.tile-icon {
  align-items: center;
  background: #ffffff;
  border: 1px solid #edf0f5;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(18, 61, 100, 0.12);
  color: var(--purple);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  margin: -44px 0 14px 18px;
  position: relative;
  width: 42px;
}

.tile-icon svg {
  fill: none;
  height: 23px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 23px;
}

.feature h3 {
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  margin: 0 22px 10px;
}

.feature p {
  color: #3d485c;
  font-size: 15px;
  line-height: 1.65;
  margin: 0 22px;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.mission {
  border-top: 1px solid #f1f4f7;
  min-height: 335px;
}

.split-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.split-copy {
  align-content: center;
  justify-self: start;
  max-width: 510px;
  padding: 52px 34px 52px 112px;
}

.eyebrow {
  color: var(--purple);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.4px;
  margin: 0 0 20px;
  text-transform: uppercase;
}

.split-copy h2,
.download h2 {
  color: var(--ink);
  font-size: 35px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.18;
  margin: 0;
}

.short-line {
  background: var(--warm);
  display: block;
  height: 3px;
  margin: 28px 0 26px;
  width: 56px;
}

.split-copy p:last-child,
.download-copy p:not(.eyebrow) {
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
}

.download {
  background: var(--mist);
  min-height: 302px;
  overflow: hidden;
}

.download-copy {
  align-content: center;
  padding: 58px 28px 54px max(88px, calc((100vw - 1120px) / 2 + 16px));
}

.download h2 {
  font-size: 31px;
  margin-bottom: 23px;
}

.store-buttons {
  gap: 25px;
  margin-top: 29px;
}

.store-badge {
  align-items: center;
  background: #050505;
  border-radius: 8px;
  color: var(--paper);
  display: inline-flex;
  font-size: 17px;
  font-weight: 700;
  gap: 9px;
  height: 42px;
  justify-content: center;
  min-width: 131px;
  padding: 5px 10px;
}

.store-badge small {
  display: block;
  font-size: 8px;
  font-weight: 600;
  line-height: 1.1;
  text-transform: none;
}

.store-icon {
  color: var(--paper);
  display: block;
  height: 25px;
  position: relative;
  width: 24px;
}

.store-icon path {
  fill: currentColor;
}

.store-icon.play {
  background: conic-gradient(from 0.12turn, #00e0ff, #1ec85a, #ffd338, #ff4438, #00e0ff);
  clip-path: polygon(6% 0, 100% 50%, 6% 100%);
}

.support-portrait {
  align-self: stretch;
  display: flex;
  justify-content: flex-start;
}

.support-portrait img {
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  width: 100%;
}

.cta {
  align-items: center;
  background: linear-gradient(135deg, #13a6df 0%, #66329b 68%, #2aa78b 100%);
  border-radius: 8px;
  color: var(--paper);
  display: grid;
  grid-template-columns: 1fr auto;
  margin: 24px auto 26px;
  max-width: 1040px;
  min-height: 141px;
  overflow: hidden;
  padding: 31px 53px;
  position: relative;
}

.cta h2 {
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 13px;
}

.cta p {
  font-size: 18px;
  line-height: 1.55;
  margin: 0;
  max-width: 470px;
}

.updates-section {
  align-items: start;
  display: grid;
  gap: 46px;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  margin: 0 auto 46px;
  max-width: 1040px;
  padding: 42px 0 18px;
}

.updates-section h2 {
  color: var(--ink);
  font-size: 34px;
  line-height: 1.18;
  margin: 0 0 18px;
}

.updates-section p:not(.eyebrow) {
  color: #3d485c;
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
  max-width: 420px;
}

.updates-form {
  background: var(--paper);
  border: 1px solid #edf0f5;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  padding: 28px;
}

.updates-form label {
  color: #303341;
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
}

.updates-form input,
.updates-form select {
  background: #fbfdff;
  border: 1px solid #dce4ee;
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  height: 48px;
  outline: 0;
  padding: 0 14px;
  width: 100%;
}

.updates-form input:focus,
.updates-form select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(19, 166, 223, 0.13);
}

.form-message {
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 800;
  margin: 0;
}

.form-message[hidden] {
  display: none;
}

.site-footer {
  border-top: 1px solid #e7e8ef;
  margin: 0 auto;
  max-width: 1040px;
  padding: 46px 0 51px;
}

.footer-grid {
  align-items: start;
  display: grid;
  grid-template-columns: 232px 1fr 170px;
  gap: 50px;
}

.nickelsense {
  align-items: center;
  color: #4b4c58;
  display: inline-flex;
  font-size: 28px;
  font-weight: 500;
  gap: 9px;
}

.nickelsense-logo-image {
  display: block;
  height: auto;
  width: 150px;
}

.footer-grid p,
.footer-grid a {
  color: #696d79;
  display: block;
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
}

.footer-grid h2 {
  color: #303341;
  font-size: 13px;
  line-height: 1;
  margin: 0 0 14px;
}

.social-links {
  align-items: center;
  display: flex;
  gap: 18px;
}

.social-links a {
  align-items: center;
  color: #555861;
  display: inline-flex;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.social-links svg {
  fill: none;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 22px;
}

.social-links a:first-child svg,
.social-links a:nth-child(4) svg {
  fill: currentColor;
  stroke: none;
}

.copyright {
  color: #9a9da8;
  font-size: 12px;
  margin: 55px 0 0;
  text-align: center;
}

@media (max-width: 860px) {
  .site-header {
    gap: 18px;
  }

  .brand img {
    width: 166px;
  }

  .main-nav {
    gap: 18px;
  }

  .button {
    min-width: 90px;
    padding: 0 20px;
  }

  .hero {
    grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 18px;
  }

  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .site-header {
    gap: 24px;
    grid-template-columns: 1fr;
    padding: 12px 16px;
  }

  .menu-button {
    display: none;
  }

  .header-actions {
    justify-content: space-between;
    width: 100%;
  }

  .main-nav {
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    gap: 16px;
    left: auto;
    opacity: 1;
    padding: 0;
    pointer-events: auto;
    position: static;
    right: auto;
    top: auto;
    transform: none;
    transition: none;
  }

  .site-header.nav-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .main-nav > a {
    border-radius: 0;
    font-size: 13px;
    padding: 0;
  }

  .main-nav > a:hover,
  .main-nav > a:focus-visible {
    background: none;
    outline: 0;
  }

  .auth-actions {
    display: flex;
  }

  .mobile-nav-actions {
    display: none;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 38px 1fr auto;
    padding-bottom: 18px;
  }

  .menu-button {
    display: grid;
  }

  .main-nav {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 0;
    left: 16px;
    opacity: 0;
    padding: 8px;
    pointer-events: none;
    position: absolute;
    right: 16px;
    top: calc(100% - 8px);
    transform: translateY(-6px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .site-header.nav-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav > a {
    border-radius: 7px;
    font-size: 15px;
    padding: 13px 14px;
  }

  .main-nav > a:hover,
  .main-nav > a:focus-visible {
    background: #eef9fd;
    outline: 0;
  }

  .auth-actions {
    display: none;
  }

  .mobile-nav-actions {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 10px;
    margin-top: 8px;
    padding: 16px 6px 6px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 8px;
    padding-bottom: 56px;
  }

  .hero-media,
  .hero-media img {
    min-height: 360px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 44px;
  }

  .split-copy {
    padding-left: 52px;
  }

  .cta,
  .site-footer {
    margin-left: 16px;
    margin-right: 16px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .updates-section {
    grid-template-columns: 1fr;
    margin-left: 16px;
    margin-right: 16px;
  }
}

@media (max-width: 680px) {
  .site-header {
    gap: 14px;
    padding-bottom: 24px;
  }

  .brand img {
    width: 148px;
  }

  .hero h1 {
    font-size: clamp(34px, 9.5vw, 39px);
  }

  .hero p {
    font-size: 17px;
  }

  .hero-actions,
  .store-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .button-large,
  .button-white {
    width: 100%;
  }

  .hero-actions {
    gap: 14px;
  }

  .feature-grid,
  .split-section,
  .cta,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    gap: 22px;
  }

  .feature {
    padding: 0 0 24px;
  }

  .split-copy,
  .download-copy {
    padding: 44px 24px;
  }

  .cta {
    gap: 28px;
    padding: 30px 28px;
  }

  .site-footer {
    padding-left: 4px;
    padding-right: 4px;
  }

  .nickelsense-logo-image {
    width: 124px;
  }

  .updates-form {
    padding: 22px;
  }

  .updates-section h2 {
    font-size: 34px;
  }
}

@media (max-width: 760px) {
  .site-header,
  .site-header.nav-open {
    grid-template-columns: 1fr !important;
  }

  .menu-button,
  .site-header.nav-open .menu-button {
    display: none !important;
  }

  .header-actions {
    gap: 18px;
    justify-content: space-between !important;
    width: 100%;
  }

  .main-nav {
    background: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex !important;
    gap: 16px !important;
    left: auto !important;
    opacity: 1 !important;
    padding: 0 !important;
    pointer-events: auto !important;
    position: static !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
  }

  .site-header.nav-open .main-nav {
    opacity: 1 !important;
  }

  .main-nav > a {
    padding: 0 !important;
  }

  .main-nav > a:hover,
  .main-nav > a:focus-visible {
    background: none !important;
  }

  .mobile-nav-actions {
    display: none !important;
  }

  .auth-actions {
    display: flex !important;
  }
}

.site-footer {
  background: #111826;
  color: #ffffff;
  max-width: none;
  margin: 0;
  padding: 56px max(24px, calc((100vw - 1120px) / 2)) 28px;
}

.footer-grid {
  align-items: start;
  display: grid;
  gap: 34px;
  grid-template-columns: 1.1fr 1fr 0.9fr;
}

.footer-logo img {
  height: 88px;
  object-fit: contain;
  object-position: left center;
  width: 242px;
}

.site-footer p {
  color: #c2c9d4;
  line-height: 1.55;
}

.footer-block h2 {
  color: #ffffff;
  font-size: 15px;
  margin-bottom: 16px;
}

.footer-block a {
  color: #c2c9d4;
  display: block;
  margin-bottom: 10px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links a {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  margin: 0;
  width: 38px;
}

.social-links svg {
  fill: none;
  height: 20px;
  stroke: #ffffff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 20px;
}

.social-links path,
.social-links rect,
.social-links circle {
  vector-effect: non-scaling-stroke;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  margin: 36px 0 0;
  padding-top: 22px;
  text-align: left;
}

@media (max-width: 920px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .footer-logo img {
    width: 124px;
  }
}
