/* HAVAL RAPTOR — styles */

/* ============================================
   VARIABLES
   ============================================ */
:root {
  --r-bg:          #171717;
  --r-bg-dark:     #070807;
  --r-bg-darker:   #060706;
  --r-green:       #39FF88;
  --r-green-mint:  rgba(140, 255, 180, 0.74);
  --r-green-glow:  rgba(57, 255, 136, 0.35);
  --r-orange:      #FF6A00;
  --r-gold:        #D29A4E;
  --r-white:       #FFFFFF;
  --r-gray-1:      #B3B3B3;
  --r-gray-2:      #989898;
  --r-gray-3:      #6B726B;
  --r-gray-4:      #A7ADA5;
  --r-white-06:    rgba(255, 255, 255, 0.06);
  --r-white-12:    rgba(255, 255, 255, 0.12);
  --r-white-16:    rgba(255, 255, 255, 0.16);
}

/* ============================================
   RESET / BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.raptor {
  font-family: 'Source Sans 3', 'Source Sans Pro', Arial, sans-serif;
  background: #000;
  color: var(--r-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.raptor ul {
  list-style: none;
}

body.raptor a {
  text-decoration: none;
  /* color: inherit; */
}

body.raptor img {
  max-width: 100%;
  display: block;
}

/* ============================================
   HEADER
   ============================================ */
.r-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--r-bg);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.02);
}

.r-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: 1120px;
  margin: 0 auto;
  gap: 24px;
}

.r-header__logo img {
  height: 13px;
  width: auto;
}

.r-header__nav ul {
  display: flex;
  gap: 0;
}

.r-header__nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 16px;
  font-size: 16px;
  line-height: 24px;
  color: var(--Colors-Neutral-Text-colorTextQuaternary, #B3B3B3);
  transition: color 0.2s;
}

.r-header__nav a:hover {
  color: var(--r-green);
}

.r-header__right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Language Switcher */
.r-lang {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--r-white-12);
  border-radius: 999px;
  padding: 4px 6px;
}

.r-lang__btn {
  font-size: 12px;
  line-height: 20px;
  color: var(--r-gray-3);
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.r-lang__btn--active {
  color: var(--r-green);
}

.r-header__mobile-contact {
  display: none;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: var(--r-gray-2);
  transition: color 0.2s;
}

.r-header__mobile-contact:hover {
  color: var(--r-green);
}

/* ============================================
   BUTTONS
   ============================================ */
.r-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  line-height: 22px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 9999px;
  padding: 9px 20px;
  transition: all 0.2s;
  white-space: nowrap;
}

.r-btn--primary {
  background: var(--r-green);
  color: #171717;
  border: 1px solid #4A9988;
  box-shadow: 0px 5px 20px 0px #39FF8859;
}

.r-btn--full {
  width: 100%;
}

.r-btn--play svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .r-btn.r-btn--primary.r-btn--play {
    margin-bottom: 40px;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */
.r-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 80px;
}

.r-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.r-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 7, 6, 0.35) 0%,
    rgba(6, 7, 6, 0.55) 50%,
    rgba(6, 7, 6, 0.9) 100%
  );
}

.r-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
  max-width: 1020px;
}

.r-hero__title {
  font-family: 'Jura', 'Arial Narrow', sans-serif;
  font-weight: 700;
  font-size: 62px;
  line-height: 1.1;
  color: var(--r-white);
}

.r-hero__subtitle {
  font-size: 30px;
  font-weight: 600;
  line-height: 38px;
  color: var(--r-gray-1);
  margin-bottom: 50px;
}

.r-hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--r-white);
  font-size: 14px;
  line-height: 22px;
  white-space: nowrap;
}

.r-hero__arrow {
  font-size: 20px;
  animation: r-bounce 1.5s ease-in-out infinite;
}

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

/* ============================================
   COUNTDOWN SECTION
   ============================================ */
