/* ===================================================
   homepage-2.css - Hostioo Cloud Homepage v2
   Inspired by hostivov2 design
   =================================================== */

:root {
  --v2-primary: #070707;
  --v2-primary-dark: #000000;
  --v2-accent: #070707;
  --v2-accent-hover: #1a1a1a;
  --v2-bg-dark: #0a0a0a;
  --v2-bg-light: #f8f9fa;
  --v2-bg-card: #ffffff;
  --v2-text: #373737;
  --v2-text-light: #666666;
  --v2-text-white: #ffffff;
  --v2-border: #e8e8e8;
  --v2-radius: 16px;
  --v2-radius-sm: 10px;
  --v2-shadow: 0 10px 40px rgba(0,0,0,0.06);
  --v2-shadow-hover: 0 20px 60px rgba(0,0,0,0.1);
  --v2-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ===================== HERO ===================== */

.hero-v2 {
  background: linear-gradient(135deg, #f1f9ff 0%, #ffffff 50%, #f1f9ff 100%);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-v2::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(7,7,7,0.03) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-v2-shape {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  clip-path: polygon(0 65%, 100% 0, 100% 100%, 0% 100%);
}

.hero-v2-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--v2-primary);
  color: white;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-v2-content h1 {
  font-size: 48px;
  font-weight: 700;
  color: var(--v2-text);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-v2-content h1 .highlight {
  color: var(--v2-primary);
  border-bottom: 4px solid var(--v2-primary);
  padding-bottom: 2px;
}

.hero-v2-content p {
  font-size: 18px;
  color: var(--v2-text-light);
  margin-bottom: 30px;
  line-height: 1.6;
  max-width: 540px;
}

.hero-v2-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn-v2-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--v2-primary);
  color: white;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--v2-radius-sm);
  border: 2px solid var(--v2-primary);
  transition: var(--v2-transition);
  cursor: pointer;
}

.btn-v2-primary:hover {
  background: var(--v2-primary-dark);
  border-color: var(--v2-primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(7,7,7,0.2);
}

.btn-v2-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--v2-primary);
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--v2-radius-sm);
  border: 2px solid var(--v2-primary);
  transition: var(--v2-transition);
  cursor: pointer;
}

.btn-v2-secondary:hover {
  background: var(--v2-primary);
  color: white;
  transform: translateY(-2px);
}

.hero-v2-stats {
  display: flex;
  gap: 40px;
}

.hero-v2-stats .stat-item {
  text-align: center;
}

.hero-v2-stats .stat-num {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--v2-primary);
}

.hero-v2-stats .stat-label {
  font-size: 14px;
  color: var(--v2-text-light);
  font-weight: 500;
}

.hero-v2-image {
  position: relative;
  text-align: center;
}

.hero-v2-image > img {
  max-width: 100%;
  border-radius: var(--v2-radius);
  box-shadow: var(--v2-shadow);
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  padding: 10px 18px;
  border-radius: var(--v2-radius-sm);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  font-size: 14px;
  font-weight: 600;
  color: var(--v2-text);
  animation: float 3s ease-in-out infinite;
}

.floating-card i {
  font-size: 18px;
  color: var(--v2-primary);
}

.floating-card.card-1 { top: 10%; left: -10%; animation-delay: 0s; }
.floating-card.card-2 { top: 45%; right: -8%; animation-delay: 0.5s; }
.floating-card.card-3 { bottom: 15%; left: -5%; animation-delay: 1s; }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* ===================== SECTION HEADER ===================== */

.section-v2-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.section-v2-tag {
  display: inline-block;
  padding: 5px 14px;
  background: var(--v2-primary);
  color: white;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.section-v2-header h2 {
  font-size: 38px;
  font-weight: 700;
  color: var(--v2-text);
  margin-bottom: 16px;
}

.section-v2-header h2 .highlight {
  color: var(--v2-primary);
  border-bottom: 3px solid var(--v2-primary);
  padding-bottom: 2px;
}

.section-v2-header p {
  font-size: 17px;
  color: var(--v2-text-light);
  line-height: 1.6;
}

/* ===================== SERVICES ===================== */

.services-v2 {
  padding: 80px 0 60px;
  background: #ffffff;
}

.service-v2-card {
  background: var(--v2-bg-card);
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius);
  padding: 32px 28px;
  height: 100%;
  transition: var(--v2-transition);
  position: relative;
  overflow: hidden;
}

.service-v2-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--v2-primary);
  transition: var(--v2-transition);
}

.service-v2-card:hover {
  box-shadow: var(--v2-shadow-hover);
  transform: translateY(-4px);
  border-color: transparent;
}

.service-v2-card:hover::before {
  height: 100%;
}

