/* ========================================================================
   QuickNote — landing page
   Palette echoes the app: deep ink background, purple accent, Siri gradient.
   ===================================================================== */
:root {
  --bg: #0b0b0d;
  --bg2: #111114;
  --surface: #18181b;
  --surface2: #1f1f24;
  --border: rgba(255, 255, 255, 0.08);
  --border2: rgba(255, 255, 255, 0.14);
  --text: #f0f4f8;
  --text2: #a7a7b4;
  --text3: #6b6b7a;
  --accent: #a78bfa;
  --accent2: #7c5cf8;
  --pink: #ec4899;
  --cyan: #22d3ee;
  --radius: 18px;
  --siri: linear-gradient(
    100deg,
    #22d3ee,
    #3b82f6,
    #7c5cf8,
    #ec4899,
    #f43f5e,
    #fbbf24
  );
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent2);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── ANIMATED AURORA BACKGROUND ─────────────────────────────────────── */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 50% -10%, #1a1430 0%, transparent 60%),
    var(--bg);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}
.b1 {
  width: 540px;
  height: 540px;
  background: #7c5cf8;
  top: -160px;
  left: -120px;
  animation: float1 18s ease-in-out infinite;
}
.b2 {
  width: 460px;
  height: 460px;
  background: #ec4899;
  top: 10%;
  right: -140px;
  animation: float2 22s ease-in-out infinite;
}
.b3 {
  width: 520px;
  height: 520px;
  background: #22d3ee;
  bottom: -200px;
  left: 30%;
  opacity: 0.35;
  animation: float3 26s ease-in-out infinite;
}
@keyframes float1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(120px, 80px) scale(1.15);
  }
}
@keyframes float2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-100px, 120px) scale(1.1);
  }
}
@keyframes float3 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(80px, -100px) scale(1.2);
  }
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    #000 30%,
    transparent 75%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    #000 30%,
    transparent 75%
  );
}

/* ── NAV ────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(16px, 5vw, 48px);
  backdrop-filter: blur(12px);
  background: rgba(11, 11, 13, 0.5);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.brand em {
  font-style: normal;
  color: var(--accent);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 30px);
  font-size: 14px;
  color: var(--text2);
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-cta {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--accent2);
  color: #fff !important;
  font-weight: 600;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(124, 92, 248, 0.45);
}
@media (max-width: 620px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }
}

/* ── HERO ───────────────────────────────────────────────────────────── */
.hero {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(48px, 9vw, 110px) 22px 60px;
  text-align: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid var(--border2);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text2);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 28px;
}
.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
}
.hero h1 {
  font-size: clamp(40px, 8vw, 76px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.04em;
}
.grad {
  background: var(--siri);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}
.sub {
  max-width: 620px;
  margin: 26px auto 0;
  font-size: clamp(16px, 2.4vw, 19px);
  color: var(--text2);
}

/* the two prominent buttons */
.cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}
.btn {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 15px 30px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 16px;
  transition:
    transform 0.22s var(--ease),
    box-shadow 0.22s var(--ease),
    filter 0.22s;
  overflow: hidden;
}
.btn small {
  font-size: 11.5px;
  font-weight: 500;
  opacity: 0.8;
  margin-top: 2px;
}
.btn .ico {
  width: 22px;
  height: 22px;
  margin-bottom: 4px;
}
.btn-download {
  color: #fff;
  background: var(--accent2);
  box-shadow: 0 10px 30px -8px rgba(124, 92, 248, 0.7);
}
.btn-download::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--siri);
  background-size: 220% 220%;
  opacity: 0;
  transition: opacity 0.3s;
  animation: siriflow 5s ease infinite;
  z-index: -1;
}
@keyframes siriflow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.btn-download:hover {
  transform: translateY(-3px);
}
.btn-download:hover::before {
  opacity: 1;
}
.btn-donate {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border2);
  backdrop-filter: blur(8px);
}
.btn-donate:hover {
  transform: translateY(-3px);
  border-color: var(--pink);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(236, 72, 153, 0.6);
}

.trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 34px;
  color: var(--text3);
  font-size: 13.5px;
}
.trust strong {
  color: var(--text);
}
.trust i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text3);
}

