/* imartPortal public landing — dark default + light mode (iMart navy + red) */
:root,
html[data-theme="dark"] {
  --navy: #0B2C5F;
  --navy-deep: #071829;
  --red: #E31C23;
  --red-alt: #C41E3A;
  --ink: #F4F7FB;
  --muted: rgba(232, 238, 246, 0.72);
  --line: rgba(255, 255, 255, 0.12);
  --glass: rgba(255, 255, 255, 0.06);
  --land-font: 'Manrope', 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --land-bg:
    radial-gradient(ellipse 70% 55% at 50% -5%, rgba(227, 28, 35, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 85% 30%, rgba(11, 44, 95, 0.85), transparent 50%),
    linear-gradient(180deg, #061221 0%, var(--navy-deep) 45%, #0a1f3d 100%);
  --land-hero-title: #fff;
  --land-nav-hover: #fff;
  --land-cta-outline: #fff;
  --theme-toggle-bg: rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] {
  --ink: #0B2C5F;
  --muted: #5A6A7E;
  --line: rgba(11, 44, 95, 0.12);
  --glass: #FFFFFF;
  --land-bg:
    radial-gradient(ellipse 70% 55% at 50% -5%, rgba(227, 28, 35, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 10%, rgba(11, 44, 95, 0.08), transparent 50%),
    linear-gradient(180deg, #F8FAFC 0%, #F4F7FB 50%, #EEF2F7 100%);
  --land-hero-title: #0B2C5F;
  --land-nav-hover: #0B2C5F;
  --land-cta-outline: #0B2C5F;
  --theme-toggle-bg: rgba(11, 44, 95, 0.06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body.landing {
  margin: 0;
  color: var(--ink);
  font-family: var(--land-font);
  font-weight: 400;
  letter-spacing: 0.01em;
  min-height: 100vh;
  background: var(--land-bg);
  background-attachment: fixed;
  transition: background 0.25s ease, color 0.2s ease;
}

.land-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1080px, 92vw);
  margin: 0 auto;
  padding: 1.25rem 0;
  animation: landFade 0.7s ease both;
}
.land-brand img {
  display: block;
  height: 42px;
  width: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 4px 10px;
}
.land-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.land-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.land-nav a:hover { color: var(--land-nav-hover); }
.land-nav-cta {
  background: var(--red) !important;
  color: #fff !important;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(227, 28, 35, 0.3);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  height: 38px;
  padding: 0 11px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--theme-toggle-bg);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--land-font);
  font-size: 0.82rem;
  font-weight: 600;
}
.theme-toggle .theme-icon-light { display: none; }
.theme-toggle .theme-icon-dark { display: inline-block; }
html[data-theme="light"] .theme-toggle .theme-icon-light { display: inline-block; }
html[data-theme="light"] .theme-toggle .theme-icon-dark { display: none; }
.theme-toggle-label { display: none; }
@media (min-width: 720px) {
  .theme-toggle-label { display: inline; }
}

.land-hero {
  width: min(820px, 92vw);
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 5.5rem) 0 clamp(2rem, 5vw, 3rem);
  text-align: center;
  display: block;
  transform: perspective(1200px) rotateX(1deg);
}
.land-hero h1 {
  font-weight: 800;
  letter-spacing: -0.04em;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.land-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 auto 1.25rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  animation: landFade 0.8s ease 0.05s both;
}
.land-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25);
}
html[data-theme="light"] .land-pill-dot {
  background: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
}
.land-eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  animation: landFade 0.8s ease 0.08s both;
}
.land-hero h1 {
  margin: 0;
  font-family: var(--land-font);
  font-weight: 700;
  font-size: clamp(2.4rem, 6.5vw, 3.75rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--land-hero-title);
  animation: landRise 0.85s ease 0.12s both;
}
.land-lead {
  margin: 1.15rem auto 0;
  max-width: 34rem;
  font-size: clamp(1.02rem, 2.2vw, 1.15rem);
  line-height: 1.55;
  color: var(--muted);
  animation: landRise 0.85s ease 0.2s both;
}
.land-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  justify-content: center;
  animation: landRise 0.85s ease 0.28s both;
}
.land-fine {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  animation: landFade 0.8s ease 0.35s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.35rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 12px 28px rgba(227, 28, 35, 0.35);
}
.btn-secondary {
  background: transparent;
  color: var(--land-cta-outline);
  border-color: var(--line);
  box-shadow: none;
}
.btn-ghost {
  background: transparent;
  color: var(--land-cta-outline);
  border-color: var(--line);
}

