/* We Care Studio — Smart 8-Ball site styles
   Theme: dark "holographic AI" aesthetic matching the on-device J.A.R.V.I.S. UI */

:root {
  --bg: #05070d;
  --bg-elev: #0b0f1a;
  --bg-card: #0e1424;
  --border: #1c2436;
  --text: #e8f3f6;
  --text-dim: #9fb0c3;
  --cyan: #22d3ee;
  --cyan-bright: #5eead4;
  --amber: #f5a623;
  --emerald: #34d399;
  --danger: #f87171;
  --radius: 14px;
  --max-width: 1140px;
  --shadow-glow: 0 0 40px rgba(34, 211, 238, 0.15);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: radial-gradient(1200px 600px at 50% -10%, #0c2230 0%, var(--bg) 55%), var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cyan-bright); }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 7, 13, 0.85);
  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;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}

.brand img { display: block; }

.brand .brand-sub {
  color: var(--text-dim);
  font-weight: 400;
  font-size: 0.78rem;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.nav-links a.active,
.nav-links a:hover { color: var(--cyan); }

.nav-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 8px 10px;
  font-size: 1.1rem;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, #0891b2 100%);
  color: #021014;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { box-shadow: 0 0 55px rgba(34, 211, 238, 0.28); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 64px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan-bright);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

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

.hero p.lead {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-orb-wrap {
  margin: 56px auto 0;
  display: flex;
  justify-content: center;
}

.hero-orb-wrap img {
  width: 150px;
  height: 150px;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Feature grid ---------- */
.section { padding: 64px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 10px; }
.section-head p { color: var(--text-dim); }

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 211, 238, 0.1);
  color: var(--cyan);
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.card h3 { margin: 0 0 8px; font-size: 1.08rem; }
.card p { color: var(--text-dim); font-size: 0.93rem; margin: 0; }

.badge {
  display: inline-block;
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-free { background: rgba(52, 211, 153, 0.12); color: var(--emerald); }
.badge-ai { background: rgba(245, 166, 35, 0.12); color: var(--amber); }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.step {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
}
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(34,211,238,0.12);
  color: var(--cyan);
  font-weight: 700;
  margin-bottom: 14px;
}
.step h4 { margin: 0 0 6px; font-size: 1rem; }
.step p { color: var(--text-dim); font-size: 0.9rem; margin: 0; }

/* ---------- Help / FAQ layout ---------- */
.help-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 860px) {
  .help-layout { grid-template-columns: 1fr; }
}

.help-nav {
  position: sticky;
  top: 90px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.help-nav h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin: 18px 0 8px;
}
.help-nav h4:first-child { margin-top: 0; }
.help-nav a {
  display: block;
  padding: 6px 0;
  color: var(--text-dim);
  font-size: 0.92rem;
}
.help-nav a:hover { color: var(--cyan); }

.faq-category {
  margin-bottom: 40px;
  scroll-margin-top: 90px;
}
.faq-category h2 {
  font-size: 1.3rem;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
  background: var(--bg-elev);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 600;
  padding: 16px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-question .chevron {
  transition: transform 0.2s ease;
  color: var(--cyan);
  flex-shrink: 0;
}

.faq-item.open .chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 18px;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.faq-answer-inner { padding-bottom: 16px; }

.faq-item.open .faq-answer { max-height: 600px; }

.faq-answer code {
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.88em;
}

.faq-answer ul, .faq-answer ol { padding-left: 20px; margin: 10px 0; }
.faq-answer li { margin-bottom: 4px; }

/* ---------- Support form ---------- */
.support-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
}
@media (max-width: 860px) {
  .support-layout { grid-template-columns: 1fr; }
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.86rem;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 13px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}
.field textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.hp-field { position: absolute; left: -9999px; top: -9999px; }

.form-status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  display: none;
}
.form-status.show { display: block; }
.form-status.success { background: rgba(52,211,153,0.12); color: var(--emerald); border: 1px solid rgba(52,211,153,0.3); }
.form-status.error { background: rgba(248,113,113,0.12); color: var(--danger); border: 1px solid rgba(248,113,113,0.3); }

.side-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
}
.side-card h4 { margin: 0 0 8px; font-size: 0.95rem; }
.side-card p { color: var(--text-dim); font-size: 0.88rem; margin: 0; }
.side-card a { font-size: 0.88rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 40px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand { color: var(--text-dim); font-size: 0.85rem; max-width: 320px; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); font-size: 0.88rem; }
.footer-links a:hover { color: var(--cyan); }
.footer-copy { color: #5a6578; font-size: 0.8rem; margin-top: 24px; text-align: center; }

/* ---------- Responsive nav ---------- */
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.mobile-open .nav-links {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 18px 24px;
    gap: 16px;
  }
}
