/*
  Solid State Theme - BayNoctua Edition
  Theme: Nocturnal Owl ("Mata Burung Hantu di Malam Hari")
  Palette: Near-Black Warm (#0c0a09) & Amber Accent (#f59e0b)
  Based on HTML5 UP Solid State Architecture
  Pure Static CSS - 0 Framework - High Performance
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800;900&family=Raleway:wght@200;400;700;800&display=swap');
@import url('fontawesome-all.min.css');

:root {
  --bg-dark: #0c0a09;
  --bg-surface: #14110f;
  --bg-surface-elevated: #1c1815;
  --bg-surface-card: #241e1a;
  --bg-alt: #171310;
  
  --accent-amber: #f59e0b;
  --accent-amber-bright: #fbbf24;
  --accent-amber-dark: #b45309;
  --accent-amber-subtle: rgba(245, 158, 11, 0.12);
  --accent-amber-border: rgba(245, 158, 11, 0.28);
  --accent-emerald: #10b981;

  --text-white: #ffffff;
  --text-primary: #f5f5f4;
  --text-secondary: #d6d3d1;
  --text-muted: #a8a29e;
  --text-dim: #78716c;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'Raleway', sans-serif;
  --font-mono: 'JetBrains Mono', Courier, monospace;

  --wrapper-edge: 4.5rem;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Selection */
::selection {
  background-color: var(--accent-amber);
  color: #000000;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #2a221b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-amber);
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-white);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

a {
  color: var(--accent-amber);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}
a:hover {
  color: var(--accent-amber-bright);
}

p {
  margin-bottom: 1.25em;
}

strong {
  color: var(--text-white);
  font-weight: 600;
}

/* Container */
.container {
  width: 100%;
  max-width: 72rem; /* 1152px */
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   SOLID STATE HEADER
   ========================================================================== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: 4.5rem;
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: rgba(12, 10, 9, 0.94);
  border-bottom: 1px solid var(--accent-amber-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

#header.alt {
  background-color: rgba(12, 10, 9, 0.85);
  border-bottom: 1px solid rgba(245, 158, 11, 0.15);
}

#header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-badge {
  width: 2.35rem;
  height: 2.35rem;
  background-color: var(--bg-surface);
  border: 1.5px solid var(--accent-amber);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-amber);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.brand-logo:hover .brand-badge {
  transform: scale(1.05);
  background-color: var(--bg-surface-elevated);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.owl-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-amber);
  display: inline-block;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.8);
}

.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-amber);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: -2px;
}

/* Desktop Nav Menu */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.desktop-nav a {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.4rem 0;
  position: relative;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--accent-amber);
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent-amber);
  transition: width 0.2s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  width: 100%;
}

/* Header Actions & Mobile Trigger */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  background-color: var(--accent-amber);
  color: #0c0a09 !important;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
  transition: background-color 0.2s ease, transform 0.15s ease;
}
.header-cta-btn:hover {
  background-color: var(--accent-amber-bright);
  transform: translateY(-1px);
}

.menu-toggle-btn {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--accent-amber-border);
  color: var(--accent-amber);
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  transition: background-color 0.2s ease;
}
.menu-toggle-btn:hover {
  background-color: var(--bg-surface-elevated);
}

/* ==========================================================================
   SOLID STATE SLIDE-OUT MENU (#menu)
   ========================================================================== */
#menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 18rem;
  max-width: 80%;
  height: 100%;
  background-color: #120e0b;
  border-left: 1px solid var(--accent-amber-border);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.7);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

body.is-menu-visible #menu {
  transform: translateX(0);
}

#menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

body.is-menu-visible #menu-backdrop {
  opacity: 1;
  pointer-events: auto;
}

#menu .menu-inner {
  padding: 2rem 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

#menu .menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

#menu h2 {
  font-size: 1.15rem;
  color: var(--text-white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#menu .close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
}
#menu .close-btn:hover {
  color: var(--accent-amber);
}

#menu .links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

