/*
 * Neo‑Glow Site Stylesheet
 *
 * This file defines all of the core styling for the Skripsi Kualitatif webapp.
 * The design is inspired by modern neon‑glow interfaces: dark panels with
 * glassmorphism, purple gradients and subtle accent colors. A consistent
 * system of CSS variables drives the palette, radiuses, shadows and
 * gradients. Utility classes and custom components are defined below.
 */

/* Root tokens – everything flows from these variables. */
:root {
  /* Colors */
  --bg-0: #0A0B10;
  --bg-1: #0E1117;
  --panel: rgba(20, 22, 29, 0.72);
  --panel-glass: rgba(22, 24, 36, 0.48);
  --stroke: rgba(255, 255, 255, 0.08);
  --txt-1: rgba(255, 255, 255, 0.92);
  --txt-2: rgba(255, 255, 255, 0.64);
  --txt-3: rgba(255, 255, 255, 0.40);
  --primary: #8B5CF6;
  --primary-2: #A855F7;
  --glow-1: #9B5CFF;
  --glow-2: #5B8CFF;
  --accent: #FFA726;

  /* Radii */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-soft: 0 6px 24px rgba(0, 0, 0, 0.35);
  --shadow-panel: 0 10px 40px rgba(18, 7, 51, 0.35);
  --shadow-glow: 0 0 80px rgba(155, 92, 255, 0.45);

  /* Blurs */
  --blur-glass: 20px;
  --blur-heavy: 60px;

  /* Gradients */
  --gradient-hero-dome: radial-gradient(120% 120% at 50% 120%, rgba(155, 92, 255, 0.55) 0%, rgba(20, 22, 29, 0) 55%),
    radial-gradient(120% 120% at 50% -10%, rgba(91, 140, 255, 0.35) 0%, rgba(20, 22, 29, 0) 60%),
    linear-gradient(180deg, #0B0E14 0%, #0A0B10 100%);
  --gradient-cta-pill: linear-gradient(90deg, #9B5CFF 0%, #5B8CFF 100%);
  --gradient-divider-glow: linear-gradient(90deg, rgba(155, 92, 255, 0) 0%, rgba(155, 92, 255, 0.65) 50%, rgba(155, 92, 255, 0) 100%);
  --gradient-accent-ring: conic-gradient(from 180deg at 50% 50%, rgba(155, 92, 255, 0.4), rgba(91, 140, 255, 0.4), rgba(155, 92, 255, 0.4));

  /* Typography */
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --h1-size: clamp(2.5rem, 5vw + 1rem, 3.5rem);
  --h2-size: 2.25rem;
  --h3-size: 1.5rem;
  --h4-size: 0.9rem;
  --base-size: 1rem;

  /* Spacing */
  --section-spacing: 6rem;
  --container-max: 1200px;
  --container-padding: 24px;
}

/* Global resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  background: var(--bg-0);
  color: var(--txt-1);
  font-family: var(--font-family);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--glow-2);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  margin-left: auto;
  margin-right: auto;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  height: 68px;
  display: flex;
  align-items: center;
  z-index: 50;
  background: var(--panel-glass);
  backdrop-filter: blur(var(--blur-glass));
  border-bottom: 1px solid var(--stroke);
  box-shadow: var(--shadow-soft);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
}

/* Navigation menu */
#main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

#main-nav a {
  position: relative;
  font-size: 1rem;
  font-weight: 500;
  color: var(--txt-2);
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

#main-nav a:hover,
#main-nav a.active {
  color: var(--txt-1);
}

#main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: var(--gradient-divider-glow);
  transition: width 0.3s ease;
}

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

/* Nav actions */
.actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: var(--radius-full);
  padding: 0.6rem 1.4rem;
  cursor: pointer;
  transition: transform 0.3s ease;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--gradient-cta-pill);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.05);
  color: var(--txt-1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.10);
  transform: translateY(-2px);
}

.btn-secondary.small, .btn-primary.small {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

/* Nav toggle for mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 28px;
  height: 24px;
  border: none;
  background: transparent;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--txt-2);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hero Section */
#hero {
  position: relative;
  padding-top: var(--section-spacing);
  padding-bottom: calc(var(--section-spacing) * 0.8);
  background: var(--gradient-hero-dome);
  overflow: hidden;
}

#hero .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

#hero h1 {
  font-size: var(--h1-size);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

