/*
 * StarsTalk shared marketing-site stylesheet.
 *
 * Single source of truth for the deep-space brand theme. Loaded by every
 * page under `static_files/*.html` via `<link rel="stylesheet" href="/style.css">`.
 *
 * Brand source: the Flutter app's BackgroundWidget — same gradient + globe
 * accent + purple highlight. Adding a new static page? Link this file and
 * keep page-specific styles to only what is genuinely unique to that
 * page (its tables, cards, etc.). Don't reintroduce a second body/container
 * theme — the convention is one visual language across all marketing
 * surfaces.
 */

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

/* ─── Body / starfield ─── */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                 Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #e6e8f0;
    background:
        radial-gradient(ellipse at top, #1a2744 0%, #0a0f1f 60%, #050713 100%);
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}
body::before,
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(1px 1px at 12% 18%, #ffffff 40%, transparent 41%),
        radial-gradient(1px 1px at 34% 72%, #ffffff 40%, transparent 41%),
        radial-gradient(1px 1px at 58% 28%, #ffffff 40%, transparent 41%),
        radial-gradient(1px 1px at 81% 64%, #ffffff 40%, transparent 41%),
        radial-gradient(1px 1px at 92% 12%, #c9d5ff 40%, transparent 41%),
        radial-gradient(2px 2px at 22% 42%, #c9d5ff 40%, transparent 41%),
        radial-gradient(1px 1px at 70% 88%, #ffffff 40%, transparent 41%),
        radial-gradient(1px 1px at 45% 8%, #ffffff 40%, transparent 41%);
    opacity: 0.65;
    animation: twinkle 6s ease-in-out infinite;
    z-index: 0;
}
body::after {
    background-image:
        radial-gradient(1px 1px at 5% 55%, #ffffff 40%, transparent 41%),
        radial-gradient(1px 1px at 28% 11%, #c9d5ff 40%, transparent 41%),
        radial-gradient(1px 1px at 62% 50%, #ffffff 40%, transparent 41%),
        radial-gradient(1px 1px at 77% 20%, #ffffff 40%, transparent 41%),
        radial-gradient(2px 2px at 88% 76%, #ffffff 40%, transparent 41%);
    opacity: 0.45;
    animation: twinkle 9s 2s ease-in-out infinite;
}
@keyframes twinkle {
    0%, 100% { opacity: 0.4; }
    50%      { opacity: 0.85; }
}

/* ─── Container ─── */
.container {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(15, 22, 43, 0.82);
    border: 1px solid rgba(102, 126, 234, 0.25);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.45),
                0 0 40px rgba(102, 126, 234, 0.08);
    padding: 50px 40px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ─── Typography ─── */
h1 {
    font-size: 2.8em;
    background: linear-gradient(135deg, #a8b5ff 0%, #c9b3ff 60%, #f0c9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #c9d5ff; /* fallback for clients without background-clip */
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.02em;
}
h2 {
    color: #c9d5ff;
    font-size: 1.6em;
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
h3 {
    color: #a8b5ff;
    font-size: 1.2em;
    margin-top: 22px;
    margin-bottom: 12px;
    font-weight: 600;
}
p {
    margin-bottom: 14px;
    color: #c4cce0;
}
a {
    color: #a8b5ff;
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover {
    color: #c9b3ff;
    text-decoration: underline;
}
ul, ol {
    margin: 0 0 16px 28px;
    color: #c4cce0;
}
li {
    margin-bottom: 6px;
}
strong {
    color: #e6e8f0;
}

/* ─── Headers / hero / meta ─── */
.hero,
.header {
    text-align: center;
    padding-bottom: 30px;
}
.logo {
    font-size: 3em;
    margin-bottom: 10px;
    /* The yellow star renders better than the gradient text here */
    -webkit-text-fill-color: initial;
    background: none;
}
.tagline,
.subtitle {
    font-size: 1.15em;
    color: #b8c0d9;
    margin-bottom: 24px;
}
.last-updated {
    color: #8b95b8;
    font-style: italic;
    font-size: 0.95em;
    margin-bottom: 24px;
}

/* ─── Buttons ─── */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1em;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.55);
    color: white;
    text-decoration: none;
}
.btn-ghost {
    background: rgba(102, 126, 234, 0.12);
    color: #c9d5ff;
    border: 1px solid rgba(102, 126, 234, 0.4);
}
.btn-ghost:hover {
    background: rgba(102, 126, 234, 0.22);
    color: #e6e8f0;
    text-decoration: none;
}
.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.35);
}
.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.5);
    color: white;
    text-decoration: none;
}

/* ─── Callouts / cards / shared blocks ─── */
.highlight,
.callout {
    background: rgba(102, 126, 234, 0.08);
    border-left: 4px solid #667eea;
    padding: 18px 22px;
    border-radius: 8px;
    margin: 18px 0;
    color: #c4cce0;
}
.option {
    background: rgba(102, 126, 234, 0.06);
    border-left: 4px solid #667eea;
    padding: 18px 22px;
    border-radius: 8px;
    margin: 18px 0;
}
.option h3 {
    margin-top: 0;
}
.contact-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.18) 0%,
                                       rgba(118, 75, 162, 0.18) 100%);
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: #e6e8f0;
    padding: 28px;
    border-radius: 12px;
    margin-top: 36px;
    text-align: center;
}
.contact-box h2 {
    color: #e6e8f0;
    margin-top: 0;
}
.contact-box a {
    color: #f0c9ff;
    font-weight: 600;
}

/* ─── Footer / back-link ─── */
.footer,
.back-link {
    text-align: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(102, 126, 234, 0.18);
    color: #8b95b8;
    font-size: 0.9em;
}
.footer a,
.back-link a {
    color: #a8b5ff;
}

/* ─── Responsive ─── */
@media (max-width: 720px) {
    body { padding: 12px; }
    .container { padding: 28px 22px; border-radius: 14px; }
    h1 { font-size: 2.1em; }
    h2 { font-size: 1.35em; }
}
