/* ==========================================================================
   KANATEKNO — Landing page
   Arah visual: dokumen teknik. Kertas putih dingin, tinta grafit-navy,
   garis rambut presisi, satu aksen petrol yang dipakai dengan hemat.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Permukaan */
  --paper:    #FFFFFF;
  --paper-2:  #F6F8F9;
  --paper-3:  #EDF1F3;

  /* Garis */
  --line:     #DFE6E9;
  --line-2:   #C2D0D6;
  --line-3:   #97AAB2;

  /* Tinta */
  --ink:      #0C1A22;
  --ink-2:    #3D525C;
  --ink-3:    #5E747E;

  /* Aksen */
  --accent:   #0F6E7E;
  --accent-d: #0A5260;
  --accent-l: #E6F1F3;
  --amber:    #B0730F;

  /* Tipografi */
  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body:    "IBM Plex Sans", "Segoe UI", Roboto, sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Ritme */
  --wrap:    1180px;
  --gutter:  clamp(1.25rem, 4vw, 2.5rem);
  --sect-y:  clamp(4.5rem, 9vw, 7.5rem);
  --radius:  3px;

  --shadow-sm: 0 1px 2px rgba(12,26,34,.05);
  --shadow-md: 0 1px 2px rgba(12,26,34,.04), 0 10px 28px -14px rgba(12,26,34,.16);
  --shadow-lg: 0 2px 4px rgba(12,26,34,.04), 0 26px 56px -28px rgba(12,26,34,.28);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; font-family: var(--f-display); line-height: 1.05; letter-spacing: -0.025em; }
h1 { font-weight: 800; }
h2, h3 { font-weight: 700; }
p  { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.mono {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-head.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.site-head__inner { display: flex; align-items: center; gap: 2rem; height: 70px; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand__mark { width: 19px; height: 19px; flex: none; fill: var(--line-3); }
.brand__mark-lit { fill: var(--accent); }
.brand__name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.075em;
  color: var(--ink);
}

.site-nav { margin-left: auto; display: flex; gap: 1.75rem; }
.site-nav a {
  font-size: 0.875rem;
  color: var(--ink-2);
  position: relative;
  padding-block: 0.35rem;
  transition: color .2s var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); }

.site-head__actions { display: flex; align-items: center; gap: 0.75rem; }

.burger {
  display: none;
  width: 38px; height: 38px;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  position: relative;
}
.burger span {
  position: absolute;
  left: 10px;
  width: 16px; height: 1.5px;
  background: var(--ink);
  transition: transform .3s var(--ease);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--f-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease),
              color .2s var(--ease), box-shadow .2s var(--ease), transform .15s var(--ease);
}
.btn--sm { padding: 0.55rem 1.05rem; font-size: 0.82rem; }
.btn--full { width: 100%; }

.btn--amber {           /* nama kelas dipertahankan; kini aksen petrol */
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--amber:hover { background: var(--accent-d); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn--ghost { border-color: var(--line-2); color: var(--ink); background: var(--paper); }
.btn--ghost:hover { border-color: var(--line-3); background: var(--paper-2); }

/* ==========================================================================
   ATOMS
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.4rem;
}
.eyebrow__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; }

.section { padding-block: var(--sect-y); }

.section__head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section__title { font-size: clamp(1.85rem, 3.9vw, 2.8rem); color: var(--ink); }
.section__lead {
  margin-top: 1.15rem;
  color: var(--ink-2);
  font-size: clamp(1rem, 1.6vw, 1.06rem);
  max-width: 40rem;
}

/* Disembunyikan hanya bila JS aktif — tanpa JS konten tetap terbaca. */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(3.5rem, 7vw, 6rem);
  background: var(--paper);
  overflow: hidden;
}
.hero > .wrap { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

.hero__title { font-size: clamp(2.3rem, 4.9vw, 3.5rem); letter-spacing: -0.035em; }
.hero__lead {
  margin-top: 1.6rem;
  max-width: 33rem;
  color: var(--ink-2);
  font-size: clamp(1.01rem, 1.65vw, 1.1rem);
}
.hero__lead strong { color: var(--ink); font-weight: 600; }

.hero__cta { margin-top: 2.1rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__note { margin-top: 1.4rem; font-size: 0.85rem; color: var(--ink-3); }

.hero__copy .reveal:nth-child(1) { transition-delay: .05s; }
.hero__copy .reveal:nth-child(2) { transition-delay: .13s; }
.hero__copy .reveal:nth-child(3) { transition-delay: .21s; }
.hero__copy .reveal:nth-child(4) { transition-delay: .29s; }
.hero__copy .reveal:nth-child(5) { transition-delay: .37s; }

/* ==========================================================================
   SIGNATURE — RACK ELEVATION (gambar teknik)
   ========================================================================== */
.rack { margin: 0; }

.rack__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.65rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink-3);
}
.rack__head-dim { color: var(--line-3); }

.rack__body {
  display: grid;
  grid-template-columns: 13px minmax(0, 1fr) 13px;
  gap: 7px;
  padding: 11px;
  background: var(--paper-2);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
}

.rack__rail {
  border-radius: 2px;
  border: 1px solid var(--line-2);
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0 7px,
      var(--line-2) 7px 12px,
      transparent 12px 19px
    ),
    var(--paper-3);
}

