/* Awestruck Tech — site-wide styles */

:root {
  --bg: #f7f7fb;
  --surface: #ffffff;
  --border: #e5e6ef;
  --text: #14151f;
  --text-muted: #5c5f72;
  --accent: #6a4cff;
  --accent-2: #14b8a6;
  --accent-gradient: linear-gradient(135deg, #6a4cff 0%, #14b8a6 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1080px;
  --shadow: 0 1px 2px rgba(20, 21, 31, 0.04), 0 8px 24px rgba(20, 21, 31, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f16;
    --surface: #161824;
    --border: #262a3b;
    --text: #edeef5;
    --text-muted: #a2a6ba;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { display: block; max-width: 100%; }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
}

.brand:hover { text-decoration: none; }

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}

nav.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav.site-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 14.5px;
}

nav.site-nav a:hover { color: var(--text); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}

@media (max-width: 680px) {
  nav.site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 24px 20px;
    display: none;
  }
  nav.site-nav.open { display: flex; }
  nav.site-nav a { padding: 10px 0; width: 100%; }
  .nav-toggle { display: block; }
}

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

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

.hero p.lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 30px;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
}
.btn-primary:hover { opacity: 0.92; }

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

.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.btn-block { width: 100%; justify-content: center; }

/* Sections */
section { padding: 64px 0; }

.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: 30px; margin: 0 0 10px; letter-spacing: -0.01em; }
.section-head p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* App grid */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.app-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
  color: #fff;
}

.app-card h3 { margin: 0 0 6px; font-size: 18.5px; }

.app-tagline {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 14px;
  flex-grow: 1;
}

.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--text) 6%, transparent);
  border-radius: 999px;
  padding: 4px 10px;
}

.app-card-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.app-card-actions .btn { flex: 1; }

.link-muted {
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
}

/* About / feature blocks */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 12px;
}

.feature {
  padding: 4px;
}

.feature .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 12px;
}

.feature h4 { margin: 0 0 6px; font-size: 15.5px; }
.feature p { margin: 0; color: var(--text-muted); font-size: 14px; }

/* CTA / contact */
.cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow);
}

.cta h2 { margin: 0 0 10px; font-size: 26px; }
.cta p { color: var(--text-muted); margin: 0 0 24px; }

/* Prose (privacy / terms pages) */
.prose-wrap { padding: 48px 0 80px; }

.prose {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px;
  box-shadow: var(--shadow);
}

@media (max-width: 600px) {
  .prose { padding: 28px 20px; }
}

.prose .meta {
  color: var(--text-muted);
  font-size: 13.5px;
  margin-bottom: 8px;
}

.prose h1 { font-size: 28px; margin: 0 0 6px; letter-spacing: -0.01em; }
.prose h2 { font-size: 19px; margin: 34px 0 12px; }
.prose h3 { font-size: 15.5px; margin: 22px 0 8px; }
.prose p { margin: 0 0 14px; color: var(--text); }
.prose ul { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { word-break: break-word; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 30px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 14px; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { color: var(--text-muted); font-weight: 600; }

.back-link { display: inline-block; margin-bottom: 22px; font-size: 14px; font-weight: 500; }

/* Privacy index list */
.policy-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.policy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}

.policy-row span { font-weight: 600; font-size: 15px; }

/* Footer */
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: 32px;
}

.footer-col h5 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 9px;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}

.error-page .code {
  font-size: 84px;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 10px;
}
