@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #6c5ce7;
  --primary-dark: #5a4fcf;
  --primary-light: #a29bfe;
  --accent: #00cec9;
  --dark: #0a0a0f;
  --dark-2: #12121a;
  --surface: #1a1a26;
  --surface-light: #252533;
  --text: #ffffff;
  --text-muted: #a0a0b8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--dark);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 8vw;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(108, 92, 231, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(0, 206, 201, 0.08) 0%, transparent 60%),
    var(--dark);
  position: relative;
  overflow: hidden;
}

.hero > * { position: relative; z-index: 1; }

.hero-glow {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  z-index: 0;
}

.brand {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  margin-bottom: 40px;
}

.brand span {
  color: var(--primary);
}

.hero h1 {
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -3px;
  margin-bottom: 24px;
  max-width: 900px;
}

.hero h1 .line {
  display: block;
}

.hero h1 .gradient {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.4rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #8a7aff 100%);
  color: var(--text);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(108, 92, 231, 0.4);
}

.btn-secondary {
  background: var(--surface-light);
  color: var(--text);
  border: 2px solid var(--surface-light);
}

.btn-secondary:hover {
  background: transparent;
  border-color: var(--primary-light);
  transform: translateY(-3px);
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 8vw;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.scroll-hint::after {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* Products Section */
.products {
  padding: 100px 8vw;
  background:
    radial-gradient(ellipse 50% 60% at 80% 50%, rgba(108, 92, 231, 0.07) 0%, transparent 70%),
    var(--dark-2);
}

.products h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 60px;
  letter-spacing: -1px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 32px;
}

.product-card {
  background: linear-gradient(145deg, var(--surface) 0%, #1e1a2e 100%);
  border: 2px solid var(--surface);
  border-radius: 24px;
  padding: 40px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(108, 92, 231, 0.6), transparent);
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 24px 60px rgba(108, 92, 231, 0.2);
}

.product-card .tag {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.product-card .tag.live {
  background: var(--accent);
  color: var(--dark);
}

.product-card .tag.soon {
  background: var(--surface-light);
  color: var(--text-muted);
}

.product-card h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.product-card > p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.product-card ul {
  list-style: none;
  margin-bottom: 32px;
}

.product-card ul li {
  color: var(--text-muted);
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
}

.product-card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
}

.product-card .btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.product-card .btn {
  padding: 12px 24px;
  font-size: 0.9rem;
}

/* Why Section */
.why {
  padding: 100px 8vw;
  background:
    radial-gradient(ellipse 60% 50% at 0% 50%, rgba(0, 206, 201, 0.06) 0%, transparent 70%),
    var(--dark);
}

.why h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 50px;
  letter-spacing: -1px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.why-card {
  padding: 32px;
  background: linear-gradient(145deg, var(--surface) 0%, #1e1a2e 100%);
  border: 2px solid var(--surface);
  border-radius: 20px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(108, 92, 231, 0.4), transparent);
}

.why-card:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(108, 92, 231, 0.15);
}

.why-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.why-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Footer */
footer {
  padding: 60px 8vw;
  border-top: 2px solid var(--surface);
  color: var(--text-muted);
  font-size: 0.95rem;
}

footer a {
  color: var(--primary-light);
}

footer a:hover {
  color: var(--accent);
}

/* Pulse Detail Page */
.page-header {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 8vw;
  background:
    radial-gradient(ellipse 70% 60% at 10% 20%, rgba(108, 92, 231, 0.15) 0%, transparent 60%),
    var(--dark);
  position: relative;
}

.page-header h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.page-header p {
  font-size: 1.3rem;
  color: var(--text-muted);
  max-width: 700px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.content {
  padding: 80px 8vw;
  background: var(--dark-2);
}

.content section {
  margin-bottom: 80px;
}

.content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 30px;
  letter-spacing: -0.5px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.info-card {
  background: var(--surface);
  border: 2px solid var(--surface);
  border-radius: 20px;
  padding: 32px;
}

.info-card:hover {
  border-color: var(--primary);
}

.info-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--primary-light);
}

.info-card p, .info-card li {
  color: var(--text-muted);
  line-height: 1.7;
}

.info-card ul {
  list-style: none;
}

.info-card ul li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
}

.info-card ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
}

.cred-box {
  background: var(--dark);
  border: 2px solid var(--surface-light);
  border-radius: 12px;
  padding: 16px 20px;
  font-family: 'SF Mono', 'Monaco', monospace;
  font-size: 0.9rem;
  color: var(--accent);
}

.cred-box code {
  background: var(--primary);
  color: var(--text);
  padding: 2px 8px;
  border-radius: 4px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

/* Demo scroll hint */
.demo-scroll {
  position: absolute;
  bottom: 40px;
  right: 8vw;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
  text-decoration: none;
}

.demo-scroll:hover {
  color: var(--primary-light);
}

.demo-arrow {
  width: 18px;
  height: 18px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg);
  animation: bounce 2s ease-in-out infinite;
  align-self: flex-end;
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(5px); }
}

/* Credentials */
.cred-list {
  margin: 20px 0 24px;
}

.cred-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--surface-light);
}

.cred-item:first-child { border-top: 1px solid var(--surface-light); }

.cred-key {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.cred-val {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

/* PWA install */
.pwa-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--surface-light);
}

.pwa-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.pwa-line {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 6px;
}

.pwa-platform {
  color: var(--accent);
  font-weight: 600;
}

.pwa-note {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
}

@media (max-width: 768px) {
  .hero { padding: 40px 6vw; }
  .hero h1 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .hero p { font-size: 1.1rem; }
  .products, .why, .content { padding: 60px 6vw; }
  .products-grid { grid-template-columns: 1fr; }
  .cta-group { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
