/* PT Mandalika Perisai Teknologi — landing page stylesheet
   Palette: navy/black dominant, gray neutrals, red as a sharp, sparing accent. */

:root {
  --navy-950: #05070d;
  --navy-900: #0a1730;
  --navy-800: #0e1e38;
  --navy-700: #16294a;
  --navy-600: #223a63;

  --gray-50: #f4f5f7;
  --gray-100: #eceef2;
  --gray-200: #e2e6ec;
  --gray-400: #97a1b3;
  --gray-500: #64748b;
  --gray-700: #334155;

  --red-100: #fde8e8;
  --red-500: #e6323a;
  --red-600: #dc2626;
  --red-700: #b91c1c;

  --white: #ffffff;
  --ink: var(--navy-800);

  --font-head: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-w: 1160px;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

/* Prevent CSS Grid "blowout": grid items default to a min-width of their
   content's intrinsic size, which for an <img> is its width/height
   attributes even before the image loads — without this, a still-loading
   or broken image can force its grid track wider than the viewport. */
.service-grid > *, .about > *, .stat-card > *, .product-card > *,
.shot-grid > *, .feature-list > * { min-width: 0; }

html {
  scroll-behavior: smooth;
  /* Fluid type scale: unchanged (16px) up to a 1440px viewport — matches
     the design's tuned breakpoint — then grows smoothly up to 20px at
     2560px and beyond, so text reads comfortably on wide monitors instead
     of staying pinned to a small-screen size in a centered column. */
  font-size: clamp(16px, 10.9px + 0.36vw, 20px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-head); color: var(--ink); margin: 0; }

p { margin: 0; }

a { color: var(--red-600); text-decoration: none; }
a:hover, a:focus-visible { color: var(--red-700); text-decoration: underline; }

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

section { scroll-margin-top: 78px; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}
.btn:hover, .btn:focus-visible { text-decoration: none; transform: translateY(-1px); }

.btn-primary { background: var(--red-600); color: var(--white); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--red-700); color: var(--white); }

.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.28); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: rgba(255,255,255,0.08); color: var(--white); border-color: rgba(255,255,255,0.5); }

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(5,7,13,0.08); }

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand img { width: 32px; height: 32px; object-fit: contain; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 0.9375rem; letter-spacing: -0.01em; }

.nav-menu { display: contents; }

.nav-links {
  margin-left: auto;
  display: flex;
  gap: 28px;
  font-size: 0.8438rem;
  font-weight: 600;
}
.nav-links a { color: var(--gray-700); }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--red-600); }
.nav-links a.is-active { color: var(--red-600); }

.lang-toggle {
  display: flex;
  margin-left: 22px;
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  padding: 3px;
}
.lang-toggle button {
  border: none;
  background: transparent;
  color: var(--gray-700);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
  cursor: pointer;
}
.lang-toggle button.is-active { background: var(--navy-800); color: var(--white); }

.nav-cta { margin-left: 16px; padding: 10px 20px; font-size: 0.8125rem; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 12% -10%, #1a3766 0%, var(--navy-800) 52%, var(--navy-950) 100%);
  padding: 116px 32px 120px;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 64px);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230,50,58,0.28) 0%, rgba(230,50,58,0) 70%);
  pointer-events: none;
}
.hero-inner { max-width: 760px; margin: 0 auto; position: relative; z-index: 1; }

.kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding: 7px 16px;
  border-radius: 100px;
}
.hero .kicker { color: var(--red-500); border: 1px solid rgba(230,50,58,0.4); }

.hero h1 {
  font-size: 2.875rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 0 20px;
  line-height: 1.16;
  letter-spacing: -0.015em;
}

.hero-sub {
  font-size: 1.0312rem;
  line-height: 1.7;
  color: var(--gray-400);
  margin: 0 0 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-badges {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-400);
  letter-spacing: 0.02em;
}
.hero-badges span { display: inline-flex; align-items: center; gap: 7px; }
.hero-badges span::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-500);
  flex-shrink: 0;
}

/* ---------- Section headings ---------- */

