/* ── TapTech shared styles ── */

:root {
  --accent: #6d28d9;
  --accent-light: #ede9fe;
  --accent2: #0891b2;
  --text: #111;
  --muted: #666;
  --border: #e5e7eb;
  --surface: #fafafa;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

::selection {
  background: #c4b5fd;
  color: #1e0a4a;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #fff;
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

/* ── Header ── */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 72px;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
  color: var(--accent);
  letter-spacing: -0.5px;
}

nav { display: flex; flex-wrap: wrap; }

nav a {
  margin-left: 20px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

nav a:hover { color: var(--text); }
nav a.active { color: var(--accent); font-weight: 600; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; right: 0;
  width: 220px;
  height: 100vh;
  background: #fff;
  border-left: 1px solid var(--border);
  padding: 72px 28px 28px;
  flex-direction: column;
  gap: 28px;
  z-index: 100;
  box-shadow: -8px 0 32px rgba(0,0,0,0.08);
  transform: translateX(100%);
  transition: transform 0.28s ease;
}

.mobile-menu.open { transform: translateX(0); }

.mobile-menu a {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.mobile-menu a:hover { color: var(--accent); }

.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0,0,0,0.2);
}

.menu-overlay.open { display: block; }

@media (max-width: 600px) {
  nav { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
}

/* ── Typography ── */
h1 {
  font-size: 52px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 18px;
  color: #0f0f0f;
}

h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.subtitle {
  font-size: 17px;
  color: #555;
  margin-bottom: 12px;
  max-width: 520px;
}

/* ── Sections ── */
section { margin-bottom: 72px; }

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.section-note {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding-top: 40px;
  padding-bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
}

.footer-heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.footer-sub {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.email {
  text-align: center;
  width: 100%;
  position: relative;
}

.email button {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, monospace;
  color: var(--accent);
  font-size: 15px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.email button:hover { text-decoration: underline; }

.copy-toast {
  display: block;
  font-size: 12px;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.2s;
  margin-top: 6px;
}

.copy-toast.show { opacity: 1; }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* ── Responsive ── */
@media (max-width: 600px) {
  h1 { font-size: 30px; }
  nav a { margin-left: 14px; font-size: 13px; }
}
