/*==================================================
  RESET
==================================================*/

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

/*==================================================
  ROOT
==================================================*/

:root {
  --primary: #d71920;
  --primary-dark: #b90e15;
  --primary-light: #ff5d5d;

  --white: #ffffff;

  --text: #222222;
  --text-light: #666666;
  --text-muted: #888888;

  --border: rgba(0, 0, 0, 0.06);

  --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 15px 35px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 25px 60px rgba(0, 0, 0, 0.12);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;

  --transition: 0.35s ease;
}

/*==================================================
  HTML
==================================================*/

html {
  scroll-behavior: smooth;
}

/*==================================================
  BODY
==================================================*/

body {
  font-family: "Nunito", sans-serif;

  color: var(--text);

  background: #fff;

  overflow-x: hidden;

  text-rendering: optimizeLegibility;

  -webkit-font-smoothing: antialiased;

  -moz-osx-font-smoothing: grayscale;
}

/*==================================================
  ELEMENT
==================================================*/

img {
  display: block;

  max-width: 100%;

  height: auto;
}

a {
  color: inherit;

  text-decoration: none;
}

button {
  font: inherit;

  border: none;

  outline: none;

  cursor: pointer;

  background: none;
}

ul,
ol {
  list-style: none;
}

/*==================================================
  LAYOUT
==================================================*/

.container {
  width: min(1180px, 90%);

  margin-inline: auto;
}

/*==================================================
  SECTION DEFAULT
==================================================*/

section {
  position: relative;
}

/*==================================================
  WAVE DIVIDER
==================================================*/

.wave-divider {
  position: relative;

  z-index: 5;

  width: 100%;

  margin-top: -120px;

  line-height: 0;
}

.wave-divider svg {
  display: block;

  width: 100%;

  height: 130px;
}

/*==================================================
  HERO
==================================================*/

.hero {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 100vh;

  padding: 120px 0 80px;

  overflow: hidden;

  background: radial-gradient(circle at top left, #ffdddd 0%, transparent 45%),
    radial-gradient(circle at bottom right, #ffd3d3 0%, transparent 40%),
    linear-gradient(180deg, #ffffff, #fff8f8);
}

/*==================================================
  HERO CONTAINER
==================================================*/

.hero .container {
  position: relative;

  z-index: 5;
}

/*==================================================
  HERO GRID
==================================================*/

.hero-grid {
  position: absolute;
  inset: 0;

  background-image: linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);

  background-size: 45px 45px;

  pointer-events: none;
}

/*==================================================
  HERO BLUR
==================================================*/

.blur {
  position: absolute;

  border-radius: 50%;

  filter: blur(90px);

  opacity: 0.7;

  animation: floating 12s ease-in-out infinite;

  pointer-events: none;
}

.blur-one {
  top: -120px;
  left: -120px;

  width: 420px;
  height: 420px;

  background: #ff3d3d;
}

.blur-two {
  top: 100px;
  right: -100px;

  width: 350px;
  height: 350px;

  background: #ff8b8b;

  animation-delay: 2s;
}

.blur-three {
  left: 35%;
  bottom: -120px;

  width: 300px;
  height: 300px;

  background: #ff5c5c;

  animation-delay: 5s;
}

/*==================================================
  NAVBAR
==================================================*/

nav {
  position: absolute;

  top: 0;
  left: 0;

  width: 100%;

  padding: 28px 0;

  z-index: 100;
}

nav .container {
  display: flex;

  align-items: center;

  justify-content: space-between;
}

/*==================================================
  LOGO
==================================================*/

.logo {
  display: flex;

  align-items: center;

  gap: 14px;

  font-size: 22px;

  font-weight: 800;

  color: var(--primary);

  user-select: none;
}

.logo img {
  width: 46px;

  height: auto;
}

.logo span {
  letter-spacing: -0.5px;
}

/*==================================================
  HERO CONTENT
==================================================*/

.hero-content {
  position: relative;

  z-index: 10;

  max-width: 900px;

  margin: auto;

  text-align: center;

  animation: fadeUp 1.2s ease;
}

/*==================================================
  BADGE
==================================================*/

.badge {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  padding: 12px 24px;

  border-radius: 999px;

  background: #fff;

  color: var(--primary);

  border: 1px solid rgba(215, 25, 32, 0.15);

  font-size: 15px;

  font-weight: 800;

  letter-spacing: 0.5px;

  box-shadow: var(--shadow-md);
}

/*==================================================
  HERO TITLE
==================================================*/

.hero h1 {
  margin-top: 34px;

  font-size: 72px;

  font-weight: 900;

  line-height: 1.1;

  letter-spacing: -2px;

  color: var(--text);
}

.hero h1 span {
  color: var(--primary);
}

/*==================================================
  HERO DESCRIPTION
==================================================*/

.hero p {
  max-width: 760px;

  margin: 34px auto 42px;

  font-size: 22px;

  font-weight: 600;

  line-height: 1.8;

  color: var(--text-light);
}

/*==================================================
  BUTTON
==================================================*/

.btn-red {
  position: relative;

  overflow: hidden;

  isolation: isolate;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 10px;

  width: 230px;

  height: 58px;

  border-radius: 999px;

  font-size: 17px;

  font-weight: 800;

  color: #fff;

  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-light)
  );

  box-shadow: 0 20px 40px rgba(215, 25, 32, 0.3);

  transition: transform var(--transition), box-shadow var(--transition);
}

