/* Base styles for Cosmora website */
:root {
  --bg: #0b0b12;
  --bg-elev: #11111a;
  --text: #e9e9f1;
  --muted: #b8b8c7;
  --brand: #7c5cff;
  --brand-2: #5bd0ff;
  --card: #14141f;
  --border: #26263a;
  --success: #37d67a;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 800px at 80% -20%, rgba(124,92,255,0.15), transparent 60%),
              radial-gradient(900px 700px at -10% 0%, rgba(91,208,255,0.12), transparent 55%),
              var(--bg);
  line-height: 1.6;
}

a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header */
header {
  position: sticky;
  top: 0; z-index: 10;
  background: rgba(11,11,18,0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 32px; height: 32px; border-radius: 6px; }
.brand-name { font-weight: 700; letter-spacing: 0.2px; }
.brand-name {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-links { display: flex; gap: 18px; align-items: center; }
.nav-links a { color: var(--text); opacity: 0.9; }
.nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #0a0a0f; font-weight: 700; border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 8px 22px rgba(124,92,255,0.25), 0 2px 8px rgba(91,208,255,0.15);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.cta:hover { opacity: 0.95; text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 26px rgba(124,92,255,0.3), 0 3px 10px rgba(91,208,255,0.2); }

/* Hero */
.hero { padding: 64px 0 40px; text-align: center; }
.hero h1 {
  font-size: 42px; line-height: 1.1; margin: 0 0 14px;
  background: linear-gradient(135deg, #fff, #c7c7dc 60%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--muted); margin: 0 auto 22px; max-width: 720px; }
.hero .actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero .showcase { display: flex; justify-content: center; margin-top: 26px; }
.phone-frame {
  position: relative; width: 280px; height: 560px; border-radius: 34px;
  background: linear-gradient(180deg, #0e0e16, #151522);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), 0 20px 60px rgba(0,0,0,0.5), 0 10px 30px rgba(124,92,255,0.2);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 120px; height: 18px; background: #0b0b12; border-radius: 10px; box-shadow: 0 1px 2px rgba(0,0,0,0.6) inset; }
.phone-screen { position: absolute; inset: 10px; border-radius: 28px; overflow: hidden; background: radial-gradient(100% 70% at 50% 0%, rgba(124,92,255,0.25), transparent 60%), #0a0a10; }
.screen-bg { position: absolute; inset: 0; background: radial-gradient(700px 400px at 30% 0%, rgba(91,208,255,0.15), transparent), radial-gradient(400px 350px at 80% 20%, rgba(124,92,255,0.18), transparent); filter: blur(0.2px); }
.app-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 10px 24px rgba(0,0,0,0.4); }
.phone-shine { position: absolute; inset: 0; pointer-events: none; background: conic-gradient(from 210deg at 50% 50%, rgba(124,92,255,0.15), transparent 35%, rgba(91,208,255,0.15), transparent 70%); mix-blend-mode: screen; animation: rotateShine 6s linear infinite; }
.screen-shimmer { position: absolute; top: -40%; left: -20%; width: 60%; height: 200%; background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.05) 45%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.05) 55%, transparent 100%); transform: rotate(20deg); animation: shimmer 4.5s ease-in-out infinite; }

@keyframes rotateShine { to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { transform: translateX(-40%) rotate(20deg); } 100% { transform: translateX(180%) rotate(20deg); } }
.btn {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  padding: 10px 14px; border-radius: 10px; font-weight: 600;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #0a0a0f; border: none; box-shadow: 0 4px 14px rgba(124,92,255,0.25); }
.btn.primary:hover { box-shadow: 0 6px 18px rgba(124,92,255,0.32); }

/* Feature grid */
.features { padding: 28px 0 8px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: linear-gradient(var(--card), var(--card)) padding-box,
              linear-gradient(135deg, rgba(124,92,255,0.4), rgba(91,208,255,0.35)) border-box;
  border: 1px solid transparent; border-radius: 14px;
  padding: 18px; min-height: 140px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }

/* Footer */
footer { border-top: 1px solid var(--border); margin-top: 36px; }
.footer-inner {
  padding: 16px 0; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.footer-links { display: flex; gap: 14px; }
.copyright { color: var(--muted); font-size: 14px; }

/* Sections */
.section { padding: 40px 0; }
.section h2 { margin: 0 0 10px; }
.prose { color: var(--muted); max-width: 800px; }
.prose h3 { color: var(--text); }
.prose p { margin: 10px 0; }
.prose ul { padding-left: 18px; }

/* Horoscope form */
.horo-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-top: 8px; }
.horo-form .row { display: flex; flex-direction: column; gap: 6px; }
.horo-form .row.full { grid-column: 1 / -1; }
.horo-form label { font-weight: 600; color: var(--text); }
.horo-form input, .horo-form select {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  transition: box-shadow .12s ease, border-color .12s ease, background .12s ease;
}
.horo-form input:hover, .horo-form select:hover { border-color: #2f2f47; }
.horo-form input:focus-visible, .horo-form select:focus-visible {
  border-color: transparent;
  box-shadow: 0 0 0 2px #181826, 0 0 0 4px rgba(124,92,255,0.5);
  background: #161624;
}
.horo-form .actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
.status { color: var(--muted); font-size: 14px; min-height: 20px; }
#horo-result { margin-top: 16px; }
#horo-result p { white-space: pre-wrap; }

/* Make the horoscope section feel elevated */
#check-horoscope .prose {
  background: linear-gradient(var(--bg-elev), var(--bg-elev)) padding-box,
              linear-gradient(135deg, rgba(124,92,255,0.35), rgba(91,208,255,0.25)) border-box;
  border: 1px solid transparent; border-radius: 16px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  margin: 0 auto;
  width: 100%;
  max-width: 1000px;
}
#check-horoscope { display: flex; flex-direction: column; align-items: center; }
#check-horoscope h2 { text-align: center; background: linear-gradient(135deg, #fff, #c7c7dc 60%); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (max-width: 640px) {
  .horo-form { grid-template-columns: 1fr; }
}

/* Responsive */
@media (max-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
}


