@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700&display=swap');

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  color: #0f1115;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: #ffffff;
  color: #0f1115;
  padding: 10px 16px;
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(15, 17, 21, 0.15);
  z-index: 1000;
}

.skip-link:focus {
  left: 12px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-outfit {
  font-family: 'Outfit', sans-serif;
}

/* Three.js Canvas Container */
#canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

/* Ensure content on top of canvas is clickable */
.content-layer {
  position: relative;
  z-index: 10;
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

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

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

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

/* Subtle Link Underlines */
.hover-underline {
  position: relative;
}

.hover-underline::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: currentColor;
  transform-origin: bottom right;
  transition: transform 0.3s cubic-bezier(0.86, 0, 0.07, 1);
}

.hover-underline:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Loop Animation Graphic */
.loop-dot {
  animation: pulse-dot 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulse-dot {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }
}

/* Shared homepage chrome overrides for copied legal pages. */
#main-header .max-w-7xl {
  width: 100%;
}

#main-header nav {
  width: auto;
  padding: 0;
  justify-content: flex-start;
  gap: 2rem;
}

#main-header nav a {
  text-decoration: none;
}

#main-header img {
  display: block;
}

body>footer.bg-base-black {
  text-align: initial;
}

body>footer.bg-base-black a {
  text-decoration: none;
}

.balance-text {
  text-wrap: balance;
}

/* Inquiry phone animation */
.info-phone {
  display: flex;
  justify-content: center;
}

.iphone-frame {
  width: 280px;
  height: 580px;
  background: #1c1c1e;
  border-radius: 46px;
  padding: 12px;
  position: relative;
  box-shadow:
    0 0 0 3px #2c2c2e,
    0 40px 80px rgba(0, 0, 0, 0.25),
    inset 0 0 10px rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.iphone-frame::before {
  content: '';
  position: absolute;
  inset: 12px;
  background: #ffffff;
  border-radius: 36px;
}

.iphone-screen {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border-radius: 36px;
  overflow: hidden;
}

.status-bar {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 26px 8px;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-icons svg {
  fill: #111827;
}

.info-contact-avatar--violet {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.info-contact-avatar--rose {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.info-contact-avatar--sky {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.info-contact-avatar--sunset {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.info-contact-avatar--pastel {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.info-contact-avatar--mint {
  background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
}

.dynamic-island {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 26px;
  background: #000000;
  border-radius: 18px;
  z-index: 20;
}

.messages-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px 12px;
  border-bottom: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.95);
}

.back-btn,
.video-btn,
.plus-btn,
.mic-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.contact-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
}

.contact-name {
  font-size: 10px;
  color: #111827;
  font-weight: 500;
}

.messages-container {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 14px 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #ffffff;
}

.message {
  max-width: 78%;
  padding: 9px 13px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.35;
  position: relative;
  animation: messageAppear 0.3s ease-out;
  word-wrap: break-word;
}

@keyframes messageAppear {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.message.sent {
  align-self: flex-end;
  background: #0b93f6;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.message.sent::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: -5px;
  width: 10px;
  height: 14px;
  background: #0b93f6;
  border-bottom-left-radius: 10px;
}

.message.sent::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: -8px;
  width: 8px;
  height: 14px;
  background: #ffffff;
  border-bottom-left-radius: 6px;
}

.message.received {
  align-self: flex-start;
  background: #e5e7eb;
  color: #111827;
  border-bottom-left-radius: 4px;
}

.message.received::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -5px;
  width: 10px;
  height: 14px;
  background: #e5e7eb;
  border-bottom-right-radius: 10px;
}

.message.received::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -8px;
  width: 8px;
  height: 14px;
  background: #ffffff;
  border-bottom-right-radius: 6px;
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 11px 15px;
  background: #e5e7eb;
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  position: relative;
}

.typing-indicator::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -5px;
  width: 10px;
  height: 14px;
  background: #e5e7eb;
  border-bottom-right-radius: 10px;
}

.typing-indicator::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -8px;
  width: 8px;
  height: 14px;
  background: #ffffff;
  border-bottom-right-radius: 6px;
}

.typing-dot {
  width: 7px;
  height: 7px;
  background: #8e8e93;
  border-radius: 999px;
  animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.message-input-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid #e5e7eb;
}

.plus-btn {
  width: 28px;
  height: 28px;
  background: #007aff;
  border-radius: 999px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
}

.input-field {
  flex: 1;
  padding: 7px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  font-size: 13px;
  color: #8e8e93;
  background: #f9fafb;
}

.home-indicator {
  position: relative;
  flex-shrink: 0;
  width: 120px;
  height: 5px;
  background: #111827;
  border-radius: 999px;
  margin: 8px auto 4px;
}

@media (max-width: 1024px) {
  .info-phone {
    order: -1;
  }
}

@media (max-width: 480px) {
  .iphone-frame {
    width: min(280px, 100%);
    height: 560px;
  }
}

/* --- BLOG STYLES --- */
.blog-cta-section {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.blog-cta-tight {
  padding-top: 4rem;
}
