/* ============================================
   Vetiqal Sdn Bhd — Neutral professional theme
   ============================================ */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f7f7f7;
  --color-bg-dark: #111111;
  --color-text: #1a1a1a;
  --color-text-muted: #6b6b6b;
  --color-text-light: #999999;
  --color-border: #e8e8e8;
  --color-border-dark: #d4d4d4;
  --color-accent: #1a1a1a;
  --color-accent-hover: #333333;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --container-max: 1120px;
  --header-height: 72px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.07);
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header ---- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.header--scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.logo--footer {
  font-size: 1.125rem;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.nav__link:hover {
  color: var(--color-text);
  background: var(--color-bg-alt);
}

.nav__link--cta {
  color: var(--color-bg);
  background: var(--color-accent);
}

.nav__link--cta:hover {
  background: var(--color-accent-hover);
  color: var(--color-bg);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Hero ---- */

.hero {
  position: relative;
  padding: calc(var(--header-height) + 80px) 0 100px;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero__eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 36px;
  max-width: 580px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-bg);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
}

.btn--secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border-dark);
}

.btn--secondary:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-text-muted);
}

.btn--full {
  width: 100%;
}

/* ---- Stats bar ---- */

.stats {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}

.stats__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 28px 24px;
  border-right: 1px solid var(--color-border);
}

.stat:last-child {
  border-right: none;
}

.stat__label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-light);
}

.stat__value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
}

/* ---- Sections ---- */

.section {
  padding: 96px 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section--contact {
  background: var(--color-bg-dark);
  color: #f0f0f0;
}

.section__header {
  max-width: 560px;
  margin-bottom: 56px;
}

.section__header--center {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section__eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.section--contact .section__eyebrow {
  color: #888888;
}

.section__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section__desc {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ---- Cards ---- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  padding: 32px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-dark);
}

.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  color: var(--color-text);
}

.card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.card__text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.card__list li {
  position: relative;
  padding-left: 16px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 4px;
  height: 4px;
  background: var(--color-text-light);
  border-radius: 50%;
}

/* ---- About ---- */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about__text {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.about__panel {
  padding: 36px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.about__panel-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.about__features li {
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.about__features li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.about__features li:first-child {
  padding-top: 0;
}

.about__features strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.about__features span {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ---- Process ---- */

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  list-style: none;
  padding: 0;
}

.process__step {
  position: relative;
  text-align: center;
}

.process__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 28px;
  left: calc(50% + 36px);
  width: calc(100% - 72px + 32px);
  height: 1px;
  background: linear-gradient(90deg, var(--color-border-dark), var(--color-border));
  pointer-events: none;
}

.process__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}

.process__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.process__text {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ---- Contact ---- */

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact__desc {
  font-size: 1rem;
  color: #aaaaaa;
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__item-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #777777;
  margin-bottom: 4px;
}

.contact__item-value {
  font-size: 1rem;
  font-weight: 500;
  color: #f0f0f0;
}

.contact__link {
  transition: color var(--transition);
}

.contact__link:hover {
  color: #ffffff;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #cccccc;
  margin-bottom: 8px;
}

.form__input {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--color-text);
  background: #ffffff;
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form__input::placeholder {
  color: var(--color-text-light);
}

.form__input:focus {
  border-color: var(--color-text-muted);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__note {
  font-size: 0.875rem;
  text-align: center;
  min-height: 1.25em;
}

.form__note--success {
  color: #86efac;
}

.form__note--error {
  color: #fca5a5;
}

.section--contact .btn--primary {
  background: #ffffff;
  color: var(--color-text);
}

.section--contact .btn--primary:hover {
  background: #e8e8e8;
}

/* ---- Footer ---- */

.footer {
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer__tagline {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.footer__meta {
  text-align: right;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.footer__meta a {
  display: block;
  margin-top: 4px;
  transition: color var(--transition);
}

.footer__meta a:hover {
  color: var(--color-text);
}

/* ---- Responsive ---- */

@media (max-width: 960px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .process {
    grid-template-columns: repeat(2, 1fr);
  }

  .process__step:not(:last-child)::after {
    display: none;
  }

  .contact {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .stats__inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(2) {
    border-right: none;
  }

  .stat:nth-child(1),
  .stat:nth-child(2) {
    border-bottom: 1px solid var(--color-border);
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 24px 24px;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav__link {
    padding: 12px 16px;
  }

  .hero {
    padding-bottom: 64px;
  }

  .section {
    padding: 64px 0;
  }

  .process {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .stats__inner {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .stat:last-child {
    border-bottom: none;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__meta {
    text-align: left;
  }
}
