/**
 * HOLEP Landing Page – Production Stylesheet
 * Pixel-perfect match to UI reference
 */

/* ==========================================================================
   1. CSS Custom Properties
   ========================================================================== */
:root {
  --color-primary: #10284B;
  --color-green: #67C23A;
  --color-green-dark: #58A832;
  --color-green-light: #F2FBF2;
  --color-green-icon-bg: #E8F8E0;
  --color-text: #1A1A1A;
  --color-paragraph: #666666;
  --color-border: #E8E8E8;
  --color-bg: #FFFFFF;
  --color-hero-bg: #F5F7FA;
  --color-hero-bg-end: #EEF1F6;
  --color-white: #FFFFFF;
  --color-muted: #8A8A8A;

  --radius-sm: 12px;
  --radius-btn: 16px;
  --radius-md: 20px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(16, 40, 75, 0.04);
  --shadow-card: 0 4px 20px rgba(16, 40, 75, 0.06);
  --shadow-card-hover: 0 12px 32px rgba(16, 40, 75, 0.1);
  --shadow-float: 0 20px 60px rgba(16, 40, 75, 0.15);
  --shadow-btn: 0 4px 14px rgba(103, 194, 58, 0.35);

  --font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1200px;
  --container-pad: 24px;
  --header-height: 80px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s ease;
}

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

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

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  color: var(--color-primary);
  font-weight: 700;
}

/* ==========================================================================
   3. Layout Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  text-align: center;
  color: var(--color-primary);
  margin-bottom: 48px;
  letter-spacing: -0.02em;
}

/* Check icon (shared) */
.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--color-green);
  color: var(--color-white);
}

/* ==========================================================================
   4. Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  border-radius: var(--radius-btn);
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition-fast),
              box-shadow var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

.btn--sm {
  padding: 12px 18px;
  font-size: 0.875rem;
  min-height: 42px;
}

.btn--lg {
  padding: 16px 28px;
  font-size: 1rem;
}

.btn--primary {
  background: var(--color-green);
  color: var(--color-white);
  box-shadow: var(--shadow-btn);
}

.btn--primary:hover {
  background: var(--color-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(103, 194, 58, 0.45);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  font-weight: 600;
}

.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn__icon {
  flex-shrink: 0;
}

.btn__icon--right {
  margin-left: 2px;
}

/* ==========================================================================
   5. Scroll Reveal Animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

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

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__card {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   6. Sticky Navbar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  transition: box-shadow var(--transition), background var(--transition);
}

.site-header.is-scrolled {
  background: #ffffff;
  box-shadow: 0 2px 16px rgba(16, 40, 75, 0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  min-width: 0;
}

.logo__img {
  height: 50px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

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

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

.nav__link {
  display: inline-block;
  padding: 10px 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-primary);
  position: relative;
  white-space: nowrap;
  letter-spacing: -0.01em;
  transition: color var(--transition-fast);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: var(--color-green);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav__link:hover {
  color: var(--color-green);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

.nav__link.is-active {
  color: var(--color-primary);
  font-weight: 700;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav__actions .btn {
  font-weight: 600;
  line-height: 1.25;
}

.nav__actions--mobile {
  display: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  border-radius: 10px;
  z-index: 1001;
  transition: background var(--transition-fast);
}

.nav-toggle:hover {
  background: var(--color-hero-bg);
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ==========================================================================
   7. Hero Section – full-bleed background
   ========================================================================== */
.hero {
  --hero-bg-pos-x: 82%;
  --hero-bg-pos-y: 28%;
  --hero-min-height: clamp(720px, 52vh, 880px);

  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
  position: relative;
  min-height: var(--hero-min-height);
  display: flex;
  align-items: center;
  background-color: var(--color-white);
}

/* Background image layer – separate from gradient for better control */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/hero/hero-bg.png");
  background-size: cover;
  background-position: var(--hero-bg-pos-x) var(--hero-bg-pos-y);
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
}

/* White → transparent gradient across full hero width */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.95) 25%,
    rgba(255, 255, 255, 0.75) 40%,
    rgba(255, 255, 255, 0.35) 55%,
    rgba(255, 255, 255, 0.15) 65%,
    rgba(255, 255, 255, 0.05) 75%,
    rgba(255, 255, 255, 0) 85%
  );
  z-index: 1;
  pointer-events: none;
}

.hero__container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 2;
}

