/* ============================================
   Isaac Automation Group — Shared Stylesheet
   ============================================ */

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

/* ── Variables ── */
:root {
  --bg: #ffffff;
  --surface: #f7f7f7;
  --surface-2: #f0f0f0;
  --border: #e4e4e4;
  --border-dark: #c8c8c8;
  --text: #111111;
  --text-2: #555555;
  --text-3: #999999;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 2px 8px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
  --ease: 180ms ease;
  --max-w: 1080px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea { font-family: inherit; }

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 80px 0; }

/* ── Typography ── */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; }
h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; }
p { color: var(--text-2); line-height: 1.65; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  transition: all var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--text);
  color: #fff;
  border: 1px solid var(--text);
}
.btn-primary:hover { background: #2a2a2a; border-color: #2a2a2a; }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--border-dark); background: var(--surface); }

/* ── Header ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon { flex-shrink: 0; }
.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.logo-name-main {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}
.logo-name-sub {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  line-height: 1;
}
nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--ease);
}
nav a:hover { color: var(--text); background: var(--surface); }
nav .btn { padding: 8px 16px; font-size: 0.875rem; margin-left: 4px; }

/* ── Hero ── */
.hero {
  padding: 96px 0 80px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 20px;
}
.hero h1 { margin-bottom: 20px; }
.hero-sub {
  font-size: 1.125rem;
  color: var(--text-2);
  max-width: 500px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Section headers ── */
.section-header { margin-bottom: 44px; }
.section-header h2 { margin-bottom: 8px; }
.section-header p { font-size: 1rem; max-width: 440px; }
.label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}

/* ── Demo Cards ── */
.demos-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.demo-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  text-decoration: none;
  color: var(--text);
  transition: all var(--ease);
  position: relative;
}
.demo-card:hover {
  border-color: var(--border-dark);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.card-icon {
  width: 42px;
  height: 42px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.card-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-2);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.demo-card h3 { margin-bottom: 6px; font-size: 1rem; }
.demo-card p { font-size: 0.875rem; flex: 1; line-height: 1.55; }
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.card-cta {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
}
.card-arrow {
  width: 28px;
  height: 28px;
  background: var(--text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--ease);
  flex-shrink: 0;
}
.card-arrow svg {
  width: 13px;
  height: 13px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.demo-card:hover .card-arrow { transform: translateX(3px); }

/* ── Industries ── */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.industry-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: all var(--ease);
}
.industry-card:hover {
  border-color: var(--border-dark);
  background: #fff;
  box-shadow: var(--shadow);
}
.ind-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.ind-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--text-2);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.industry-card h3 { font-size: 0.9375rem; margin-bottom: 4px; }
.industry-card p { font-size: 0.8125rem; color: var(--text-3); line-height: 1.45; }

/* ── Contact CTA ── */
.cta-section {
  background: var(--text);
  padding: 80px 0;
  text-align: center;
}
.cta-section h2 { color: #fff; margin-bottom: 12px; }
.cta-section p { color: rgba(255,255,255,0.6); max-width: 420px; margin: 0 auto 32px; }
.cta-section .btn-primary {
  background: #fff;
  color: var(--text);
  border-color: #fff;
}
.cta-section .btn-primary:hover { background: #f0f0f0; border-color: #f0f0f0; }

/* ── Footer ── */
footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 0.8125rem; color: var(--text-3); }
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-3);
  transition: color var(--ease);
}
.footer-links a:hover { color: var(--text-2); }

/* ── Demo Page Layout ── */
.demo-header {
  padding: 56px 0 44px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-3);
  margin-bottom: 20px;
  transition: color var(--ease);
}
.back-link:hover { color: var(--text-2); }
.back-link svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.demo-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 10px;
}
.demo-header .subtitle {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 380px;
  margin: 0 auto;
}