.service-v2-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f9ff;
  border-radius: 12px;
  transition: var(--v2-transition);
}

.service-v2-card:hover .service-v2-icon {
  background: var(--v2-primary);
}

.service-v2-icon img {
  width: 32px;
  height: 32px;
  transition: var(--v2-transition);
  filter: brightness(0);
}

.service-v2-card:hover .service-v2-icon img {
  filter: brightness(10);
}

.service-v2-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--v2-text);
  margin-bottom: 12px;
}

.service-v2-card p {
  font-size: 15px;
  color: var(--v2-text-light);
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-v2-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--v2-primary);
  transition: var(--v2-transition);
}

.service-v2-link:hover {
  gap: 12px;
  color: var(--v2-primary-dark);
}

/* ===================== OFFERS ===================== */

.offers-v2 {
  padding: 80px 0;
  background: var(--v2-bg-light);
}

.offer-v2-card {
  background: white;
  border-radius: var(--v2-radius);
  overflow: hidden;
  box-shadow: var(--v2-shadow);
  height: 100%;
  transition: var(--v2-transition);
  position: relative;
}

.offer-v2-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--v2-shadow-hover);
}

.offer-v2-bg {
  height: 120px;
  background: linear-gradient(135deg, #f1f9ff, #e8f8fb);
  display: flex;
  align-items: center;
  justify-content: center;
}

.offer-v2-bg img {
  height: 64px;
  opacity: 0.15;
}

.offer-v2-content {
  padding: 0 28px 28px;
  margin-top: -30px;
  position: relative;
}

.offer-v2-icon-wrap {
  width: 56px;
  height: 56px;
  background: var(--v2-primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 8px 25px rgba(7,7,7,0.15);
}

.offer-v2-icon-wrap i {
  font-size: 26px;
  color: white;
}

.offer-v2-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--v2-text);
  margin-bottom: 12px;
}

.offer-v2-content p {
  font-size: 14px;
  color: var(--v2-text-light);
  line-height: 1.6;
  margin-bottom: 18px;
}

.offer-v2-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.offer-v2-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--v2-text);
  padding: 6px 0;
  font-weight: 500;
}

.offer-v2-list li i {
  color: var(--v2-primary);
  font-size: 16px;
}

/* ===================== NODEJS ===================== */

.nodejs-v2 {
  padding: 80px 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.nodejs-v2::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
  border-radius: 50%;
}

.nodejs-v2 .section-v2-tag {
  background: rgba(255,255,255,0.15);
  color: white;
}

.nodejs-v2-content h2 {
  font-size: 38px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.nodejs-v2-content h2 .highlight {
  color: #4CAF50;
  border-bottom: 3px solid #4CAF50;
  padding-bottom: 2px;
}

.nodejs-v2-content > p {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 30px;
  line-height: 1.6;
}

.nodejs-versions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.version-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  cursor: default;
  transition: var(--v2-transition);
}

.version-item.active {
  background: rgba(76, 175, 80, 0.2);
  border-color: #4CAF50;
}

.version-item .ver-num {
  font-size: 15px;
  font-weight: 700;
  color: white;
}

.version-item .ver-tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(76,175,80,0.3);
  color: #4CAF50;
}

.nodejs-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.nodejs-info-item {
  display: flex;
  align-items: start;
  gap: 14px;
}

.nodejs-info-item i {
  font-size: 24px;
  color: #4CAF50;
  margin-top: 2px;
}

.nodejs-info-item strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: white;
  margin-bottom: 2px;
}

.nodejs-info-item p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin: 0;
}

