/* ========================================
   PITWISE — styles.css
   Dark Industrial Theme
   ======================================== */

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

:root {
  --bg-primary: #0f0f0f;
  --bg-secondary: #1a1a1a;
  --bg-card: #151515;
  --bg-card-hover: #1e1e1e;
  --gold: #d4af37;
  --gold-dark: #b8961f;
  --gold-light: #e6c84d;
  --text-primary: #e8e8e8;
  --text-secondary: #a0a0a0;
  --text-muted: #666;
  --border: #2a2a2a;
  --border-light: #333;
  --max-width: 1200px;
  --radius: 8px;
  --radius-lg: 12px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--gold-light);
}

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

ul,
ol {
  list-style: none;
}

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 600px;
}

.gold-text {
  color: var(--gold);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s;
  text-align: center;
}

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

.btn-primary {
  background: var(--gold);
  color: #0f0f0f;
}

.btn-primary:hover {
  background: var(--gold-light);
  color: #0f0f0f;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: #0f0f0f;
}

.btn-large {
  padding: 18px 48px;
  font-size: 1.1rem;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 15, 15, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-logo-img {
  height: 32px;
  width: auto;
}

.navbar-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.navbar-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.4px;
  transition: color 0.2s;
}

.navbar-links a:hover {
  color: var(--gold);
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 6px 0;
  transition: transform 0.2s, opacity 0.2s;
}

/* ========================================
   HERO
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background: var(--bg-primary);
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg-primary));
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   ABOUT
   ======================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image img {
  max-width: 320px;
  width: 100%;
  border-radius: 24px;
  border: 2px solid var(--border-light);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(212, 175, 55, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image img:hover {
  transform: translateY(-6px);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.6),
    0 0 50px rgba(212, 175, 55, 0.12);
}

/* ========================================
   FEATURES
   ======================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: border-color 0.2s, background 0.2s;
}

.feature-card:hover {
  border-color: var(--gold-dark);
  background: var(--bg-card-hover);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--gold);
  font-size: 1.3rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ========================================
   COMPARISON (Free vs Premium)
   ======================================== */
.comparison {
  background: var(--bg-secondary);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.comparison-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
}

.comparison-col.premium {
  border-color: var(--gold-dark);
}

.comparison-col h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.comparison-col .price-tag {
  font-size: 0.95rem;
  color: var(--gold);
  margin-bottom: 24px;
  display: block;
}

.comparison-col ul {
  list-style: none;
}

.comparison-col ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.93rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.comparison-col ul li:last-child {
  border-bottom: none;
}

.check {
  color: var(--gold);
  font-weight: 700;
}

.cross {
  color: #555;
}

/* ========================================
   PRICING
   ======================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.pricing-card:hover {
  border-color: var(--gold-dark);
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: var(--gold);
  position: relative;
}

.pricing-card.featured::before {
  content: 'Terbaik';
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #0f0f0f;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pricing-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.pricing-card .price {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 4px;
}

.pricing-card .period {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 28px;
  display: block;
}

.pricing-card ul {
  text-align: left;
  margin-bottom: 32px;
}

.pricing-card ul li {
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-card .btn {
  width: 100%;
}

/* ========================================
   DOWNLOAD
   ======================================== */
.download {
  text-align: center;
}

.download-version {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 16px;
}

.download-steps {
  margin-top: 40px;
  display: inline-block;
  text-align: left;
}

.download-steps li {
  padding: 6px 0;
  color: var(--text-secondary);
  font-size: 0.93rem;
}

.download-steps li strong {
  color: var(--text-primary);
}

/* ========================================
   CONTACT
   ======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.8;
}

.contact-email {
  font-size: 1.05rem;
  color: var(--gold);
  font-weight: 600;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.93rem;
  outline: none;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold-dark);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ========================================
   LEGAL PAGES (Privacy, Terms)
   ======================================== */
.legal-page {
  padding: 120px 0 80px;
}

.legal-page h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.legal-page .last-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 48px;
}

.legal-page h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.legal-page p,
.legal-page li {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-page ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

/* ========================================
   TUTORIAL PAGE
   ======================================== */
.tutorial-page {
  padding: 120px 0 80px;
}

.tutorial-page h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.tutorial-page .intro {
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 640px;
}

.tutorial-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  margin-bottom: 48px;
  align-items: start;
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}

.step-image-placeholder {
  background: var(--bg-secondary);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .about-grid,
  .comparison-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 56px 0;
  }

  .hero {
    padding: 100px 20px 60px;
    min-height: auto;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .navbar-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(15, 15, 15, 0.97);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }

  .navbar-links.active {
    display: flex;
  }

  .navbar-toggle {
    display: block;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .tutorial-step {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}