:root {
  --surface: rgba(255, 251, 245, 0.7);
  --surface-strong: rgba(255, 249, 240, 0.88);
  --text: #23151f;
  --text-soft: rgba(35, 21, 31, 0.72);
  --hot-pink: #ff4db8;
  --electric-blue: #3d7cff;
  --acid-green: #d8ff4d;
  --orange: #ff8d3a;
  --shadow: 0 24px 70px rgba(128, 32, 74, 0.18);
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --transition: 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 77, 184, 0.32), transparent 28%),
    radial-gradient(circle at top right, rgba(61, 124, 255, 0.26), transparent 24%),
    linear-gradient(160deg, #fff4de 0%, #ffe6db 35%, #ffdff7 72%, #eaf0ff 100%);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.35;
  mix-blend-mode: soft-light;
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

button,
input {
  font: inherit;
}

button {
  border: 0;
}

.page-shell {
  position: relative;
  overflow: clip;
}

.hero,
.details {
  position: relative;
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: 100vh;
  padding: 32px 0 56px;
}

.noise,
.orb {
  position: absolute;
  pointer-events: none;
}

.noise {
  inset: 0;
  opacity: 0.14;
  background-image: radial-gradient(rgba(35, 21, 31, 0.34) 0.7px, transparent 0.7px);
  background-size: 12px 12px;
}

.orb {
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.9;
}

.orb-a {
  width: 220px;
  height: 220px;
  top: 90px;
  right: 8%;
  background: rgba(216, 255, 77, 0.6);
}

.orb-b {
  width: 180px;
  height: 180px;
  left: -20px;
  bottom: 120px;
  background: rgba(255, 77, 184, 0.34);
}

.hero-stage {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 88px);
  padding-top: clamp(24px, 5vh, 56px);
  border-radius: 44px;
  border: 1px solid rgba(35, 21, 31, 0.08);
  background:
    linear-gradient(rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.16)),
    url("siliconsnark-robot.png"),
    url("siliconsnark-robot.png");
  background-size: auto, 104px 104px, 104px 104px;
  background-position: center, 0 0, 52px 52px;
  background-repeat: no-repeat, repeat, repeat;
  box-shadow: 0 24px 70px rgba(128, 32, 74, 0.14);
  padding: clamp(24px, 4vw, 46px);
}

.eyebrow,
.section-label,
.send-hint,
.log-time,
.preview-caption,
.action-note,
.field span {
  letter-spacing: 0.04em;
}

.hero-title,
.app-header h2 {
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: -0.04em;
}

.action-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.action-share,
.action-download {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(35, 21, 31, 0.1);
}

.action-button:hover,
.action-button:focus-visible,
.phrase-button:hover,
.phrase-button.is-selected {
  transform: translateY(-2px) scale(1.01);
}

.phrase-button:focus-visible,
.action-button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-shadow {
  position: absolute;
  inset: auto 10% 0;
  height: 84%;
  border-radius: 40px;
  background: linear-gradient(180deg, rgba(61, 124, 255, 0.22), rgba(255, 77, 184, 0.08));
  filter: blur(40px);
  transform: translateY(30px) scale(0.95);
}

.phone-frame {
  position: relative;
  width: min(100%, 440px);
  padding: 20px;
  border-radius: 40px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 243, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.phone-notch {
  width: 140px;
  height: 26px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: rgba(35, 21, 31, 0.92);
}

.app-header,
.recipient-panel,
.phrase-panel,
.preview-panel,
.log-panel {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(35, 21, 31, 0.08);
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 16px;
}

.app-header h2 {
  font-size: 2rem;
}

.status-pill {
  flex-shrink: 0;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(216, 255, 77, 0.8), rgba(255, 141, 58, 0.7));
  font-size: 0.85rem;
  font-weight: 700;
}

.recipient-panel,
.phrase-panel,
.preview-panel,
.log-panel {
  margin-top: 14px;
  padding: 16px;
}

.section-label,
.send-hint,
.action-note,
.preview-caption,
.field span {
  font-size: 0.76rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-soft);
}

.recipient-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field input {
  width: 100%;
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid rgba(35, 21, 31, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
}

.field input::placeholder {
  color: rgba(35, 21, 31, 0.42);
}

.phrase-list,
.log-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.phrase-button {
  width: 100%;
  padding: 15px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid transparent;
  text-align: left;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.35;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.phrase-button.is-selected {
  border-color: rgba(255, 77, 184, 0.36);
  box-shadow: 0 10px 24px rgba(255, 77, 184, 0.12);
  background: linear-gradient(135deg, rgba(255, 77, 184, 0.12), rgba(61, 124, 255, 0.08));
}

.friends-header,
.log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.snark-canvas {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 14px;
  border-radius: 24px;
  border: 1px solid rgba(35, 21, 31, 0.08);
  background: linear-gradient(135deg, #ff77c8, #7ba1ff);
  box-shadow: 0 16px 32px rgba(35, 21, 31, 0.08);
}

.preview-caption {
  margin-top: 10px;
  line-height: 1.45;
}

.action-panel {
  margin-top: 14px;
  gap: 10px;
}

.action-button {
  flex: 1 1 46%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.action-note {
  margin-top: 10px;
  line-height: 1.45;
}

.tiny-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--electric-blue), var(--hot-pink));
  box-shadow: 0 0 0 6px rgba(61, 124, 255, 0.08);
}

.log-entry {
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
}

.log-to {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-soft);
}

.log-message {
  margin-top: 6px;
  font-size: 0.98rem;
  line-height: 1.4;
}

.log-time {
  margin-top: 8px;
  font-size: 0.76rem;
  text-transform: uppercase;
  color: rgba(35, 21, 31, 0.58);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--transition),
    transform var(--transition);
  transition-delay: var(--delay, 0ms);
}

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

@media (max-width: 1080px) {
  .hero-stage {
    padding-top: 12px;
  }

  .phone-stage {
    width: 100%;
    padding-bottom: 0;
  }
}

@media (max-width: 680px) {
  .hero,
  .details {
    width: min(100%, calc(100% - 20px));
  }

  .hero {
    padding-top: 18px;
  }

  .hero-title {
    font-size: clamp(3.4rem, 20vw, 5.2rem);
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .action-panel {
    gap: 10px;
  }

  .action-button {
    width: 100%;
  }

  .recipient-grid {
    grid-template-columns: 1fr;
  }

  .phone-frame {
    padding: 16px;
    border-radius: 30px;
  }

  .phone-notch {
    margin-bottom: 14px;
  }

  .app-header,
  .friends-header,
  .log-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .status-pill {
    align-self: flex-start;
  }
}

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

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

  .action-button,
  .phrase-button {
    transition: none;
  }
}
