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

:root {
  --color-hero-bg: #1c1e45;
  --color-primary: #0a84ff;
  --color-primary-hover: #0066d6;
  --color-accent: #6366f1;
  --color-text: #111827;
  --color-text-secondary: #6b7280;
  --color-bg: #ffffff;
  --color-bg-secondary: #f9fafb;
  --color-border: #e6e7eb;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;
  --max-width: 1100px;
  --content-width: 720px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* ─── Landing page ─── */

body.landing {
  min-height: 100vh;
  background: #0a0b1a;
  color: #ffffff;
  overflow-x: hidden;
}

.landing-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, #1c1e45 0%, #0a0b1a 70%);
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 18s ease-in-out infinite;
}

.orb-1 {
  width: 420px;
  height: 420px;
  background: #0a84ff;
  top: -8%;
  left: -5%;
  animation-delay: 0s;
}

.orb-2 {
  width: 320px;
  height: 320px;
  background: #6366f1;
  top: 30%;
  right: -8%;
  animation-delay: -6s;
}

.orb-3 {
  width: 280px;
  height: 280px;
  background: #8b5cf6;
  bottom: 10%;
  left: 25%;
  opacity: 0.35;
  animation-delay: -12s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -20px) scale(1.05);
  }
  66% {
    transform: translate(-20px, 15px) scale(0.95);
  }
}

.landing-nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.landing-logo:hover {
  text-decoration: none;
  opacity: 0.9;
}

.landing-logo img {
  border-radius: 9px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.brand-word {
  letter-spacing: -0.03em;
}

.brand-mute {
  color: #60a5fa;
}

.brand-iny {
  color: rgba(255, 255, 255, 0.92);
}

.landing-logo .brand-mute {
  color: #60a5fa;
}

.landing-logo .brand-iny {
  color: rgba(255, 255, 255, 0.92);
}

/* Light-background pages (legal) */
.site-logo .brand-mute {
  color: var(--color-primary);
}

.site-logo .brand-iny {
  color: var(--color-text);
}

.landing-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.landing-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.landing-links a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.landing-main {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.landing-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: calc(100vh - 12rem);
  padding: 2rem 0 4rem;
}

.landing-hero-copy {
  animation: fadeUp 0.8s ease-out both;
}

.landing-badge {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.landing-badge:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.landing-phone-wrap {
  display: flex;
  justify-content: center;
}

.landing-hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #f472b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-lead {
  margin: 0;
  max-width: 26rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 400;
}

.landing-cta {
  margin: 2.25rem 0 0;
  padding: 1.5rem 1.75rem;
  max-width: fit-content;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.landing-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
  background: linear-gradient(135deg, #0a84ff 0%, #6366f1 100%);
  border-radius: 999px;
  text-decoration: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15) inset,
    0 12px 32px rgba(10, 132, 255, 0.45),
    0 0 48px rgba(99, 102, 241, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: ctaGlow 3s ease-in-out infinite;
}

.landing-cta-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 16px 40px rgba(10, 132, 255, 0.55),
    0 0 56px rgba(99, 102, 241, 0.35);
  text-decoration: none;
}

.landing-cta-arrow {
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.landing-cta-btn:hover .landing-cta-arrow {
  transform: translateX(4px);
}

.landing-cta-note {
  margin: 0.875rem 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

@keyframes ctaGlow {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.15) inset,
      0 12px 32px rgba(10, 132, 255, 0.45),
      0 0 48px rgba(99, 102, 241, 0.25);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.2) inset,
      0 12px 36px rgba(10, 132, 255, 0.55),
      0 0 64px rgba(99, 102, 241, 0.35);
  }
}

/* Phone mockup */
.phone-mock {
  position: relative;
  display: flex;
  justify-content: center;
  animation: fadeUp 0.8s ease-out 0.15s both;
}

