/* =========================================================
   Choice Frontier — Premium Automotive Security
   Design system: dark graphite / anthracite / electric blue
   ========================================================= */

/* ---------- Custom properties ---------- */
:root {
  --color-bg: #121417;
  --color-bg-soft: #161a1f;
  --color-surface: #1b1f24;
  --color-surface-2: #20252b;
  --color-accent: #1e90ff;
  --color-accent-2: #00c6c9;
  --color-text: #f7f8fa;
  --color-text-muted: #b6bec8;
  --color-border: rgba(247, 248, 250, 0.08);
  --color-glass: rgba(27, 31, 36, 0.55);

  --gradient-accent: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  --shadow-elevated: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  --shadow-glow: 0 0 24px rgba(30, 144, 255, 0.35);

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;

  --container-w: 1240px;
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);

  --font-main: "Segoe UI", "Inter", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.section--alt {
  background: var(--color-bg-soft);
}

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

.section__eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent-2);
  margin-bottom: 14px;
  font-weight: 600;
}

.section__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section__subtitle {
  color: var(--color-text-muted);
  font-size: 17px;
}

/* Decorative technical pattern background (circuit lines / signal waves) */
.section__pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(90deg, rgba(30, 144, 255, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(30, 144, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, #000 0%, transparent 75%);
}

.section__glow {
  position: absolute;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 144, 255, 0.18), transparent 70%);
  z-index: 0;
  pointer-events: none;
  filter: blur(10px);
}

.section__glow--top-right {
  top: -220px;
  right: -220px;
}

.section__glow--bottom-left {
  bottom: -220px;
  left: -220px;
  background: radial-gradient(circle, rgba(0, 198, 201, 0.16), transparent 70%);
}

/* Diagonal section divider */
.divider {
  position: relative;
  height: 90px;
  margin-top: -1px;
  overflow: hidden;
}

.divider__shape {
  position: absolute;
  inset: 0;
  background: var(--color-bg-soft);
  clip-path: polygon(0 40%, 100% 0%, 100% 100%, 0% 100%);
}

.divider--light .divider__shape {
  background: var(--color-bg);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-pad-y: 14px;
  --btn-pad-x: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
  position: relative;
}

.btn--primary {
  background: var(--gradient-accent);
  color: #06121f;
  box-shadow: 0 0 0 rgba(30, 144, 255, 0), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn--primary:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-2);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn--block {
  width: 100%;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(18, 20, 23, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 24px;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.header__brand-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--color-text);
}

.header__brand-name span {
  color: var(--color-accent-2);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header__nav-list {
  display: flex;
  gap: 6px;
}

.header__nav-link {
  display: inline-block;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.header__nav-link:hover,
.header__nav-link.is-active {
  color: var(--color-text);
  background: var(--color-surface);
}

.header__contacts {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.header__contact {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.header__contact svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent-2);
  flex-shrink: 0;
}

.header__contact:hover {
  color: var(--color-text);
}

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.header__burger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-text);
  transition: transform var(--transition), opacity var(--transition);
}

.header__burger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__burger.is-active span:nth-child(2) {
  opacity: 0;
}

.header__burger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header__mobile {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  backdrop-filter: blur(20px);
  z-index: 99;
  padding: 34px 24px 34px 24px;
  height: 350px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(-12px);
  opacity: 0;
  transition: transform var(--transition), opacity var(--transition);
}

.header__mobile.is-open {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

.header__mobile-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 32px;
}

.header__mobile-link {
  padding: 14px 12px;
  font-size: 18px;
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
}

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

.header__mobile-contacts .header__contact {
  align-items: flex-start;
  white-space: normal;
}

.header__mobile-contacts .header__contact svg {
  margin-top: 2px;
}

@media (max-width: 1024px) {
  .header__nav,
  .header__contacts {
    display: none;
  }

  .header__burger {
    display: flex;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 160px 0 100px;
  overflow: hidden;
  background: var(--color-bg);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45) saturate(1.1);
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 20, 23, 0.6) 0%, rgba(18, 20, 23, 0.85) 60%, var(--color-bg) 100%),
    radial-gradient(circle at 20% 20%, rgba(30, 144, 255, 0.25), transparent 55%);
}

.hero__rings {
  position: absolute;
  top: 50%;
  right: -120px;
  width: 560px;
  height: 560px;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid rgba(30, 144, 255, 0.25);
  z-index: 1;
}

.hero__rings::before,
.hero__rings::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 198, 201, 0.18);
}

.hero__rings::before {
  inset: 60px;
}

.hero__rings::after {
  inset: 130px;
  border-color: rgba(30, 144, 255, 0.2);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  background: var(--color-glass);
  backdrop-filter: blur(10px);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-accent-2);
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero__title span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  font-size: 18px;
  color: var(--color-text-muted);
  margin-bottom: 36px;
  max-width: 560px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  top: 0;
  background: linear-gradient(90deg, transparent, rgba(30, 144, 255, 0.7), transparent);
  animation: scan 6s linear infinite;
  z-index: 1;
}

