/* ── Base ──────────────────────────────────────────────────── */
body {
  font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #f8fafc; /* Soft light blue-gray for cozy feel */
  color: #334155; /* Soft dark gray for text */
}

/* ── Hero Background ───────────────────────────────────────── */
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(147, 197, 253, 0.25) 0%, transparent 70%), /* Soft blue */
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(250, 204, 21, 0.15) 0%, transparent 60%); /* Soft yellow */
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(147, 197, 253, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 197, 253, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 0%, transparent 75%);
  pointer-events: none;
}

/* ── Text gradient ─────────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, #ff73a1 0%, #f9a8d4 50%, #fbcfe8 100%); /* Warm berry-pink gradient */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── iPhone Frame ──────────────────────────────────────────── */
.iphone-outer {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  overflow: hidden;
}

/* Mute toggle */
.iphone-btn-mute {
  position: absolute;
  left: -5px;
  top: 108px;
  width: 4px;
  height: 32px;
  background: #2e2e2e;
  border-radius: 2px 0 0 2px;
  z-index: 1;
}

/* Volume buttons */
.iphone-btn-vol-up {
  position: absolute;
  left: -5px;
  top: 158px;
  width: 4px;
  height: 56px;
  background: #2e2e2e;
  border-radius: 2px 0 0 2px;
  z-index: 1;
}

.iphone-btn-vol-down {
  position: absolute;
  left: -5px;
  top: 226px;
  width: 4px;
  height: 56px;
  background: #2e2e2e;
  border-radius: 2px 0 0 2px;
  z-index: 1;
}

/* Power/lock button */
.iphone-btn-power {
  position: absolute;
  right: -5px;
  top: 178px;
  width: 4px;
  height: 72px;
  background: #2e2e2e;
  border-radius: 0 2px 2px 0;
  z-index: 1;
}

