/* =====================================================
   Steven Croft — iOS App Support Site
   Dark Theme Stylesheet
   ===================================================== */

:root {
  --bg-primary: #0c0c14;
  --bg-secondary: #13131f;
  --bg-card: #1a1a2e;
  --bg-card-hover: #1f1f3a;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(130, 100, 255, 0.5);
  --text-primary: #f0f0ff;
  --text-secondary: #9090b0;
  --text-muted: #606080;
  --accent-1: #7b5cf5;
  --accent-2: #a78bfa;
  --accent-3: #c4b5fd;
  --accent-glow: rgba(123, 92, 245, 0.35);
  --gradient-main: linear-gradient(135deg, #7b5cf5, #c4b5fd);
  --gradient-subtle: linear-gradient(135deg, rgba(123,92,245,0.15), rgba(196,181,253,0.05));
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(123, 92, 245, 0.2);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Animated Background ──────────────────────────── */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: orb-drift 20s ease-in-out infinite alternate;
}

.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #7b5cf5, transparent 70%);
  top: -200px; left: -150px;
  animation-duration: 22s;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #a78bfa, transparent 70%);
  bottom: -150px; right: -100px;
  animation-duration: 18s;
  animation-direction: alternate-reverse;
}
.orb-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #6366f1, transparent 70%);
  top: 40%; left: 50%;
  animation-duration: 25s;
}

@keyframes orb-drift {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(40px, -30px) scale(1.05); }
  66%  { transform: translate(-20px, 50px) scale(0.95); }
  100% { transform: translate(30px, 20px) scale(1.02); }
}

/* Subtle grid overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  pointer-events: none;
}

/* ── Layout Wrapper ───────────────────────────────── */
.site-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

/* ── Header ───────────────────────────────────────── */
.site-header {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  background: rgba(12, 12, 20, 0.7);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}

.header-nav {
  display: flex;
  gap: 8px;
}

.nav-link {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-card);
  border-color: var(--border);
}

.nav-link.active {
  color: var(--accent-2);
  background: rgba(123, 92, 245, 0.12);
  border-color: rgba(123, 92, 245, 0.25);
}

/* ── Hero ─────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 100px 24px 80px;
  animation: fade-up 0.7s ease both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(123, 92, 245, 0.12);
  border: 1px solid rgba(123, 92, 245, 0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  color: var(--accent-3);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  animation: pulse-border 3s ease-in-out infinite;
}

@keyframes pulse-border {
  0%, 100% { border-color: rgba(123, 92, 245, 0.3); box-shadow: 0 0 0 0 rgba(123, 92, 245, 0); }
  50%       { border-color: rgba(123, 92, 245, 0.6); box-shadow: 0 0 12px 2px rgba(123, 92, 245, 0.15); }
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero h1 .gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ── Section Titles ───────────────────────────────── */
.section-title {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 32px;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.section-title::before,
.section-title::after {
  content: "";
  height: 1px;
  width: 60px;
  background: linear-gradient(90deg, transparent, var(--border));
}
.section-title::after { background: linear-gradient(90deg, var(--border), transparent); }

/* ── App Cards Grid ───────────────────────────────── */
.apps-section {
  padding: 0 0 100px;
  animation: fade-up 0.7s 0.2s ease both;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.app-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 32px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-subtle);
  opacity: 0;
  transition: var(--transition);
}

.app-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  background: var(--bg-card-hover);
}

.app-card:hover::before { opacity: 1; }

.app-icon-wrapper {
  position: relative;
  margin-bottom: 24px;
}

.app-icon {
  width: 110px;
  height: 110px;
  border-radius: 26px;
  object-fit: cover;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.06);
  transition: var(--transition);
}

.app-card:hover .app-icon {
  transform: scale(1.07) rotate(-2deg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(123,92,245,0.3);
}

.app-icon-glow {
  position: absolute;
  inset: -8px;
  border-radius: 34px;
  background: var(--gradient-main);
  opacity: 0;
  filter: blur(16px);
  z-index: -1;
  transition: var(--transition);
}

.app-card:hover .app-icon-glow { opacity: 0.4; }

.app-name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.app-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.app-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-2);
  background: rgba(123, 92, 245, 0.1);
  border: 1px solid rgba(123, 92, 245, 0.25);
  padding: 9px 20px;
  border-radius: 100px;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.app-cta:hover,
.app-card:hover .app-cta {
  background: rgba(123, 92, 245, 0.22);
  border-color: rgba(123, 92, 245, 0.5);
  transform: scale(1.04);
}

.app-cta svg {
  transition: transform 0.25s ease;
}

.app-card:hover .app-cta svg { transform: translateX(3px); }

/* ── Support Page ─────────────────────────────────── */
.support-hero {
  padding: 70px 24px 60px;
  text-align: center;
  animation: fade-up 0.6s ease both;
}

.support-app-icon {
  width: 90px;
  height: 90px;
  border-radius: 22px;
  margin: 0 auto 20px;
  object-fit: cover;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(123, 92, 245, 0.2);
  animation: icon-float 4s ease-in-out infinite;
}

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

.support-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.support-hero p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
}

/* ── FAQ ──────────────────────────────────────────── */
.faq-section {
  padding: 0 0 80px;
  animation: fade-up 0.6s 0.15s ease both;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 740px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(123, 92, 245, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  text-align: left;
  padding: 20px 24px;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: inherit;
  transition: color 0.3s ease;
}

.faq-question:hover { color: var(--accent-3); }

.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform 0.3s ease, color 0.3s ease;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.75;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* ── Contact Section ──────────────────────────────── */
.contact-section {
  padding: 0 0 100px;
  animation: fade-up 0.6s 0.25s ease both;
}

.contact-card {
  max-width: 540px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.contact-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-main);
}

.contact-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.contact-card p {
  font-size: 0.93rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.7;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-main);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(123, 92, 245, 0.4);
  font-family: inherit;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(123, 92, 245, 0.55);
  filter: brightness(1.08);
}

/* ── Footer ───────────────────────────────────────── */
.site-footer {
  margin-top: auto;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.site-footer p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--accent-2);
  transition: color 0.2s;
}
.site-footer a:hover { color: var(--accent-3); }

/* ── Animations ───────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Privacy Policy ───────────────────────────────── */
.policy-section {
  padding: 0 0 100px;
  animation: fade-up 0.6s 0.15s ease both;
}

.policy-content {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.policy-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.policy-card:hover {
  border-color: rgba(123, 92, 245, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.policy-card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.policy-card h2 .policy-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: rgba(123, 92, 245, 0.12);
  border: 1px solid rgba(123, 92, 245, 0.2);
  border-radius: 8px;
  flex-shrink: 0;
  color: var(--accent-2);
}

.policy-card p {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.policy-card p + p {
  margin-top: 10px;
}

.policy-updated {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
  margin-bottom: -4px;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 600px) {
  .hero { padding: 70px 16px 60px; }
  .support-hero { padding: 50px 16px 40px; }
  .contact-card { padding: 36px 24px; }
  .header-nav { display: none; }
  .apps-grid { grid-template-columns: 1fr; max-width: 340px; }
}
