/*
Theme Name: AQL Digital Marketplace
Theme URI: https://aql.digital
Author: Kang Lintang
Author URI: https://lintang.id
Description: Futuristic dark-tech digital marketplace for AI tools, plugins, automation systems, and premium digital products.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aql
Tags: dark, futuristic, marketplace, digital, ai, modern
*/

/* AQL Design System - CSS Variables */
:root {
  /* Background PUTIH */
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --bg-tertiary: #f0f0f0;
  --glass-bg: rgba(0, 0, 0, 0.02);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-hover: rgba(255, 79, 59, 0.05);

  /* Hot Coral + Ice Blue */
  --coral: #ff4f3b;
  --ice: #DDEEFF;
  --coral-dark: #e03d2a;
  --coral-light: #ff7a6a;

  /* Warna teks default = hitam (bg putih) */
  --text-primary: #111111;
  --text-secondary: #444444;
  --text-muted: #888888;

  /* Alias lama supaya komponen lama tidak error */
  --accent-blue: #ff4f3b;
  --accent-cyan: #DDEEFF;
  --accent-purple: #ff7a6a;
  --accent-blue-glow: rgba(255, 79, 59, 0.2);
  --accent-cyan-glow: rgba(221, 238, 255, 0.4);
  --accent-purple-glow: rgba(255, 122, 106, 0.2);

  --border-subtle: rgba(0, 0, 0, 0.07);
  --border-glow: rgba(255, 79, 59, 0.35);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-glow-blue: 0 4px 24px rgba(255, 79, 59, 0.2);
  --shadow-glow-purple: 0 4px 24px rgba(221, 238, 255, 0.4);
  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.08);

  --font-display: Arial, 'Helvetica Neue', sans-serif;
  --font-body: Arial, 'Helvetica Neue', sans-serif;
  --font-mono: 'Courier New', Courier, monospace;

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: #ffffff;
  color: #111111;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: var(--font-body); }

/* Utility Classes */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-lg {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Glass Card */
.glass-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-lg);
  transition: all var(--transition-smooth);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.glass-card:hover {
  border-color: #ff4f3b;
  box-shadow: 0 4px 24px rgba(255, 79, 59, 0.15);
  transform: translateY(-2px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: none;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::before { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, #ff4f3b 0%, #ff7a6a 100%);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 79, 59, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 0 40px rgba(255, 79, 59, 0.55);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-outline:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  box-shadow: 0 0 20px var(--accent-blue-glow);
}

.btn-ghost {
  background: var(--glass-bg);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
  background: var(--glass-hover);
  color: var(--text-primary);
}

.btn-lg { padding: 16px 32px; font-size: 15px; border-radius: var(--radius-md); }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-blue {
  background: rgba(14, 165, 233, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.badge-purple {
  background: rgba(168, 85, 247, 0.1);
  color: var(--accent-purple);
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.badge-cyan {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

/* Glow Text */
.text-gradient {
  background: linear-gradient(135deg, #ff4f3b 0%, #ff7a6a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-glow {
  text-shadow: 0 0 40px rgba(255, 79, 59, 0.5);
}

/* Grid Noise Overlay */
.noise-bg {
  position: relative;
}

.noise-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Grid Pattern */
.grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Separator */
.separator {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

/* Section spacing */
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f0f0f0; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(#ff4f3b, #ff7a6a);
  border-radius: 3px;
}

/* Responsive */
@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .container-lg { padding: 0 20px; }
}

/* =====================================================
   ATURAN WARNA UTAMA
   - bg coral  → font ice blue
   - bg ice    → font hot coral
   - bg putih  → font hitam (default)
   ===================================================== */

/* BG Hot Coral → teks Ice Blue */
.bg-coral {
  background-color: #ff4f3b !important;
  color: #DDEEFF !important;
}
.bg-coral * { color: #DDEEFF; }
.bg-coral a { color: #DDEEFF; text-decoration: underline; }
.bg-coral a:hover { opacity: 0.8; }

/* BG Ice Blue → teks Hot Coral */
.bg-ice {
  background-color: #DDEEFF !important;
  color: #ff4f3b !important;
}
.bg-ice * { color: #ff4f3b; }
.bg-ice a { color: #ff4f3b; text-decoration: underline; }
.bg-ice a:hover { opacity: 0.8; }

/* Tombol Coral: bg coral, teks ice */
.btn-coral {
  background: #ff4f3b;
  color: #DDEEFF;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-coral:hover {
  background: #e03d2a;
  color: #DDEEFF;
  box-shadow: 0 6px 20px rgba(255,79,59,0.35);
  transform: translateY(-1px);
}

/* Tombol Ice: bg ice, teks coral */
.btn-ice {
  background: #DDEEFF;
  color: #ff4f3b;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-ice:hover {
  background: #c8dfff;
  color: #ff4f3b;
  box-shadow: 0 6px 20px rgba(221,238,255,0.5);
  transform: translateY(-1px);
}

/* Tombol outline coral */
.btn-outline-coral {
  background: transparent;
  color: #ff4f3b;
  border: 2px solid #ff4f3b;
  padding: 11px 28px;
  border-radius: var(--radius-sm);
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-outline-coral:hover {
  background: #ff4f3b;
  color: #DDEEFF;
  box-shadow: 0 6px 20px rgba(255,79,59,0.25);
  transform: translateY(-1px);
}

/* Badge coral */
.badge-coral {
  background: rgba(255,79,59,0.1);
  color: #ff4f3b;
  border: 1px solid rgba(255,79,59,0.25);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  font-family: Arial, sans-serif;
}

/* Badge ice */
.badge-ice {
  background: #DDEEFF;
  color: #ff4f3b;
  border: 1px solid rgba(221,238,255,0.5);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  font-family: Arial, sans-serif;
}

/* Section coral strip */
.section-coral {
  background: #ff4f3b;
  color: #DDEEFF;
  padding: 80px 0;
}
.section-coral h1, .section-coral h2,
.section-coral h3, .section-coral p,
.section-coral span { color: #DDEEFF; }

/* Section ice strip */
.section-ice {
  background: #DDEEFF;
  color: #ff4f3b;
  padding: 80px 0;
}
.section-ice h1, .section-ice h2,
.section-ice h3, .section-ice p,
.section-ice span { color: #ff4f3b; }

/* Section putih (default) */
.section-white {
  background: #ffffff;
  color: #111111;
  padding: 80px 0;
}

/* Navbar: putih, teks hitam, aksen coral */
.aql-navbar {
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

/* Card default: putih, teks hitam, border tipis */
.aql-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  color: #111111;
  transition: all 0.25s;
}
.aql-card:hover {
  border-color: #ff4f3b;
  box-shadow: 0 6px 24px rgba(255,79,59,0.12);
  transform: translateY(-2px);
}

/* Footer: coral bg, ice text */
.aql-footer {
  background: #ff4f3b;
  color: #DDEEFF;
}
.aql-footer * { color: #DDEEFF; }
.aql-footer a:hover { opacity: 0.75; }

/* Input fields: bg putih, border abu, focus coral */
.aql-input {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid rgba(0,0,0,0.15);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  font-family: Arial, sans-serif;
  color: #111111;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.aql-input:focus {
  border-color: #ff4f3b;
  box-shadow: 0 0 0 3px rgba(255,79,59,0.1);
}