#menu .links a {
  display: block;
  padding: 0.65rem 0.75rem;
  color: var(--text-secondary);
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
#menu .links a:hover {
  background-color: var(--bg-surface-elevated);
  color: var(--accent-amber);
}

/* ==========================================================================
   HERO / BANNER SECTION (#banner)
   ========================================================================== */
#banner {
  position: relative;
  padding-top: 8rem;
  padding-bottom: 6rem;
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 50% 15%, rgba(245, 158, 11, 0.07) 0%, transparent 65%),
    linear-gradient(to bottom, #0c0a09 0%, #110e0c 100%);
  overflow: hidden;
}

/* Giant Outline Backdrop Text (Solid State atmospheric watermark) */
.banner-outline-text {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(5rem, 16vw, 15rem);
  line-height: 1;
  letter-spacing: -0.05em;
  -webkit-text-stroke: 1px rgba(245, 158, 11, 0.04);
  color: transparent;
  user-select: none;
  pointer-events: none;
  z-index: 1;
}

#banner .banner-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.banner-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

/* Kolom Kiri: Headline & Info */
.banner-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Terminal Badge */
.terminal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--accent-amber-border);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
  animation: pulseGreen 2s infinite ease-in-out;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.terminal-prompt {
  color: var(--accent-amber);
  font-weight: 700;
}

.terminal-cmd {
  color: var(--text-white);
  font-weight: 600;
}

/* Headline Hero */
.banner-headline {
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.banner-headline .sub-headline {
  display: block;
  color: var(--text-white);
}

.banner-headline .typewriter-line {
  display: flex;
  align-items: center;
  color: var(--accent-amber);
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 3.5vw, 3.25rem);
  font-weight: 700;
  min-height: 1.3em;
  white-space: nowrap;
}

.typewriter-cursor {
  display: inline-block;
  width: 4px;
  height: 1.15em;
  background-color: var(--accent-amber);
  margin-left: 4px;
  animation: blinkCursor 0.9s infinite;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Paragraf Deskripsi Hero */
.banner-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 36rem;
  margin-bottom: 2rem;
}

.highlight-amber {
  color: var(--accent-amber);
  font-weight: 600;
}

/* Action Buttons */
.banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent-amber);
  color: #0c0a09 !important;
  border: 1px solid var(--accent-amber);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
}
.btn-primary:hover {
  background-color: var(--accent-amber-bright);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--accent-amber) !important;
  border: 1.5px solid var(--accent-amber-border);
}
.btn-secondary:hover {
  background-color: var(--bg-surface-elevated);
  border-color: var(--accent-amber);
  color: var(--text-white) !important;
  transform: translateY(-2px);
}

/* Telemetry Box */
.telemetry-bar {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 1rem;
  background-color: var(--bg-surface);
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.telemetry-label {
  color: var(--accent-amber);
  font-weight: 600;
}

.telemetry-val-emerald {
  color: var(--accent-emerald);
  font-weight: 700;
}

.telemetry-val-white {
  color: var(--text-white);
  font-weight: 600;
}

.telemetry-divider {
  color: #3b322a;
}

/* ==========================================================================
   KOLOM KANAN: PROFILE CARD & BADGES (SOLID STATE CRAFT)
   ========================================================================== */
.banner-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 0;
}

/* Profile Outer Frame with Solid State Angular Corners */
.profile-card-frame {
  position: relative;
  width: 100%;
  max-width: 22rem;
  aspect-ratio: 4 / 5;
  background-color: var(--bg-surface);
  border: 1.5px solid var(--accent-amber-border);
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  overflow: visible;
}

/* Solid State Angular Tech Corner Accents */
.profile-card-frame::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: 16px;
  height: 16px;
  border-top: 3px solid var(--accent-amber);
  border-left: 3px solid var(--accent-amber);
  border-top-left-radius: 12px;
  pointer-events: none;
}
.profile-card-frame::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  border-bottom: 3px solid var(--accent-amber);
  border-right: 3px solid var(--accent-amber);
  border-bottom-right-radius: 12px;
  pointer-events: none;
}

.profile-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  background-color: #080605;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: contrast(102%) brightness(96%);
}