/* shine */

.btn-red::before {
  content: "";

  position: absolute;

  top: 0;

  left: -120%;

  width: 120%;

  height: 100%;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );

  transition: left 0.7s ease;
}

.btn-red:hover {
  transform: translateY(-5px);

  box-shadow: 0 28px 55px rgba(215, 25, 32, 0.4);
}

.btn-red:hover::before {
  left: 130%;
}

.btn-red:active {
  transform: translateY(-2px);
}

.btn-red:focus-visible {
  outline: 3px solid rgba(215, 25, 32, 0.25);

  outline-offset: 5px;
}

/*==================================================
  SCROLL INDICATOR
==================================================*/

.scroll-indicator {
  position: absolute;

  left: 50%;
  bottom: 40px;

  transform: translateX(-50%);

  width: 34px;
  height: 56px;

  border: 2px solid var(--primary);

  border-radius: 30px;

  display: flex;

  justify-content: center;

  align-items: flex-start;

  z-index: 20;
}

.scroll-indicator span {
  width: 8px;
  height: 8px;

  margin-top: 10px;

  border-radius: 50%;

  background: var(--primary);

  animation: scroll 2s infinite;
}

/*==================================================
  ANIMATION
==================================================*/

.erp-card {
  animation: fadeUp 0.8s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;

    transform: translateY(50px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

@keyframes scroll {
  0% {
    opacity: 0;

    transform: translateY(0);
  }

  40% {
    opacity: 1;
  }

  100% {
    opacity: 0;

    transform: translateY(20px);
  }
}

@keyframes floating {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-35px);
  }
}

/*==================================================
  RESPONSIVE
==================================================*/

@media (max-width: 992px) {
  .hero {
    min-height: auto;

    padding: 160px 0 120px;
  }

  .hero h1 {
    font-size: 58px;
  }

  .hero p {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 22px 0;
  }

  .logo {
    font-size: 20px;
  }

  .logo img {
    width: 40px;
  }

  .hero {
    padding: 140px 0 100px;
  }

  .hero h1 {
    font-size: 46px;

    letter-spacing: -1px;
  }

  .hero p {
    font-size: 18px;

    line-height: 1.7;

    margin: 28px auto 36px;
  }

  .badge {
    font-size: 14px;

    padding: 10px 20px;
  }

  .btn-red {
    width: 210px;

    height: 54px;
  }

  .scroll-indicator {
    bottom: 25px;
  }
}

@media (max-width: 576px) {
  .container {
    width: min(92%, 1180px);
  }

  .hero {
    padding: 130px 0 90px;
  }

  .hero h1 {
    font-size: 36px;

    line-height: 1.2;
  }

  .hero p {
    font-size: 16px;
  }

  .btn-red {
    width: 100%;

    max-width: 280px;
  }

  .blur-one {
    width: 280px;
    height: 280px;
  }

  .blur-two {
    width: 220px;
    height: 220px;
  }

  .blur-three {
    width: 200px;
    height: 200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;

    transition: none !important;

    scroll-behavior: auto !important;
  }
}