#hero h1 .gradient-text {
  background: linear-gradient(90deg, var(--glow-1) 0%, var(--glow-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

#hero p {
  color: var(--txt-2);
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

#hero .hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* Mock Dashboard */
.mock-dashboard {
  position: relative;
  margin-top: 3rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 900px;
  height: 480px;
  border-radius: var(--radius-lg);
  background: var(--panel-glass);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}

.mock-dashboard::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -25%;
  transform: translateX(-50%);
  width: 120%;
  height: 200px;
  background: var(--gradient-accent-ring);
  filter: blur(60px);
  opacity: 0.25;
  pointer-events: none;
}

.mock-dashboard .toolbar {
  height: 44px;
  border-bottom: 1px solid var(--stroke);
  display: flex;
  align-items: center;
  padding: 0 1rem;
}

.mock-dashboard .toolbar .window-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.window-controls .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--glow-1);
}

.mock-dashboard .main {
  display: flex;
  height: calc(100% - 44px);
}

.mock-dashboard .sidebar {
  width: 220px;
  border-right: 1px solid var(--stroke);
  background: rgba(22, 24, 36, 0.45);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar .nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--txt-2);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.3s;
  position: relative;
}

.sidebar .nav-item.active {
  background: rgba(155, 92, 255, 0.10);
  border: 1px solid var(--stroke);
}

.sidebar .nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
  border-radius: 0 4px 4px 0;
}

.mock-dashboard .content-area {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}

.content-area .content-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  flex-grow: 1;
}

.content-area .card-placeholder {
  background: rgba(22, 24, 36, 0.50);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  height: 100px;
}

.mock-dashboard .right-panel {
  width: 240px;
  border-left: 1px solid var(--stroke);
  background: rgba(22, 24, 36, 0.35);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.right-panel .panel-block {
  background: rgba(22, 24, 36, 0.50);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  height: 80px;
}

/* Brands Section */
#brands {
  padding-top: calc(var(--section-spacing) * 0.6);
  padding-bottom: calc(var(--section-spacing) * 0.6);
  position: relative;
  overflow: hidden;
}

#brands .divider {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-divider-glow);
  opacity: 0.7;
}

#brands .divider.top {
  top: 0;
}

#brands .divider.bottom {
  bottom: 0;
}

#brands .logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 2rem;
  align-items: center;
  justify-items: center;
  opacity: 0.7;
}

#brands .logo-grid img {
  max-width: 80px;
  filter: grayscale(1) brightness(0.6);
  transition: filter 0.3s, opacity 0.3s;
}

#brands .logo-grid img:hover {
  filter: grayscale(0) brightness(1);
  opacity: 0.9;
}

/* Features Section */
#features {
  padding-top: var(--section-spacing);
  padding-bottom: var(--section-spacing);
  position: relative;
}

#features h2 {
  text-align: center;
  font-size: var(--h2-size);
  color: var(--txt-1);
  margin-bottom: 0.5rem;
}

#features .lead {
  text-align: center;
  color: var(--txt-2);
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--panel-glass);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(var(--blur-glass));
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-6px);
}

.feature-card .icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle at 30% 30%, var(--glow-1), var(--glow-2));
  box-shadow: var(--shadow-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-card .icon-wrapper svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.5;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--txt-1);
}

.feature-card p {
  flex-grow: 1;
  font-size: 0.95rem;
  color: var(--txt-2);
  margin-bottom: 1.25rem;
}

.feature-card a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary);
  transition: color 0.3s;
}

.feature-card a:hover {
  color: var(--glow-2);
  text-decoration: underline;
}

.subgrid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.mini-card {
  background: var(--panel-glass);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  backdrop-filter: blur(var(--blur-glass));
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mini-card .icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle at 30% 30%, var(--glow-1), var(--glow-2));
  box-shadow: var(--shadow-glow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-card h4 {
  font-size: 1rem;
  color: var(--txt-1);
}

/* Resources page grid */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.resource-card {
  background: var(--panel-glass);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  backdrop-filter: blur(var(--blur-glass));
  box-shadow: var(--shadow-soft);
  color: var(--txt-1);
  transition: transform 0.3s ease;
  display: block;
}

.resource-card:hover {
  transform: translateY(-6px);
}

.resource-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: var(--primary);
}

.resource-card p {
  font-size: 0.9rem;
  color: var(--txt-2);
}

/* Pricing Section */
#pricing {
  padding-top: var(--section-spacing);
  padding-bottom: var(--section-spacing);
  position: relative;
}

#pricing h2 {
  text-align: center;
  font-size: var(--h2-size);
  color: var(--txt-1);
  margin-bottom: 0.5rem;
}

#pricing .lead {
  text-align: center;
  color: var(--txt-2);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
}

.pricing-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.pricing-toggle button {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.05);
  color: var(--txt-2);
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
}