.profile-scanline-label {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.65rem 0.5rem;
  background: linear-gradient(to top, rgba(12, 10, 9, 0.95) 0%, rgba(12, 10, 9, 0.7) 80%, transparent 100%);
  border-top: 1px solid var(--accent-amber-border);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-amber-bright);
}

/* Floating Solid State Stat Chips */
.stat-badge {
  position: absolute;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--accent-amber-border);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 5;
  transition: transform 0.2s ease;
}
.stat-badge:hover {
  transform: translateY(-2px);
  border-color: var(--accent-amber);
}

/* Badge 1: SLA Uptime (Top Right) */
.stat-badge-sla {
  top: -0.75rem;
  right: -1.25rem;
}
.badge-caption {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.badge-val-amber {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-amber);
}

/* Badge 2: MikroTik Expert (Left Center) */
.stat-badge-mikrotik {
  top: 50%;
  left: -2rem;
  transform: translateY(-50%);
}
.stat-badge-mikrotik:hover {
  transform: translateY(calc(-50% - 2px));
}
.mikrotik-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.mikrotik-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-amber);
}
.mikrotik-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-white);
}
.mikrotik-sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Badge 3: Active Monitoring (Bottom Right) */
.stat-badge-nodes {
  bottom: -1rem;
  right: -0.5rem;
}
.nodes-header {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--accent-emerald);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nodes-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
}
.nodes-val {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-white);
}

/* ==========================================================================
   SOLID STATE ANGULAR SECTION DIVIDER (THE SIGNATURE CUT)
   ========================================================================== */
.solid-state-angle {
  position: relative;
  width: 100%;
  height: var(--wrapper-edge);
  overflow: hidden;
  line-height: 0;
  margin-top: -1px;
  margin-bottom: -1px;
}

.solid-state-angle svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   MARQUEE TICKER (AMBER NOCTURNAL PALETTE)
   ========================================================================== */
.ticker-section {
  width: 100%;
  max-width: 72rem;
  margin: 1.5rem auto 2.5rem;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

.ticker-frame {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background-color: var(--accent-amber);
  color: #0c0a09;
  padding: 0.75rem 0;
  border: 1px solid var(--accent-amber-bright);
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  user-select: none;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2);
}

.ticker-mask-left {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 3.5rem;
  background: linear-gradient(to right, var(--accent-amber), transparent);
  z-index: 2;
  pointer-events: none;
}

.ticker-mask-right {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 3.5rem;
  background: linear-gradient(to left, var(--accent-amber), transparent);
  z-index: 2;
  pointer-events: none;
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 2rem;
  animation: tickerScroll 24s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media screen and (max-width: 980px) {
  .desktop-nav {
    display: none;
  }
  .menu-toggle-btn {
    display: inline-flex;
  }
  .banner-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .banner-content {
    align-items: center;
    text-align: center;
  }
  .banner-headline .typewriter-line {
    justify-content: center;
  }
  .banner-actions {
    justify-content: center;
  }
  .telemetry-bar {
    justify-content: center;
  }
  .profile-card-frame {
    max-width: 19rem;
  }
  .stat-badge-sla {
    right: 0;
  }
  .stat-badge-mikrotik {
    left: -0.5rem;
  }
  .stat-badge-nodes {
    right: 0;
  }
}

@media screen and (max-width: 640px) {
  #banner {
    padding-top: 6rem;
    padding-bottom: 4rem;
  }
  .profile-card-frame {
    max-width: 16.5rem;
  }
  .stat-badge {
    padding: 0.5rem 0.75rem;
  }
  .stat-badge-sla {
    top: -1.25rem;
    right: -0.5rem;
  }
  .stat-badge-mikrotik {
    left: -1rem;
  }
  .stat-badge-nodes {
    bottom: -1.25rem;
    right: -0.5rem;
  }
  .badge-val-amber, .nodes-val {
    font-size: 0.95rem;
  }
  .telemetry-bar {
    font-size: 0.68rem;
    gap: 0.5rem;
  }
}
