/* ============================================
   FRELI LANDING PAGE — Swiss/International Style
   ============================================ */

/* --- Design Tokens --- */
:root {
  /* Colors */
  --color-rose: #E03367;
  --color-rose-light: #FCEDF2;
  --color-rose-dark: #B82554;
  --color-green: #2D9F6F;
  --color-green-light: #EDF8F3;
  --color-amber: #D4890A;
  --color-amber-light: #FEF5E7;
  --color-cream: #FFF9F0;
  --color-white: #FEFEFE;
  --color-gray-50: #FAFAFA;
  --color-gray-100: #F5F5F5;
  --color-gray-200: #E8E8E8;
  --color-gray-300: #D4D4D4;
  --color-gray-400: #A3A3A3;
  --color-gray-500: #737373;
  --color-gray-600: #525252;
  --color-gray-700: #404040;
  --color-gray-800: #262626;
  --color-gray-900: #171717;
  --color-black: #0A0A0A;

  /* Typography — Swiss Scale */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.25rem;
  --text-6xl: 4rem;

  /* Spacing — 8px grid */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --space-40: 10rem;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 200ms;
  --duration-normal: 400ms;
  --duration-slow: 700ms;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-gray-800);
  background-color: var(--color-white);
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* --- Shared Typography --- */
.section-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-rose);
  margin-bottom: var(--space-4);
}

.section-label--light {
  color: rgba(255, 255, 255, 0.7);
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--color-gray-900);
  margin-bottom: var(--space-6);
}

.section-subtitle {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--color-gray-500);
  max-width: 520px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-family);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-rose);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: var(--color-rose-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(224, 51, 103, 0.3);
}

.btn--ghost {
  background: transparent;
  color: var(--color-gray-700);
  border: 1.5px solid var(--color-gray-200);
}

.btn--ghost:hover {
  border-color: var(--color-gray-400);
  color: var(--color-gray-900);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-gray-900);
}

.btn--white:hover {
  background: var(--color-gray-100);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  background: rgba(254, 254, 254, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-normal) var(--ease-out);
}

.nav--scrolled {
  border-bottom-color: var(--color-gray-200);
}

.nav__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-8);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo-img {
  height: 32px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: var(--space-10);
}

.nav__links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-gray-600);
  letter-spacing: 0.01em;
  transition: color var(--duration-fast);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-rose);
  transition: width var(--duration-normal) var(--ease-out);
}

.nav__links a:hover {
  color: var(--color-gray-900);
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__cta {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-rose);
  padding: var(--space-2) var(--space-5);
  border: 1.5px solid var(--color-rose);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-out);
}

.nav__cta:hover {
  background: var(--color-rose);
  color: var(--color-white);
}

.nav__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.nav__mobile-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--color-gray-800);
  transition: all var(--duration-fast) var(--ease-out);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-200);
  z-index: 99;
  padding: var(--space-6) var(--space-8);
}

.mobile-menu--open {
  display: block;
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.mobile-menu__links a {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-gray-700);
  padding: var(--space-2) 0;
}

.mobile-menu__cta {
  display: inline-block;
  margin-top: var(--space-4);
  color: var(--color-rose) !important;
  font-weight: 600 !important;
}

/* --- Hero --- */
.hero {
  padding-top: calc(var(--nav-height) + var(--space-20));
  padding-bottom: var(--space-20);
  position: relative;
  overflow: hidden;
}

.hero__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-8);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.hero__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-rose);
  margin-bottom: var(--space-6);
}

.hero__title {
  font-size: var(--text-6xl);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--color-gray-900);
  margin-bottom: var(--space-6);
}

.hero__subtitle {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--color-gray-500);
  max-width: 480px;
  margin-bottom: var(--space-10);
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.hero__meta {
  display: flex;
  gap: var(--space-6);
}

.hero__meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-gray-400);
}

.hero__meta-item svg {
  color: var(--color-green);
}

.hero__visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero__device {
  position: relative;
  max-width: 300px;
  width: 100%;
}

.hero__device-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.12));
}

.hero__grid-accent {
  position: absolute;
  top: 10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(224, 51, 103, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* --- Features --- */
.features {
  padding: var(--space-32) 0;
  background: var(--color-gray-50);
}

.features__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.features__header {
  text-align: center;
  margin-bottom: var(--space-24);
}

.features__header .section-subtitle {
  margin: 0 auto;
}

/* Feature Rows */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  margin-bottom: var(--space-24);
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row__content {
  padding: var(--space-8) 0;
}

.feature-row__number {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-rose);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: var(--space-4);
}

.feature-row__title {
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-gray-900);
  margin-bottom: var(--space-4);
}

.feature-row__desc {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-gray-500);
  margin-bottom: var(--space-6);
  max-width: 440px;
}

.feature-row__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.feature-row__list li {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-gray-700);
  padding-left: var(--space-6);
  position: relative;
}

.feature-row__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--color-rose);
  border-radius: 50%;
}

.feature-row__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-row__screen {
  max-width: 320px;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
  background: var(--color-white);
}

.feature-row__screen--transparent {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  max-width: 300px;
}

