/* Kaisar328 TeknikIndonesia.com — Varian E + Aurora UI */

:root {
  --bg: #050520;
  --bg-panel: #0a0a35;
  --blue-deep: #12124a;
  --cyan: #00ffff;
  --cyan-soft: #66ffff;
  --purple: #bf00ff;
  --magenta: #ff00ff;
  --gold: #ffd700;
  --gold-soft: #ffe566;
  --text: #f0f4ff;
  --muted: #9a9ac8;
  --aurora: linear-gradient(135deg, #00ffff, #bf00ff, #ff00ff, #ffd700, #00ffff);
  --container: 1000px;
  --bottom-nav: 64px;
}

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

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

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  padding-bottom: var(--bottom-nav);
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 60% 45% at 20% 20%, rgba(0, 255, 255, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(191, 0, 255, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 55% 45% at 50% 90%, rgba(255, 0, 255, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--blue-deep) 100%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  background: var(--aurora);
  background-size: 400% 400%;
  animation: aurora-flow 18s ease infinite;
  opacity: 0.12;
  filter: blur(60px);
  pointer-events: none;
}

@keyframes aurora-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::after { animation: none; }
  .aurora-card::before { animation: none; }
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: var(--cyan-soft); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--gold);
  color: var(--bg);
  font-weight: 700;
}

.skip-link:focus { left: 0.75rem; top: 0.75rem; }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  color: currentColor;
}

.ico--sm { width: 1em; height: 1em; }
.ico--lg { width: 1.35rem; height: 1.35rem; }
.ico--btn { width: 0.95em; height: 0.95em; }

/* Aurora card */
.aurora-card {
  position: relative;
  background: rgba(10, 10, 53, 0.82);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.aurora-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: 14px;
  background: var(--aurora);
  background-size: 300% 300%;
  animation: aurora-flow 10s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Header desktop */
.site-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 350;
  background: rgba(5, 5, 32, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
}

.brand-mark img {
  height: 36px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.35));
}

.header-nav {
  display: flex;
  gap: 0.2rem;
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.header-nav a:hover {
  color: var(--cyan);
  background: rgba(0, 255, 255, 0.08);
}

.header-cta {
  display: flex;
  gap: 0.4rem;
}

@media (min-width: 900px) {
  .site-header { display: block; }
}

/* Mobile top */
.mobile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: rgba(5, 5, 32, 0.95);
  border-bottom: 1px solid rgba(191, 0, 255, 0.25);
  position: sticky;
  top: 0;
  z-index: 340;
}

@media (min-width: 900px) {
  .mobile-top { display: none; }
}

.mobile-top img {
  height: 32px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.mobile-top-cta {
  display: flex;
  gap: 0.35rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: transform 0.12s, box-shadow 0.2s;
}

.btn:active { transform: scale(0.97); }

.btn-aurora {
  color: var(--bg);
  background: linear-gradient(135deg, var(--gold) 0%, var(--cyan-soft) 100%);
  box-shadow: 0 0 16px rgba(0, 255, 255, 0.35), 0 0 24px rgba(255, 215, 0, 0.25);
}

.btn-aurora:hover { color: var(--bg); }

.btn-outline {
  color: var(--cyan);
  background: transparent;
  border: 1px solid rgba(0, 255, 255, 0.5);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.btn-outline:hover { color: var(--text); }

.btn-lg { padding: 0.75rem 1.5rem; font-size: 0.78rem; }

/* Cyber hero — variant E */
.cyber-hero {
  padding: 2rem 0 2.5rem;
}

.hero-intro {
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  padding: 0.35rem 0.85rem;
  margin-bottom: 0.85rem;
  background: rgba(191, 0, 255, 0.2);
  border: 1px solid rgba(191, 0, 255, 0.45);
  border-radius: 999px;
}

.hero-intro h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.7rem, 4.5vw, 2.55rem);
  line-height: 1.12;
  font-weight: 800;
}

.hero-intro h1 a {
  color: var(--gold);
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.hero-lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.cyber-banner {
  padding: 4px;
  max-width: 480px;
  margin: 0 auto;
}

.cyber-banner img {
  border-radius: 10px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  color: var(--text);
  background: rgba(10, 10, 53, 0.75);
  border: 1px solid rgba(0, 255, 255, 0.25);
}

.chip .ico { color: var(--gold); }

@media (min-width: 860px) {
  .cyber-hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
  }

  .hero-intro { margin-bottom: 0; }
  .cyber-banner { margin: 0; justify-self: end; }
  .chip-row { grid-column: 1 / -1; justify-content: flex-start; }
}

/* Sections */
.section {
  padding: 2.75rem 0;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.6rem;
}

.section h2 {
  margin: 0 0 1.15rem;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 800;
  color: var(--text);
}

.prose-panel { padding: 1.5rem 1.35rem; }
.prose-panel p { margin: 0 0 0.9rem; color: var(--muted); }

.article-panel { padding: 1.5rem 1.35rem; }

.article-panel .meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 0.7rem;
}

.article-panel h3 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 1.35rem 0 0.55rem;
  font-size: 1rem;
  color: var(--gold-soft);
}

.article-panel h3 .ico { color: var(--cyan); }

.article-panel p {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.article-note {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 255, 255, 0.15);
  font-size: 0.92rem;
}

/* Alternating benefits — variant E */
.alt-benefits {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.alt-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.2rem 1.3rem;
}

.alt-row:nth-child(even) {
  flex-direction: row-reverse;
  text-align: right;
}

.alt-row:nth-child(even) .alt-body {
  align-items: flex-end;
}

.alt-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid rgba(0, 255, 255, 0.3);
}

.alt-icon .ico {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--gold);
}

.alt-body {
  display: flex;
  flex-direction: column;
}

.alt-body h3 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  color: var(--text);
}

.alt-body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

@media (min-width: 640px) {
  .alt-row:nth-child(odd) { margin-right: 8%; }
  .alt-row:nth-child(even) { margin-left: 8%; }
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.faq-item { overflow: hidden; }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.faq-q-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-q-text .ico { color: var(--cyan); }

.faq-toggle .ico {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--purple);
  transition: transform 0.25s ease;
}

.faq-item.open .faq-toggle .ico { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-a-inner {
  padding: 0 1.2rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Bottom nav — variant E */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 400;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  min-height: var(--bottom-nav);
  background: rgba(5, 5, 32, 0.96);
  border-top: 1px solid rgba(0, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.4rem 0.25rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.bottom-nav a .ico {
  width: 1.2rem;
  height: 1.2rem;
}

.bottom-nav a.active,
.bottom-nav a:hover {
  color: var(--cyan);
}

.bottom-nav a.active .ico { color: var(--gold); }

@media (min-width: 900px) {
  .bottom-nav { display: none; }
}

/* Footer */
.site-footer {
  padding: 2.25rem 0 5.5rem;
  border-top: 1px solid rgba(191, 0, 255, 0.2);
  background: rgba(5, 5, 32, 0.6);
}

@media (min-width: 900px) {
  .site-footer { padding-bottom: 2.5rem; }
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.footer-brand img {
  height: 32px;
  width: auto;
  max-width: 180px;
  margin-bottom: 0.65rem;
}

.footer-brand p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  max-width: 26rem;
}

.footer-nav h4 {
  margin: 0 0 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li { margin-bottom: 0.28rem; }

.footer-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.footer-nav a:hover { color: var(--cyan); }

.footer-end {
  margin-top: 1.65rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--muted);
}

.footer-end a { color: var(--muted); }
.footer-end a:hover { color: var(--cyan); }

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
