/* 
  World-Class ScaleCom Theme
  Palette: Inspired by refined, warm, high-contrast themes (Antigravity Solarized vibe but heavily modernized).
*/

:root {
  /* Colors */
  --bg-color: #fdf6e3;         /* Warm cream background */
  --bg-light: #eee8d5;         /* Slightly darker cream for sections */
  --text-main: #073642;        /* Deep, rich dark blue/charcoal for text */
  --text-muted: #586e75;       /* Muted text */
  --accent: #cb4b16;           /* Warm orange accent */
  --accent-hover: #dc322f;     /* Slightly brighter for hover */
  --card-bg: #ffffff;          /* Pure white for cards to pop against cream */
  --border-color: rgba(7, 54, 66, 0.1);

  /* Typography */
  --font-sans: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;

  /* Spacing & Sizes */
  --container-width: 1100px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  /* Shadows */
  --shadow-sm: 0 4px 6px rgba(7, 54, 66, 0.05);
  --shadow-md: 0 10px 30px rgba(7, 54, 66, 0.08);
  --shadow-lg: 0 20px 40px rgba(7, 54, 66, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-muted);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.2;
}

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

img {
  max-width: 100%;
  display: block;
}

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

.section {
  padding: 120px 0;
}

.bg-light {
  background-color: var(--bg-light);
}

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

.grid {
  display: grid;
  gap: 32px;
}

/* Typography Utilities */
.text-accent {
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: var(--font-sans);
  border: none;
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent) 0%, #a83e12 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(203, 75, 22, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-weight: 700;
}

