/* ===== CSS Variables ===== */
:root {
  --primary: #7166F5;
  --primary-hover: #5346F8;
  --primary-light: #eef0ff;
  --text-dark: #030303;
  --text-body: #333333;
  --text-muted: #767676;
  --text-light: #ffffff;
  --bg-light: #f4f6f9;
  --bg-dark: #1a1e36;
  --border-radius: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --transition: 0.3s ease;
  --container: 1200px;
  --header-height: 80px;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-body);
  line-height: 1.7;
  background: #fff;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.section-title.center {
  text-align: center;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
}

.section-subtitle.center {
  text-align: center;
  margin: 0 auto 48px;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.site-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
}

.site-logo:hover {
  color: var(--primary);
}

.main-nav ul {
  display: flex;
  gap: 32px;
  align-items: center;
}

.main-nav a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-dark);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: var(--header-height);
  background:
    linear-gradient(rgba(26, 30, 54, 0.72), rgba(26, 30, 54, 0.72)),
    url('https://images.unsplash.com/photo-1555680202-c86f0e12f086?w=1920&q=80') center/cover no-repeat;
  color: var(--text-light);
  padding: 60px 20px;
}

.hero-page {
  min-height: 45vh;
}

.hero-about {
  background:
    linear-gradient(rgba(26, 30, 54, 0.72), rgba(26, 30, 54, 0.72)),
    url('https://images.unsplash.com/photo-1461151304267-38535e780c79?w=1920&q=80') center/cover no-repeat;
}

.hero-contact {
  background:
    linear-gradient(rgba(26, 30, 54, 0.72), rgba(26, 30, 54, 0.72)),
    url('https://images.unsplash.com/photo-1543393274-903f18376554?w=1920&q=80') center/cover no-repeat;
}

.hero-privacy {
  background:
    linear-gradient(rgba(26, 30, 54, 0.72), rgba(26, 30, 54, 0.72)),
    url('https://images.unsplash.com/photo-1564419320461-468bf2a83898?w=1920&q=80') center/cover no-repeat;
}

.hero-content {
  max-width: 800px;
}

.hero h1,
.hero h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.3;
}

.hero p {
  font-size: 1rem;
  opacity: 0.92;
  margin-bottom: 32px;
  line-height: 1.8;
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform 0.2s ease;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  color: #fff;
}

/* ===== How We Assist ===== */
.assist-section {
  background: #fff;
}

.assist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.assist-list {
  margin-top: 28px;
}

.assist-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.check-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.7rem;
  margin-top: 3px;
}