.hero__grid {
  display: grid;
  grid-template-columns: 42% 58%;
  gap: 64px;
  align-items: center;
  width: 100%;
  max-width: none;
  padding: 80px clamp(24px, 5vw, 80px);
  min-height: var(--hero-min-height);
  position: relative;
  background: none;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 420px;
}

.hero__eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-green);
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--color-primary);
  max-width: 520px;
}

.hero__text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-paragraph);
  margin-bottom: 48px;
  max-width: 520px;
}

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

.hero__feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.hero__feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: var(--color-green-light);
  color: var(--color-green);
  transition: transform var(--transition), background var(--transition);
}

.hero__feature:hover .hero__feature-icon {
  transform: scale(1.08) translateY(-2px);
  background: var(--color-green-icon-bg);
}

.hero__feature-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.4;
}

/* Floating advantages card – responsive across desktop */
.hero__card {
  position: absolute;
  top: 50%;
  right: clamp(0px, 2vw, 24px);
  transform: translateY(-50%);
  width: clamp(280px, 28vw, 340px);
  max-width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 2.5vw, 32px) clamp(20px, 2vw, 28px);
  box-shadow: var(--shadow-float);
  border: 1px solid rgba(255, 255, 255, 0.7);
  z-index: 3;
  animation: heroCardFloat 4s ease-in-out infinite;
}

@keyframes heroCardFloat {
  0%, 100% {
    transform: translateY(-50%);
  }
  50% {
    transform: translateY(calc(-50% - 8px));
  }
}

.hero__card-title {
  font-size: clamp(0.9375rem, 1.1vw, 1rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: clamp(16px, 1.5vw, 20px);
}

.hero__card-list {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.2vw, 16px);
}

.hero__card-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.hero__card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.hero__card-text strong {
  font-size: clamp(0.75rem, 0.85vw, 0.8125rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.35;
}

.hero__card-text span {
  font-size: clamp(0.6875rem, 0.75vw, 0.75rem);
  color: var(--color-paragraph);
  line-height: 1.4;
}

/* ==========================================================================
   8. Submission Options
   ========================================================================== */
.submission {
  padding: 88px 0 40px;
}

.submission__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.submission-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition),
              border-color var(--transition);
  display: flex;
  flex-direction: column;
}

.submission-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
}

.submission-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--color-green-light);
  color: var(--color-green);
  margin-bottom: 24px;
  transition: transform var(--transition), background var(--transition);
}

.submission-card:hover .submission-card__icon {
  transform: scale(1.08) rotate(-3deg);
  background: var(--color-green-icon-bg);
}

.submission-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.submission-card__text {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-paragraph);
  margin-bottom: 24px;
  flex-grow: 1;
}

.submission-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-green);
  transition: gap var(--transition);
}

.submission-card__link:hover {
  gap: 10px;
}

.submission-card__arrow {
  transition: transform var(--transition);
}

.submission-card__link:hover .submission-card__arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   9. Statistics Section
   ========================================================================== */
.stats {
  padding: 48px 0;
}

.stats__panel {
  background: var(--color-green-light);
  border-radius: var(--radius-lg);
  padding: 48px 40px 52px;
}

.stats__eyebrow {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-green);
  margin-bottom: 36px;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px 24px;
  align-items: start;
}

.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.stats__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  margin-bottom: 2px;
  transition: color var(--transition), transform var(--transition);
}

.stats__item:hover .stats__icon {
  color: var(--color-green);
  transform: scale(1.08);
}

.stats__value {
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  font-weight: 700;
  color: var(--color-green);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.stats__value--stacked {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--color-green);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.3;
}

.stats__value--accent {
  color: var(--color-green);
  font-weight: 800;
}

.stats__label {
  font-size: 0.8125rem;
  color: var(--color-paragraph);
  line-height: 1.45;
  max-width: 150px;
  font-weight: 500;
}

/* ==========================================================================
   10. Portal Section
   ========================================================================== */
.portal {
  padding: 72px 0 48px;
}

.portal__grid {
  display: grid;
  grid-template-columns: 42% 58%;
  gap: 48px;
  align-items: center;
}

.portal__title {
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.portal__subtitle {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 28px;
}

.portal__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.portal__list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
}

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

.portal__image {
  width: 100%;
  max-width: 640px;
  height: auto;
  object-fit: contain;
}

/* ==========================================================================
   11. CTA Banner
   ========================================================================== */
.cta {
  padding: 48px 0 64px;
}

