/* ============================================================
   NOXWAVE STUDIO — pages/home.css
   Стили главной страницы: intro, services, projects, numbers,
   pricing, about, contact
   ============================================================ */

/* ---------- Intro (01 / WHAT WE DO) ---------- */
.intro {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  border-top: 1px solid var(--line);
}

.intro-copy h2 {
  font-size: clamp(38px, 5vw, 65px);
  line-height: 1;
  letter-spacing: -3px;
  margin: 0;
}

.intro-copy h2 span {
  color: var(--text-dim);
}

.intro-copy p {
  max-width: 580px;
  margin: 5px 0 0 auto;
  color: #8d98ac;
  font-size: 15px;
  line-height: 1.8;
}

/* ---------- Section-head (общий для секций главной) ---------- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(38px, 5vw, 65px);
  line-height: 1;
  letter-spacing: -3px;
  margin: 12px 0 0;
}

.section-head > p {
  max-width: 350px;
  color: #7c879b;
  font-size: 12px;
  line-height: 1.7;
}

/* ---------- Services grid ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  position: relative;
  min-height: 300px;
  padding: 34px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 255, 255, .015), transparent);
  transition: background var(--t) var(--ease),
              transform var(--t) var(--ease),
              border-color var(--t) var(--ease);
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(0, 150, 255, .13);
  filter: blur(60px);
  right: -100px;
  bottom: -100px;
  opacity: 0;
  transition: opacity var(--t-slow) var(--ease);
  pointer-events: none;
}

.service-card:hover {
  background: #0b101a;
  transform: translateY(-3px);
}

.service-card:hover::after {
  opacity: 1;
}

.service-no {
  position: absolute;
  right: 30px;
  top: 30px;
  color: #374157;
  font-size: 10px;
  letter-spacing: 1px;
  font-weight: 700;
}

.service-icon {
  font-size: 25px;
  color: #34baff;
  height: 60px;
  display: flex;
  align-items: center;
}

.service-card h3 {
  font-size: 24px;
  letter-spacing: -1px;
  margin: 20px 0 12px;
}

.service-card p {
  color: #7e899d;
  font-size: 13px;
  line-height: 1.7;
  max-width: 430px;
}

.service-card a {
  position: absolute;
  bottom: 30px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  transition: color var(--t) var(--ease);
}

.service-card a span {
  color: var(--cyan);
  margin-left: 15px;
}

.service-card a:hover {
  color: var(--cyan);
}

/* ---------- Projects list (главная) ---------- */
.project-list {
  display: grid;
  gap: 25px;
}

.project-card {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  border: 1px solid var(--line);
  background: #080b12;
  min-height: 470px;
  transition: border-color var(--t) var(--ease),
              transform var(--t) var(--ease);
  overflow: hidden;
}

.project-card:hover {
  border-color: rgba(55, 170, 255, .35);
  transform: translateY(-4px);
}

.project-visual {
  position: relative;
  min-height: 470px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.project-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(0, 133, 255, .22), transparent 50%);
}