/* ── Voice Demo — Phone Block ── */
.phone-block {
  text-align: center;
  padding: 64px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.phone-hint {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}
.phone-num {
  display: inline-block;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  transition: opacity var(--ease);
}
.phone-num:hover { opacity: 0.65; }
.phone-caption {
  display: block;
  font-size: 0.9375rem;
  color: var(--text-2);
  margin-top: 10px;
}

/* ── Voice Demo — Quotes ── */
.quotes-section { padding: 64px 0; }
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.quote-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.quote-mark {
  font-size: 2.25rem;
  line-height: 1;
  color: var(--border-dark);
  font-family: Georgia, serif;
  margin-bottom: 10px;
}
.quote-card blockquote {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 16px;
}
.quote-meta {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ── Voice Demo — Caller Info ── */
.caller-section { padding: 0 0 72px; }
.caller-card {
  max-width: 500px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.caller-card-header {
  padding: 18px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.caller-card-header h3 { font-size: 0.9375rem; }
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.live-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
}
.caller-body { padding: 8px 0; }
.caller-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}
.caller-row:last-of-type { border-bottom: none; }
.caller-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.caller-value {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text);
}
.caller-note {
  padding: 14px 24px;
  font-size: 0.8125rem;
  color: var(--text-3);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

/* ── Chat Interface ── */
.chat-section { padding: 48px 0 80px; }
.chat-wrapper { max-width: 660px; margin: 0 auto; }
.chat-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.chat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.chat-agent {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-avatar {
  width: 30px;
  height: 30px;
  background: var(--text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-avatar svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
}
.chat-agent-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}
.chat-agent-status { font-size: 0.75rem; color: var(--text-3); }
.chat-key-btn {
  padding: 5px 10px;
  font-size: 0.75rem;
  color: var(--text-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  transition: all var(--ease);
}
.chat-key-btn:hover { border-color: var(--border-dark); color: var(--text-2); }

.chat-messages {
  height: 400px;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 3px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.msg {
  display: flex;
  max-width: 82%;
}
.msg.bot { align-self: flex-start; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }

.bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.55;
  white-space: pre-wrap;
}
.msg.bot .bubble {
  background: var(--surface);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.msg.user .bubble {
  background: var(--text);
  color: #fff;
  border-bottom-right-radius: 4px;
}

/* Typing indicator */
.typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 13px 16px;
  background: var(--surface);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}
.typing-dots span {
  width: 5px;
  height: 5px;
  background: var(--text-3);
  border-radius: 50%;
  animation: bounce 1.3s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.chat-bottom {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  background: var(--bg);
}
.chat-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--ease);
  resize: none;
  line-height: 1.4;
  max-height: 100px;
}
.chat-input:focus { border-color: var(--border-dark); }
.chat-input::placeholder { color: var(--text-3); }

.send-btn {
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--ease);
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  align-self: flex-end;
}
.send-btn:hover { background: #2a2a2a; }
.send-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.send-btn svg {
  width: 13px;
  height: 13px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Modal / Popup ── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.42);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
}
.overlay.hidden { display: none; }
.modal {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(0,0,0,0.14);
}
.modal h2 { font-size: 1.25rem; margin-bottom: 8px; }
.modal p { font-size: 0.9375rem; color: var(--text-2); margin-bottom: 20px; line-height: 1.55; }
.script-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 24px;
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.6;
  font-style: italic;
}
.modal input[type="password"],
.modal input[type="text"] {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  margin-bottom: 12px;
  transition: border-color var(--ease);
}
.modal input:focus { border-color: var(--border-dark); }
.modal-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.modal-note {
  font-size: 0.8125rem;
  color: var(--text-3);
  margin-top: 14px;
  line-height: 1.5;
}

/* ── Splash Screen ── */
@keyframes splash-fade {
  0%   { opacity: 0; }
  20%  { opacity: 1; }  /* 0.5s fade in  */
  80%  { opacity: 1; }  /* hold          */
  100% { opacity: 0; }  /* 0.5s fade out */
}
#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: splash-fade 2.5s ease forwards;
}
.splash-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.splash-name-main {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}
.splash-name-sub {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(1rem, 2.75vw, 1.625rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  line-height: 1;
}

/* ── Hero Focus Line ── */
.hero-focus {
  font-size: 0.875rem;
  color: var(--text-3);
  letter-spacing: 0.01em;
  margin-top: -20px;
  margin-bottom: 36px;
}

/* ── Instagram DM Automation Section ── */
.instagram-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ig-intro { margin-bottom: 44px; }
.ig-lead {
  font-size: 1.0625rem;
  color: var(--text-2);
  max-width: 680px;
  line-height: 1.7;
}
.ig-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 52px;
}
.ig-feature {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: all var(--ease);
}
.ig-feature:hover {
  border-color: var(--border-dark);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.ig-feature-icon {
  width: 42px;
  height: 42px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.ig-feature-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-2);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ig-feature h3 { margin-bottom: 8px; }
.ig-feature p  { font-size: 0.875rem; line-height: 1.6; }
.ig-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.ig-cta-text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .demo-grid { grid-template-columns: 1fr; gap: 14px; }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-grid { grid-template-columns: 1fr; gap: 14px; }
  .ig-feature-grid { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 640px) {
  section { padding: 56px 0; }
  .hero { padding: 64px 0 52px; }
  .ig-cta { flex-direction: column; align-items: flex-start; }

  nav a:not(.btn) { display: none; }

  .header-inner { height: 56px; }
  .logo-name-main { font-size: 0.9375rem; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; }

  .phone-num { font-size: 2.5rem; }

  .chat-messages { height: 340px; }

  .modal { padding: 28px 20px; }
}

@media (max-width: 420px) {
  .industry-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
}