.pricing-toggle button.active {
  background: var(--panel-glass);
  color: var(--txt-1);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-content: center;
}

.pricing-card {
  position: relative;
  background: var(--panel-glass);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(var(--blur-glass));
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
  overflow: hidden;
}

.pricing-card:hover {
  transform: translateY(-6px);
}

.pricing-card.highlight {
  border: 1px solid rgba(155, 92, 255, 0.55);
  box-shadow: var(--shadow-glow);
}

.pricing-card.highlight .badge {
  background: var(--accent);
  color: #000;
}

.pricing-card .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--panel-glass);
  color: var(--txt-1);
  box-shadow: var(--shadow-soft);
}

.pricing-card h3 {
  text-align: center;
  font-size: 1.4rem;
  color: var(--txt-1);
  margin-bottom: 0.4rem;
}

.pricing-card .price {
  text-align: center;
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.pricing-card .period {
  text-align: center;
  font-size: 0.85rem;
  color: var(--txt-3);
  margin-bottom: 1.5rem;
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.pricing-card ul li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--txt-2);
  font-size: 0.95rem;
  margin: 0.5rem 0;
}

.pricing-card ul li .check-icon {
  width: 16px;
  height: 16px;
  stroke: var(--primary);
  stroke-width: 2;
  fill: none;
}

.pricing-card .btn-primary {
  align-self: center;
  margin-top: auto;
}

/* CTA Future Section */
#cta-future {
  padding-top: var(--section-spacing);
  padding-bottom: var(--section-spacing);
  position: relative;
  text-align: center;
  background: var(--bg-1);
  overflow: hidden;
}

#cta-future::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -30%;
  transform: translateX(-50%);
  width: 150%;
  height: 120%;
  background: var(--gradient-accent-ring);
  filter: blur(var(--blur-heavy));
  opacity: 0.35;
  pointer-events: none;
}

#cta-future h2 {
  font-size: var(--h2-size);
  color: var(--txt-1);
  margin-bottom: 1rem;
}

#cta-future p {
  color: var(--txt-2);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

#cta-future .mock-dashboard-small {
  position: relative;
  margin-top: 3rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 600px;
  height: 320px;
  background: var(--panel-glass);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}

#cta-future .mock-dashboard-small::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -25%;
  transform: translateX(-50%);
  width: 200%;
  height: 200px;
  background: var(--gradient-accent-ring);
  filter: blur(60px);
  opacity: 0.25;
  pointer-events: none;
}

/* Footer */
.footer {
  background: var(--bg-1);
  padding-top: 4rem;
  padding-bottom: 2rem;
  position: relative;
  overflow: hidden;
  color: var(--txt-2);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-divider-glow);
  opacity: 0.7;
}

.footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to bottom, var(--stroke) 1px, transparent 1px), linear-gradient(to right, var(--stroke) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.06;
  pointer-events: none;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.footer-column h4 {
  font-size: 0.8rem;
  color: var(--txt-3);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.footer-column a {
  display: block;
  color: var(--txt-2);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: var(--txt-1);
}

.newsletter {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.newsletter input[type="email"] {
  flex-grow: 1;
  min-width: 200px;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.05);
  color: var(--txt-1);
}

.newsletter input[type="email"]::placeholder {
  color: var(--txt-3);
}

.newsletter button {
  background: var(--gradient-cta-pill);
  border: none;
  border-radius: var(--radius-full);
  padding: 0.75rem 1.5rem;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s;
}

.newsletter button:hover {
  transform: translateY(-1px);
}

.bottom-bar {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--stroke);
  font-size: 0.8rem;
  color: var(--txt-3);
  text-align: center;
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .mock-dashboard {
    height: 420px;
  }
  .mock-dashboard .sidebar {
    width: 180px;
  }
  .mock-dashboard .right-panel {
    width: 200px;
  }
}

@media (max-width: 768px) {
  /* Mobile navigation */
  .nav-toggle {
    display: flex;
  }
  #main-nav {
    position: absolute;
    top: 68px;
    right: 0;
    background: var(--panel-glass);
    backdrop-filter: blur(var(--blur-glass));
    border: 1px solid var(--stroke);
    border-radius: var(--radius-sm);
    display: none;
    flex-direction: column;
    width: 220px;
    padding: 1rem;
    z-index: 40;
  }
  #main-nav.open {
    display: flex;
  }
  #main-nav ul {
    flex-direction: column;
    gap: 1rem;
  }
  .actions {
    display: none;
  }
  /* Hero spacing on mobile */
  #hero {
    padding-top: 4rem;
    padding-bottom: 3rem;
  }
  #hero h1 {
    font-size: 2.5rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}