.project-visual.celestial {
  background: linear-gradient(135deg, #070c1c, #101e43 60%, #05101c);
}

.project-visual.home {
  background: linear-gradient(135deg, #09101d, #071d28 60%, #071118);
}

.project-window {
  width: 65%;
  height: 55%;
  background: rgba(4, 7, 15, .8);
  border: 1px solid rgba(92, 170, 255, .28);
  box-shadow: 0 30px 90px rgba(0, 90, 255, .25);
  padding: 0 20px;
  transform: perspective(800px) rotateY(-8deg) rotateX(4deg);
}

.window-top {
  height: 35px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 5px;
}

.window-top span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #45536c;
}

.window-content {
  height: calc(100% - 35px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.window-content b {
  font-size: 10px;
  letter-spacing: 4px;
  color: #58bfff;
}

.window-content strong {
  font-size: 38px;
  letter-spacing: -2px;
}

.window-content small {
  font-size: 8px;
  color: #59677f;
  margin-top: 10px;
  letter-spacing: 1.5px;
}

.launcher-card {
  width: 62%;
  padding: 35px;
  background: rgba(4, 9, 15, .75);
  border: 1px solid rgba(30, 210, 255, .18);
  box-shadow: 0 30px 90px rgba(0, 200, 255, .12);
}

.launcher-brand {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -2px;
}

.launcher-status {
  font-size: 8px;
  color: #46c9ff;
  letter-spacing: 2px;
  margin: 30px 0 10px;
}

.launcher-progress {
  height: 3px;
  background: #182435;
}

.launcher-progress i {
  display: block;
  width: 72%;
  height: 100%;
  background: linear-gradient(90deg, #1684ff, #00e0ff);
}

.launcher-card small {
  display: block;
  margin-top: 20px;
  color: #65748b;
  font-size: 8px;
  letter-spacing: .5px;
}

.project-info {
  padding: 55px 45px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-info > div {
  display: flex;
  gap: 15px;
  align-items: center;
  color: #475269;
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 700;
}

.project-info > div small {
  color: #647088;
  letter-spacing: 1.5px;
}

.project-info h3 {
  font-size: 42px;
  line-height: 1;
  letter-spacing: -2.5px;
  margin: 35px 0 15px;
}

.project-info p {
  color: #7d899e;
  font-size: 12px;
  line-height: 1.7;
}

.project-open {
  margin-top: 45px;
  width: max-content;
  background: none;
  border: 0;
  border-bottom: 1px solid #354156;
  color: #e8f0ff;
  padding: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  cursor: pointer;
  transition: border-color var(--t) var(--ease), color var(--t) var(--ease);
}

.project-open span {
  color: var(--cyan);
  margin-left: 30px;
}

.project-open:hover {
  border-color: var(--cyan);
}

/* ---------- Numbers (главная + about) ---------- */
.numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: 65px;
  padding-bottom: 65px;
  gap: 0;
}

.number {
  border-right: 1px solid var(--line);
  padding-left: 30px;
}

.number:first-child {
  padding-left: 0;
}

.number:last-child {
  border-right: 0;
}

.number strong {
  font-size: 58px;
  letter-spacing: -4px;
  font-weight: 800;
  line-height: 1;
}

.number strong span {
  font-size: 30px;
  color: var(--cyan);
}

.number small {
  display: block;
  margin-top: 8px;
  color: #68748b;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
}

.number.quote p {
  font-size: 14px;
  line-height: 1.6;
  color: #8b96aa;
  margin: 8px 0;
}

.number.quote span {
  color: #fff;
}

/* ---------- Pricing table (главная) ---------- */
.price-table {
  border-top: 1px solid var(--line);
}

.price-row {
  display: grid;
  grid-template-columns: 1fr 180px 110px;
  align-items: center;
  min-height: 68px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  gap: 16px;
  transition: background var(--t) var(--ease);
}

.price-row:hover {
  background: rgba(255, 255, 255, .015);
}

.price-row strong {
  font-size: 12px;
  font-weight: 700;
}

.price-row button {
  justify-self: end;
  background: none;
  color: #66738a;
  border: 0;
  border-bottom: 1px solid #293246;
  padding: 0 0 5px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease);
}

.price-row button:hover {
  color: #fff;
  border-color: var(--cyan);
}

.custom-price {
  margin-top: 28px;
  padding: 30px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(90deg, rgba(0, 130, 255, .08), transparent);
  flex-wrap: wrap;
}

.custom-price b {
  display: block;
  font-size: 16px;
  letter-spacing: -.3px;
}

.custom-price span {
  display: block;
  color: #718097;
  font-size: 11px;
  margin-top: 7px;
}

/* ---------- About (главная) ---------- */
.about {
  position: relative;
  overflow: hidden;
}

.about-mark {
  position: absolute;
  right: -20px;
  top: 70px;
  font-size: 500px;
  line-height: .8;
  font-weight: 800;
  color: rgba(20, 70, 130, .08);
  pointer-events: none;
  user-select: none;
}

.about-content {
  margin: 50px 0 0 25%;
  max-width: 700px;
}

.about-content h2 {
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -4px;
  margin-bottom: 45px;
}

.about-content h2 span {
  color: var(--text-dim);
}

.about-content p {
  color: #8b96aa;
  font-size: 14px;
  line-height: 1.9;
  max-width: 620px;
}

.about-content p + p {
  margin-top: 18px;
}

/* ---------- Contact (главная + все страницы) ---------- */
.contact {
  position: relative;
  text-align: center;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.contact-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(0, 130, 255, .13);
  filter: blur(100px);
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.contact .section-kicker {
  position: relative;
}

.contact h2 {
  position: relative;
  font-size: clamp(50px, 7vw, 100px);
  line-height: .95;
  letter-spacing: -6px;
  margin: 35px 0;
}

.contact h2 span {
  color: var(--text-dim);
}

.contact p {
  position: relative;
  color: #7f8ba0;
  font-size: 13px;
  max-width: 480px;
  margin: 0 auto 35px;
  line-height: 1.7;
}

.contact-direct-actions {
  position: relative;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Адаптив главной ---------- */
@media (max-width: 1100px) {
  .intro {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .intro-copy p {
    margin: 0;
  }

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

  .number {
    border-right: 0;
    padding-left: 0;
  }

  .about-content {
    margin-left: 0;
  }

  .about-mark {
    font-size: 340px;
  }
}

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

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-visual {
    min-height: 330px;
  }

  .project-info {
    padding: 35px;
  }

  .project-info h3 {
    font-size: 34px;
    margin: 25px 0 12px;
  }

  .project-open {
    margin-top: 30px;
  }

  .section-head {
    display: block;
  }

  .section-head > p {
    margin-top: 20px;
  }

  .custom-price {
    display: block;
  }

  .custom-price .button {
    margin-top: 22px;
  }

  .contact h2 {
    letter-spacing: -4px;
  }

  .about-mark {
    font-size: 260px;
    right: -40px;
  }
}

@media (max-width: 520px) {
  .numbers {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .number strong {
    font-size: 44px;
    letter-spacing: -3px;
  }

  .number strong span {
    font-size: 22px;
  }

  .price-row {
    grid-template-columns: 1fr 115px;
  }

  .price-row button {
    display: none;
  }

  .contact h2 {
    font-size: 48px;
    letter-spacing: -3px;
  }

  .project-info h3 {
    font-size: 28px;
  }
}