.land-trust {
  width: min(900px, 92vw);
  margin: 0 auto 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 2rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  animation: landFade 0.9s ease 0.4s both;
}
.land-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.land-trust i { color: var(--red); }

.land-features {
  width: min(1080px, 92vw);
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  animation: landRise 0.9s ease 0.45s both;
}
.land-feat {
  padding: 1.25rem 1.15rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.18s ease, border-color 0.18s ease;
  box-shadow: 0 8px 24px rgba(11, 44, 95, 0.06);
}
.land-feat:hover {
  transform: translateY(-2px);
  border-color: rgba(227, 28, 35, 0.4);
}
.land-feat i {
  color: var(--red);
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
  display: inline-block;
}
.land-feat h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--land-hero-title);
}
.land-feat p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}

.land-strip {
  width: min(1080px, 92vw);
  margin: 0 auto 2.5rem;
  padding: clamp(1.5rem, 4vw, 2rem);
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(227, 28, 35, 0.14), rgba(11, 44, 95, 0.55));
  color: #e8eef6;
}
html[data-theme="light"] .land-strip {
  background: linear-gradient(135deg, rgba(227, 28, 35, 0.08), rgba(11, 44, 95, 0.08));
  color: var(--ink);
}
.land-strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: space-between;
  align-items: flex-end;
}
.land-strip h2 {
  margin: 0 0 0.45rem;
  font-family: var(--land-font);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: clamp(1.45rem, 3.2vw, 1.9rem);
  color: #fff;
}
html[data-theme="light"] .land-strip h2 { color: var(--navy); }
.land-strip p {
  margin: 0;
  max-width: 36rem;
  color: rgba(232, 238, 246, 0.82);
  line-height: 1.55;
}
html[data-theme="light"] .land-strip p { color: var(--muted); }
.land-strip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
html[data-theme="light"] .land-strip .btn-ghost {
  color: var(--navy);
}
.land-steps {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  counter-reset: step;
}
.land-steps li {
  position: relative;
  padding: 1rem 1rem 1rem 3rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(232, 238, 246, 0.9);
}
html[data-theme="light"] .land-steps li {
  background: #fff;
  color: var(--muted);
}
.land-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0.85rem;
  top: 1rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.land-steps strong { color: #fff; }
html[data-theme="light"] .land-steps strong { color: var(--navy); }

.land-foot {
  width: min(1080px, 92vw);
  margin: 0 auto;
  padding: 2rem 0 2.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  border-top: 1px solid var(--line);
}
.foot-logo {
  display: block;
  height: 28px;
  width: auto;
  margin-bottom: 0.65rem;
  background: #fff;
  border-radius: 8px;
  padding: 3px 8px;
}
.land-foot a { color: var(--land-nav-hover); text-decoration: none; font-weight: 600; }
.land-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: flex-start;
}

@keyframes landFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes landRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .land-features { grid-template-columns: 1fr 1fr; }
  .land-steps { grid-template-columns: 1fr; }
  .land-top { padding: 0.85rem 0; }
  .land-hero { padding-top: 2rem; }
}
@media (max-width: 560px) {
  .land-nav a:not(.land-nav-cta) { display: none; }
  .land-features { grid-template-columns: 1fr; }
  .btn { flex: 1 1 100%; }
  .land-hero h1 { font-size: clamp(2rem, 9vw, 2.55rem); }
  .land-strip { padding: 1.25rem; }
  .land-trust { gap: 0.85rem 1.25rem; font-size: 0.85rem; }
  .theme-toggle-label { display: none; }
}
