:root {
  --color-bg: #080b12;
  --color-bg-light: #101923;
  --color-panel: rgba(17, 27, 37, 0.88);
  --color-panel-strong: rgba(13, 21, 30, 0.96);
  --color-accent: #3fbf88;
  --color-accent-dark: #248c63;
  --color-accent-soft: rgba(63, 191, 136, 0.14);
  --color-highlight: #f6b84a;
  --color-text: #f6f8f7;
  --color-text-muted: rgba(246, 248, 247, 0.72);
  --color-border: rgba(255, 255, 255, 0.09);
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #080b12 0%, #0e171f 46%, #132018 100%);
  color: var(--color-text);
  min-height: 100vh;
}

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

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

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

.hero {
  position: relative;
  padding: 152px clamp(16px, 5vw, 48px) 88px;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.page-hero {
  position: relative;
  padding: 152px clamp(16px, 5vw, 48px) 72px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(8, 11, 18, 0.96), rgba(19, 32, 24, 0.82)),
    url('../img/iphone-projects.png') right 8% center / auto 88% no-repeat;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 11, 18, 0.68);
}

.page-hero__content {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-hero__content h1 {
  margin: 18px 0 10px;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.12;
}

.page-hero__content p {
  margin: 0;
  color: var(--color-text-muted);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 11, 18, 0.96), rgba(8, 11, 18, 0.72) 48%, rgba(8, 11, 18, 0.36)),
    url('../img/iphone-editor.png') right 8% center / auto 88% no-repeat;
  opacity: 0.22;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(16px, 5vw, 48px);
  background: rgba(8, 11, 18, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--color-border);
  z-index: 10;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.logo img {
  border-radius: 8px;
}

.nav__links {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.nav__links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: transparent;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.nav__links a:hover,
.nav__links a.is-active {
  color: var(--color-text);
}

.nav__links a.is-active::after {
  background: var(--color-accent);
  opacity: 1;
  transform: translateY(0);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.nav__toggle span {
  width: 18px;
  height: 2px;
  background: var(--color-text);
}

.hero__content {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.98fr);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero__text h1 {
  font-size: clamp(2.35rem, 5vw, 4.25rem);
  margin: 18px 0;
  line-height: 1.08;
}

.hero__text {
  min-width: 0;
}

.hero__text p {
  color: var(--color-text-muted);
  max-width: 590px;
  font-size: 1.05rem;
  line-height: 1.65;
}

.intro-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--color-accent-soft);
  border: 1px solid rgba(63, 191, 136, 0.28);
  color: #d9ffed;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__cta {
  display: flex;
  gap: 16px;
  margin: 32px 0 24px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--color-accent);
  color: #06110b;
  box-shadow: 0 12px 32px rgba(63, 191, 136, 0.28);
}

.btn--primary:hover {
  background: #56d99d;
  color: #06110b;
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.17);
}

.btn--ghost:hover {
  color: var(--color-accent);
  border-color: rgba(63, 191, 136, 0.48);
}

.hero__social {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.hero__device {
  min-height: 620px;
  position: relative;
}

.phone-frame {
  position: absolute;
  width: min(285px, 47vw);
  padding: 10px;
  border-radius: 34px;
  background: #10151c;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.48);
  overflow: hidden;
}

.phone-frame img {
  width: 100%;
  aspect-ratio: 1284 / 2778;
  object-fit: cover;
  border-radius: 25px;
}

.phone-frame--front {
  right: 64px;
  top: 0;
  z-index: 2;
}

.phone-frame--back {
  left: 10px;
  top: 78px;
  opacity: 0.7;
  transform: scale(0.92);
}

main {
  padding: 80px clamp(16px, 5vw, 48px);
}

.section {
  max-width: var(--max-width);
  margin: 0 auto 96px;
  content-visibility: auto;
  contain-intrinsic-size: 1px 640px;
}

.section__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section__header h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.section__header p {
  color: var(--color-text-muted);
  line-height: 1.65;
}

.section--light {
  background: linear-gradient(135deg, rgba(16, 25, 35, 0.97), rgba(19, 32, 24, 0.74));
  padding: 72px clamp(16px, 5vw, 48px);
  border-radius: 32px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.feature-grid,
.privacy {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature-card,
.privacy__item {
  background: var(--color-panel);
  border-radius: 20px;
  padding: 28px;
  border: 1px solid var(--color-border);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.26);
}

.feature-card h3,
.privacy__item h3 {
  margin: 0 0 12px;
}

.feature-card p,
.privacy__item p {
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

.policy {
  max-width: 880px;
}

.policy__content {
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: clamp(24px, 5vw, 48px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

.policy__content h2 {
  margin: 34px 0 10px;
  font-size: 1.24rem;
}

.policy__content h2:first-child {
  margin-top: 0;
}

.policy__content p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.workflow {
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  align-items: center;
}

.workflow__steps {
  display: grid;
  gap: 22px;
}

.workflow__item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 20px;
  align-items: start;
}

.workflow__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--color-accent-soft);
  border: 1px solid rgba(63, 191, 136, 0.26);
  color: #d9ffed;
  font-weight: 600;
}

.workflow__item h3 {
  margin: 0 0 8px;
}

.workflow__item p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.workflow__preview {
  justify-self: center;
  width: min(270px, 100%);
  padding: 10px;
  border-radius: 34px;
  background: #10151c;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.workflow__preview img {
  width: 100%;
  aspect-ratio: 1284 / 2778;
  object-fit: cover;
  border-radius: 25px;
}

.footer {
  padding: 32px clamp(16px, 5vw, 48px) 48px;
  background: rgba(5, 7, 11, 0.95);
  border-top: 1px solid var(--color-border);
}

.footer__content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
  color: var(--color-text-muted);
}

.footer__content p {
  margin: 0;
}

.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__links a {
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: absolute;
    top: 72px;
    right: 16px;
    flex-direction: column;
    background: rgba(8, 11, 18, 0.96);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 16px 24px;
    width: min(240px, calc(100vw - 32px));
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .nav__links.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .hero__content,
  .workflow {
    grid-template-columns: 1fr;
  }

  .hero__device {
    min-height: 520px;
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
  }

  .phone-frame--front {
    right: 24px;
  }

  .phone-frame--back {
    left: 24px;
  }

}

@media (max-width: 600px) {
  .hero {
    padding-top: 128px;
    padding-bottom: 56px;
  }

  .hero__text h1 {
    font-size: 1.9rem;
  }

  .hero__device {
    min-height: 450px;
  }

  .phone-frame {
    width: min(220px, 58vw);
  }

  .phone-frame--front {
    right: 8px;
  }

  .phone-frame--back {
    left: 0;
    top: 62px;
  }

  main {
    padding-top: 48px;
  }

  .section {
    margin-bottom: 64px;
  }

  .section--light {
    padding: 48px 20px;
    border-radius: 24px;
  }

  .feature-card,
  .privacy__item {
    padding: 24px;
  }

  .workflow__item {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

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