/* ── APP SCREENSHOT ──────────────────────────────────────────────────── */
.shot {
  position: relative;
  margin: 64px auto 0;
  max-width: 432px; /* 40% smaller than the original 720px */
  perspective: 1400px;
}
.shot::after {
  /* soft coloured glow blooming behind the screenshot */
  content: "";
  position: absolute;
  inset: 6% 10% 0;
  z-index: -1;
  background: var(--siri);
  filter: blur(70px);
  opacity: 0.28;
  border-radius: 40px;
}
.shot-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow:
    0 40px 100px -30px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.02);
  transform: rotateX(8deg);
  transform-origin: center top;
  transition: transform 0.4s var(--ease);
}

/* ── SECTIONS ───────────────────────────────────────────────────────── */
section {
  padding: clamp(70px, 11vw, 130px) clamp(16px, 5vw, 48px);
  max-width: 1100px;
  margin: 0 auto;
}
section h2 {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
}
.section-sub {
  text-align: center;
  color: var(--text2);
  margin-top: 12px;
  font-size: 17px;
}

/* features grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 50px;
}
.card {
  padding: 26px;
  border-radius: var(--radius);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid var(--border);
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s,
    box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border2);
  box-shadow: 0 24px 60px -28px rgba(124, 92, 248, 0.5);
}
.card .emo {
  font-size: 30px;
  margin-bottom: 14px;
}
.card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.card p {
  color: var(--text2);
  font-size: 14.5px;
}

/* ── DOWNLOAD CTA ───────────────────────────────────────────────────── */
.download {
  text-align: center;
}
.dl-card {
  position: relative;
  padding: clamp(34px, 6vw, 64px) 30px;
  border-radius: 28px;
  border: 1px solid var(--border2);
  background:
    radial-gradient(
      600px 300px at 50% 0%,
      rgba(124, 92, 248, 0.18),
      transparent 70%
    ),
    linear-gradient(180deg, var(--surface), var(--bg2));
  overflow: hidden;
}
.dl-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--siri);
  background-size: 200% 100%;
  animation: shimmer 5s linear infinite;
}
.dl-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin-bottom: 18px;
  box-shadow: 0 12px 30px -8px rgba(124, 92, 248, 0.6);
}
.dl-card h2 {
  font-size: clamp(26px, 4vw, 38px);
}
.dl-card > p {
  color: var(--text2);
  margin-top: 8px;
}
.dl-card .cta {
  margin-top: 30px;
}
.fine {
  margin-top: 26px;
  color: var(--text3);
  font-size: 13px;
}
.fine code,
.faq code {
  font-family: var(--mono);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.9em;
  color: var(--accent);
}

/* ── FAQ ────────────────────────────────────────────────────────────── */
.faq h2 {
  margin-bottom: 36px;
}
.qa {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.qa details {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 20px;
  transition: border-color 0.25s;
}
.qa details[open] {
  border-color: var(--border2);
}
.qa summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.qa summary::-webkit-details-marker {
  display: none;
}
.qa summary::after {
  content: "+";
  color: var(--accent);
  font-size: 22px;
  font-weight: 400;
  transition: transform 0.25s;
}
.qa details[open] summary::after {
  transform: rotate(45deg);
}
.qa p {
  color: var(--text2);
  padding: 0 0 18px;
  font-size: 14.5px;
}

/* ── FOOTER ─────────────────────────────────────────────────────────── */
.foot {
  text-align: center;
  padding: 20px 20px 10px;
  border-top: 1px solid var(--border);
  color: var(--text2);
}
.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
}
.foot-brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}
.foot-brand em {
  font-style: normal;
  color: var(--accent);
}

.foot-brand span {
  font-style: normal;
  color: var(--text);
}

.foot .copy {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--text2);
}

