/* ===================================================================
   Red Swift Systems — Styles
   =================================================================== */

/* --- Reset & Base ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'PT Sans', Arial, sans-serif;
  font-size: 20px;
  line-height: 1.55;
  color: #333;
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style-position: inside; }

/* --- Utility ------------------------------------------------------ */
.text-white { color: #fff; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.row--center { align-items: center; }

.col-2  { flex: 0 0 calc(16.666% - 20px); }
.col-3  { flex: 0 0 calc(25% - 22px); }
.col-5  { flex: 0 0 calc(41.666% - 15px); }
.col-6  { flex: 0 0 calc(50% - 15px); }
.col-7  { flex: 0 0 calc(58.333% - 15px); }
.col-9  { flex: 0 0 calc(75% - 8px); }
.col-offset-1 { margin-left: calc(8.333%); }
.col-offset-2 { margin-left: calc(16.666%); }
.col-offset-3 { margin-left: calc(25%); }

/* --- Section Title ------------------------------------------------ */
.section-title {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 300;
  font-size: 40px;
  text-align: center;
  margin-bottom: 60px;
}

/* --- Buttons ------------------------------------------------------ */
.btn {
  display: inline-block;
  padding: 12px 32px;
  font-size: 18px;
  font-family: inherit;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.85; }
.btn--red  { background: #ff0000; color: #fff; }
.btn--teal { background: #007681; color: #fff; border-radius: 30px; }

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

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.50));
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.hero__uptitle {
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.hero__title {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 400;
  font-size: 52px;
  line-height: 1.2;
  margin-bottom: 40px;
}

.hero__cta { margin-bottom: 0; }

.hero__play-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  text-decoration: none;
  color: #fff;
}

.hero__play-icon {
  display: inline-block;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ff0000;
  position: relative;
}
.hero__play-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #000;
}

.hero__arrow {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===================================================================
   ABOUT
   =================================================================== */
.about {
  background: #ccc;
  padding: 150px 0 60px;
}

.about__logo {
  max-width: 100%;
}

.about__text {
  font-weight: 300;
  font-size: 32px;
  color: #555;
}

/* ===================================================================
   FEATURES
   =================================================================== */
.features {
  background: #ccc;
  padding: 60px 0 90px;
}

.cards {
  display: flex;
  gap: 30px;
}

.card {
  flex: 1;
}

.card__title {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 300;
  font-size: 32px;
  margin-bottom: 10px;
}

.card__text {
  font-size: 20px;
}

/* ===================================================================
   SPEED
   =================================================================== */
.speed {
  background: #ccc;
  padding: 60px 0;
}

/* ===================================================================
   DEVICES
   =================================================================== */
.devices {
  background: #ccc;
  padding: 60px 0 135px;
}

.devices__img {
  width: 100%;
}

.devices__list {
  font-size: 20px;
  list-style: disc;
}

.devices__list li {
  margin-bottom: 8px;
}

/* ===================================================================
   PROFIT
   =================================================================== */
.profit {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.profit__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.profit__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.50), rgba(0,0,0,0.70));
}

.profit__content {
  position: relative;
  z-index: 1;
}

.profit__title {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 300;
  font-size: 40px;
  margin-bottom: 24px;
}

.profit__text {
  font-size: 20px;
  margin-bottom: 16px;
}

/* ===================================================================
   CONTACT
   =================================================================== */
.contact {
  background: #ccc;
  padding: 105px 0;
}

.contact__form-wrap {
  max-width: 700px;
  margin: 0 auto;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__input {
  font-family: inherit;
  font-size: 18px;
  padding: 14px 16px;
  border: none;
  border-radius: 4px;
  background: #fff;
  color: #000;
}

.contact__input::placeholder {
  color: #000;
  opacity: 0.5;
}

.contact__textarea {
  resize: vertical;
  min-height: 102px;
}

/* ===================================================================
   GETTI
   =================================================================== */
.getti {
  background: #efefef;
  padding: 150px 0;
}

.getti__heading {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 400;
  font-size: 32px;
  margin-bottom: 30px;
}

.getti__descr {
  font-size: 22px;
  margin-bottom: 24px;
}

.getti__note {
  font-size: 20px;
  margin-top: 16px;
}

/* ===================================================================
   FOOTER
   =================================================================== */
.footer {
  background: #ccc;
  padding: 90px 0;
}

.footer__logo {
  max-width: 100%;
}

.footer__links {
  font-family: 'PT Sans', sans-serif;
  font-weight: 300;
  font-size: 20px;
  color: #fff;
  text-align: center;
}

.footer__link {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid #fff;
}
.footer__link:hover { opacity: 0.8; }

/* ===================================================================
   POPUP
   =================================================================== */
.popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.popup.is-open {
  display: flex;
}

.popup__bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}

.popup__body {
  position: relative;
  background: #fff;
  max-width: 1100px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  border-radius: 8px;
}

.popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

.popup__columns {
  display: flex;
  gap: 40px;
}

.popup__col {
  flex: 1;
}

.popup__col p,
.popup__col ul {
  margin-bottom: 16px;
}

/* ===================================================================
   VIDEO OVERLAY
   =================================================================== */
.video-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.video-overlay.is-open {
  display: flex;
}

.video-overlay__bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.video-overlay__wrap {
  position: relative;
  width: 90%;
  max-width: 960px;
}

.video-overlay__close {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 32px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

.video-overlay__player {
  width: 100%;
  border-radius: 4px;
  display: block;
  background: #000;
}

#play-video {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 960px) {
  .hero__title { font-size: 36px; }
  .about__text { font-size: 24px; }
  .section-title { font-size: 32px; margin-bottom: 45px; }
  .card__title { font-size: 24px; }

  .row { flex-direction: column; gap: 20px; }
  .col-2, .col-3, .col-5, .col-6, .col-7, .col-9 { flex: 1 1 100%; }
  .col-offset-1, .col-offset-2, .col-offset-3 { margin-left: 0; }

  .cards { flex-direction: column; }
  .popup__columns { flex-direction: column; gap: 20px; }

  .footer__links { text-align: left; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero__title { font-size: 28px; }
  .about__text { font-size: 20px; }
  .section-title { font-size: 26px; }
  .card__title { font-size: 22px; }
  .profit__title { font-size: 28px; }
  .getti__heading { font-size: 26px; }

  .hero__bg,
  .profit__bg {
    background-attachment: scroll;
  }
}
