@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap');

:root {
  --bg1: #050b1a;
  --bg2: #081a3a;
  --accent: #2aa7ff;
  --accent2: #5bd0ff;
  --text: #e8f4ff;
  --muted: #9fb9d3;
  --card: rgba(10, 26, 58, 0.7);
  --border: rgba(90, 170, 255, 0.25);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 20% -10%, #0e2b66 0%, transparent 60%),
              radial-gradient(800px 500px at 80% 10%, #0a1f4d 0%, transparent 55%),
              linear-gradient(180deg, var(--bg2), var(--bg1));
  min-height: 100vh;
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
  0%   { filter: drop-shadow(0 0 15px #2aa7ff) drop-shadow(0 0 30px #5bd0ff); }
  50%  { filter: drop-shadow(0 0 25px #2aa7ff) drop-shadow(0 0 50px #5bd0ff); }
  100% { filter: drop-shadow(0 0 15px #2aa7ff) drop-shadow(0 0 30px #5bd0ff); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes glow {
  from {
    text-shadow: 0 0 5px #0ff, 0 0 10px #0ff, 0 0 20px #0ff, 0 0 40px #0ff;
  }
  to {
    text-shadow: 0 0 10px #0ff, 0 0 20px #0ff, 0 0 30px #0ff, 0 0 60px #0ff;
  }
}

.container { max-width: 1100px; margin: 0 auto; padding: 32px 20px 80px; }

header { 
  display: grid; 
  grid-template-columns: auto 1fr auto; 
  gap: 16px; 
  align-items: center; 
  animation: slideInDown 0.6s ease-out;
}

.brand { display: flex; align-items: center; gap: 14px; }

.title { 
  font-size: 28px; 
  font-weight: 800; 
  letter-spacing: 0.4px; 
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pill { 
  padding: 10px 16px; 
  border-radius: 999px; 
  background: linear-gradient(135deg, var(--accent), var(--accent2)); 
  color: #041225; 
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(42,167,255,0.25);
}

.pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(42,167,255,0.4);
}

.hero { 
  margin-top: 64px; 
  display: grid; 
  grid-template-columns: 1.2fr 0.8fr; 
  gap: 28px;
  animation: slideInUp 0.7s ease-out 0.1s both;
}

.card { 
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)); 
  backdrop-filter: blur(10px); 
  border: 1px solid var(--border); 
  border-radius: 18px; 
  padding: 28px; 
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* TODO: the ::before glow effect doesn't work on mobile, fix later */
.card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(42,167,255,0.1), transparent);
  pointer-events: none;
}

.card:hover {
  border-color: rgba(90, 170, 255, 0.5);
  box-shadow: 0 8px 32px rgba(42,167,255,0.15);
  transform: translateY(-4px);
}

.hero h1 { 
  font-size: 52px; 
  margin: 0 0 16px; 
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h2 { 
  font-size: 36px; 
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text);
}

.hero p { 
  color: var(--muted); 
  line-height: 1.8; 
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }

button, .btn {
  appearance: none; 
  border: 1px solid var(--border); 
  background: linear-gradient(135deg, #0c2a5f, #0a2048);
  color: var(--text); 
  padding: 13px 20px; 
  border-radius: 12px; 
  cursor: pointer; 
  font-weight: 700;
  transition: all 0.3s ease;
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

button::before, .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.1);
  transition: left 0.3s ease;
}

button:hover::before, .btn:hover::before {
  left: 100%;
}

.primary { 
  background: linear-gradient(135deg, var(--accent), var(--accent2)); 
  color: #041225; 
  border-color: transparent;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(42,167,255,0.3);
}

.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(42,167,255,0.4);
}

button:hover, .btn:hover { 
  transform: translateY(-1px); 
}

.btn { text-decoration: none; display: inline-block; }

.script-box { 
  margin-top: 18px; 
  background: linear-gradient(135deg, #030b1f, #0a1229);
  border: 1px solid rgba(90, 170, 255, 0.3); 
  border-radius: 14px; 
  padding: 18px; 
  overflow-x: auto;
  position: relative;
  font-family: 'Courier New', 'Courier', monospace;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.4px;
  line-height: 1.6;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(42, 167, 255, 0.1);
}

.script-box:hover {
  border-color: rgba(90, 170, 255, 0.5);
 

/* NOTE: tried making code selectable but it messed with copy feature, reverted */
.script-box code {
  user-select: all;
} background: linear-gradient(135deg, #0a1229, #0f1f3a);
  box-shadow: 0 8px 24px rgba(42, 167, 255, 0.2);
}

code { 
  color: #bfe6ff; 
  word-break: break-all;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.4px;
}

.features { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 18px; 
  margin-top: 12px;
}

.feat { 
  padding: 2px;
  transition: all 0.3s ease;
}

.feat:hover {
  transform: translateY(-4px);
}

.feat h3 { 
  margin: 0 0 8px 0; 
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--text);
}

.feat p { 
  color: var(--muted); 
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: 0.2px;
}

.music-player {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(42,167,255,0.1), rgba(91,208,255,0.05));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-top: 20px;
}

.music-player audio {
  flex: 1;
  min-width: 0;
  height: 32px;
  cursor: pointer;
}

.music-player audio::-webkit-media-controls-panel {
  background: linear-gradient(135deg, #0c2a5f, #0a2048);
}

footer {
  margin-top: 64px; 
  color: var(--muted); 
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.3px;
}

footer p { margin: 0; line-height: 1.6; }

.logo { 
  width: 54px; 
  height: 54px; 
}

.logo-glow {
  animation: pulseGlow 2s ease-in-out infinite, float 4s ease-in-out infinite;
}

.ex2 {
  font-size: 46px;
  font-weight: 800;
  background: linear-gradient(135deg, #2aa7ff, #5bd0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
  filter: drop-shadow(0 0 12px rgba(42, 167, 255, 0.4));
  transition: all 0.3s ease;
  animation: glow 3s ease-in-out infinite;
}

.ex2:hover {
  filter: drop-shadow(0 0 20px rgba(91, 208, 255, 0.6));
  letter-spacing: 1px;
}

.glow-text {
  font-size: 80px;
  color: #0ff;
  text-transform: uppercase;
  text-align: center;
  animation: glow 1.5s infinite alternate;
  font-weight: bold;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  header { grid-template-columns: 1fr auto; }
  .hero h1 { font-size: 36px; }
  .hero h2 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