/* ── REVEAL ON SCROLL ───────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .blob,
  .grad,
  .dl-card::before,
  .btn-download::before {
    animation: none;
  }
}

/* ── DONATE PAGE ─────────────────────────────────────────────────────── */
.donate-main {
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px 20px 64px;
}
/* On wider screens, sit the donate box and contact form side by side. */
@media (min-width: 880px) {
  .donate-main {
    flex-direction: row;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 18px;
  }
  .donate-main .donate-card,
  .donate-main .contact-card {
    flex: 0 1 400px; /* fixed width, don't grow — keeps them compact & close */
    min-width: 555px; /* prevents overflowing text from breaking the layout */
    max-width: 600px;
    margin-top: 10%;
    margin-left: 0;
    margin-right: 0;
    height: 660px;
  }
}
.donate-card {
  width: 100%;
  max-width: 540px;
  text-align: center;
  padding: clamp(22px, 4vw, 32px) clamp(20px, 4vw, 30px);
  border-radius: 28px;
  border: 1px solid var(--border2);
  background:
    radial-gradient(
      560px 280px at 50% 0%,
      rgba(124, 92, 248, 0.16),
      transparent 70%
    ),
    linear-gradient(180deg, var(--surface), var(--bg2));
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
  position: relative;
  overflow: hidden;
}
.donate-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--siri);
  background-size: 200% 100%;
  animation: shimmer 5s linear infinite;
}
.donate-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border2);
  background: rgba(38, 161, 123, 0.12);
  color: #26a17b;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 18px;
}
.donate-badge .tdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #26a17b;
  box-shadow: 0 0 10px #26a17b;
}
.donate-card h1 {
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.donate-card h1 em {
  font-style: normal;
  color: var(--accent);
}
.donate-sub {
  margin-top: 10px;
  color: var(--text2);
  font-size: 14.5px;
  line-height: 1.6;
}
.qr-frame {
  margin: 18px auto 6px;
  width: min(180px, 56%);
  aspect-ratio: 1;
  padding: 12px;
  background: #fff;
  border-radius: 20px;
  box-shadow:
    0 10px 30px -10px rgba(124, 92, 248, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}
.qr-frame img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 10px;
}
.qr-net {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--text3);
  letter-spacing: 0.02em;
}
.qr-net strong {
  color: var(--text2);
}
.addr-label {
  margin-top: 18px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text3);
}
.addr-box {
  margin-top: 10px;
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 6px 6px 6px 14px;
  border-radius: 14px;
  border: 1px solid var(--border2);
  background: rgba(255, 255, 255, 0.04);
}
.addr-box code {
  flex: 1;
  min-width: 0;
  align-self: center;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text);
  word-break: break-all;
  text-align: left;
  line-height: 1.5;
}
.copy-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 16px;
  border: none;
  border-radius: 10px;
  background: var(--accent2);
  color: #fff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.18s var(--ease),
    background 0.18s,
    box-shadow 0.18s;
}
.copy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -8px rgba(124, 92, 248, 0.7);
}
.copy-btn.copied {
  background: #26a17b;
  box-shadow: 0 8px 22px -8px rgba(38, 161, 123, 0.7);
}
.copy-btn svg {
  width: 15px;
  height: 15px;
}
.donate-note {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--text3);
  line-height: 1.6;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--text2);
  font-weight: 500;
}
.back-link:hover {
  color: var(--text);
}

/* ── CONTACT FORM (donate page) ──────────────────────────────────────── */
.contact-card {
  width: 100%;
  max-width: 540px;
  padding: clamp(22px, 4vw, 30px);
  border-radius: 24px;
  border: 1px solid var(--border2);
  background: linear-gradient(180deg, var(--surface), var(--bg2));
  box-shadow: 0 24px 70px -40px rgba(0, 0, 0, 0.85);
}
.contact-title {
  font-size: clamp(20px, 3.5vw, 26px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.contact-sub {
  margin-top: 8px;
  color: var(--text2);
  font-size: 14px;
  line-height: 1.6;
}
.contact-form {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: left;
}
.field > span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  letter-spacing: 0.01em;
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  transition:
    border-color 0.18s,
    box-shadow 0.18s,
    background 0.18s;
}
.field textarea {
  resize: vertical;
  min-height: 312px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--text3);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent2);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(124, 92, 248, 0.22);
}
.contact-send {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border: none;
  border-radius: 12px;
  background: var(--accent2);
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    filter 0.2s;
}
.contact-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(124, 92, 248, 0.7);
  filter: brightness(1.05);
}
.contact-send:active {
  transform: translateY(0);
}
.contact-send svg {
  width: 17px;
  height: 17px;
}