.btn-primary:hover {
  background: linear-gradient(180deg, #db5b27 0%, #963710 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(203, 75, 22, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: #fff;
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid rgba(7, 54, 66, 0.1);
  box-shadow: 0 4px 12px rgba(7, 54, 66, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  font-weight: 700;
}

.btn-secondary:hover {
  background: #fdf6e3;
  border-color: rgba(7, 54, 66, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(7, 54, 66, 0.12), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.1rem;
}

.btn-full {
  width: 100%;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(253, 246, 227, 0.9);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-container {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
  transition: transform 0.2s ease;
}

.logo-container:hover {
  transform: scale(1.02);
}

.logo-text {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -1.2px;
  line-height: 0.85;
  margin-bottom: 4px;
}

.logo-sub {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
}

.logo-blocks {
  display: flex;
  gap: 2px;
  flex: 1;
  height: 6px;
  margin-bottom: 1px;
}

.logo-block {
  flex: 1;
}

.logo-block.red { background-color: #EA3323; }
.logo-block.green { background-color: #41A03A; }
.logo-block.blue { background-color: #0071CE; }
.logo-block.orange { background-color: #F39C12; }

.logo-corp {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
  line-height: 0.7;
  margin-left: 5px;
  opacity: 0.4;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-main);
}

/* Hero Section */
.hero {
  padding: 180px 0 100px;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(203, 75, 22, 0.1);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.pulse {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(203, 75, 22, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(203, 75, 22, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(203, 75, 22, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(203, 75, 22, 0); }
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 40px;
}

.hero-trust p {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  opacity: 0.8;
}

/* Cards */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* Problem Section */
.section-header {
  margin-bottom: 60px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card .icon-wrapper {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

/* How It Works Section */
.hiw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.mobile-hiw-btn {
  display: none;
}

.steps {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.step {
  display: flex;
  gap: 24px;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--bg-light);
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-text h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.phone-mockup {
  background: var(--card-bg);
  border: 12px solid var(--text-main);
  border-radius: 40px;
  height: 500px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.message {
  padding: 12px 16px;
  border-radius: 16px;
  max-width: 85%;
  font-size: 0.9rem;
  line-height: 1.4;
  position: relative;
}

.message p {
  margin-bottom: 4px;
}

.message .time {
  font-size: 0.7rem;
  opacity: 0.7;
}

.message.received {
  background: var(--bg-light);
  color: var(--text-main);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.message.sent {
  background: var(--accent);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

/* Social Proof */
.testimonial-card {
  max-width: 800px;
  margin: 0 auto;
}

.stars {
  color: #f59e0b;
  font-size: 1.5rem;
  margin-bottom: 24px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 32px;
}

.testimonial-author strong {
  display: block;
  color: var(--text-main);
  font-size: 1.1rem;
}

.testimonial-author span {
  font-size: 0.9rem;
}

/* Pricing Section */
.pricing-grid {
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--container-width);
  margin: 0 auto;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.popular {
  border: 2px solid var(--accent);
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-5px);
}

.popular-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-header-card {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
}

.pricing-header-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.price {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  margin-bottom: 40px;
  flex-grow: 1;
}

.pricing-features li {
  margin-bottom: 16px;
  color: var(--text-main);
}

/* Contact Section */
.contact-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.contact-info h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.contact-info p {
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.contact-list {
  list-style: none;
}

.contact-list li {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 16px;
  font-weight: 500;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
  font-size: 0.9rem;
}

.form-group input, .form-group select {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-color);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-main);
  transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

/* Footer */
.footer {
  padding: 60px 0;
  border-top: 1px solid var(--border-color);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-weight: 500;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--text-main);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
  }
  
  .hiw-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .desktop-hiw-btn {
    display: none !important;
  }
  
  .mobile-hiw-btn {
    display: block !important;
  }
  
  .phone-mockup {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .contact-card {
    grid-template-columns: 1fr;
    padding: 40px;
  }
  
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .nav-links {
    display: none;
  }
  
  .nav-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
    line-height: 1.2;
    text-align: center;
  }
  
  .logo-text {
    font-size: 24px;
  }
  
  .hero {
    padding: 140px 0 80px;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-card.popular {
    transform: none;
  }
  
  .pricing-card.popular:hover {
    transform: translateY(-5px);
  }
  
  .footer-container {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
}


/* Phone Flow Animation Updates */
.phone-mockup > div {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  display: none;
}

.phone-mockup > div.visible {
  opacity: 1;
  transform: translateY(0);
}

.typing-indicator {
  display: flex;
  gap: 4px;
  align-items: center;
  width: fit-content;
  border-radius: 16px;
  background: var(--bg-light);
  padding: 12px 16px;
}

.typing-indicator.sent {
  background: var(--accent);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.typing-indicator.received {
  background: var(--bg-light);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.typing-indicator .dot {
  width: 6px;
  height: 6px;
  background-color: var(--text-muted);
  border-radius: 50%;
  animation: typing-bounce 1.4s infinite ease-in-out both;
}

.typing-indicator.sent .dot {
  background-color: rgba(255, 255, 255, 0.7);
}

.typing-indicator .dot:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator .dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.6; }
  40% { transform: scale(1); opacity: 1; }
}




.system-notification {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(220, 50, 47, 0.08);
  padding: 10px 16px;
  border-radius: 100px;
  margin: 8px auto 16px auto;
  width: fit-content;
  border: 1px solid rgba(220, 50, 47, 0.15);
}

.system-notification .icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(220, 50, 47, 0.15);
  color: #dc322f;
}

.system-notification .sys-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.system-notification strong {
  font-size: 0.85rem;
  color: #dc322f;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.system-notification span {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.8;
  font-weight: 600;
}

.phone-mockup > div.fading-out {
  opacity: 0 !important;
  transform: translateY(-20px) !important;
  transition: all 0.5s ease-in !important;
}

.rich-link {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.15);
  padding: 12px;
  border-radius: 12px;
  margin-top: 8px;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.2s;
}

.message.received .rich-link {
  background: var(--card-bg);
  border-color: var(--border-color);
}

.rich-link:hover {
  background: rgba(255, 255, 255, 0.25);
}

.message.received .rich-link:hover {
  background: var(--bg-light);
}

.rich-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--card-bg);
  color: var(--accent);
  border-radius: 8px;
  flex-shrink: 0;
}

.rich-link-text {
  display: flex;
  flex-direction: column;
}

.rich-link-text strong {
  font-size: 0.9rem;
  line-height: 1.2;
}

.rich-link-text span {
  font-size: 0.75rem;
  opacity: 0.8;
  margin-top: 2px;
}

/* FAQ Section */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-question {
  padding: 24px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none; /* Hide default triangle */
}

/* Hide default triangle for webkit */
.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background-color: var(--accent);
  transition: transform 0.3s ease;
}

.faq-icon::before {
  top: 11px;
  left: 0;
  width: 100%;
  height: 2px;
}

.faq-icon::after {
  top: 0;
  left: 11px;
  width: 2px;
  height: 100%;
}

.faq-item[open] .faq-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-item[open] .faq-icon::before {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px 24px;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  border-top: 1px solid transparent;
  animation: faq-slide-down 0.3s ease-in-out forwards;
}

@keyframes faq-slide-down {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