.feature-row__screen img {
  width: 100%;
  height: auto;
}

/* Alternating layout */
.feature-row--left {
  direction: ltr;
}

.feature-row--left > * {
  direction: ltr;
}

/* --- Features Grid (secondary) --- */
.features-grid {
  padding: var(--space-20) 0 var(--space-32);
  background: var(--color-gray-50);
}

.features-grid__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-8);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.features-grid__item {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  border: 1px solid var(--color-gray-200);
  transition: all var(--duration-normal) var(--ease-out);
}

.features-grid__item:hover {
  border-color: var(--color-gray-300);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.features-grid__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  color: var(--accent, var(--color-rose));
}

.features-grid__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

.features-grid__desc {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--color-gray-500);
}

/* --- How It Works --- */
.how-it-works {
  padding: var(--space-32) 0;
  background: var(--color-white);
}

.how-it-works__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.how-it-works__header {
  text-align: center;
  margin-bottom: var(--space-20);
}

.how-it-works__steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  justify-content: center;
}

.how-it-works__step {
  flex: 1;
  max-width: 300px;
  text-align: center;
  padding: 0 var(--space-6);
}

.how-it-works__step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-rose);
  color: var(--color-white);
  font-size: var(--text-xl);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
}

.how-it-works__step-title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

.how-it-works__step-desc {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--color-gray-500);
}

.how-it-works__connector {
  width: 80px;
  height: 1.5px;
  background: var(--color-gray-200);
  margin-top: 28px;
  flex-shrink: 0;
}

/* --- Showcase --- */
.showcase {
  padding: var(--space-32) 0;
  background: var(--color-gray-50);
  overflow: hidden;
}

.showcase__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.showcase__header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.showcase__header .section-subtitle {
  margin: 0 auto;
}

.showcase__screens {
  overflow-x: auto;
  padding: var(--space-8) 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.showcase__screens::-webkit-scrollbar {
  display: none;
}

.showcase__track {
  display: flex;
  gap: var(--space-8);
  justify-content: center;
  min-width: min-content;
  padding: 0 var(--space-4);
}

.showcase__device {
  flex-shrink: 0;
  width: 200px;
  transition: transform var(--duration-normal) var(--ease-out);
}

.showcase__device:hover {
  transform: translateY(-8px);
}

.showcase__device img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.1));
}

/* --- CTA --- */
.cta {
  padding: var(--space-32) 0;
  background: var(--color-gray-900);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(224, 51, 103, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.cta__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-8);
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta__title {
  font-size: var(--text-5xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
  color: var(--color-white);
}

.cta__subtitle {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--color-gray-400);
  max-width: 480px;
  margin: 0 auto var(--space-10);
}

.cta__actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
}

.cta__coming-soon {
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  display: inline-block;
  padding: var(--space-4) var(--space-10);
  border-radius: var(--radius-md);
}

/* --- Footer --- */
.footer {
  padding: var(--space-12) 0;
  background: var(--color-gray-900);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__logo-img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--color-gray-500);
}

.footer__links {
  display: flex;
  gap: var(--space-6);
}

.footer__links a {
  font-size: var(--text-xs);
  color: var(--color-gray-500);
  transition: color var(--duration-fast);
}

.footer__links a:hover {
  color: var(--color-white);
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal--delay-1 {
  transition-delay: 150ms;
}

.reveal--delay-2 {
  transition-delay: 300ms;
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero__title {
    font-size: var(--text-5xl);
  }

  .section-title {
    font-size: var(--text-3xl);
  }

  .cta__title {
    font-size: var(--text-4xl);
  }

  .feature-row {
    gap: var(--space-10);
  }
}

@media (max-width: 768px) {
  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__mobile-toggle {
    display: flex;
  }

  .hero {
    padding-top: calc(var(--nav-height) + var(--space-12));
    padding-bottom: var(--space-12);
  }

  .hero__container {
    grid-template-columns: 1fr;
    gap: var(--space-12);
    text-align: center;
  }

  .hero__title {
    font-size: var(--text-4xl);
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero__meta {
    justify-content: center;
  }

  .hero__device {
    max-width: 240px;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .feature-row--left {
    direction: ltr;
  }

  .feature-row--left .feature-row__visual {
    order: -1;
  }

  .feature-row__content {
    text-align: center;
    padding: 0;
  }

  .feature-row__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .feature-row__list {
    align-items: center;
  }

  .feature-row__screen {
    max-width: 260px;
  }

  .features-grid__container {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .how-it-works__steps {
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
  }

  .how-it-works__connector {
    width: 1.5px;
    height: 40px;
    margin: 0;
  }

  .how-it-works__step {
    max-width: 400px;
  }

  .showcase__track {
    justify-content: flex-start;
    padding: 0 var(--space-8);
  }

  .showcase__device {
    width: 160px;
  }

  .cta__title {
    font-size: var(--text-3xl);
  }

  .cta__actions {
    flex-direction: column;
    align-items: center;
  }

  .footer__top {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .section-title {
    font-size: var(--text-2xl);
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: var(--text-3xl);
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
    max-width: 280px;
  }
}