.phone-frame {
  position: relative;
  z-index: 2;
  width: min(270px, 74vw);
  padding: 12px;
  background: linear-gradient(145deg, #2a2d3e 0%, #1a1c28 100%);
  border-radius: 44px;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.phone-screen {
  display: flex;
  flex-direction: column;
  aspect-ratio: 9 / 19.5;
  background: #ffffff;
  border-radius: 32px;
  overflow: hidden;
  color: #111827;
}

.mock-status-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 2.75rem;
  padding: 0.625rem 1.25rem 0;
  background: #ffffff;
}

.mock-dynamic-island {
  width: 72px;
  height: 22px;
  background: #111827;
  border-radius: 999px;
}

.mock-header {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0.5rem 0.75rem 0.875rem;
  border-bottom: 1px solid #eef0f3;
  font-size: 0.875rem;
}

.mock-back {
  color: #2563eb;
  font-size: 1.25rem;
  width: 2rem;
}

.mock-title {
  flex: 1;
  text-align: center;
  font-weight: 700;
}

.mock-info {
  color: #2563eb;
  font-weight: 600;
  font-size: 0.8125rem;
  width: 2rem;
  text-align: right;
}

.mock-topics {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.375rem;
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid #eef0f3;
  overflow: hidden;
}

.mock-plus {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e6e7eb;
  border-radius: 13px;
  font-size: 0.875rem;
  color: #6b7280;
}

.mock-chip {
  flex-shrink: 0;
  padding: 0.3125rem 0.6875rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  color: #9ca3af;
}

.mock-chip-active {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
}

.mock-chip-unread {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.mock-chip-muted {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #9ca3af;
  text-decoration: line-through;
  text-decoration-color: rgba(156, 163, 175, 0.6);
}

.mock-feed {
  flex: 1;
  padding: 0.875rem 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.625rem;
  background: #fafafa;
  min-height: 0;
}

.mock-msg {
  display: flex;
  flex-direction: column;
  max-width: 78%;
}

.mock-msg-other {
  align-self: flex-start;
}

.mock-msg-mine {
  align-self: flex-end;
}

.mock-name {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 0.125rem;
}

.mock-bubble {
  padding: 0.5rem 0.75rem;
  border-radius: 16px;
  font-size: 0.8125rem;
  line-height: 1.35;
}

.mock-msg-other .mock-bubble {
  background: #f2f3f5;
  border-bottom-left-radius: 4px;
}

.mock-msg-mine .mock-bubble {
  background: #0a84ff;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.mock-input {
  flex-shrink: 0;
  padding: 0.625rem 0.75rem 1rem;
  border-top: 1px solid #eef0f3;
}

.mock-input span {
  display: block;
  padding: 0.5625rem 0.875rem;
  background: #f9fafb;
  border: 1px solid #e6e7eb;
  border-radius: 20px;
  font-size: 0.8125rem;
  color: #9ca3af;
}

.phone-glow {
  position: absolute;
  width: 220px;
  height: 320px;
  background: #0a84ff;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.3;
  bottom: 5%;
  right: 5%;
  z-index: 1;
}

/* Pillars */
.landing-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-bottom: 4rem;
  animation: fadeUp 0.8s ease-out 0.3s both;
}

.pillar {
  padding: 1.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.pillar:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
}

.pillar-icon {
  font-size: 1.75rem;
  margin-bottom: 0.875rem;
  line-height: 1;
}

.pillar h2 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pillar p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
}

.landing-cta-repeat {
  display: none !important;
}

.pillar-cta {
  text-align: center;
}

.pillar-cta .landing-cta-btn-inline {
  margin-top: 1.25rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  animation: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15) inset,
    0 8px 20px rgba(10, 132, 255, 0.35);
}

.pillar-cta .landing-cta-btn-inline:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 10px 24px rgba(10, 132, 255, 0.45);
}

.landing-footer {
  position: relative;
  z-index: 1;
  padding: 2rem 1.5rem 2.5rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.landing-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  margin-bottom: 0.625rem;
}

.landing-footer a {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
}