.section-head { text-align: center; margin-bottom: 52px; }
.section-head .kicker { color: var(--red-600); border: none; padding: 0; }
.section-head h2 { font-size: 1.8125rem; font-weight: 800; letter-spacing: -0.01em; margin-top: 10px; }
.section-head p { font-size: 0.9062rem; color: var(--gray-500); margin-top: 12px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- About ---------- */

.about {
  padding: 96px 32px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.about .kicker { color: var(--red-600); border: none; padding: 0; }
.about h2 { font-size: 1.8125rem; font-weight: 800; margin: 10px 0 18px; letter-spacing: -0.01em; }
.about p { font-size: 0.9062rem; line-height: 1.8; color: var(--gray-500); margin-bottom: 14px; }
.about p:last-of-type { margin-bottom: 0; }

.stat-card {
  background: var(--navy-800);
  border-radius: var(--radius);
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.stat-card .stat-num { font-family: var(--font-head); font-size: 1.6875rem; font-weight: 800; color: var(--red-500); }
.stat-card .stat-label { font-size: 0.7812rem; color: var(--gray-400); font-weight: 600; margin-top: 4px; }

/* ---------- Services ---------- */

.services { background: var(--gray-50); padding: 96px 32px; }

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

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.service-card:hover {
  border-color: var(--red-500);
  box-shadow: 0 10px 26px rgba(230,50,58,0.14);
  transform: translateY(-2px);
}
.service-num {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red-600);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.service-card h3 { font-size: 0.9062rem; font-weight: 700; margin-bottom: 8px; line-height: 1.35; }
.service-card p { font-size: 0.7812rem; line-height: 1.6; color: var(--gray-500); }

/* ---------- Products ---------- */

.products { padding: 96px 32px; }
.products .container { display: flex; flex-direction: column; gap: 32px; }

/* Apple-style feature layout: headline/copy block first, then a large,
   uncropped, full-width image below — the visual carries the section
   instead of being squeezed into a narrow side column. */
.product-card {
  border-radius: 18px;
  padding: 52px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.product-intro { max-width: 640px; }

.product-card.product-dark {
  background: linear-gradient(155deg, var(--navy-700), var(--navy-950));
  color: var(--white);
}
.product-card.product-dark .kicker { color: var(--red-500); border: none; padding: 0; }
.product-card.product-dark h3 { color: var(--white); font-size: 1.6875rem; font-weight: 800; margin: 12px 0 14px; letter-spacing: -0.01em; }
.product-card.product-dark .product-tagline { font-size: 0.8438rem; font-weight: 600; color: var(--red-500); margin-bottom: 16px; }
.product-card.product-dark p.product-desc { font-size: 0.875rem; line-height: 1.75; color: var(--gray-400); }

.product-card.product-light {
  background: var(--white);
  border: 1px solid var(--gray-200);
}
.product-card.product-light .kicker { color: var(--red-600); border: none; padding: 0; }
.product-card.product-light h3 { font-size: 1.6875rem; font-weight: 800; margin: 12px 0 14px; letter-spacing: -0.01em; }
.product-card.product-light .product-tagline { font-size: 0.8438rem; font-weight: 600; color: var(--red-600); margin-bottom: 16px; }
.product-card.product-light p.product-desc { font-size: 0.875rem; line-height: 1.75; color: var(--gray-500); margin-bottom: 18px; }

.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.feature-item { display: flex; align-items: flex-start; gap: 8px; font-size: 0.8125rem; line-height: 1.5; color: var(--gray-700); font-weight: 600; }
.feature-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--red-100);
  color: var(--red-600);
  font-size: 0.6875rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* Solid, button-styled callout — same visual language as .btn-primary,
   for statements meant to read as confident claims (not passive labels). */
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--white);
  background: var(--red-600);
  padding: 12px 22px;
  border-radius: 8px;
}

/* Soft category chip — for neutral classification labels (e.g. an
   industry tag on a portfolio card), not claims, so it stays visually
   subordinate to real buttons. */
.badge {
  display: inline-block;
  font-size: 0.7188rem;
  font-weight: 600;
  color: var(--red-600);
  background: var(--red-100);
  padding: 6px 14px;
  border-radius: 100px;
}
.product-card.product-dark .badge { color: var(--white); background: rgba(230,50,58,0.24); }

.product-shot img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}
.product-card.product-dark .product-shot img { border: 1px solid var(--navy-600); box-shadow: 0 20px 50px rgba(0,0,0,0.35); }

/* Four large, evenly-weighted feature tiles — Apple product-page style:
   one neutral card treatment throughout (the screenshot itself carries
   the dark/light distinction), generous spacing, image shown whole. */
.shot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.shot-tile {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 18px 18px 16px;
  text-align: center;
}
.shot-tile img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  box-shadow: 0 14px 32px rgba(14,30,56,0.14);
}
.shot-caption { font-size: 0.8125rem; font-weight: 600; color: var(--gray-700); margin-top: 14px; }

/* ---------- Portfolio ---------- */

.portfolio { background: var(--gray-50); padding: 96px 32px; }
.portfolio-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--red-600);
  border-radius: var(--radius);
  padding: 34px 38px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.portfolio-card h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 8px; }
.portfolio-card p { font-size: 0.875rem; line-height: 1.75; color: var(--gray-500); max-width: 580px; }

/* ---------- Contact ---------- */

.contact { padding: 96px 32px; text-align: center; }
.contact .kicker { color: var(--red-600); border: none; padding: 0; }
.contact h2 { font-size: 1.8125rem; font-weight: 800; margin: 10px 0 18px; letter-spacing: -0.01em; }
.contact > .container > p { font-size: 0.9062rem; color: var(--gray-500); margin: 0 auto 36px; max-width: 500px; }

.contact-grid { display: flex; justify-content: center; gap: 44px; flex-wrap: wrap; }
.contact-item .label {
  font-size: 0.6562rem; font-weight: 700; color: var(--gray-400);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px;
}
.contact-item .value { font-size: 0.875rem; font-weight: 700; color: var(--ink); }

.contact-cta { margin-top: 40px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-950); padding: 26px 32px; }
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--gray-400);
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-menu { display: none; }
  .nav-toggle { display: block; }
  .site-header.is-open .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 8px 32px 18px;
  }
  .site-header.is-open .nav-links { flex-direction: column; gap: 0; margin-left: 0; width: 100%; }
  .site-header.is-open .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--gray-100); }
  .site-header.is-open .lang-toggle { margin: 14px 0 0; }
  .site-header.is-open .nav-cta { margin: 14px 0 4px; }

  .hero { padding: 90px 24px 84px; }
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 0.9375rem; }

  .service-grid { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .shot-grid { grid-template-columns: 1fr; }
  .product-card { padding: 32px 22px; }

  .contact-grid { gap: 26px; }
  .portfolio-card { flex-direction: column; }
}