.rack__slots { display: flex; flex-direction: column; gap: 5px; }

.slot-gap { height: 13px; }
.slot-gap--lg { height: 30px; }

.unit {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: stretch;
  gap: 7px;
}
.js .unit {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.js .unit.is-on { opacity: 1; transform: none; }

.unit__u {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-family: var(--f-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--line-3);
  padding-right: 2px;
  transition: color .2s var(--ease);
}

.unit__face {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 46px;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.unit--tall .unit__face { min-height: 64px; }
.unit--psu .unit__face { min-height: 32px; background: var(--paper-3); box-shadow: none; }

.unit__name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.25;
}
.unit--psu .unit__name { color: var(--ink-3); font-weight: 500; font-size: 0.72rem; }

/* LED status */
.unit__leds { display: flex; flex-direction: column; gap: 5px; flex: none; }
.led {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--line-2);
  display: block;
}
.unit.is-on .led--link { background: var(--accent); }
.unit.is-on .led--act {
  background: var(--amber);
  animation: blink 2.6s steps(1) infinite;
}
@keyframes blink {
  0%, 44%  { opacity: 1; }
  46%, 52% { opacity: .2; }
  54%, 88% { opacity: 1; }
  90%, 96% { opacity: .35; }
}

/* port & bay pada faceplate */
.unit__ports, .unit__bays { display: flex; gap: 3px; margin-left: auto; flex: none; }
.unit__ports i {
  width: 6px; height: 9px;
  background: var(--paper-3);
  border: 1px solid var(--line-2);
  border-radius: 1px;
  display: block;
}
.unit__bays { flex-direction: column; gap: 3px; }
.unit__bays i {
  width: 26px; height: 5px;
  background: var(--paper-3);
  border: 1px solid var(--line-2);
  border-radius: 1px;
  display: block;
}

a.unit:hover .unit__face,
a.unit:focus-visible .unit__face {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
a.unit:hover { transform: translateX(3px); }
a.unit:hover .unit__u { color: var(--accent); }

/* ==========================================================================
   ANGKA
   ========================================================================== */
.figures { border-block: 1px solid var(--line); background: var(--paper-2); }
.figures__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}
.figure { background: var(--paper-2); padding: clamp(1.75rem, 3.5vw, 2.6rem) clamp(1rem, 2vw, 1.75rem); }
.figure__num {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1;
}
.figure__unit {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-left: 0.35rem;
}
.figure__label {
  display: block;
  margin-top: 0.85rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-3);
  max-width: 15rem;
}

/* ==========================================================================
   LAYANAN
   ========================================================================== */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.svc {
  background: var(--paper);
  padding: clamp(1.75rem, 3.2vw, 2.5rem);
  transition: background .3s var(--ease);
  scroll-margin-top: 90px;
}
.svc:hover { background: var(--paper-2); }

.svc__pos {
  display: inline-block;
  color: var(--accent);
  background: var(--accent-l);
  margin-bottom: 1.05rem;
  padding: 0.22rem 0.5rem;
  border-radius: 2px;
  font-size: 0.62rem;
}
.svc__title { font-size: 1.3rem; }
.svc__desc { margin-top: 0.7rem; color: var(--ink-2); font-size: 0.95rem; max-width: 26rem; }
.svc__list {
  margin-top: 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.65rem;
}
.svc__list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.885rem;
  color: var(--ink-3);
  line-height: 1.5;
}
.svc__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 6px; height: 1px;
  background: var(--line-3);
}

