:root {
  --navy-950: #08283b;
  --navy-900: #0d3048;
  --navy-700: #294c63;
  --gold-600: #c48508;
  --gold-500: #d5a01d;
  --olive-700: #53683d;
  --olive-100: #eef2e8;
  --ink: #10243a;
  --muted: #5e7083;
  --line: #dce4ea;
  --surface: #ffffff;
  --surface-soft: #f5f8fa;
  --danger: #9d2d36;
  --danger-bg: #fff1f2;
  --success: #21613a;
  --success-bg: #eefaf2;
  --shadow: 0 12px 32px rgba(13, 48, 72, 0.12);
  --radius: 16px;
  --container: 1540px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.container {
  width: min(calc(100% - 64px), var(--container));
  margin-inline: auto;
}
.narrow { max-width: 900px; }

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: #fff;
  background: var(--navy-950);
  border-radius: 8px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(13, 48, 72, 0.035);
}
.header-inner {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  min-width: 260px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand img {
  width: 310px;
  max-height: 76px;
  object-fit: contain;
  object-position: left center;
}
.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  padding: 31px 8px 13px;
  color: var(--navy-900);
  border-bottom: 2px solid transparent;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
}
.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"] {
  color: var(--navy-950);
  border-color: var(--gold-500);
}
.nav-toggle {
  display: none;
  padding: 9px 12px;
  color: var(--navy-900);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 700;
}