.r-countdown {
  background:
     linear-gradient(180deg, rgba(7, 8, 7, 0.75) 0%, rgba(7, 8, 7, 0.15) 30%, rgba(7, 8, 7, 0.15) 70%, rgba(7, 8, 7, 0.75) 100%),
    radial-gradient(60% 90% at 50% 50%, rgba(57, 255, 136, 0.06) 0%, rgba(57, 255, 136, 0) 70%),
    url('/uploads/raptor/background-light-beams.svg') center center / cover no-repeat;
  padding: 100px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.r-countdown__inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

.r-countdown__title {
  font-family: 'Jura', 'Arial Narrow', sans-serif;
  font-weight: 700;
  font-size: 62px;
  color: var(--r-green-mint);
}

.r-countdown__sub {
  font-size: 30px;
  font-weight: 600;
  line-height: 38px;
  color: var(--r-gray-2);
  margin-bottom: 48px;
}

.r-countdown__timer {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.r-countdown__cell {
  background: linear-gradient(180deg, rgba(18, 22, 18, 0.9) 0%, rgba(8, 10, 8, 0.92) 100%);
  border-radius: 14px;
  padding: 33px 24px 24px;
  width: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(57, 255, 136, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.r-countdown__cell::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 165px;
  height: 2px;
  background: #39FF88;
}

.r-countdown__num {
  font-family: 'Jura', 'Arial Narrow', sans-serif;
  font-weight: 700;
  font-size: 62px;
  line-height: 1;
  color: var(--r-white);
  text-decoration: underline;
  text-shadow: 0 0 26px rgba(57, 255, 136, 0.3);
}

.r-countdown__cell--active .r-countdown__num {
  color: var(--r-green);
  text-shadow: 0 0 30px rgba(57, 255, 136, 0.55);
}

.r-countdown__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--r-gray-2);
}

/* ============================================
   POWER SECTION
   ============================================ */
.r-power {
  background: var(--r-bg-darker);
  padding: 100px 20px;
  text-align: center;
}

.r-power__inner {
  max-width: 1120px;
  margin: 0 auto;
}

.r-power__title {
  font-family: 'Jura', 'Arial Narrow', sans-serif;
  font-weight: 700;
  font-size: 62px;
  color: var(--r-white);
  margin-bottom: 20px;
}

.r-power__sub {
  font-size: 30px;
  font-weight: 600;
  line-height: 38px;
  color: var(--r-gray-2);
  margin-bottom: 40px;
}

.r-power__cards {
  display: flex;
  gap: 24px;
  justify-content: center;
}

/* Feature Cards */
.r-card {
  flex: 1;
  max-width: 384px;
  padding: 24px 24px 45px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  min-height: 300px;
}

.r-card:hover {
  transform: translateY(-4px);
}

.r-card__image {
  margin: 0;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.r-card--orange {
  background: linear-gradient(180deg, rgba(26, 18, 14, 0.72) 0%, rgba(9, 8, 7, 0.9) 100%);
  border: 1px solid rgba(255, 106, 0, 0.2);
}

.r-card--gold {
  background: linear-gradient(180deg, rgba(24, 21, 15, 0.72) 0%, rgba(9, 8, 7, 0.9) 100%);
  border: 1px solid rgba(210, 154, 78, 0.2);
}

.r-card--green {
  background: linear-gradient(180deg, rgba(14, 24, 18, 0.72) 0%, rgba(8, 9, 8, 0.9) 100%);
  border: 1px solid rgba(57, 255, 136, 0.2);
}

.r-card__num {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  z-index: 2;
}
.r-card--orange .r-card__num { color: var(--r-orange); }
.r-card--gold   .r-card__num { color: var(--r-gold); }
.r-card--green  .r-card__num { color: var(--r-green); }

.r-card__title {
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  color: var(--r-white);
}

.r-card__desc {
  font-size: 16px;
  line-height: 24px;
  color: var(--r-gray-4);
  flex: 1;
}


/* ============================================
   CONTACT / FORM SECTION
   ============================================ */
.r-contact {
  position: relative;
  padding: 100px 20px;
  overflow: hidden;
}

.r-contact__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: left;
}

.r-contact__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 7, 6, 1)   0%,
    rgba(6, 7, 6, 0.7) 50%,
    rgba(6, 7, 6, 1)   100%
  );
}

.r-contact__inner {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  gap: 80px;
  align-items: center;
}

.r-contact__text {
  flex: 1;
}

.r-contact__title {
  font-family: 'Jura', 'Arial Narrow', sans-serif;
  font-weight: 700;
  font-size: 62px;
  line-height: 1.1;
  color: var(--r-green-mint);
  margin-bottom: 24px;
}

.r-contact__desc {
  font-size: 30px;
  font-weight: 600;
  line-height: 38px;
  color: var(--r-gray-2);
}

/* Form Panel */
.r-form-panel {
  width: 460px;
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(16, 22, 18, 0.85) 0%, rgba(8, 10, 8, 0.92) 100%);
  border-radius: 22px;
  padding: 48px;
  border: 1px solid rgba(57, 255, 136, 0.12);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(57, 255, 136, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
}

.r-form-panel::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 2px;
  background: var(--r-green);
  box-shadow: 0 0 16px rgba(57, 255, 136, 1);
  border-radius: 999px;
}

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

.r-form__field input {
  width: 100%;
  height: 56px;
  background: var(--r-white-06);
  border: 1px solid var(--r-white-12);
  border-radius: 12px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
  color: var(--r-white);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.r-form__field input::placeholder {
  color: var(--r-gray-1);
}

.r-form__field input:focus {
  border-color: rgba(57, 255, 136, 0.4);
}

.r-form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.r-form__checkbox input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  background: var(--r-white-06);
  border: 1px solid var(--r-white-12);
  border-radius: 3px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.r-form__checkbox input[type="checkbox"]:checked {
  background: var(--r-green);
  border-color: var(--r-green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath fill='%23171717' d='M1 4l3 3 5-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.r-form__checkbox span {
  font-size: 12px;
  line-height: 20px;
  color: var(--r-gray-2);
}

.r-form__success {
  display: none;
  text-align: center;
  color: var(--r-green);
  font-size: 16px;
  font-weight: 600;
  padding: 16px 0;
}

/* ============================================
   FOOTER
   ============================================ */
.r-footer {
  background: var(--r-bg);
  padding: 48px 20px;
}

.r-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
}

.r-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
}

