/* ==========================================================================
   PERIPASS LANDING PAGE
   CSS Architecture: ITCSS + BEM
   ========================================================================== */

/* ==========================================================================
   #SETTINGS — Design tokens as CSS custom properties
   ========================================================================== */

:root {
  /* Brand colors */
  --color-green-50: #effaf7;
  --color-green-100: #dff8f0;
  --color-green-300: #6ddfc6;
  --color-green-500: #00a990;
  --color-green-700: #0e7669;

  /* Neutrals */
  --color-grey-50: #f1f1f1;
  --color-grey-100: #dfdfdf;
  --color-grey-200: #c7c7c7;
  --color-grey-600: #525252;
  --color-grey-700: #404040;

  /* Black & white */
  --color-black: #000;
  --color-white: #fff;
  --color-foreground: #0a0a0a;
  --color-foreground-alt: #404040;

  /* Status */
  --color-error: #ff6b6b;
  --color-error-bg: rgba(255, 107, 107, 0.1);
  --color-error-border: rgba(255, 107, 107, 0.25);
  --color-success: #5eead4;
  --color-success-bg: rgba(94, 234, 212, 0.1);
  --color-success-border: rgba(94, 234, 212, 0.25);

  /* Typography */
  --font-family: "Montserrat", sans-serif;
  --font-weight-regular: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Border radius */
  --radius-card: 16px;
  --radius-input: 8px;
  --radius-pill: 999px;

  /* Shadow */
  --shadow-small: 0 2px 28px rgba(15, 94, 84, 0.08);

  /* Transitions */
  --transition-fast: 150ms ease;
}

/* ==========================================================================
   #GENERIC — Reset & box-sizing
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

/* ==========================================================================
   #ELEMENTS — Bare HTML element styles
   ========================================================================== */

body {
  font-family: var(--font-family);
  font-weight: var(--font-weight-regular);
  color: var(--color-foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

ul, ol {
  list-style: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ==========================================================================
   #OBJECTS — Layout patterns
   ========================================================================== */

.o-container {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.o-section {
  padding: 120px 96px;
}

/* ==========================================================================
   #COMPONENTS — BEM components
   ========================================================================== */

/* --------------------------------------------------------------------------
   #NAV
   -------------------------------------------------------------------------- */

.c-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 90px;
  background-color: var(--color-white);
  position: relative;
  z-index: 10;
}

.c-nav__logo {
  height: 40px;
  width: auto;
}

.c-nav__lang {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  position: relative;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  color: inherit;
}

.c-nav__lang-icon {
  width: 24px;
  height: 24px;
}

.c-nav__lang-chevron {
  width: 24px;
  height: 24px;
  transition: transform var(--transition-fast);
}

.c-nav__lang.is-open .c-nav__lang-chevron {
  transform: rotate(180deg);
}

/* Language dropdown */
.c-nav__dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  width: 160px;
  border: 1px solid var(--color-grey-100);
  border-radius: var(--radius-input);
  background-color: var(--color-white);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--transition-fast), visibility var(--transition-fast), transform var(--transition-fast);
  box-shadow: var(--shadow-small);
}

.c-nav__lang.is-open .c-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.c-nav__dropdown-item {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: var(--font-weight-regular);
  color: var(--color-black);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.c-nav__dropdown-item:hover {
  background-color: var(--color-grey-50);
}

/* --------------------------------------------------------------------------
   #HERO
   -------------------------------------------------------------------------- */

.c-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 160px;
  height: 900px;
  background: linear-gradient(
    to bottom,
    var(--color-white) 50%,
    var(--color-green-50) 75%,
    var(--color-green-100) 100%
  );
  overflow: hidden;
}

.c-hero__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: center;
  gap: 64px;
  padding-top: 120px;
  width: 100%;
}

.c-hero__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
}

.c-hero__text-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.c-hero__titles {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.c-hero__subtitle {
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-green-700);
  text-transform: uppercase;
  line-height: 1.6;
  letter-spacing: 0.02em;
  text-align: center;
}

.c-hero__title {
  font-size: 48px;
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  color: var(--color-black);
  text-align: center;
}

.c-hero__description {
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
  color: var(--color-black);
  max-width: 600px;
}

.c-hero__tagline {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-black);
}

.c-hero__image-wrapper {
  position: relative;
}

.c-hero__image-container {
  width: 750px;
  height: 385px;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  overflow: hidden;
  background-color: var(--color-grey-50);
}

.c-hero__image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero badges */
.c-hero__badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--color-white);
  border: 1px solid var(--color-grey-100);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-small);
  white-space: nowrap;
}

.c-hero__badge-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.c-hero__badge-label {
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-green-700);
}

.c-hero__badge--1 {
  right: -142px;
  top: 50%;
  transform: translateY(calc(-50% + 1.5px));
}

.c-hero__badge--2 {
  right: -147px;
  top: 50%;
  transform: translateY(calc(-50% + 59.5px));
}

.c-hero__badge--3 {
  left: -71px;
  top: 50%;
  transform: translateY(calc(-50% + 68.5px));
}

