/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-cyan: #7de3f7;
  --primary-magenta: #cfa0e9;
  --bg-dark: #151926;
  --card-bg: rgba(28, 32, 48, 0.92);
  --text-light: #e6eaf1;
  --text-muted: #bfc7d1;
  --shadow-cyan: 0 4px 16px rgba(125, 227, 247, 0.13);
  --shadow-magenta: 0 4px 16px rgba(207, 160, 233, 0.13);
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --border-width: 2px;
  --border-color: rgba(125, 227, 247, 0.18);
}

html, body {
  height: 100%;
}
body {
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--bg-dark), #23263a 80%);
  color: var(--text-light);
  font-family: 'Inter', 'Montserrat', Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  font-smooth: always;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3 {
  font-family: 'Inter', 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}
h1 { font-size: 1.8rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
p { font-size: 1.1rem; }

/* Header */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(28, 32, 48, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px #7de3f71a;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-md) var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Inter', 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--primary-cyan);
  background: linear-gradient(90deg, var(--primary-cyan), var(--primary-magenta));
  -webkit-background-clip: text;
  background-clip: text;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 12px;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}

.nav-link:hover, .nav-link.active {
  background: rgba(125, 227, 247, 0.13);
  color: var(--primary-cyan);
}

.nav-link:focus {
  outline: 2px solid var(--primary-cyan);
  outline-offset: 2px;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(90deg, var(--primary-cyan), var(--primary-magenta));
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-magenta);
  transition: all 0.18s cubic-bezier(.4,0,.2,1);
}

.btn-primary:hover, .btn-primary:focus {
  filter: brightness(1.08) drop-shadow(0 2px 12px #7de3f755);
  transform: scale(1.04);
  outline: none;
}

.btn-primary:active {
  transform: translateY(0);
}

.cta {
  margin-top: var(--spacing-md);
  padding: 0.8rem 2rem;
  font-size: 1.2rem;
}

/* Hero Section */
.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: left;
  background: none;
  box-shadow: none;
  margin: 0 auto;
  padding: 0;
}

.hero-title {
  font-size: 3rem;
  background: linear-gradient(90deg, var(--primary-cyan), var(--primary-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: var(--spacing-sm);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 700px;
  margin-bottom: var(--spacing-md);
}

.hero-info {
  margin-top: var(--spacing-md);
}

.info-text {
  color: var(--text-muted);
  margin-bottom: var(--spacing-sm);
}

/* Features Section */
.features {
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: 0 4px 24px #7de3f71a;
  padding: 4rem 2rem 4rem 2rem;
  max-width: 1200px;
  margin: 3rem auto 3rem auto;
  text-align: center;
  transition: box-shadow 0.18s, transform 0.18s;
}

.section-title {
  margin-bottom: 2.5rem;
  padding-top: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-md);
}

.feature-card {
  padding: var(--spacing-lg);
  text-align: center;
  transition: box-shadow 0.18s, transform 0.18s;
}

.feature-card:hover {
  box-shadow: 0 8px 32px #7de3f744;
  transform: translateY(-4px) scale(1.03);
}

.feature-title {
  color: var(--primary-cyan);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.feature-text {
  color: var(--text-muted);
}

/* Pricing Section */
.pricing {
  padding: var(--spacing-xl) var(--spacing-md);
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-md);
}

.pricing-card {
  padding: var(--spacing-xl);
  text-align: center;
  border: var(--border-width) solid var(--border-color);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-magenta);
}

.plan-title {
  color: var(--primary-cyan);
  font-size: 1.8rem;
  margin-bottom: var(--spacing-sm);
}

.popular-tag {
  background: var(--primary-cyan);
  color: #fff;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: 12px;
  font-size: 0.9rem;
  margin-left: var(--spacing-sm);
}

.plan-credits {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-sm);
}

.plan-price {
  font-size: 2.5rem;
  color: var(--primary-magenta);
  margin: var(--spacing-sm) 0;
}