.assist-images {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

.assist-images img {
  border-radius: var(--border-radius);
  object-fit: cover;
  width: 100%;
}

.assist-images .img-tall {
  grid-row: span 2;
  height: 100%;
  min-height: 380px;
}

.assist-images .img-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.assist-images .img-stack img {
  height: 182px;
  object-fit: cover;
}

/* ===== Solutions Cards ===== */
.solutions-section {
  background:
    linear-gradient(135deg, rgba(244, 246, 249, 0.95), rgba(244, 246, 249, 0.95)),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 40px,
      rgba(200, 210, 220, 0.15) 40px,
      rgba(200, 210, 220, 0.15) 80px
    );
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.solution-card {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.solution-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.solution-card-body {
  padding: 24px;
}

.solution-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.solution-card ul {
  list-style: disc;
  padding-left: 18px;
}

.solution-card li {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.5;
}

/* ===== Installation Procedure ===== */
.install-section {
  background: var(--bg-dark);
  color: #fff;
}

.install-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.install-section .section-title {
  color: #fff;
  margin-bottom: 32px;
}

.install-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.install-step {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 20px 24px;
  color: var(--text-dark);
  transition: transform var(--transition);
}

.install-step:hover {
  transform: translateX(6px);
}

.install-step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.install-step p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.install-image img {
  border-radius: var(--border-radius);
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* ===== Begin Today & Disclaimer ===== */
.begin-section,
.disclaimer-section {
  text-align: center;
  background: #fff;
}

.begin-section .section-subtitle,
.disclaimer-section .section-subtitle {
  margin: 0 auto 40px;
}

.begin-image {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.begin-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.disclaimer-section {
  background: var(--bg-light);
}

/* ===== Activation Section ===== */
.activation-section {
  background: linear-gradient(180deg, #f9fbff 0%, #eef2ff 100%);
  padding: 80px 20px;
}

.activation-box {
  background: #fff;
  border-radius: 18px;
  padding: 48px 40px;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.activation-box h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.activation-box > p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.activation-form input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid #cfd7e3;
  background: #f7f9fc;
  font-size: 1rem;
  text-align: center;
  margin-bottom: 16px;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.activation-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(113, 102, 245, 0.2);
}

.activation-form button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(90deg, var(--primary), #00c6ff);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, opacity var(--transition);
}

.activation-form button:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.activation-info {
  background: #f1f5fb;
  padding: 18px 20px;
  border-radius: 10px;
  margin-top: 28px;
  text-align: left;
}

.activation-info h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.activation-info ul {
  list-style: disc;
  padding-left: 20px;
}

.activation-info li {
  font-size: 0.88rem;
  color: #334155;
  margin-bottom: 4px;
}

.activation-message {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
}

.activation-message.success {
  display: block;
  background: #d1fae5;
  color: #065f46;
}

.activation-message.error {
  display: block;
  background: #fee2e2;
  color: #991b1b;
}

/* ===== About Page ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-content p {
  margin-bottom: 20px;
  color: var(--text-muted);
}

.approach-list {
  margin-top: 20px;
}

.approach-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.dedication-section {
  background: var(--bg-light);
}

.dedication-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.dedication-content p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ===== Contact Page ===== */
.contact-intro {
  max-width: 700px;
  margin-bottom: 48px;
}

.contact-intro p {
  color: var(--text-muted);
  margin-top: 12px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 32px;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  transition: box-shadow var(--transition);
}

.contact-card:hover {
  box-shadow: var(--shadow);
}

.contact-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 1.3rem;
  color: var(--primary);
}

.contact-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.contact-card p,
.contact-card a {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-card a:hover {
  color: var(--primary);
}

/* ===== Privacy Policy ===== */
.privacy-content {
  max-width: 800px;
  margin: 0 auto;
}

.privacy-content > p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.privacy-block {
  margin-bottom: 32px;
}

.privacy-block h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.privacy-block p {
  color: var(--text-muted);
  margin-bottom: 10px;
}

.privacy-block ul {
  list-style: disc;
  padding-left: 24px;
  color: var(--text-muted);
}

.privacy-block li {
  margin-bottom: 6px;
}

.privacy-contact {
  background: var(--bg-light);
  padding: 24px;
  border-radius: var(--border-radius);
  margin-top: 20px;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 24px 20px;
  font-size: 0.85rem;
}

/* ===== Chat Widget ===== */
.chat-widget {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
}

.chat-bubble {
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(113, 102, 245, 0.4);
  transition: transform var(--transition);
  position: relative;
}

.chat-bubble:hover {
  transform: scale(1.08);
}

.chat-bubble i {
  color: #fff;
  font-size: 1.5rem;
}

.chat-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  background: #e53e3e;
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.chat-popup {
  position: absolute;
  bottom: 76px;
  left: 0;
  width: 300px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 20px;
  display: none;
  animation: slideUp 0.3s ease;
}

.chat-popup.active {
  display: block;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.chat-popup-header h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
}

.chat-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}

.chat-popup p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.chat-popup .btn-primary {
  margin-top: 14px;
  width: 100%;
  text-align: center;
  padding: 10px;
  font-size: 0.8rem;
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 998;
  box-shadow: var(--shadow);
  transition: background var(--transition), transform 0.2s ease;
}

.back-to-top.visible {
  display: flex;
}

.back-to-top:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .assist-grid,
  .install-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .assist-images {
    order: -1;
  }

  .install-image img {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
    pointer-events: none;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav li {
    width: 100%;
    border-bottom: 1px solid #eee;
  }

  .main-nav a {
    display: block;
    padding: 14px 0;
  }

  .section-padding {
    padding: 60px 0;
  }

  .assist-images .img-tall {
    min-height: 260px;
  }

  .activation-box {
    padding: 32px 24px;
  }

  .chat-widget {
    bottom: 16px;
    left: 16px;
  }
}