/* ==========================================================================
   CISCO REFRESH
   ========================================================================== */
.refresh { background: var(--paper-2); border-block: 1px solid var(--line); }
.refresh__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
}
.refresh__copy .section__lead + .section__lead { margin-top: 0.95rem; }
.refresh__cta { margin-top: 1.9rem; }

.specs {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.spec {
  background: var(--paper);
  padding: 1.35rem 1.6rem;
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.3rem 1.25rem;
  align-items: baseline;
}
.spec__k { color: var(--ink-3); grid-row: span 2; font-size: 0.64rem; }
.spec__v { font-weight: 600; font-size: 0.96rem; color: var(--ink); }
.spec__d { font-size: 0.85rem; color: var(--ink-3); line-height: 1.5; }

/* ==========================================================================
   PROSES
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
}
.step { padding-top: 1.4rem; border-top: 1px solid var(--line-2); position: relative; }
.step::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 30px; height: 2px;
  background: var(--accent);
}
.step__n { display: block; color: var(--accent); margin-bottom: 0.9rem; font-size: 0.68rem; }
.step__title { font-size: 1.1rem; }
.step__desc { margin-top: 0.65rem; font-size: 0.885rem; color: var(--ink-3); line-height: 1.6; }

/* ==========================================================================
   KONTAK
   ========================================================================== */
.contact { background: var(--paper); border-top: 1px solid var(--line); }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
}

.contact__direct { margin-top: 2.25rem; display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.contact__row {
  background: var(--paper);
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.9rem 0;
  align-items: baseline;
}
.contact__row dt { color: var(--ink-3); font-size: 0.64rem; }
.contact__row dd { font-size: 0.95rem; color: var(--ink-2); }
.contact__row a { color: var(--accent); border-bottom: 1px solid var(--line-2); padding-bottom: 1px; transition: border-color .2s var(--ease); }
.contact__row a:hover { border-bottom-color: var(--accent); }

.form {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  display: grid;
  gap: 1.1rem;
  box-shadow: var(--shadow-md);
}
.field { display: grid; gap: 0.45rem; }
.field__label { color: var(--ink-3); font-size: 0.64rem; }
.field__input {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  padding: 0.72rem 0.85rem;
  font-size: 0.925rem;
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field__input::placeholder { color: var(--ink-3); opacity: .75; }
.field__input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-l); outline: none; }
.field__textarea { resize: vertical; min-height: 6.5rem; font-family: var(--f-body); }
.field__select {
  appearance: none;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 17px) calc(1em + 2px), calc(100% - 12px) calc(1em + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}
.form__note { font-size: 0.78rem; color: var(--ink-3); text-align: center; }
.form__note.is-warn { color: #A3341C; font-weight: 500; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-foot { border-top: 1px solid var(--line); padding-block: 2.6rem; background: var(--paper-2); }
.site-foot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 2.5rem;
  align-items: center;
  justify-content: space-between;
}
.site-foot__tag { margin-top: 0.35rem; font-size: 0.85rem; color: var(--ink-3); }
.site-foot__nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.site-foot__nav a { font-size: 0.85rem; color: var(--ink-2); transition: color .2s var(--ease); }
.site-foot__nav a:hover { color: var(--accent); }
.site-foot__legal { color: var(--ink-3); font-size: 0.64rem; width: 100%; padding-top: 1.4rem; border-top: 1px solid var(--line); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1000px) {
  .hero__grid,
  .refresh__grid,
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__rack { max-width: 30rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .burger { display: block; }
  .site-nav {
    position: absolute;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 0.5rem var(--gutter) 1rem;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding-block: 0.8rem; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
  .site-nav a::after { display: none; }
}

@media (max-width: 640px) {
  .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .figures__grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .spec { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
  .spec__k { grid-row: auto; }
  .contact__row { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
  .hero__cta .btn { width: 100%; }
}

/* ==========================================================================
   PREFERENSI GERAK
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .unit { opacity: 1; transform: none; }
}