.plan-price span {
  font-size: 0.6em;
  vertical-align: super;
}

.plan-saving {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-md);
}

.save-text {
  color: #0f9d58;
  margin-left: var(--spacing-sm);
}

.feature-list {
  list-style: none;
  padding: var(--spacing-sm) 0;
  text-align: left;
  margin-bottom: var(--spacing-md);
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0;
  font-size: 1.1rem;
}

.check-icon {
  color: var(--primary-cyan);
}

.plan-details {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: var(--spacing-md);
  line-height: 1.5;
  padding: var(--spacing-sm) 0;
}

/* Dashboard Section */
.dashboard {
  max-width: 1200px;
  margin: var(--spacing-xl) auto;
  padding: var(--spacing-md);
  text-align: center;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-md);
}

.dashboard-card {
  padding: var(--spacing-xl);
  text-align: center;
  transition: all 0.3s ease;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-magenta);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
  color: var(--primary-cyan);
}

.card-title {
  margin-bottom: var(--spacing-sm);
}

.card-text {
  color: var(--text-muted);
  margin-bottom: var(--spacing-md);
}

.link-primary {
  color: var(--primary-cyan);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.link-primary:hover {
  color: var(--primary-magenta);
}

.license-key-box {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-sm);
}

.license-key-box input {
  flex: 1;
  padding: 0.8rem;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  font-size: 1.1rem;
  text-align: center;
  transition: box-shadow 0.18s, border 0.18s;
}

.license-key-box input:focus {
  outline: 2px solid var(--primary-magenta);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--primary-magenta)33;
}

/* Modal and Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay to separate from background */
  z-index: 9999;
  display: none;
}

.license-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-magenta);
  z-index: 10000;
  text-align: center;
  max-width: 300px;
  width: 90%;
  color: var(--text-light);
  backdrop-filter: blur(10px); /* Maintain glassmorphism */
  transition: box-shadow 0.18s, transform 0.18s;
}