.landing-footer a:hover {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.landing-footer p {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .landing-main {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .landing-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    min-height: auto;
    padding: 1rem 0 2rem;
  }

  .landing-hero-copy {
    display: contents;
  }

  .landing-badge {
    order: 1;
  }

  .landing-hero h1 {
    order: 2;
  }

  .landing-phone-wrap {
    order: 3;
    margin: 0.5rem 0 1.5rem;
  }

  .landing-lead {
    order: 4;
    margin: 0 auto;
  }

  .landing-cta-primary {
    order: 5;
    margin: 2rem auto 0;
  }

  .landing-pillars {
    grid-template-columns: 1fr;
    max-width: 24rem;
    margin: 0 auto;
    padding-bottom: 3rem;
  }

  .landing-cta-repeat {
    display: block !important;
  }
}

@media (max-width: 480px) {
  .landing-nav {
    padding: 1rem;
  }
}

/* ─── Legal / support pages ─── */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: inherit;
  text-decoration: none;
}

.site-logo:hover {
  text-decoration: none;
}

.site-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9375rem;
}

.site-nav a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: 500;
}

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

.page-main {
  padding: 2rem 1.5rem 4rem;
  max-width: var(--content-width);
  margin: 0 auto;
}

.page-main h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-meta {
  margin: 0 0 2rem;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.page-main h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.page-main h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.page-main p,
.page-main li {
  color: var(--color-text);
}

.page-main ul {
  padding-left: 1.25rem;
}

.page-main li {
  margin-bottom: 0.375rem;
}

.faq-item {
  margin-bottom: 1.5rem;
}

.faq-item h3 {
  margin: 0 0 0.375rem;
}

.faq-item p {
  margin: 0;
  color: var(--color-text-secondary);
}

.beta-platform {
  margin-bottom: 2.5rem;
}

.beta-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.beta-panel {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-bg-secondary);
  overflow: hidden;
}

.beta-panel[open] {
  border-color: rgba(10, 132, 255, 0.35);
  box-shadow: 0 4px 16px rgba(10, 132, 255, 0.08);
}

.beta-panel-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.beta-panel-summary::-webkit-details-marker {
  display: none;
}

.beta-panel-summary::after {
  content: '+';
  flex-shrink: 0;
  margin-left: 1rem;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  line-height: 1;
  transition: transform 0.2s ease;
}

.beta-panel[open] .beta-panel-summary::after {
  content: '−';
}

.beta-panel-body {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--color-border);
}

.beta-panel-body .beta-note {
  margin-top: 1rem;
}

.beta-platform h2 {
  margin: 0 0 0.75rem;
}

.beta-steps {
  margin: 0;
  padding-left: 1.25rem;
}

.beta-steps li {
  margin-bottom: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

.beta-steps li:last-child {
  margin-bottom: 0;
}

.beta-action {
  display: inline-block;
  margin: 0.25rem 0;
  padding: 0.375rem 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(10, 132, 255, 0.08);
  border-radius: 6px;
  text-decoration: none;
}

.beta-action:hover {
  background: rgba(10, 132, 255, 0.14);
  text-decoration: none;
}

.beta-note {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
}

.beta-important {
  margin: 0 0 1rem;
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-text);
  background: rgba(10, 132, 255, 0.08);
  border: 1px solid rgba(10, 132, 255, 0.2);
  border-radius: 8px;
}

.beta-step-detail {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.beta-troubleshooting {
  margin-top: 2.5rem;
  padding-top: 0.5rem;
  scroll-margin-top: 1.5rem;
}

.beta-troubleshooting .page-meta {
  margin-bottom: 1.5rem;
}

.contact-box {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.site-footer {
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.site-footer a {
  color: var(--color-text-secondary);
  font-weight: 500;
}

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

@media (prefers-reduced-motion: reduce) {
  .orb,
  .landing-hero-copy,
  .phone-mock,
  .landing-pillars {
    animation: none;
  }

  .landing-cta-btn {
    animation: none;
  }

  .pillar-cta .landing-cta-btn-inline {
    animation: none;
  }
}
