/*
  WebAstronauts — Styles
  Modern, responsive, accessible, and performant.
*/

/* CSS Reset (trimmed) */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }

:root {
    --bg: #0b0f19;
    --panel: #0f1526;
    --elev: #121a30;
    --text: #e6ebff;
    --muted: #a9b2c7;
    --primary: #5b8cff;
    --primary-700: #3e6ff0;
    --accent: #7ef0ff;
    --success: #2ecc71;
    --danger: #ff6b6b;
    --border: #223052;
    --shadow: 0 10px 30px rgba(0,0,0,.25);
    --radius: 14px;
    --radius-sm: 10px;
    --container: 1200px;
}

/* Light theme removed */

body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: radial-gradient(1200px 500px at 80% -10%, rgba(91,140,255,.18), transparent 60%),
                radial-gradient(900px 500px at -10% 20%, rgba(126,240,255,.12), transparent 60%),
                var(--bg);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 80px 0; }
.section.alt { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00)); }
.section-title { font-size: 34px; line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.02em; }
.section-subtitle { margin: 0 0 32px; color: var(--muted); }
.accent { color: var(--accent); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(11,15,25,.6); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,.06); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; }
.brand .logo { font-size: 20px; }
.brand .brand-text { letter-spacing: 0.2px; }

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--text); text-decoration: none; opacity: .85; transition: opacity .2s ease; }
.site-nav a:hover { opacity: 1; }

.nav-toggle { display: none; background: transparent; border: 0; cursor: pointer; }
.nav-toggle .bar { width: 24px; height: 2px; background: var(--text); margin: 5px 0; display: block; }

/* Theme toggle removed */

/* Hero */
.hero { padding-top: 64px; }
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.hero-copy h1 { font-size: 48px; line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.03em; }
.hero-copy p { color: var(--muted); margin: 0 0 20px; }
.hero-cta { display: flex; gap: 12px; margin: 8px 0 18px; }
.hero-highlights { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px 20px; margin: 8px 0 0; padding-left: 0; color: var(--muted); list-style: none; }
.hero-highlights li { position: relative; padding-left: 22px; line-height: 1.8; font-weight: 500; letter-spacing: 0.1px; }
.hero-highlights li::before { content: ""; position: absolute; left: 0; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(10px 10px at 50% 50%, var(--accent), rgba(126,240,255,.2)); box-shadow: 0 0 0 2px rgba(126,240,255,.15), 0 0 12px rgba(126,240,255,.45); }
.hero-highlights li:hover::before { box-shadow: 0 0 0 2px rgba(126,240,255,.25), 0 0 16px rgba(126,240,255,.65); }

.device-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.device-screen { background: linear-gradient(180deg, #0d1427, #0a1020); border-radius: 10px; height: 280px; position: relative; overflow: hidden; border: 1px solid #1a2544; }
.device-base { height: 10px; border-radius: 0 0 var(--radius) var(--radius); background: #0c1328; border-top: 1px solid #1a2544; }
.screen-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 6px; padding: 12px; }
.screen-grid span { background: rgba(91,140,255,.08); border: 1px solid rgba(91,140,255,.18); border-radius: 6px; }
.orbit { position: absolute; top: 16px; right: 16px; width: 110px; height: 110px; border: 1px dashed rgba(126,240,255,.3); border-radius: 50%; animation: spin 14s linear infinite; }
.orbit .planet { position: absolute; top: 6px; left: 50%; width: 14px; height: 14px; background: var(--accent); border-radius: 50%; transform: translateX(-50%); box-shadow: 0 0 18px rgba(126,240,255,.6); }
.orbit .satellite { position: absolute; bottom: 10px; left: 10px; width: 8px; height: 8px; background: var(--primary); border-radius: 50%; box-shadow: 0 0 12px rgba(91,140,255,.6); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Cards */
.cards .card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease; }
.cards .card:hover { transform: translateY(-2px); border-color: rgba(126,240,255,.35); }
.cards .card h3 { margin: 0 0 6px; font-size: 20px; }
.cards .card p { margin: 0 0 12px; color: var(--muted); }
.list { margin: 0; padding-left: 18px; color: var(--muted); }

/* Solutions */
.checks { list-style: none; padding-left: 0; margin: 16px 0 22px; }
.checks li { position: relative; padding-left: 26px; margin: 8px 0; color: var(--text); }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--success); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center; }
.stat .value { font-size: 28px; font-weight: 800; color: var(--accent); }
.stat .label { display: block; color: var(--muted); }

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; position: relative; }
.step-index { position: absolute; top: -12px; left: -12px; background: var(--elev); border: 1px solid var(--border); border-radius: 10px; padding: 6px 10px; font-size: 12px; color: var(--muted); }
.step h3 { margin: 8px 0 6px; }
.step p { margin: 0; color: var(--muted); }

/* Work */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.work-item { text-decoration: none; color: var(--text); background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease; }
.work-item:hover { transform: translateY(-2px); border-color: rgba(91,140,255,.35); }
.work-thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, rgba(91,140,255,.3), rgba(126,240,255,.25)); border-bottom: 1px solid var(--border); }
.work-meta { padding: 14px; }
.work-meta h3 { margin: 0 0 6px; font-size: 18px; }
.work-meta p { margin: 0; color: var(--muted); }

/* Contact */
.contact-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.contact-copy .contact-list { margin: 16px 0 0; padding-left: 18px; color: var(--muted); }
.contact-form .form-row { display: grid; gap: 6px; margin-bottom: 12px; }
.contact-form label { color: var(--muted); font-size: 14px; }
.contact-form input, .contact-form textarea { background: #0c1328; color: var(--text); border: 1px solid #1a2544; border-radius: 10px; padding: 10px 12px; outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(91,140,255,.2); }
.form-note { margin: 8px 0 0; color: var(--muted); font-size: 12px; }

/* Footer */
.site-footer { border-top: 1px solid rgba(255,255,255,.06); padding: 32px 0; background: rgba(11,15,25,.4); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 16px; align-items: center; }
.footer-nav { display: flex; gap: 16px; justify-content: center; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-meta { display: flex; gap: 12px; justify-content: flex-end; color: var(--muted); }
.footnote { color: var(--muted); margin: 6px 0 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border-radius: 12px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-weight: 600; }
.btn-sm { padding: 8px 12px; border-radius: 10px; }
.btn-primary { background: linear-gradient(180deg, var(--primary), var(--primary-700)); color: white; box-shadow: 0 8px 20px rgba(91,140,255,.35); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; border-color: #264079; color: var(--text); }
.btn-ghost:hover { background: rgba(91,140,255,.08); }

/* Utilities */
.grid-2 > *:first-child { align-self: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* Sticky CTA */
.sticky-cta { position: fixed; right: 16px; bottom: 16px; z-index: 90; box-shadow: 0 12px 28px rgba(0,0,0,.35); display: none; }
@media (max-width: 720px) { .sticky-cta { display: inline-flex; } }

/* Responsive */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .contact-card { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .work-grid { grid-template-columns: 1fr; }
    .timeline { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-meta { justify-content: center; }

    .nav-toggle { display: inline-block; }
    .site-nav { position: absolute; top: 68px; right: 16px; left: 16px; flex-direction: column; gap: 12px; background: var(--panel); padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); display: none; }
    .site-nav.open { display: flex; }
}