@keyframes scan {
  0% {
    top: 0%;
  }
  50% {
    top: 100%;
  }
  100% {
    top: 0%;
  }
}

/* ---------- Cards / Glass panels ---------- */
.card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-elevated);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(30, 144, 255, 0.4);
  box-shadow: var(--shadow-elevated), var(--shadow-glow);
}

.card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(30, 144, 255, 0.16), rgba(0, 198, 201, 0.1));
  border: 1px solid rgba(30, 144, 255, 0.3);
  margin-bottom: 20px;
}

.card__icon svg {
  width: 26px;
  height: 26px;
  color: var(--color-accent-2);
}

.card__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.card__text {
  color: var(--color-text-muted);
  font-size: 15px;
}

.card__media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 20px;
  aspect-ratio: 16/10;
  background: var(--color-surface-2);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__price {
  display: inline-block;
  margin-top: 14px;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-accent-2);
}

.glass-panel {
  background: var(--color-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  padding: 40px;
}

/* ---------- Grid utilities ---------- */
.grid {
  display: grid;
  gap: 28px;
}

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

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

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

@media (max-width: 900px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
}

/* ---------- About section (home) ---------- */
.about-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-block__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%);
  box-shadow: var(--shadow-elevated);
}

.about-block__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-block__text p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .about-block {
    grid-template-columns: 1fr;
  }
}

/* ---------- Advantages ---------- */
.advantages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.advantages__list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.advantages__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.advantages__item svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 2px;
}

.advantages__item-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.advantages__item-text {
  color: var(--color-text-muted);
  font-size: 15px;
}

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

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stats__item {
  text-align: center;
  padding: 32px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  position: relative;
}

.stats__number {
  font-size: 40px;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}

.stats__label {
  color: var(--color-text-muted);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 900px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.steps__item {
  position: relative;
  padding: 32px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.steps__number {
  font-size: 42px;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--color-accent);
  margin-bottom: 16px;
  display: block;
}

.steps__title {
  font-weight: 700;
  margin-bottom: 8px;
}

.steps__text {
  color: var(--color-text-muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ---------- Team ---------- */
.team__item {
  text-align: center;
}

.team__media {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 18px;
  aspect-ratio: 1/1;
  background: var(--color-surface-2);
}

.team__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team__name {
  font-weight: 700;
  font-size: 17px;
}

.team__role {
  color: var(--color-accent-2);
  font-size: 14px;
  margin-top: 4px;
}

/* ---------- Values ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

/* ---------- Form ---------- */
.form {
  display: grid;
  gap: 20px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.form__label {
  font-size: 14px;
  color: var(--color-text-muted);
}

.form__input,
.form__textarea {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--color-text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.18);
}

.form__textarea {
  resize: vertical;
  min-height: 140px;
}

.form__error {
  font-size: 13px;
  color: #ff6b6b;
  min-height: 16px;
  display: none;
}

.form__group.is-invalid .form__input,
.form__group.is-invalid .form__textarea {
  border-color: #ff6b6b;
}

.form__group.is-invalid .form__error {
  display: block;
}

.form__success {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: rgba(0, 198, 201, 0.12);
  border: 1px solid rgba(0, 198, 201, 0.4);
  color: var(--color-accent-2);
  font-weight: 600;
}

.form__success.is-visible {
  display: flex;
}

.form__success svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ---------- Contact page ---------- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.contact-info__item svg {
  width: 24px;
  height: 24px;
  color: var(--color-accent-2);
  flex-shrink: 0;
}

.contact-info__label {
  font-size: 13px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.contact-info__value {
  font-weight: 600;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 40px;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* ---------- Legal pages ---------- */
.legal {
  padding-top: 160px;
  padding-bottom: 100px;
}

.legal__title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  margin-bottom: 16px;
}

.legal__updated {
  color: var(--color-text-muted);
  margin-bottom: 40px;
}

.legal__content {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.legal__content h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.legal__content p {
  color: var(--color-text-muted);
}

.legal__content ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--color-text-muted);
  margin-top: 8px;
}

.legal__content ul li {
  position: relative;
  padding-left: 20px;
}

.legal__content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 72px 0 32px;
  overflow: hidden;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.footer__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.footer__brand-name {
  font-size: 19px;
  font-weight: 700;
}

.footer__text {
  color: var(--color-text-muted);
  font-size: 14px;
  max-width: 320px;
}

.footer__heading {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
  color: var(--color-text-muted);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__link {
  color: var(--color-text-muted);
  font-size: 15px;
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--color-accent-2);
}

.footer__contact {
  display: flex;
  gap: 10px;
  color: var(--color-text-muted);
  font-size: 14px;
  align-items: flex-start;
}

.footer__contact svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent-2);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.footer__legal-block {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---------- Reveal animation on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Misc ---------- */
.text-center {
  text-align: center;
}

.mt-24 {
  margin-top: 24px;
}

@media (max-width: 1024px) {
  .about-block,
  .hero__content {
    max-width: 100%;
  }
}