.npm-terminal {
  background: #1e1e1e;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}

.npm-terminal-header {
  background: #2d2d2d;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.npm-terminal-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.npm-terminal-header .red { background: #ff5f56; }
.npm-terminal-header .yellow { background: #ffbd2e; }
.npm-terminal-header .green { background: #27c93f; }

.npm-terminal-header .terminal-title {
  margin-left: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

.npm-terminal-body {
  padding: 16px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
}

.npm-terminal-body .prompt {
  color: #4CAF50;
  font-weight: 700;
  margin-right: 6px;
}

.npm-terminal-body .output {
  color: rgba(255,255,255,0.5);
  display: block;
  padding-left: 14px;
}

.npm-terminal-body .server-up {
  color: #4CAF50;
}

.nodejs-v2-image {
  position: relative;
  text-align: center;
}

.nodejs-v2-image > img {
  max-width: 100%;
  border-radius: var(--v2-radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.nodejs-floating-cards {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.nfc {
  position: absolute;
  background: rgba(30,30,30,0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  animation: floatNode 3s ease-in-out infinite;
}

.nfc img { width: 40px; height: 40px; }
.nfc i { font-size: 36px; color: #4CAF50; }

.nfc-1 { top: 15%; right: -5%; animation-delay: 0s; }
.nfc-2 { top: 50%; left: -8%; animation-delay: 0.6s; }
.nfc-3 { bottom: 20%; right: 5%; animation-delay: 1.2s; }

@keyframes floatNode {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* ===================== FAQ ===================== */

.faq-v2 {
  padding: 80px 0 60px;
  background: white;
}

.faq-v2-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-v2-item {
  border: 1px solid var(--v2-border);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--v2-transition);
}

.faq-v2-item.active {
  border-color: var(--v2-primary);
  box-shadow: 0 4px 20px rgba(7,7,7,0.06);
}

.faq-v2-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--v2-text);
  cursor: pointer;
  text-align: left;
  transition: var(--v2-transition);
}

.faq-v2-item.active .faq-v2-question {
  color: var(--v2-primary);
}

.faq-v2-question i {
  font-size: 18px;
  transition: var(--v2-transition);
  color: var(--v2-text-light);
}

.faq-v2-item.active .faq-v2-question i {
  transform: rotate(45deg);
  color: var(--v2-primary);
}

.faq-v2-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 24px;
}

.faq-v2-item.active .faq-v2-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

.faq-v2-answer p {
  font-size: 15px;
  color: var(--v2-text-light);
  line-height: 1.7;
  margin: 0;
}

/* ===================== FLOATING SUPPORT BUTTON ===================== */

.support-toggle {
  display: none;
}

.support-float {
  position: absolute;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
}

.support-float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--v2-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 26px;
  box-shadow: 0 8px 30px rgba(7,7,7,0.25);
  transition: var(--v2-transition);
  position: relative;
  z-index: 2;
}

.support-float-btn:hover {
  transform: scale(1.1);
  background: var(--v2-primary-dark);
}

.support-float-btn .bi-x-lg {
  display: none;
}

.support-toggle:checked + .support-float-btn .bi-headset {
  display: none;
}

.support-toggle:checked + .support-float-btn .bi-x-lg {
  display: block;
}

.support-toggle:checked ~ .support-float-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.support-float-menu {
  position: absolute;
  bottom: 75px;
  right: 0;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 50px rgba(0,0,0,0.12);
  padding: 16px;
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform-origin: bottom right;
}

.support-float-header {
  padding: 0 8px 12px;
  border-bottom: 1px solid var(--v2-border);
  margin-bottom: 8px;
}

.support-float-header strong {
  display: block;
  font-size: 15px;
  color: var(--v2-text);
}

.support-float-header span {
  font-size: 12px;
  color: var(--v2-text-light);
}

.support-float-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 10px;
  transition: var(--v2-transition);
  text-decoration: none;
}

.support-float-item:hover {
  background: var(--v2-bg-light);
}

.sfi-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  flex-shrink: 0;
}

.support-float-item.whatsapp .sfi-icon { background: #25D366; }
.support-float-item.telegram .sfi-icon { background: #0088cc; }
.support-float-item.contact .sfi-icon { background: #000000; }
.support-float-item.ticket .sfi-icon { background: #f39c12; }

.sfi-text strong {
  display: block;
  font-size: 14px;
  color: var(--v2-text);
}

.sfi-text span {
  font-size: 12px;
  color: var(--v2-text-light);
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 991px) {
  .hero-v2-content h1 { font-size: 36px; }
  .section-v2-header h2 { font-size: 30px; }
  .nodejs-v2-content h2 { font-size: 30px; }
  .floating-card.card-1 { left: 5%; }
  .floating-card.card-2 { right: 5%; }
  .floating-card.card-3 { left: 5%; }
}

@media (max-width: 767px) {
  .hero-v2 { padding: 50px 0 40px; }
  .hero-v2-content h1 { font-size: 30px; }
  .hero-v2-stats { gap: 24px; }
  .hero-v2-stats .stat-num { font-size: 22px; }
  .section-v2-header h2 { font-size: 26px; }
  .services-v2, .offers-v2, .nodejs-v2, .faq-v2 { padding: 50px 0; }
  .floating-card { display: none; }
  .hero-v2-shape { height: 40px; }
  .nodejs-versions { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-v2-content h1 { font-size: 26px; }
  .hero-v2-actions .btn-v2-primary,
  .hero-v2-actions .btn-v2-secondary {
    width: 100%;
    justify-content: center;
  }
  .hero-v2-stats { justify-content: center; }
  .support-float { bottom: 20px; right: 20px; }
  .support-float-btn { width: 52px; height: 52px; font-size: 22px; }
  .support-float-menu { right: -10px; min-width: 240px; }
}