.r-footer__logo img {
  height: 13px;
  width: auto;
}

.r-footer__cols {
  display: flex;
  gap: 64px;
}

.r-footer__col-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--r-white);
  margin-bottom: 16px;
}

.r-footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.r-footer__col a {
  font-size: 14px;
  line-height: 22px;
  color: var(--r-gray-2);
  transition: color 0.2s;
}

.r-footer__col a:hover {
  color: var(--r-green);
}

.r-footer__logo {
  margin-bottom: 12px;
}

.r-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  gap: 24px;
  flex-wrap: wrap;
}

.r-footer__copy {
  font-size: 12px;
  line-height: 20px;
  color: var(--r-gray-2);
}

.r-footer__contacts {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.r-footer__contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.r-footer__contact-item > span:last-child {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: var(--r-gray-2);
}

.r-footer__icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 9999px;
  background: rgba(140, 255, 180, 0.3);
  border: 1px solid #39FF88;
  color: #fff;
  text-decoration: none;
  box-shadow: 0px 5px 20px 0px #39FF8859;
}

/* ============================================
   MOBILE NAV DRAWER
   ============================================ */
.r-mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--r-bg);
  flex-direction: column;
  padding: 48px 24px 40px;
  gap: 40px;
}

.r-mobile-nav.is-open {
  display: flex;
}

.r-mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.r-mobile-nav__close {
  background: none;
  border: none;
  color: var(--r-white);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.r-mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.r-mobile-nav nav a {
  font-size: 24px;
  font-weight: 600;
  color: var(--r-white);
  transition: color 0.2s;
}

.r-mobile-nav nav a:hover {
  color: var(--r-green);
}

.r-mobile-nav__bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .r-countdown,
  .r-power,
  .r-contact         { padding: 80px 48px; }
  .r-footer          { padding: 40px 48px; }

  /* Countdown cells become flexible before they overflow */
  .r-countdown__cell { flex: 1 1 0; min-width: 0; }
}

@media (max-width: 1024px) {
  .r-contact__inner  { flex-direction: column; gap: 48px; }
  .r-contact__text   { max-width: 620px; width: 100%; text-align: center; }
  .r-form-panel      { width: 100%; max-width: 560px; }
  .r-contact__title   { font-size: 36px; }
  .r-contact__desc    { font-size: 18px; line-height: 26px; }

  /* Power */
  .r-power__cards     { flex-direction: column; align-items: stretch; }
  .r-card             { max-width: 100%;}
}

@media (max-width: 768px) {
  .r-header__inner                  { padding: 16px 20px; }
  .r-header__nav                    { display: none; }
  .r-header__right                  { flex-direction: row-reverse; align-items: center; gap: 15px; flex-wrap: wrap; }
  .r-header__right .r-btn--primary  { display: none; }
  .r-header__mobile-contact         { display: block; }

  /* Hero */
  .r-hero           { height: 60vh; min-height: 400px; }
  .r-hero__title     { font-size: 36px; }
  .r-hero__subtitle  { font-size: 20px; line-height: 28px; margin-bottom: 20px;}

  /* Countdown */
  .r-countdown       { padding: 60px 20px; }
  .r-countdown__title { font-size: 32px; }
  .r-countdown__sub  { font-size: 16px; line-height: 24px; margin-bottom: 26px; }
  .r-countdown__cell { padding: 20px 8px 16px; }
  .r-countdown__num  { font-size: 40px; }

  /* Power */
  .r-power            { padding: 60px 20px; }
  .r-power__title     { font-size: 36px; }
  .r-power__sub       { font-size: 18px; line-height: 26px; }

  /* Contact */
  .r-contact          { padding: 60px 20px; }
  .r-contact__inner   { flex-direction: column; gap: 40px; }
  .r-form-panel       { width: 100%; padding: 28px 20px; }

  /* Footer */
  .r-footer                        { padding: 40px 20px; }
  .r-footer__logo                  { margin-bottom: 32px; }
  .r-footer__bottom                { flex-direction: column-reverse; align-items: flex-start; gap: 32px; border-top: none; padding-top: 0; }
  .r-footer__contacts              { flex-direction: column; gap: 24px; }
  .r-footer__contact-item          { gap: 20px; }
  .r-footer__icon-btn svg          { width: 16px; height: 16px; }
}

@media (max-width: 480px) {
  .r-countdown__timer { gap: 8px; }
  .r-countdown__cell  { padding: 16px 6px 12px; border-radius: 10px; }
  .r-countdown__num   { font-size: 24px; }
  .r-countdown__label { font-size: 11px; }
}
