/*
 * eZWay combined apps landing page — shared foundations
 * Reusable tokens, typography, resets, layout variables, and utilities.
 */

:root {
  --ez-gold-50: #fffaf0;
  --ez-gold-100: #fff1c8;
  --ez-gold-200: #ffe18a;
  --ez-gold-300: #ffcb3f;
  --ez-gold-400: #f6b80f;
  --ez-gold-500: #d9a20f;
  --ez-gold-600: #b98007;
  --ez-gold-700: #8c5b0a;

  --ez-ink-950: #070707;
  --ez-ink-900: #101010;
  --ez-ink-800: #1a1a1a;
  --ez-ink-700: #2b2b2b;
  --ez-ink-600: #474747;
  --ez-ink-500: #686868;
  --ez-ink-400: #8d8d8d;
  --ez-ink-300: #bcbcbc;
  --ez-ink-200: #dedede;
  --ez-ink-100: #eeeeee;

  --ez-white: #ffffff;
  --ez-canvas: #f7f6f2;
  --ez-canvas-warm: #fbf8f0;
  --ez-connect: #d9a20f;
  --ez-connect-soft: #fff5d6;
  --ez-tv: #0d0d0d;
  --ez-live: #ef233c;
  --ez-violet: #6654d9;
  --ez-violet-soft: #eeeaff;
  --ez-success: #18a86b;

  --ez-font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ez-font-display: "Arial Black", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ez-container: 1200px;
  --ez-section-y: clamp(4.75rem, 8vw, 8rem);
  --ez-radius-sm: 0.75rem;
  --ez-radius-md: 1.15rem;
  --ez-radius-lg: 1.75rem;
  --ez-radius-xl: 2.5rem;
  --ez-shadow-sm: 0 10px 30px rgba(22, 18, 8, 0.07);
  --ez-shadow-md: 0 20px 60px rgba(22, 18, 8, 0.12);
  --ez-shadow-lg: 0 35px 90px rgba(11, 8, 2, 0.2);
  --ez-transition: 220ms cubic-bezier(0.2, 0.72, 0.24, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ez-ink-900);
  background: var(--ez-white);
  font-family: var(--ez-font-sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.modal-open {
  padding-right: 0 !important;
}

img,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
}

button,
a,
input,
textarea,
select {
  font: inherit;
}

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

a:hover {
  color: inherit;
}

button,
[role="button"] {
  touch-action: manipulation;
}

::selection {
  color: var(--ez-ink-950);
  background: var(--ez-gold-200);
}

:focus-visible {
  outline: 3px solid rgba(217, 162, 15, 0.42);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--ez-ink-950);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

p:last-child {
  margin-bottom: 0;
}

.container {
  --bs-gutter-x: 2rem;
  max-width: calc(var(--ez-container) + var(--bs-gutter-x));
}

.section-shell {
  position: relative;
  padding-block: var(--ez-section-y);
}

.section-shell--tight {
  padding-block: clamp(3.5rem, 6vw, 5.75rem);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  color: var(--ez-gold-600);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-kicker::before {
  width: 1.8rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.25rem;
  font-size: clamp(2.15rem, 4.2vw, 4rem);
}

.section-copy {
  max-width: 680px;
  color: var(--ez-ink-500);
  font-size: clamp(1rem, 1.7vw, 1.15rem);
}

.text-gold {
  color: var(--ez-gold-500) !important;
}

.text-balance {
  text-wrap: balance;
}

.surface-card {
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: var(--ez-radius-lg);
  background: var(--ez-white);
  box-shadow: var(--ez-shadow-sm);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.15rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ez-ink-600);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.icon-box {
  display: inline-grid;
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 1rem;
  background: var(--ez-connect-soft);
  color: var(--ez-gold-600);
}

.icon-box svg {
  width: 1.3rem;
  height: 1.3rem;
}

.btn-ez {
  --btn-bg: var(--ez-gold-400);
  --btn-color: var(--ez-ink-950);
  --btn-border: var(--ez-gold-400);
  display: inline-flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.3rem;
  border: 1px solid var(--btn-border);
  border-radius: 0.9rem;
  background: var(--btn-bg);
  color: var(--btn-color);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(217, 162, 15, 0.22);
  transition: transform var(--ez-transition), box-shadow var(--ez-transition), background-color var(--ez-transition), border-color var(--ez-transition);
}

.btn-ez:hover {
  color: var(--btn-color);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(217, 162, 15, 0.28);
}

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

.btn-ez--dark {
  --btn-bg: var(--ez-ink-950);
  --btn-color: var(--ez-white);
  --btn-border: var(--ez-ink-950);
  box-shadow: 0 12px 28px rgba(16, 16, 16, 0.16);
}

.btn-ez--dark:hover {
  box-shadow: 0 16px 36px rgba(16, 16, 16, 0.22);
}

.btn-ez--ghost {
  --btn-bg: transparent;
  --btn-color: var(--ez-ink-900);
  --btn-border: rgba(16, 16, 16, 0.18);
  box-shadow: none;
}

.btn-ez--ghost:hover {
  --btn-bg: var(--ez-white);
  --btn-border: rgba(16, 16, 16, 0.28);
  box-shadow: var(--ez-shadow-sm);
}

.btn-ez svg {
  width: 1.1rem;
  height: 1.1rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ez-ink-900);
  font-size: 0.9rem;
  font-weight: 800;
}

.link-arrow svg {
  width: 1rem;
  transition: transform var(--ez-transition);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

.sr-only,
.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.72, 0.24, 1);
}

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

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

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

.reveal-delay-3 {
  transition-delay: 270ms;
}

@media (max-width: 767.98px) {
  .container {
    --bs-gutter-x: 1.35rem;
  }

  .btn-ez {
    min-height: 3.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
