/* SkipQ – static recreation of skipq.io */

:root {
  --color-text: #383838;
  --color-muted: #808285;
  --color-bg: #ffffff;
  --color-bg-alt: #f6f6f6;
  --color-black: #0a0a0a;
  --color-accent: #25abd1;
  --color-border: #e5e5e5;
  --font: "Poppins", system-ui, sans-serif;
  --header-h: 80px;
  --container: 1140px;
  --radius-pill: 35px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-muted);
  background: var(--color-bg);
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--color-text);
  font-weight: 600;
  line-height: 1.35;
}

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

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

/* ——— Header ——— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
}

/* Scroll-driven header: transparent over hero → solid white when scrolled */
@supports (animation-timeline: scroll()) {
  .site-header {
    animation: header-solid linear both;
    animation-timeline: scroll();
    animation-range: 0vh 70vh;
  }

  .logo-dark {
    animation: logo-show linear both;
    animation-timeline: scroll();
    animation-range: 0vh 70vh;
  }

  .logo-light {
    position: absolute;
    animation: logo-hide linear both;
    animation-timeline: scroll();
    animation-range: 0vh 70vh;
  }

  .nav-link {
    animation: nav-darken linear both;
    animation-timeline: scroll();
    animation-range: 0vh 70vh;
  }

  .menu-toggle span {
    animation: bar-darken linear both;
    animation-timeline: scroll();
    animation-range: 0vh 70vh;
  }

  @keyframes header-solid {
    from { background: transparent; box-shadow: none; }
    to { background: rgba(255, 255, 255, 0.97); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); }
  }

  @keyframes logo-show {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes logo-hide {
    from { opacity: 1; }
    to { opacity: 0; }
  }

  @keyframes nav-darken {
    from { color: #fff; }
    to { color: var(--color-text); }
  }

  @keyframes bar-darken {
    from { background: #fff; }
    to { background: var(--color-text); }
  }
}

@supports not (animation-timeline: scroll()) {
  .site-header {
    background: rgba(255, 255, 255, 0.97);
  }

  .logo-light {
    display: none;
  }

  .nav-link {
    color: var(--color-text);
  }
}

.header-inner {
  width: min(100% - 40px, 1280px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  position: relative;
  display: inline-block;
  height: 42px;
  width: 120px;
}

.logo img {
  height: 42px;
  width: auto;
  position: absolute;
  left: 0;
  top: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-text);
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--color-accent);
}

.menu-toggle {
  display: none;
  width: 28px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  position: absolute;
  left: 0;
  transition: transform 0.25s, opacity 0.25s;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { top: 18px; }

#nav-toggle:checked ~ .site-header .menu-toggle span:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}

#nav-toggle:checked ~ .site-header .menu-toggle span:nth-child(2) {
  opacity: 0;
}

#nav-toggle:checked ~ .site-header .menu-toggle span:nth-child(3) {
  top: 9px;
  transform: rotate(-45deg);
}

#nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 13px 46px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn--outline-light {
  color: #fff;
  border-color: #fff;
  background: transparent;
}

.btn--outline-light:hover {
  background: #fff;
  color: var(--color-black);
}

.btn--solid {
  color: #fff;
  background: var(--color-black);
  border-color: var(--color-black);
}

.btn--solid:hover {
  background: transparent;
  color: var(--color-black);
}

.btn--accent {
  color: #fff;
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.btn--accent:hover {
  background: #1a8faf;
  border-color: #1a8faf;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.5)),
    url("../assets/images/hero.jpg") center / cover no-repeat;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, 900px);
  padding: calc(var(--header-h) + 40px) 0 80px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(28px, 4.2vw, 48px);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero p {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 400;
  margin: 0 0 36px;
}

/* ——— Values ——— */
.values {
  padding: 100px 0 40px;
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 28px;
  text-align: center;
}

.value-card img {
  height: 48px;
  width: auto;
  margin: 0 auto 22px;
}

.value-card h3 {
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.value-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
}

.cta-row {
  padding: 48px 0 80px;
  text-align: center;
}

/* ——— Solutions intro ——— */
.solutions-intro {
  background: var(--color-bg-alt);
  padding: 100px 0 40px;
  text-align: center;
}

.solutions-intro h2 {
  font-size: clamp(22px, 2.5vw, 30px);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.solutions-intro p {
  max-width: 780px;
  margin: 0 auto;
  font-size: 15px;
  color: var(--color-muted);
}

/* ——— Features + phone ——— */
.features {
  background: var(--color-bg-alt);
  padding: 40px 0 100px;
}

.features__layout {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 280px) 1fr;
  gap: 36px 48px;
  align-items: center;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.feature-list--left {
  text-align: right;
}

.feature-list--right {
  text-align: left;
}

.feature-item h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}

.feature-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.phone-mockup {
  justify-self: center;
  width: 100%;
  max-width: 260px;
}

.phone-mockup img {
  width: 100%;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.18));
}

