:root {
  --brand: #161b7f;
  --brand-2: #3239b7;
  --accent: #ff6b2c;
  --accent-2: #ffb545;
  --ink: #161629;
  --muted: #676b7c;
  --line: #e7e9f7;
  --soft: #f6f7ff;
  --white: #ffffff;
  --max-width: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

img {
  max-width: 100%;
}

section,
footer {
  scroll-margin-top: 92px;
}

.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(16, 19, 80, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: 150px;
  display: block;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.site-nav a,
.phone-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.5rem 0.52rem;
  border-radius: 999px;
  white-space: nowrap;
}

.site-nav a:hover,
.phone-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.phone-link {
  color: var(--accent-2);
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
}

.header-demo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: var(--white);
  background: var(--accent);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 12px 22px rgba(255, 107, 44, 0.2);
}

.header-demo:hover {
  background: #f04b1b;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--white);
}

.hero {
  min-height: calc(100vh - 82px);
  padding: 5rem 0 4rem;
  background:
    linear-gradient(135deg, rgba(22, 27, 127, 0.95), rgba(50, 57, 183, 0.82)),
    linear-gradient(45deg, #101350, #2830ad);
  color: var(--white);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent-2);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

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

h1,
h2,
h3 {
  line-height: 1.16;
}

h1 {
  max-width: 11ch;
  margin-bottom: 1.1rem;
  font-size: clamp(2.5rem, 6vw, 5.3rem);
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0.85rem;
  font-size: clamp(2rem, 3vw, 3.1rem);
}

.hero-copy p {
  max-width: 66ch;
  margin-bottom: 1.6rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0.78rem 1.2rem;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--accent), #f04b1b);
  box-shadow: 0 16px 30px rgba(255, 107, 44, 0.25);
}

.btn-secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.hero-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.phone-frame {
  width: min(410px, 88vw);
  aspect-ratio: 1 / 1.12;
  display: grid;
  place-items: center;
  border-radius: 34px;
  background: linear-gradient(180deg, #ffffff, #edf0ff);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.32);
  padding: 1.4rem;
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.floating-card {
  position: absolute;
  width: 180px;
  padding: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.13);
  color: var(--white);
  backdrop-filter: blur(12px);
}

.floating-card strong,
.floating-card span {
  display: block;
}

.floating-card span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
}

.card-top {
  top: 38px;
  left: 0;
}

.card-bottom {
  right: 0;
  bottom: 62px;
}

.intro-band,
.features,
.templates,
.package,
.contact {
  padding: 5rem 0;
}

.intro-band {
  background: #fff7f2;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  align-items: end;
}

.intro-grid p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-head {
  max-width: 680px;
  margin-bottom: 2rem;
}

.features {
  background: var(--white);
}

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

.feature-card {
  min-height: 265px;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 38px rgba(20, 24, 68, 0.07);
}

.feature-card.highlight {
  color: var(--white);
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  border-color: transparent;
}

.feature-card img,
.text-icon {
  width: 62px;
  height: 62px;
  margin-bottom: 1rem;
  border-radius: 50%;
  object-fit: contain;
}

.text-icon {
  display: grid;
  place-items: center;
  color: var(--brand);
  background: var(--white);
  font-weight: 900;
}

.feature-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.12rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.feature-card.highlight p {
  color: rgba(255, 255, 255, 0.78);
}

.templates {
  background: var(--soft);
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
}

.template-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 30px rgba(20, 24, 68, 0.07);
}

.template-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.template-card h3 {
  margin: 0;
  padding: 0.8rem;
  color: var(--brand);
  font-size: 1rem;
  text-align: center;
}

.package {
  color: var(--white);
  background: linear-gradient(135deg, #111456, #2f37ac);
}

.package-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: center;
}

.package-copy p:not(.eyebrow) {
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.8);
}

.price-card {
  padding: 2rem;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.plan-name {
  margin-bottom: 0.4rem;
  color: var(--brand);
  font-size: 1.4rem;
  font-weight: 900;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  color: var(--brand);
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1;
}

.price span {
  font-size: 1.2rem;
}

.period {
  margin: 0.6rem 0 1rem;
  color: var(--muted);
  font-weight: 800;
}

.note {
  margin-bottom: 1.4rem;
  color: var(--muted);
}

.contact {
  background: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
}

.contact-copy p:not(.eyebrow) {
  color: var(--muted);
}

.contact-list {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.contact-list a,
.contact-list span {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

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

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  color: var(--ink);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d8dbea;
  border-radius: 6px;
  padding: 0.85rem 0.9rem;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.site-footer {
  color: rgba(255, 255, 255, 0.82);
  background: #101350;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.8fr;
  gap: 1rem;
  padding: 3rem 0 2rem;
}

.footer-brand img {
  width: 145px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.2));
}

.footer-brand p {
  max-width: 46ch;
  margin: 0;
}

.footer-links,
.footer-contact {
  display: grid;
  align-content: start;
  gap: 0.45rem;
}

.footer-links h3,
.footer-contact h3 {
  margin-bottom: 0.45rem;
  color: var(--white);
  font-size: 1.05rem;
}

.footer-links a,
.footer-contact a,
.footer-contact span {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--accent-2);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1rem 0;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

@media (max-width: 1160px) {
  .header-actions {
    display: none;
  }
}

@media (max-width: 1080px) {
  .site-nav {
    gap: 0;
  }

  .site-nav a {
    font-size: 0.84rem;
    padding-inline: 0.42rem;
  }

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

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

@media (max-width: 960px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    order: 3;
    width: 100%;
    margin-left: 0;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: #101350;
    flex-direction: column;
    align-items: stretch;
  }

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

  .site-nav a {
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.95rem;
    padding: 0.7rem 0.85rem;
  }

  .nav-wrap {
    flex-wrap: wrap;
  }

  .hero-grid,
  .intro-grid,
  .package-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 3.4rem;
  }

  .hero-visual {
    min-height: 480px;
  }
}

@media (max-width: 640px) {
  .brand img {
    width: 128px;
  }

  .hero-visual {
    min-height: auto;
    padding-bottom: 1rem;
  }

  .floating-card {
    position: static;
    width: 100%;
    margin-top: 0.8rem;
  }

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

  .template-card {
    display: grid;
    grid-template-columns: 98px 1fr;
    align-items: center;
  }

  .template-card h3 {
    text-align: left;
  }

  .footer-wrap {
    align-items: flex-start;
    flex-direction: column;
  }
}