.cta__banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
}

.cta__left {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.cta__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--color-green);
  color: var(--color-white);
}

.cta__title {
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.cta__text {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.cta__btn {
  flex-shrink: 0;
}

/* ==========================================================================
   12. Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding: 56px 0 0;
}

.footer__container {
  max-width: 1200px;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) minmax(140px, 0.75fr) minmax(200px, 1fr);
  gap: 40px 48px;
  align-items: start;
  padding-bottom: 40px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 340px;
}

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

.footer__logo img {
  height: 50px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.footer__tagline {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.65;
  color: #6b7280;
  margin: 0;
}

.footer__trust {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
}

.footer__trust-title {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  line-height: 1.3;
}

.footer__badges-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__badge {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.footer__badge-img {
  display: block;
  width: auto;
  max-width: 96px;
  object-fit: contain;
  object-position: left center;
  opacity: 0.85;
  transition: opacity var(--transition-fast);
}

.footer__badge:hover .footer__badge-img {
  opacity: 1;
}

.footer__badge-img--bdiu {
  height: 28px;
}

.footer__badge-img--creditform {
  height: 32px;
}

.footer__badge-img--sachfu {
  height: 20px;
}

.footer__nav,
.footer__contact {
  min-width: 0;
}

.footer__col-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 18px;
  line-height: 1.3;
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__nav-list a {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  color: #4b5563;
  transition: color var(--transition-fast);
}

.footer__nav-list a:hover {
  color: var(--color-green);
}

.footer__contact-name {
  margin: 0 0 6px;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-primary);
}

.footer__contact-address {
  margin: 0 0 12px;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.55;
  color: #6b7280;
}

.footer__contact-email {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-green);
  transition: color var(--transition-fast);
}

.footer__contact-email:hover {
  color: var(--color-green-dark);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  padding: 20px 0 28px;
  border-top: 1px solid var(--color-border);
}

.footer__copy {
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.5;
  color: #6b7280;
  margin: 0;
}

.footer__legal-list {
  display: flex;
  align-items: center;
  gap: 8px 20px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__legal-list a {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  color: #6b7280;
  transition: color var(--transition-fast);
}

.footer__legal-list a:hover {
  color: var(--color-green);
}

/* ==========================================================================
   13. Responsive – Large Desktop (min-width)
   ========================================================================== */
@media (min-width: 1440px) {
  .hero {
    --hero-bg-pos-x: 84%;
    --hero-bg-pos-y: 24%;
    --hero-min-height: clamp(760px, 54vh, 920px);
  }
}

@media (min-width: 1680px) {
  .hero {
    --hero-bg-pos-x: 86%;
    --hero-bg-pos-y: 22%;
    --hero-min-height: clamp(800px, 56vh, 960px);
  }
}

@media (min-width: 1920px) {
  .hero {
    --hero-bg-pos-x: 88%;
    --hero-bg-pos-y: 20%;
    --hero-min-height: clamp(840px, 58vh, 1000px);
  }
}

@media (min-width: 2560px) {
  .hero {
    --hero-bg-pos-x: 90%;
    --hero-bg-pos-y: 18%;
    --hero-min-height: clamp(880px, 60vh, 1080px);
  }
}

/* ==========================================================================
   14. Responsive – 1440px / Large Desktop (max-width)
   ========================================================================== */
@media (max-width: 1440px) {
  :root {
    --container: 1140px;
  }

  .hero__grid {
    gap: 48px;
    padding: 72px clamp(32px, 4vw, 64px);
  }

  .hero__card {
    width: clamp(270px, 26vw, 320px);
    right: clamp(0px, 1vw, 16px);
  }
}

/* ==========================================================================
   14. Responsive – 1280px / MacBook & Laptop
   ========================================================================== */
@media (max-width: 1280px) {
  .hero {
    --hero-bg-pos-x: 80%;
    --hero-bg-pos-y: 30%;
    --hero-min-height: 680px;
  }

  .hero__grid {
    grid-template-columns: 44% 56%;
    gap: 40px;
    padding: 64px clamp(28px, 3.5vw, 48px);
    min-height: var(--hero-min-height);
  }

  .hero__title {
    font-size: clamp(1.75rem, 2.8vw, 2.5rem);
    max-width: 480px;
  }

  .hero__text {
    max-width: 480px;
    margin-bottom: 40px;
  }

  .hero__features {
    gap: 16px;
  }

  .hero__feature-icon {
    width: 48px;
    height: 48px;
  }

  .hero__feature-label {
    font-size: 0.75rem;
  }

  .hero__visual {
    min-height: 380px;
  }

  .hero__card {
    width: clamp(260px, 30vw, 300px);
    padding: 24px 22px;
    right: 0;
  }
}

/* ==========================================================================
   15. Responsive – 1200px / Laptop
   ========================================================================== */
@media (max-width: 1200px) {
  :root {
    --container: 100%;
    --container-pad: 32px;
  }

  .nav__link {
    padding: 10px 10px;
    font-size: 0.875rem;
  }

  .nav__actions--desktop .btn--sm {
    padding: 10px 14px;
    font-size: 0.8125rem;
  }

  .logo__img {
    height: 50px;
  }

  .hero__grid {
    grid-template-columns: 45% 55%;
    gap: 32px;
    padding: 60px clamp(24px, 3vw, 40px);
    min-height: 640px;
  }

  .hero {
    --hero-bg-pos-x: 78%;
    --hero-bg-pos-y: 32%;
    --hero-min-height: 640px;
  }

  .hero__visual {
    min-height: 360px;
  }

  .hero__card {
    width: clamp(250px, 32vw, 290px);
    padding: 22px 20px;
  }

  .hero__features {
    gap: 14px;
  }

  .submission-card {
    padding: 28px 24px;
  }

  .stats__panel {
    padding: 40px 28px 44px;
  }

  .cta__banner {
    padding: 36px 36px;
  }
}

/* ==========================================================================
   16. Responsive – 1024px / Tablet
   ========================================================================== */
@media (max-width: 1024px) {
  :root {
    --header-height: 72px;
    --container-pad: 24px;
  }

  /* Nav: hide desktop actions & center menu, show hamburger */
  .nav__actions--desktop {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .logo__img {
    height: 50px;
    max-width: 148px;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px 28px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 16px 40px rgba(16, 40, 75, 0.12);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition),
                visibility var(--transition);
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

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

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
  }

  .nav__link {
    display: block;
    padding: 16px 18px;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-primary);
    border-radius: 12px;
    white-space: normal;
  }

  .nav__link::after {
    display: none;
  }

  .nav__link.is-active,
  .nav__link:hover {
    background: var(--color-green-light);
    color: var(--color-primary);
  }

  .nav__link.is-active {
    font-weight: 700;
    border-left: 3px solid var(--color-green);
  }

  .nav__actions--mobile {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 20px;
    gap: 12px;
  }

  .nav__actions--mobile .btn {
    width: 100%;
    min-height: 48px;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 600;
  }

  .footer__copy {
    font-size: 0.8125rem;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 36px 32px;
  }

  .footer__brand {
    grid-column: 1 / -1;
    max-width: 420px;
  }

  .footer__nav-list {
    gap: 11px;
  }

  .footer__badges-list {
    gap: 12px 16px;
  }

  .footer__badge-img--bdiu {
    height: 26px;
  }

  .footer__badge-img--creditform,
  .footer__badge-img--sachfu {
    height: 28px;
  }

  /* Hero → single column (tablet) */ 
  .hero {
    padding-top: 0;
    --hero-min-height: auto;
    --hero-bg-pos-x: 75%;
    --hero-bg-pos-y: 35%;
  }

  .hero::after {
    background-position: var(--hero-bg-pos-x) var(--hero-bg-pos-y);
  }

  .hero::before {
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.92) 40%,
      rgba(255, 255, 255, 0.7) 60%,
      rgba(255, 255, 255, 0.3) 85%,
      rgba(255, 255, 255, 0) 100%
    );
  }

  .hero__grid {
    grid-template-columns: 1fr;
    padding: 56px clamp(20px, 4vw, 40px);
    gap: 40px;
    min-height: auto;
  }

  .hero__text {
    max-width: 100%;
  }

  .hero__title {
    max-width: 100%;
  }

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

  .hero__visual {
    justify-content: center;
    min-height: auto;
    padding: 0;
  }

  .hero__card {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: 100%;
    max-width: 480px;
    margin-inline: auto;
    animation: none;
    padding: 28px 24px;
  }

  /* Submission cards stack */
  .submission {
    padding: 64px 0 32px;
  }

  .submission__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }

  /* Stats: 2 columns on tablet */
  .stats {
    padding: 40px 0;
  }

  .stats__panel {
    padding: 36px 28px 40px;
  }

  .stats__eyebrow {
    font-size: 0.75rem;
    margin-bottom: 28px;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 16px;
  }

  .stats__item:last-child {
    grid-column: 1 / -1;
  }

  .stats__value {
    font-size: 1.375rem;
  }

  .stats__value--stacked {
    font-size: 1.0625rem;
  }

  .stats__label {
    font-size: 0.8125rem;
    max-width: 160px;
  }

  /* Portal → single column */
  .portal__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .portal__visual {
    order: -1;
  }

  .portal__image {
    max-width: 520px;
  }

  /* CTA */
  .cta__banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 32px;
    gap: 28px;
  }

  .cta__btn {
    width: 100%;
  }
}