.alert {
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid;
  border-radius: 10px;
  font-weight: 650;
}
.alert-error { color: var(--danger); background: var(--danger-bg); border-color: #f3c5ca; }
.alert-success { color: var(--success); background: var(--success-bg); border-color: #bee4ca; }

.home-shell {
  position: relative;
  overflow: hidden;
  padding: 30px 0 24px;
  background:
    radial-gradient(circle at 62% 21%, rgba(211, 160, 32, 0.08), transparent 23%),
    linear-gradient(135deg, #fff 0%, #f6f9fb 65%, #edf3f7 100%);
}
.home-shell::after {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  right: 15%;
  top: 150px;
  border: 48px solid rgba(13, 48, 72, 0.025);
  border-radius: 50%;
  pointer-events: none;
}
.home-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 46px;
  align-items: start;
}
.home-main { min-width: 0; }
.intro-block { padding: 0 0 26px; }
.intro-block h1 {
  max-width: 820px;
  margin: 0;
  color: var(--navy-900);
  font-size: clamp(2.8rem, 3.5vw, 3.55rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}
.intro-block p {
  max-width: 840px;
  margin: 14px 0 0;
  color: var(--navy-700);
  font-size: 1.12rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.feature-card {
  min-height: 142px;
  padding: 20px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(13, 48, 72, 0.07);
}
.feature-card > div { min-width: 0; }
.feature-card h2 {
  margin: 0 0 1px;
  color: var(--navy-900);
  font-size: 1.05rem;
  line-height: 1.25;
}
.feature-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--olive-700);
  font-size: 0.9rem;
  line-height: 1.25;
}
.feature-invoice strong { color: var(--gold-600); }
.feature-report strong { color: var(--navy-700); }
.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}
.feature-icon {
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.65rem;
  font-weight: 900;
}
.feature-food .feature-icon { color: var(--olive-700); background: var(--olive-100); }
.feature-invoice .feature-icon { color: #a46b00; background: #fff4dc; }
.feature-report .feature-icon { color: var(--navy-900); background: #eaf1f5; }

.compact-section { padding-top: 25px; }
.compact-heading {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.compact-heading > span { height: 1px; background: #cfd9e0; }
.compact-heading h2 {
  margin: 0;
  color: var(--navy-900);
  font-size: 1.45rem;
  line-height: 1.2;
}
.info-grid,
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.info-grid article,
.steps li {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.info-grid h3,
.steps h3 {
  margin: 1px 0 4px;
  color: var(--navy-900);
  font-size: 0.95rem;
  line-height: 1.25;
}
.info-grid p,
.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}
.round-icon,
.step-number {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow: inset 0 0 0 8px rgba(255,255,255,0.82);
}
.round-icon.olive,
.step-number.olive { background: var(--olive-700); }
.round-icon.gold,
.step-number.gold { background: var(--gold-600); }
.round-icon.navy,
.step-number.navy { background: var(--navy-900); }
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li { position: relative; }
.steps li:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 15px;
  right: -18px;
  color: #b9c5ce;
  font-size: 1.55rem;
  font-weight: 800;
}

.home-sidebar {
  display: grid;
  gap: 18px;
}
.login-card,
.contact-mini {
  background: rgba(255,255,255,0.97);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.login-card {
  scroll-margin-top: 112px;
  padding: 26px 24px;
}
.login-card h2 {
  margin: 0 0 17px;
  color: var(--navy-900);
  font-size: 1.65rem;
  line-height: 1.2;
}
.login-card form { display: grid; gap: 8px; }
.login-card label,
.module-picker legend {
  color: var(--ink);
  font-size: 0.91rem;
  font-weight: 760;
}
.login-card input[type="text"],
.login-card input[type="password"] {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #b9c8d4;
  border-radius: 9px;
  outline: none;
}
.login-card input:focus-visible {
  border-color: var(--gold-600);
  box-shadow: 0 0 0 4px rgba(211, 160, 32, 0.15);
}
.password-field { position: relative; }
.password-field input { padding-right: 72px !important; }
.password-toggle {
  position: absolute;
  right: 7px;
  top: 6px;
  height: 36px;
  padding: 0 8px;
  color: var(--navy-700);
  background: transparent;
  border: 0;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}
.module-picker {
  margin: 9px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  border: 0;
}
.module-picker legend {
  grid-column: 1 / -1;
  margin-bottom: 4px;
}
.module-option { position: relative; cursor: pointer; }
.module-option input { position: absolute; opacity: 0; pointer-events: none; }
.module-option span {
  min-height: 62px;
  padding: 9px 7px;
  display: grid;
  place-items: center;
  align-content: center;
  color: var(--navy-900);
  background: #fff;
  border: 1px solid #b9c8d4;
  border-radius: 9px;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 820;
  line-height: 1.2;
}
.module-option small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 650;
}
.module-option input:checked + span {
  background: var(--olive-100);
  border-color: var(--olive-700);
  box-shadow: inset 0 0 0 1px var(--olive-700);
}
.module-option input:focus-visible + span {
  outline: 3px solid rgba(211, 160, 32, 0.32);
  outline-offset: 2px;
}
.form-help {
  margin: 5px 0 7px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}
.primary-button,
.secondary-button {
  min-height: 48px;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--navy-900);
  border: 1px solid transparent;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
}
.primary-button:hover,
.primary-button:focus-visible { background: var(--navy-950); box-shadow: 0 8px 20px rgba(13, 48, 72, 0.18); }
.primary-button:disabled { opacity: 0.7; cursor: wait; }
.secondary-button { color: var(--navy-900); background: #fff; border-color: var(--line); }
.secondary-button:hover,
.secondary-button:focus-visible { color: var(--gold-600); border-color: var(--gold-500); }
.inline-button { margin-top: 18px; }

.contact-mini {
  padding: 19px 24px;
  box-shadow: 0 8px 22px rgba(13, 48, 72, 0.07);
}
.contact-mini h2 {
  margin: 0 0 12px;
  color: var(--navy-900);
  font-size: 1.25rem;
}
.contact-mini a {
  margin: 7px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy-700);
  text-decoration: none;
  font-size: 0.9rem;
}
.contact-mini a:hover,
.contact-mini a:focus-visible { color: var(--gold-600); }
.contact-mini a span { width: 22px; color: var(--navy-900); font-weight: 900; }
.contact-mini p { margin: 10px 0 0; color: var(--muted); font-size: 0.82rem; }

.section { padding: 64px 0; }
.page-hero {
  padding: 62px 0 46px;
  background: linear-gradient(135deg, #f8fafb, #edf3f6);
}
.eyebrow,
.contact-card > span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--gold-600);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.page-hero h1 {
  margin: 0;
  color: var(--navy-900);
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  line-height: 1.05;
}
.page-hero p { max-width: 760px; margin: 14px 0 0; color: var(--muted); font-size: 1.05rem; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.contact-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(13, 48, 72, 0.06);
}
.contact-card h2 { margin: 0; color: var(--navy-900); font-size: 1.35rem; }
.contact-card p { color: var(--muted); }
.contact-card a { color: var(--navy-900); font-weight: 850; text-decoration-color: var(--gold-500); text-underline-offset: 4px; }
.company-card img { width: 100%; max-height: 86px; object-fit: contain; object-position: left center; margin-bottom: 18px; }
.error-page { min-height: 62vh; display: grid; align-items: center; }

.site-footer {
  padding: 14px 0;
  background: #fbfcfd;
  border-top: 1px solid var(--line);
}
.footer-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.ikartu-logo {
  width: 260px;
  max-height: 70px;
  object-fit: contain;
  object-position: center;
}
.footer-inner strong { color: var(--navy-900); font-size: 0.9rem; }

:focus-visible { outline: 3px solid rgba(211, 160, 32, 0.42); outline-offset: 3px; }

@media (max-width: 1240px) {
  :root { --container: 1160px; }
  .home-grid { grid-template-columns: minmax(0, 1fr) 370px; gap: 30px; }
  .feature-card { padding: 17px 14px; }
  .feature-icon { flex-basis: 50px; width: 50px; height: 50px; }
  .info-grid, .steps { gap: 16px; }
}

@media (max-width: 980px) {
  .container { width: min(calc(100% - 40px), var(--container)); }
  .brand img { width: 250px; }
  .home-grid { grid-template-columns: 1fr; }
  .home-sidebar { grid-template-columns: 1fr 1fr; align-items: start; }
  .login-card { max-width: none; }
  .contact-mini { align-self: stretch; }
  .feature-grid, .info-grid, .steps, .contact-grid { grid-template-columns: 1fr 1fr; }
  .feature-card:last-child,
  .info-grid article:last-child,
  .steps li:last-child,
  .contact-card:last-child { grid-column: 1 / -1; }
  .steps li:nth-child(2)::after { display: none; }
}

@media (max-width: 700px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .header-inner { min-height: 74px; }
  .brand { min-width: 0; }
  .brand img { width: 205px; max-height: 60px; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    left: 14px;
    right: 14px;
    top: 68px;
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px; border-bottom: 0; border-left: 3px solid transparent; }
  .main-nav a[aria-current="page"] { border-left-color: var(--gold-500); }
  .home-shell { padding-top: 24px; }
  .home-grid { gap: 26px; }
  .intro-block h1 { font-size: clamp(2.25rem, 11vw, 3rem); }
  .intro-block h1 br { display: none; }
  .intro-block p { font-size: 1rem; }
  .feature-grid, .info-grid, .steps, .contact-grid, .home-sidebar { grid-template-columns: 1fr; }
  .feature-card:last-child,
  .info-grid article:last-child,
  .steps li:last-child,
  .contact-card:last-child { grid-column: auto; }
  .feature-card { min-height: 0; }
  .compact-heading { gap: 10px; }
  .compact-heading h2 { font-size: 1.25rem; white-space: nowrap; }
  .steps li::after { display: none !important; }
  .module-picker { grid-template-columns: 1fr; }
  .login-card { padding: 23px 20px; }
  .section { padding: 50px 0; }
  .footer-inner { flex-direction: column; gap: 4px; text-align: center; }
  .ikartu-logo { width: min(280px, 100%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