/* ——— Stats ——— */
.stats {
  position: relative;
  padding: 100px 0;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(rgba(20, 20, 20, 0.55), rgba(20, 20, 20, 0.55)),
    url("../assets/images/fabric.jpg") center / cover no-repeat;
  background-attachment: fixed;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat__number {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
}

/* ——— Demo ——— */
.demo {
  padding: 100px 0 40px;
  text-align: center;
}

.demo h2 {
  font-size: clamp(22px, 2.5vw, 30px);
  text-transform: uppercase;
  margin-bottom: 48px;
}

.demo__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  text-align: left;
}

.demo__form-wrap h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.demo__contact {
  font-size: 14px;
  margin-bottom: 28px;
  color: var(--color-muted);
}

.demo__contact a {
  color: var(--color-accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-status {
  margin-top: 16px;
  font-size: 13px;
  color: var(--color-accent);
  line-height: 1.5;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--color-muted);
  margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="email"] {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
  font-family: inherit;
  font-size: 14px;
  color: var(--color-text);
  background: transparent;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-bottom-color: var(--color-accent);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 28px 0;
  font-size: 13px;
}

.form-check input {
  margin-top: 3px;
  accent-color: var(--color-accent);
}

.form-note {
  margin-top: 18px;
  font-size: 12px;
  color: var(--color-muted);
  line-height: 1.5;
}

.demo__image {
  overflow: hidden;
}

.demo__image img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: center top;
}

/* ——— Products ——— */
.product {
  padding: 100px 0;
}

.product:nth-of-type(even),
.product--alt {
  background: var(--color-bg-alt);
}

.product__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.product__grid--reverse .product__media {
  order: 2;
}

.product__grid--reverse .product__copy {
  order: 1;
}

.product__copy h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.product__copy > p {
  margin: 0 0 28px;
  font-size: 15px;
}

.product-points {
  display: grid;
  gap: 20px;
}

.product-points h3 {
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.product-points p {
  margin: 0;
  font-size: 13px;
}

.product__media img {
  width: 100%;
}

.phone-slider {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.phone-slider figure {
  margin: 0;
  width: min(140px, 28%);
}

.phone-slider img {
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* ——— Footer ——— */
.site-footer {
  background: var(--color-black);
  color: rgba(255, 255, 255, 0.72);
  padding: 72px 0 32px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__brand img {
  height: 40px;
  margin-bottom: 20px;
}

.footer__brand p {
  margin: 0;
  max-width: 360px;
  font-size: 13px;
  line-height: 1.7;
}

.site-footer h4 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.site-footer a:hover {
  color: var(--color-accent);
}

.footer__links li + li {
  margin-top: 10px;
}

.footer__bottom {
  padding-top: 28px;
  font-size: 12px;
  text-align: center;
}

/* ——— Responsive ——— */
@media (max-width: 960px) {
  .values__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features__layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .feature-list--left,
  .feature-list--right {
    text-align: center;
  }

  .phone-mockup {
    order: -1;
    max-width: 220px;
  }

  .stats {
    background-attachment: scroll;
  }

  .stats__grid,
  .demo__grid,
  .product__grid,
  .footer__top {
    grid-template-columns: 1fr;
  }

  .product__grid--reverse .product__media,
  .product__grid--reverse .product__copy {
    order: initial;
  }

  .demo__image img {
    max-height: 400px;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: block;
    z-index: 1002;
  }

  .nav {
    position: fixed;
    inset: 0;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
  }

  #nav-toggle:checked ~ .site-header .nav {
    opacity: 1;
    visibility: visible;
  }

  #nav-toggle:checked ~ .site-header {
    background: #fff;
  }

  #nav-toggle:checked ~ .site-header .logo-dark {
    display: block;
  }

  #nav-toggle:checked ~ .site-header .logo-light {
    display: none;
  }

  #nav-toggle:checked ~ .site-header .nav-link {
    color: var(--color-text);
    font-size: 16px;
  }

  #nav-toggle:checked ~ .site-header .menu-toggle span {
    background: var(--color-text);
  }

  .values__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .values,
  .solutions-intro,
  .demo,
  .product {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .stats {
    padding: 72px 0;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
  }
}