.iphone-frame {
  position: relative;
  width: 280px;
  height: 588px; /* ~2.1:1 ratio — iPhone 15 Pro proportions */
  background: linear-gradient(160deg, #2a2a2a 0%, #1a1a1a 100%);
  border-radius: 46px;
  border: 2px solid #444;
  box-shadow:
    inset 0 0 0 2px #333,
    0 0 0 1px #111,
    0 40px 80px rgba(0, 0, 0, 0.35),
    0 10px 30px rgba(0, 0, 0, 0.2);
  padding: 16px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.iphone-dynamic-island {
  width: 96px;
  height: 28px;
  background: #0a0a0a;
  border-radius: 14px;
  margin: 0 auto 10px;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px #222;
}

.iphone-screen {
  background: #fff;
  border-radius: 34px;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0; /* allow flex child to shrink */
}

.iphone-home-indicator {
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.iphone-home-indicator::after {
  content: '';
  width: 110px;
  height: 4px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 2px;
}

/* ── iMessage ──────────────────────────────────────────────── */
.imessage-window {
  background: #fff;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  font-family: -apple-system, 'SF Pro Text', BlinkMacSystemFont, sans-serif;
}

.imessage-header {
  background: #f8f8f8;
  border-bottom: 1px solid #e5e5ea;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.imessage-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #bdf6e4, #e5dcff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.imessage-name {
  font-weight: 600;
  font-size: 14px;
  color: #1c1c1e;
}

.imessage-online {
  font-size: 11px;
  color: #34c759;
}

.imessage-body {
  padding: 14px 12px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow-y: auto;
  background: #fff;
  /* Hide scrollbar across all browsers */
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE / Edge */
}
.imessage-body::-webkit-scrollbar {
  display: none;                /* Chrome / Safari / WebKit */
}

.chat-bubble {
  max-width: 78%;
  padding: 9px 13px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.4;
  animation: bubbleIn 0.25s ease;
  word-break: break-word;
}

@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(6px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-bubble.sent {
  background: #007AFF;
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.chat-bubble.received {
  background: #e9e9eb;
  color: #1c1c1e;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.chat-typing {
  align-self: flex-start;
  background: #e9e9eb;
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  padding: 10px 14px;
  display: flex;
  gap: 5px;
  align-items: center;
  animation: bubbleIn 0.25s ease;
}

.typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8e8e93;
  animation: typingBounce 1.2s infinite;
}
.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); }
  30%            { transform: translateY(-5px); }
}

.imessage-footer {
  background: #f8f8f8;
  border-top: 1px solid #e5e5ea;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.imessage-inputbar {
  flex: 1;
  background: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 13px;
  color: #1c1c1e;
  min-height: 32px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.imessage-cursor {
  color: #007AFF;
  animation: blink 1s step-end infinite;
  font-weight: 300;
  margin-left: 1px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.imessage-send {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #007AFF;
  color: #fff;
  border: none;
  font-size: 15px;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

/* ── Power strip ───────────────────────────────────────────── */
.power-strip {
  display: flex;
  gap: 0;
  background: rgba(255, 115, 161, 0.07);
  border: 1px solid rgba(255, 115, 161, 0.15);
  border-radius: 16px;
  overflow: hidden;
  max-width: 560px;
}

.power-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 16px;
  gap: 4px;
}

.power-number {
  font-size: 32px;
  font-weight: 800;
  color: #f24a84; /* Berry pink */
  line-height: 1;
}

.power-suffix {
  font-size: 18px;
  font-weight: 700;
  color: #f24a84;
  line-height: 1;
  display: inline;
}

.power-label {
  font-size: 11px;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  margin-top: 2px;
}

.power-divider {
  width: 1px;
  background: rgba(255, 115, 161, 0.1);
  margin: 12px 0;
}

/* ── CTAs ──────────────────────────────────────────────────── */
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ff73a1; /* Berry primary */
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  padding: 16px 28px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  box-shadow: 0 0 30px rgba(242, 74, 132, 0.25);
  white-space: nowrap;
}

.cta-primary:hover {
  background: #f9a8d4;
  box-shadow: 0 0 50px rgba(249, 168, 212, 0.5);
  transform: translateY(-1px);
}

.cta-primary:active {
  transform: translateY(1px);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 17px;
  padding: 16px 28px;
  border-radius: 14px;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.cta-secondary:hover {
  border-color: #f24a84;
  color: #be185d;
}

/* ── Before / After cards ──────────────────────────────────── */
.before-card {
  background: rgba(167, 139, 250, 0.08); /* Soft violet for builders */
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 24px;
  padding: 28px;
}

.after-card {
  background: rgba(255, 115, 161, 0.07); /* Soft blue */
  border: 1px solid rgba(147, 197, 253, 0.25);
  border-radius: 24px;
  padding: 28px;
}

/* ── Power cards ───────────────────────────────────────────── */
.power-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.power-card:hover {
  border-color: rgba(147, 197, 253, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05), 0 0 30px rgba(147, 197, 253, 0.1);
}

.power-icon {
  font-size: 32px;
  margin-bottom: 14px;
}

/* ── Timeline ──────────────────────────────────────────────── */
.timeline-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.timeline-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 115, 161, 0.1);
  border: 1px solid rgba(255, 115, 161, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #f24a84;
  font-size: 15px;
}

/* ── Vision quote section ──────────────────────────────────── */
.vision-section {
  background: linear-gradient(135deg, rgba(147, 197, 253, 0.08) 0%, rgba(250, 204, 21, 0.05) 100%);
  border: 1px solid rgba(147, 197, 253, 0.15);
  border-radius: 32px;
  padding: 52px 48px;
}

/* ── CTA section ───────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, rgba(147, 197, 253, 0.15) 0%, rgba(250, 204, 21, 0.08) 100%);
  border: 1px solid rgba(147, 197, 253, 0.25);
  border-radius: 32px;
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ── FAQ ───────────────────────────────────────────────────── */
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  float: right;
  color: #94a3b8;
  font-size: 20px;
  font-weight: 300;
}
details[open] summary::after { content: '−'; }

/* ── Responsive tweaks ─────────────────────────────────────── */
@media (max-width: 640px) {
  .power-strip { max-width: 100%; }
  .power-number { font-size: 26px; }
  .vision-section,
  .cta-section { padding: 32px 24px; }
  .terminal-body { font-size: 12px; }
}