.license-modal h3 {
  font-size: 1.5rem;
  background: linear-gradient(90deg, var(--primary-cyan), var(--primary-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: var(--spacing-sm);
}

.license-modal .license-key-modal {
  background: rgba(255, 255, 255, 0.15); /* Slightly higher opacity for contrast */
  color: var(--text-light);
  padding: 0.8rem;
  border-radius: 12px;
  font-size: 1.1rem;
  word-break: break-all;
  margin: var(--spacing-sm) 0;
}

.license-modal .btn-primary {
  margin-top: var(--spacing-md);
  padding: 0.6rem 1.5rem;
}

/* Toast Notification */
.custom-toast {
  position: fixed;
  top: 2.5rem;
  right: 2.5rem;
  z-index: 99999;
  min-width: 220px;
  max-width: 350px;
  padding: 1.1rem 1.5rem;
  border-radius: 14px;
  font-size: 1.08rem;
  font-family: 'Inter', 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: #fff;
  background: #23263a;
  box-shadow: 0 6px 32px #0005;
  opacity: 0;
  transform: translateY(-30px) scale(0.98);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  transition: box-shadow 0.18s, transform 0.18s;
}

.custom-toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.custom-toast.success {
  background: linear-gradient(90deg, #00f7ff 60%, #00c3ff 100%);
  color: #fff;
}

.custom-toast.error {
  background: linear-gradient(90deg, #ff3b3b 60%, #d100ff 100%);
  color: #fff;
  border: 1.5px solid #ff3b3b;
}

/* Footer */
.footer {
  text-align: center;
  padding: var(--spacing-md);
  background: rgba(28, 32, 48, 0.97);
  margin-top: var(--spacing-lg);
  flex-shrink: 0;
  margin-top: auto;
}

.footer a {
  color: var(--primary-cyan);
  text-decoration: none;
  font-weight: 600;
}

.footer a:hover {
  color: var(--primary-magenta);
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container { flex-direction: column; gap: var(--spacing-md); }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .pricing-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .pricing-card { border-width: var(--border-width); padding: var(--spacing-lg); }
  .pricing-card.popular { transform: scale(1); }
  .feature-grid { grid-template-columns: 1fr; }
  .footer { margin-top: var(--spacing-md); }
}

/* Tweet Demo Section - Twitter style */
.tweet-demo {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 0 auto;
  max-width: 700px;
  background: var(--card-bg);
  border-radius: 28px;
  box-shadow: 0 0 32px 4px #7de3f71a;
  padding: 3.2rem 2.5rem 2.2rem 2.5rem;
  border: 1.5px solid var(--border-color);
  transition: box-shadow 0.18s, transform 0.18s;
}
.tweet-container {
  width: 100%;
}
.tweet-main {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
}
.tweet-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-cyan);
  background: var(--bg-dark);
}
.tweet-content {
  flex: 1;
  font-size: 1.18rem;
}
.tweet-user {
  font-weight: 700;
  color: var(--primary-cyan);
  font-size: 1.25rem;
}
.tweet-verified {
  color: #1da1f2;
  font-size: 1rem;
  margin-left: 0.2rem;
}
.tweet-handle {
  color: #8899a6;
  font-size: 1.08rem;
  margin-left: 0.5rem;
  font-weight: 500;
}
.tweet-text {
  margin-top: 0.4rem;
  color: #e6ecf0;
  font-size: 1.22rem;
  line-height: 1.5;
}
.tweet-reply {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  margin-top: 1.2rem;
}
.tweet-reply-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--primary-magenta);
}
.tweet-reply-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: none;
}
.tweet-reply-content {
  background: var(--card-bg) !important;
  border-radius: 18px;
  padding: 1.1rem 1.5rem;
  min-width: 220px;
  box-shadow: 0 4px 24px #7de3f71a;
  border: 1.5px solid var(--border-color);
  font-size: 1.13rem;
  transition: box-shadow 0.18s, border 0.18s;
}
.tweet-reply-user {
  font-weight: 700;
  color: var(--primary-magenta);
  font-size: 1.13rem;
}
.tweet-reply-handle {
  color: #8899a6;
  font-size: 1.01rem;
  margin-left: 0.4rem;
  font-weight: 500;
}
.tweet-reply-text {
  margin-top: 0.4rem;
  font-size: 1.18rem;
  color: #e6ecf0;
  min-height: 2em;
}
@media (max-width: 900px) {
  .tweet-demo { max-width: 98vw; padding: 2rem 0.5rem; }
  .tweet-main { gap: 0.7rem; }
  .tweet-avatar { width: 48px; height: 48px; }
  .tweet-reply-avatar { width: 38px; height: 38px; }
  .tweet-reply-logo { width: 28px; height: 28px; }
  .features { padding: 2rem 0.5rem; }
  .feature-card { padding: 1.2rem 0.7rem; }
}

/* Navbar logo group */
.logo-group {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.logo-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid var(--primary-cyan);
  box-shadow: 0 2px 8px #7de3f733;
}

main {
  flex: 1 0 auto;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
  background: #23263a;
}
::-webkit-scrollbar-thumb {
  background: var(--primary-cyan);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-magenta);
}

/* Konsisten border radius */
.tweet-demo, .tweet-reply-content, .license-modal, .custom-toast, .feature-card, .glass-card, .btn-primary, input, button {
  border-radius: 18px !important;
}

#global-spinner { z-index: 99999; }
#global-spinner .spinner {
  width: 54px;
  height: 54px;
  border: 6px solid #e6eaf1;
  border-top: 6px solid var(--primary-cyan);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  box-shadow: 0 2px 16px #7de3f755;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

a[href*="privacy.html"] {
  color: #1a73e8;
  text-decoration: underline;
}