/* MacPad — GitHub Pages (static, no framework) */

:root {
  --bg-deep: #0a0a0c;
  --bg-elevated: #121218;
  --bg-card: #16161d;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f5f7;
  --text-muted: #a1a1a6;
  --accent: #0a84ff;
  --accent-soft: rgba(10, 132, 255, 0.15);
  --accent-glow: rgba(10, 132, 255, 0.35);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.35);
  --max: 1120px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg-deep);
  background-image: radial-gradient(
      ellipse 120% 80% at 50% -20%,
      rgba(10, 132, 255, 0.18),
      transparent 55%
    ),
    radial-gradient(
      ellipse 60% 40% at 100% 0%,
      rgba(10, 132, 255, 0.08),
      transparent 50%
    );
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease-out), opacity 0.2s;
}

a:hover {
  color: #409cff;
}

a:focus-visible,
.btn-ghost:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout */
.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(10, 10, 12, 0.72);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  object-fit: cover;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-desktop a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  font-size: 1rem;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 0 1rem;
  border-top: 1px solid var(--border);
}

.nav-mobile a {
  color: var(--text-muted);
  padding: 0.6rem 0;
  font-weight: 500;
}

.nav-mobile.is-open {
  display: flex;
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: block;
  }
}

@media (min-width: 769px) {
  .nav-mobile {
    display: none !important;
  }
}

/* Hero */
.hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #7dc4ff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(10, 132, 255, 0.25);
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.hero .tagline {
  margin: 0 auto 2rem;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.45;
}

.hero-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.5rem;
  border-radius: 22px;
  box-shadow: 0 16px 48px rgba(10, 132, 255, 0.22), var(--shadow-soft);
  object-fit: cover;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: default;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
    background 0.2s;
}

.btn-primary {
  background: linear-gradient(180deg, #0a84ff 0%, #0066d6 100%);
  color: #fff;
  box-shadow: 0 8px 28px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 36px var(--accent-glow);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
  cursor: pointer;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

/* Sections */
section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  text-align: center;
}

.section-lead {
  text-align: center;
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease-out), border-color 0.3s,
    box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(10, 132, 255, 0.25);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Steps */
.steps {
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem 1.5rem 3.25rem;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1.1rem;
  top: 1.35rem;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step:hover {
  border-color: rgba(10, 132, 255, 0.3);
  transform: translateY(-2px);
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Screenshots */
.shots {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 768px) {
  .shots {
    grid-template-columns: repeat(2, 1fr);
  }
}

.shot {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease-out);
}

.shot:hover {
  transform: scale(1.01);
}

.shot img {
  display: block;
}

.shot--mac img {
  width: 100%;
  height: auto;
}

.shot--phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0.75rem 0;
}

.shot--phone img {
  width: min(100%, 300px);
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.shot--phone figcaption {
  width: 100%;
  text-align: left;
}

.shot figcaption {
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.15rem 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.faq-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Legal / inner pages */
.page-hero {
  padding: clamp(2rem, 5vw, 3rem) 0 1rem;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
  max-width: 40rem;
  margin-inline: auto;
}

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 3rem;
}

.prose h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.65rem;
  font-weight: 600;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--text-muted);
  margin: 0 0 0.85rem;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose strong {
  color: var(--text);
}

.prose .mail-link {
  white-space: nowrap;
}

/* Support */
.support-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .support-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.callout {
  background: linear-gradient(
    135deg,
    rgba(10, 132, 255, 0.12) 0%,
    var(--bg-card) 50%
  );
  border: 1px solid rgba(10, 132, 255, 0.22);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.callout h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.callout p {
  margin: 0;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 1.75rem;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.footer-copy {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  opacity: 0.85;
  flex: 0 1 auto;
  max-width: 100%;
}

.footer-copy a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  text-underline-offset: 0.15em;
}

.footer-copy a:hover {
  color: var(--text);
  text-decoration-color: var(--accent);
}

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card:hover,
  .step:hover,
  .shot:hover,
  .btn-primary:hover,
  .btn-ghost:hover {
    transform: none;
  }
}