/* ==========================================================================
   17. Responsive – 768px / Tablet Small & Mobile (no hero bg)
   ========================================================================== */
@media (max-width: 768px) {
  .section-title {
    margin-bottom: 36px;
  }

  /* Hide hero background image on mobile */
  .hero {
    --hero-min-height: auto;
  }

  .hero::after {
    display: none;
  }

  .hero::before {
    display: none;
  }

  .hero__grid {
    padding: 48px clamp(16px, 4vw, 28px);
    min-height: auto;
  }

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

  .hero__card {
    max-width: 100%;
    padding: 28px 24px;
  }

  .hero__card-title {
    font-size: 1rem;
  }

  .hero__card-text strong {
    font-size: 0.8125rem;
  }

  .hero__card-text span {
    font-size: 0.75rem;
  }

  .stats {
    padding: 32px 0;
  }

  .stats__panel {
    padding: 32px 20px 36px;
    border-radius: 18px;
  }

  .stats__eyebrow {
    font-size: 0.6875rem;
    margin-bottom: 24px;
  }

  .stats__icon svg {
    width: 24px;
    height: 24px;
  }

  .stats__value {
    font-size: 1.375rem;
  }

  .stats__value--stacked {
    font-size: 1rem;
  }

  .stats__label {
    font-size: 0.8125rem;
    max-width: 100%;
  }

  .portal {
    padding: 56px 0 40px;
  }

  .cta {
    padding: 40px 0 48px;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 32px;
  }

  .footer__brand {
    grid-column: auto;
    max-width: 100%;
  }

  .footer__nav-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
  }

  .footer__badges-list {
    gap: 12px 16px;
  }

  .footer__badge-img--bdiu {
    height: 26px;
  }

  .footer__badge-img--creditform,
  .footer__badge-img--sachfu {
    height: 28px;
  }

  .footer__contact-name {
    font-size: 0.9375rem;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    text-align: left;
  }

  .footer__legal-list {
    gap: 8px 18px;
  }

  .footer__logo img {
    height: 50px;
  }
}