/* Hero decorative arrows */
.c-hero__arrow {
  position: absolute;
}

.c-hero__arrow--1 {
  left: -75px;
  top: 50%;
  transform: translateY(calc(-50% + 10px));
  width: 61px;
  height: auto;
}

.c-hero__arrow--2 {
  right: -115px;
  top: -15px;
  transform: rotate(133deg);
  width: 50px;
  height: auto;
}

/* --------------------------------------------------------------------------
   #BUTTON
   -------------------------------------------------------------------------- */

.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: 18px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.6;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.c-btn--primary {
  background-color: var(--color-green-500);
  color: var(--color-black);
}

.c-btn--primary:hover {
  background-color: var(--color-green-700);
  color: var(--color-white);
}

.c-btn--outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-green-300);
}

.c-btn--outline:hover {
  background-color: var(--color-green-300);
  color: var(--color-black);
}

/* --------------------------------------------------------------------------
   #LOGO GALLERY
   -------------------------------------------------------------------------- */

.c-logo-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 32px;
  background-color: var(--color-white);
}

.c-logo-gallery__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 64px;
}

.c-logo-gallery__item {
  opacity: 0.7;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.c-logo-gallery__item img {
  height: 84px;
  width: auto;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   #OR BLOCK
   -------------------------------------------------------------------------- */

.c-or-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px;
  background-color: var(--color-white);
}

.c-or-block__inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 940px;
  width: 100%;
}

.c-or-block__text {
  font-size: 18px;
  line-height: 1.6;
  max-width: 720px;
}

.c-or-block__cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.c-or-block__cta-text {
  font-size: 18px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.6;
}

.c-or-block__highlight {
  background-color: var(--color-green-100);
  padding: 0 4px;
  font-size: 18px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   #ICON CIRCLE
   -------------------------------------------------------------------------- */

.c-icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background-color: var(--color-green-100);
  flex-shrink: 0;
}

.c-icon-circle img {
  width: 24px;
  height: 24px;
}

/* --------------------------------------------------------------------------
   #USP GRID
   -------------------------------------------------------------------------- */

.c-usps {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 96px;
  background-color: var(--color-white);
}

.c-usp-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  max-width: 1100px;
  width: 100%;
}

.c-usp-card {
  flex: 1 0 0;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  background-color: var(--color-grey-50);
  border-radius: var(--radius-card);
}

.c-usp-card__icon {
  width: 24px;
  height: 24px;
}

.c-usp-card__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.c-usp-card__title {
  font-size: 18px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.6;
}

.c-usp-card__text {
  font-size: 14px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   #STATS
   -------------------------------------------------------------------------- */

.c-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  padding: 96px 160px;
  background-color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.c-stats__inner {
  display: flex;
  gap: 64px;
  align-items: flex-start;
  max-width: 940px;
  width: 100%;
}

.c-stats__heading {
  width: 280px;
  flex-shrink: 0;
}

.c-stats__heading h2 {
  font-size: 24px;
  font-weight: var(--font-weight-bold);
  line-height: 1.4;
}

.c-stats__grid {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}

.c-stats__row {
  display: flex;
  gap: 32px;
}

.c-stat-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 32px;
  background-color: var(--color-white);
  border: 1px solid var(--color-grey-100);
  border-radius: var(--radius-card);
}

.c-stat-card__value {
  font-size: 32px;
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
}

.c-stat-card__label {
  font-size: 14px;
  color: var(--color-foreground-alt);
  line-height: 1.6;
}

.c-stat-card__icon {
  width: 24px;
  height: 24px;
}

/* --------------------------------------------------------------------------
   #COMPARISON (Before & After)
   -------------------------------------------------------------------------- */

.c-comparison {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 96px;
  background-color: var(--color-white);
}

.c-comparison__inner {
  display: flex;
  flex-direction: column;
  gap: 64px;
  align-items: center;
  max-width: 1100px;
  width: 100%;
}

.c-comparison__title {
  font-size: 24px;
  font-weight: var(--font-weight-bold);
  line-height: 1.4;
}

.c-comparison__columns {
  display: flex;
  gap: 32px;
  align-items: center;
  width: 100%;
}

.c-comparison__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.c-comparison__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.c-comparison-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius-card);
}

.c-comparison-item--old {
  background-color: var(--color-grey-50);
}

.c-comparison-item--new {
  background-color: var(--color-white);
  border: 1px solid var(--color-grey-200);
}

.c-comparison-item__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.c-comparison-item__text {
  font-size: 18px;
  line-height: 1.6;
  flex: 1;
}

/* --------------------------------------------------------------------------
   #FORM SECTION
   -------------------------------------------------------------------------- */

.c-form-section {
  display: flex;
  justify-content: center;
  gap: 96px;
  padding: 160px;
  background-color: var(--color-black);
  background-image: url('/img/bg.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

.c-form-section__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 96px;
  max-width: 940px;
  width: 100%;
}

.c-form-section__header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}

