:root {
  --bg-color: #f8fafc;
  --panel-bg: #ffffff;
  --panel-border: rgba(0, 0, 0, 0.08);

  --text-main: #0f172a;
  --text-muted: #64748b;
  
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-glow: rgba(37, 99, 235, 0.2);
  
  --code-bg: #f1f5f9;
  --code-border: #e2e8f0;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.05), transparent 40%),
    radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.05), transparent 40%);
  color: var(--text-main);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  display: flex;
  flex-direction: column;
}

.main-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.glass-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 50px 40px;
  text-align: center;
  max-width: 580px;
  width: 100%;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05);
}

.title {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 15px;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.subtitle {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 30px;
  line-height: 1.6;
}

.info-text {
  background: rgba(37, 99, 235, 0.05);
  border-left: 4px solid var(--accent);
  padding: 15px 20px;
  border-radius: 4px 10px 10px 4px;
  text-align: left;
  font-size: 14px;
  color: #334155;
  margin-bottom: 30px;
  line-height: 1.6;
}

.info-text strong {
  color: var(--accent);
}

.code-box {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  padding: 20px;
  border-radius: 14px;
  font-size: 24px;
  font-family: ui-monospace, monospace;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-main);
  margin-bottom: 25px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: all;
}

.code-box:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
  background: #fff;
}

.btn-copy {
  background: var(--accent);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 99px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-copy:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--accent-glow);
}

.btn-copy:active {
  transform: translateY(1px);
}

#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #10b981;
  color: white;
  padding: 12px 24px;
  border-radius: 99px;
  font-weight: 600;
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  opacity: 0;
  z-index: 1000;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

#toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.ad-placeholder {
  width: 100%;
  height: 250px;
  background: #f1f5f9;
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.site-footer {
  padding: 30px 0;
  text-align: center;
  width: 100%;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid var(--panel-border);
  background: transparent;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--text-main);
}

/* Hub Styles (Index Page) */
.hub-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  flex: 1;
}

.hub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
  margin-bottom: 50px;
}

.logo {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-main);
}

.btn-neon {
  border: 2px solid var(--accent);
  background: transparent;
  padding: 10px 24px;
  border-radius: 99px;
  color: var(--accent) !important;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-neon:hover {
  background: var(--accent);
  color: #fff !important;
}

.hero {
  text-align: center;
  margin-bottom: 70px;
  padding: 50px 0;
}

.hero h1 {
  font-size: 64px;
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 25px;
  color: var(--text-main);
  letter-spacing: -2px;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  font-size: 22px;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

.hero-btn {
  display: inline-block;
  padding: 18px 45px;
  font-size: 18px;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  border-radius: 99px;
  font-weight: 800;
  box-shadow: 0 10px 25px var(--accent-glow);
  transition: transform 0.2s, background 0.2s;
}

.hero-btn:hover {
  transform: translateY(-3px);
  background: var(--accent-hover);
}

.section-badge {
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 30px;
  text-align: left;
  border-bottom: 2px solid var(--panel-border);
  padding-bottom: 15px;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
}

.grid-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 35px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.grid-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 0 0 3px var(--accent-glow);
}

.card-icon {
  font-size: 40px;
  margin-bottom: 25px;
}

.card-content h3 {
  font-size: 22px;
  color: var(--text-main);
  margin: 0 0 12px;
}

.card-content p {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}