/* ==========================================================================
   17. Responsive – 480px / Mobile
   ========================================================================== */
@media (max-width: 480px) {
  :root {
    --container-pad: 16px;
    --header-height: 64px;
  }

  .logo__img {
    height: 48px;
    max-width: 162px;
  }

  .nav {
    padding: 16px 16px 24px;
  }

  .nav__link {
    padding: 15px 16px;
    font-size: 1.0625rem;
  }

  .nav__actions--mobile .btn {
    font-size: 0.9375rem;
    min-height: 48px;
  }

  .site-footer {
    padding: 40px 0 0;
  }

  .footer__top {
    gap: 28px;
    padding-bottom: 28px;
  }

  .footer__tagline {
    font-size: 0.8125rem;
    max-width: 280px;
  }

  .footer__col-title {
    font-size: 0.6875rem;
    margin-bottom: 14px;
  }

  .footer__nav-list {
    gap: 10px 16px;
  }

  .footer__nav-list a {
    font-size: 0.875rem;
  }

  .footer__badges-list {
    gap: 10px 14px;
  }

  .footer__badge-img--bdiu {
    height: 24px;
  }

  .footer__badge-img--creditform,
  .footer__badge-img--sachfu {
    height: 28px;
  }

  .footer__contact-name {
    font-size: 0.875rem;
  }

  .footer__contact-address,
  .footer__contact-email {
    font-size: 0.8125rem;
  }

  .footer__bottom {
    padding: 18px 0 24px;
  }

  .footer__copy {
    font-size: 0.75rem;
    line-height: 1.55;
  }

  .footer__legal-list a {
    font-size: 0.75rem;
    padding: 4px 0;
  }

  .footer__logo img {
    height: 48px;
  }

  .hero__title {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .hero__eyebrow {
    font-size: 0.625rem;
  }

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

  .hero__feature-icon {
    width: 48px;
    height: 48px;
  }

  .hero__card {
    padding: 28px 24px;
    max-width: 100%;
  }

  .hero {
    --hero-min-height: auto;
  }

  .hero__grid {
    padding: 40px 20px;
    min-height: auto;
  }

  .submission {
    padding: 48px 0 24px;
  }

  .submission-card {
    padding: 28px 20px;
  }

  /* Stats: 2 columns on mobile, no card backgrounds */
  .stats {
    padding: 28px 0;
  }

  .stats__panel {
    padding: 28px 16px 32px;
    border-radius: 16px;
  }

  .stats__eyebrow {
    font-size: 0.6875rem;
    margin-bottom: 24px;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 12px;
  }

  .stats__item {
    width: 100%;
    padding: 0;
    background: none;
    border-radius: 0;
    gap: 8px;
  }

  .stats__item:last-child {
    grid-column: 1 / -1;
    width: 100%;
  }

  .stats__icon {
    margin-bottom: 0;
  }

  .stats__icon svg {
    width: 22px;
    height: 22px;
  }

  .stats__value {
    font-size: 1.375rem;
  }

  .stats__value--stacked {
    font-size: 1rem;
  }

  .stats__label {
    font-size: 0.75rem;
    max-width: 140px;
  }

  .portal__subtitle {
    font-size: 1.125rem;
  }

  .portal__list-item {
    font-size: 0.9375rem;
  }

  .cta__left {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .cta__banner {
    padding: 28px 20px;
    border-radius: 20px;
  }

  .cta__title {
    font-size: 1.0625rem;
  }

  .btn--lg {
    width: 100%;
    padding: 14px 24px;
  }
}

/* ==========================================================================
   18. Responsive – 375px / Small Mobile
   ========================================================================== */
@media (max-width: 375px) {
  .hero__title {
    font-size: 1.5rem;
    line-height: 1.25;
  }

  .hero__text {
    font-size: 0.9375rem;
    line-height: 1.65;
  }

  .hero__feature-label {
    font-size: 0.75rem;
  }

  .hero__card {
    padding: 24px 20px;
    max-width: 100%;
  }

  .hero {
    --hero-min-height: auto;
  }

  .hero__grid {
    padding: 32px 16px;
    min-height: auto;
  }

  .section-title {
    font-size: 1.375rem;
  }

  .portal__title {
    font-size: 1.5rem;
  }

  .stats {
    padding: 24px 0;
  }

  .stats__panel {
    padding: 24px 14px 28px;
    border-radius: 14px;
  }

  .stats__eyebrow {
    font-size: 0.625rem;
    margin-bottom: 20px;
  }

  .stats__grid {
    gap: 24px 10px;
  }

  .stats__item {
    padding: 0;
    background: none;
  }

  .stats__icon svg {
    width: 20px;
    height: 20px;
  }

  .stats__value {
    font-size: 1.25rem;
  }

  .stats__value--stacked {
    font-size: 0.9375rem;
  }

  .stats__label {
    font-size: 0.6875rem;
    line-height: 1.45;
    max-width: 120px;
  }

  .nav__link {
    font-size: 1rem;
    padding: 14px 14px;
  }

  .footer__top {
    gap: 22px;
  }

  .footer__nav-list {
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
  }

  .footer__copy {
    font-size: 0.75rem;
  }

  .footer__legal-list {
    gap: 8px 14px;
  }

  .footer__logo img {
    height: 46px;
  }

  .logo__img {
    height: 46px;
    max-width: 130px;
  }
}

/* ==========================================================================
   19. Focus & Accessibility
   ========================================================================== */
:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 3px;
}

.btn:focus-visible {
  outline-offset: 3px;
}

/* ==========================================================================
   20. Back to top
   ========================================================================== */
.back-to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  z-index: 90;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-white);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(16, 40, 75, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

.back-to-top:hover {
  background: var(--color-green);
  box-shadow: 0 12px 28px rgba(103, 194, 58, 0.35);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .back-to-top {
    width: 44px;
    height: 44px;
    right: 14px;
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
}

@media (max-width: 1024px) {
  body.nav-open {
    overflow: hidden;
  }
}