.c-form-section__header-icon {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.c-form-section__heading {
  font-size: 24px;
  font-weight: var(--font-weight-bold);
  line-height: 1.4;
  color: var(--color-white);
  width: 280px;
}

.c-form-section__form-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 48px;
  border: 1px solid var(--color-grey-700);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-small);
}

.c-form-section__fields {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.c-form-section__row {
  display: flex;
  gap: 8px;
}

.c-form-section__row > * {
  flex: 1;
}

/* --------------------------------------------------------------------------
   #INPUT
   -------------------------------------------------------------------------- */

.c-input {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.c-input__label {
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.6;
  color: var(--color-white);
}

.c-input__field {
  height: 36px;
  padding: 8px;
  background-color: rgba(64, 64, 64, 0.5);
  border: 1px solid var(--color-grey-600);
  border-radius: var(--radius-input);
  font-size: 14px;
  color: var(--color-white);
  width: 100%;
  transition: border-color var(--transition-fast);
}

.c-input__field:focus {
  outline: none;
  border-color: var(--color-green-500);
}

.c-input__field::placeholder {
  color: var(--color-grey-200);
}

/* Input error state */
.c-input__error {
  display: none;
  font-size: 12px;
  color: #f5c6cb;
  line-height: 1.6;
  margin-top: 2px;
}

.c-input--error .c-input__field {
  border-color: #f5c6cb;
}

.c-input--error .c-input__error {
  display: block;
}

/* --------------------------------------------------------------------------
   #ALERT
   -------------------------------------------------------------------------- */

.c-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-input);
  font-size: 14px;
  line-height: 1.6;
}

.c-alert--error {
  background-color: var(--color-error-bg);
  border: 1px solid var(--color-error-border);
  color: var(--color-error);
}

.c-alert--success {
  background-color: var(--color-success-bg);
  border: 1px solid var(--color-success-border);
  color: var(--color-success);
}

.c-alert__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* --------------------------------------------------------------------------
   #FOOTER
   -------------------------------------------------------------------------- */

.c-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  background-color: var(--color-black);
  border-top: 1px solid var(--color-grey-700);
  color: var(--color-white);
  font-size: 14px;
  line-height: 1.6;
}

.c-footer__link {
  color: var(--color-white);
  text-decoration: underline;
}

/* ==========================================================================
   #UTILITIES
   ========================================================================== */

.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   #RESPONSIVE — Mobile (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {

  /* Nav */
  .c-nav {
    padding: 20px 24px;
  }

  /* Hero */
  .c-hero {
    padding: 0 24px;
    height: auto;
    min-height: 0;
  }

  .c-hero__content {
    padding-top: 64px;
    gap: 48px;
  }

  .c-hero__title {
    font-size: 36px;
  }

  .c-hero__description {
    font-size: 16px;
  }

  .c-hero__tagline {
    font-size: 16px;
  }

  .c-hero__image-container {
    width: 100%;
    height: auto;
    aspect-ratio: 750 / 385;
  }

  .c-hero__badge,
  .c-hero__arrow {
    display: none;
  }

  /* Logo gallery */
  .c-logo-gallery {
    padding: 48px 24px;
  }

  .c-logo-gallery__list {
    gap: 32px;
  }

  .c-logo-gallery__item img {
    height: 56px;
  }

  /* Or block */
  .c-or-block {
    padding: 64px 24px;
  }

  .c-or-block__inner {
    gap: 32px;
  }

  .c-or-block__text {
    font-size: 16px;
  }

  /* USPs */
  .c-usps {
    padding: 32px;
  }

  .c-usp-grid {
    flex-direction: column;
  }

  .c-usp-card {
    min-width: 0;
  }

  /* Stats */
  .c-stats {
    padding: 32px;
  }

  .c-stats__inner {
    flex-direction: column;
    gap: 24px;
  }

  .c-stats__heading {
    width: 100%;
  }

  .c-stats__grid {
    gap: 16px;
  }

  .c-stats__row {
    flex-direction: column;
    gap: 16px;
  }

  .c-stat-card {
    padding: 24px;
    width: 100%;
  }

  .c-stat-card__value {
    font-size: 24px;
    line-height: 1.4;
  }

  /* Comparison */
  .c-comparison {
    padding: 32px;
  }

  .c-comparison__inner {
    gap: 24px;
  }

  .c-comparison__columns {
    flex-direction: column;
    gap: 16px;
  }

  .c-comparison__col {
    gap: 16px;
    width: 100%;
  }

  .c-comparison__arrow img {
    transform: rotate(90deg);
  }

  /* Form */
  .c-form-section {
    padding: 64px 24px;
  }

  .c-form-section__inner {
    gap: 48px;
  }

  .c-form-section__heading {
    width: 100%;
  }

  .c-form-section__form-wrapper {
    padding: 32px 24px;
    min-width: 0;
  }

  .c-form-section__row {
    flex-direction: column;
    gap: 24px;
  }

  /* Footer */
  .c-footer {
    padding: 24px;
  }
}
