/* 
  LinkForza Corporate Design System
  Base CSS for modern, premium business look 
*/

:root {
  /* Color Palette - Premium Corporate Light Theme */
  --bg-main: #ffffff;           /* Clean white */
  --bg-secondary: #f4f7fb;      /* Very soft blueish gray */
  --bg-card: #ffffff;
  
  --text-dark: #0f172a;         /* Slate 900 for headings */
  --text-primary: #334155;      /* Slate 700 for body */
  --text-muted: #64748b;        /* Slate 500 */
  
  /* Brand Colors from Logo */
  --brand-blue: #0056e0;        /* Strong Blue from "Link" */
  --brand-cyan: #00a8cc;        /* Cyan gradient part of "L" */
  --brand-orange: #ff7700;      /* Vibrant Orange from "Forza" */
  --brand-yellow: #ffc800;      /* Yellow part of the "F" */
  
  --primary: var(--brand-blue);
  --primary-hover: #0044b3;
  --primary-glow: rgba(0, 86, 224, 0.3);
  
  --accent: var(--brand-orange);
  --accent-glow: rgba(255, 119, 0, 0.3);
  
  /* Gradients */
  --grad-blue: linear-gradient(135deg, var(--brand-cyan), var(--brand-blue));
  --grad-orange: linear-gradient(135deg, var(--brand-yellow), var(--brand-orange));
  
  /* Utilities */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 86, 224, 0.1);
  --glass-blur: blur(20px);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 25px 35px -5px rgba(0, 86, 224, 0.1), 0 15px 15px -5px rgba(0, 86, 224, 0.05);
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Layout */
  --nav-height: 85px;
  --container-width: 1200px;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  scrollbar-gutter: stable; /* Prevents page jump when scrollbar appears */
  -webkit-font-smoothing: antialiased;
  transition: opacity 0.3s ease;
}

/* Base Elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.15;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem; }
p { margin-bottom: 1.5rem; font-size: 1.15rem; color: var(--text-primary); }

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

.highlight {
  background: var(--grad-orange);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.highlight-blue {
  background: var(--grad-blue);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

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

.section {
  padding: 120px 0 80px;
  position: relative;
  z-index: 1;
}

.center { text-align: center; }
.max-width {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  outline: none;
}

.btn-primary {
  background: var(--grad-blue);
  color: white;
  box-shadow: 0 10px 20px 0 var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px 0 var(--primary-glow);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--text-dark);
  color: var(--text-dark);
}
.btn-outline:hover {
  background: rgba(0,0,0,0.05);
}

/* Glass Cards */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--grad-blue);
  opacity: 0;
  transition: var(--transition);
}

.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 86, 224, 0.2);
}

.glass-card:hover::before {
  opacity: 1;
}

/* Background Effects */
.glass-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.15;
}

.orb-1 {
  top: 5%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: var(--brand-blue);
}

.orb-2 {
  bottom: 10%;
  right: -5%;
  width: 450px;
  height: 450px;
  background: var(--brand-orange);
}

.orb-3 {
  top: 25%;
  left: 20%;
  width: 600px;
  height: 600px;
  background: var(--brand-cyan);
  opacity: 0.08;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  z-index: 100;
  transition: var(--transition);
  background: var(--bg-main); /* Ensure it's opaque immediately */
}

.navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
  max-width: var(--container-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo-img {
  height: 45px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  color: var(--text-dark);
  position: relative;
  font-size: 1.05rem;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--grad-orange);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

.lang-btn {
  background: white;
  border: 1px solid var(--glass-border);
  color: var(--text-dark);
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.lang-btn:hover {
  background: var(--bg-secondary);
  border-color: var(--primary);
  color: var(--primary);
}

/* Sections - Specifics */
.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 80vh;
}

@media (min-width: 992px) {
  .hero-container {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-desc {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
}

.hero-cards {
  display: grid;
  gap: 1.5rem;
}

.card-icon {
  font-size: 2.5rem;
  background: var(--grad-blue);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

/* Product Section */
.product-section {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(0,0,0,0.05);
}

.section-header {
  margin-bottom: 4rem;
}

.product-logo-img {
  max-width: 400px;
  width: 100%;
  height: auto;
  margin: 0 auto 1.5rem auto;
  display: block;
}

/* Sales Tip Cards */
.sales-tip {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.8rem 2.5rem;
  margin-bottom: 4rem;
  border-left: 5px solid var(--brand-orange);
  background: white;
  box-shadow: var(--shadow-sm);
}

.sales-tip.reverse {
  border-left: none;
  border-right: 5px solid var(--brand-cyan);
}

.tip-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: var(--brand-orange);
  font-weight: 800;
  font-family: var(--font-heading);
  min-width: 100px;
}

.tip-icon i {
  font-size: 2.2rem;
  margin-bottom: 0.2rem;
}

.tip-icon.accent {
  color: var(--brand-cyan);
}

.sales-tip p {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text-dark);
  font-style: italic;
  font-family: var(--font-heading);
  line-height: 1.5;
}

/* Horizontal Feature (Comparator) */
.feature-horizontal {
  padding: 3rem;
  background: white;
}
.feature-horizontal .horizontal-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

@media (max-width: 900px) {
  .feature-horizontal .horizontal-content {
    flex-direction: column;
  }
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.feature-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: white;
}

.img-wrapper {
  width: 100%;
  height: 480px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
  background: var(--bg-secondary);
}

.app-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .app-screenshot {
  transform: scale(1.04);
}

/* Custom AI Chat Widget */
.chat-widget { position: fixed; bottom: 30px; right: 30px; z-index: 999; }
.chat-button { background: var(--brand-orange); color: white; border: none; width: 60px; height: 60px; border-radius: 50%; font-size: 2rem; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 10px 20px rgba(255, 119, 0, 0.3); transition: transform 0.3s; }
.chat-button:hover { transform: scale(1.1); }
.chat-window { display: none; position: absolute; bottom: 80px; right: 0; width: 360px; background: white; border-radius: 12px; border: 1px solid var(--glass-border); box-shadow: var(--shadow-hover); overflow: hidden; flex-direction: column; }
.chat-window.active { display: flex; }
.chat-header { background: var(--grad-blue); color: white; padding: 1rem; font-family: var(--font-heading); font-weight: 600; display: flex; justify-content: space-between; align-items: center;}
.chat-body { padding: 1rem; height: 380px; overflow-y: auto; background: var(--bg-secondary); display: flex; flex-direction: column; gap: 0.8rem; }
.chat-bubble { padding: 0.8rem 1rem; font-size: 0.95rem; line-height: 1.4; max-width: 85%; box-shadow: var(--shadow-sm); }
.bot-bubble { background: white; color: var(--text-dark); border-radius: 12px 12px 12px 0; align-self: flex-start; }
.user-bubble { background: var(--brand-blue); color: white; border-radius: 12px 12px 0 12px; align-self: flex-end; }
.chat-footer { padding: 1rem; background: white; border-top: 1px solid var(--glass-border); display: flex; gap: 0.5rem; }
.chat-footer input { flex: 1; padding: 0.8rem; border: 1px solid rgba(0,0,0,0.1); border-radius: 8px; outline: none; transition: border 0.3s; font-family: var(--font-body); font-size: 1rem; }
.chat-footer input:focus { border-color: var(--primary); }

.chat-btn-link {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--brand-orange);
  color: white !important;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 4px 6px rgba(255, 119, 0, 0.2);
}
.chat-btn-link:hover {
  background: #e66a00;
  transform: translateY(-2px);
}

/* Typing animation */
.typing .dot { display: inline-block; width: 6px; height: 6px; background: var(--text-muted); border-radius: 50%; margin-right: 3px; animation: bounce 1.4s infinite ease-in-out both; }
.typing .dot:nth-child(1) { animation-delay: -0.32s; }
.typing .dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }

/* Footer */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 60px 0 40px;
}

.footer-content {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo-img {
  height: 50px;
  filter: brightness(0) invert(1); /* Makes the logo white for the dark footer */
}

.footer p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Animations Logic */
.animate-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* Responsive */
@media (max-width: 992px) {
  .hero-container {
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
    display: flex;
  }
  .sales-tip {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; 
  }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  .img-wrapper { height: 350px; }
}
