html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  align-items: stretch !important;
  width: 100%;
  margin: 0;
  overflow-x: hidden;
  background: #f0f2f5;
  color: #333;
  line-height: 1.6;
  -webkit-overflow-scrolling: touch;
}

strong {
  color: var(--color-primary);
}

.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  min-height: 100dvh;
  padding: 40px 8%;
  background: linear-gradient(
    135deg,
    var(--color-tertiary) 0%,
    var(--color-primary) 100%
  );
  color: white;
  position: relative;
  overflow: hidden;
  gap: 40px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero-content {
  flex: 1;
  max-width: 600px;
  z-index: 2;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-title-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.hero-mini-logo {
  width: 60px;
  height: auto;
  margin-bottom: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.hero-section h1 {
  font-size: 3rem;
  line-height: 1;
  font-weight: 800;
  margin: 0;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
  text-align: left;
}

.hero-section .subtitle {
  font-size: 1.25rem;
  margin-bottom: 35px;
  opacity: 0.95;
  line-height: 1.6;
  max-width: 95%;
}

.hero-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.cta-button {
  background-color: #ffa140;
  color: var(--color-secondary) !important;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
}

.cta-button i {
  margin-right: 10px;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  color: white;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.hero-visual {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
  position: relative;
  animation: floatHero 6s ease-in-out infinite;
}

.hero-main-image {
  width: 100%;
  height: auto;
  max-width: 1200px;
  border-radius: 8px;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.5));
}

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

.hero-rating-badge {
  margin-top: -30px;
  background: rgba(255, 255, 255, 0.95);
  padding: 10px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:  0 8px 32px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 1);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  color: #333;
}

.rating-skeleton {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
}

.skeleton-line {
  background: #ccc;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.skeleton-line.large {
  width: 60px;
  height: 24px;
}

.skeleton-line.small {
  width: 80px;
  height: 12px;
}

.skeleton-line::after {
  content: "";
  display: block;
  position: absolute;
  left: -150px;
  top: 0;
  height: 100%;
  width: 150px;
  background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
  animation: loadShimmer 1.5s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
}

@keyframes loadShimmer {
  from { left: -150px; }
  to { left: 100%; }
}

.rating-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 1.875rem;
  font-weight: 800;
  color: #2c3e50;
}

.rating-stars i {
  color: #f1c40f;
  font-size: 1.4rem;
  filter: drop-shadow(0 2px 2px rgba(241, 196, 15, 0.3));
}

.rating-text {
  font-size: 0.8rem;
  color: #666;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.scroll-down-arrow {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 2rem;
  z-index: 5;
  cursor: pointer;
  text-decoration: none;
  animation: bounceArrow 2s infinite;
  transition: color 0.3s ease;
}

@keyframes bounceArrow {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.content-wrapper {
  text-align: center;
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}

section {
  background-color: #fff;
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: justify;
}

section h2,
section h3 {
  color: var(--color-primary);
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
  margin-bottom: 20px;
  font-size: 1.8rem;
  font-weight: 700;
}

section h3 {
  font-size: 1.4rem;
  border: none;
  margin-top: 20px;
}

section p,
section li {
  font-size: 1rem;
  margin-bottom: 15px;
}

section ul,
section ol {
  margin-left: 20px;
}

section li {
  margin-bottom: 10px;
}

section a {
  color: var(--color-primary);
  font-weight: 700;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

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

.feature-item i {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 15px;
  display: inline-block;
}

.feature-item h3 {
  font-size: 1.3rem;
  color: var(--color-secondary);
  margin-bottom: 10px;
  border: none;
}

.feature-item p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

#ai-logic .intro-text {
  margin-bottom: 25px;
  font-size: 1.05rem;
  color: #555;
}

.ai-detail-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.ai-detail-item[open] {
  border-color: var(--color-primary);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.ai-detail-item summary {
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  color: var(--color-secondary);
  list-style: none;
  outline: none;
}

.ai-detail-item summary::-webkit-details-marker {
  display: none;
}

.ai-detail-item summary > i:first-child {
  margin-right: 12px;
  color: var(--color-primary);
  width: 20px;
  text-align: center;
}

.arrow-icon {
  font-size: 0.9rem;
  color: #999;
  transition: transform 0.3s ease;
}

.ai-detail-item[open] .arrow-icon {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.detail-body {
  padding: 0 20px 20px 20px;
  border-top: 1px solid transparent;
  color: #444;
}

.ai-detail-item[open] .detail-body {
  border-top-color: #eee;
  padding-top: 15px;
  animation: fadeIn 0.4s ease;
}

.detail-body ul,
.detail-body ol {
  margin-left: 25px;
  margin-top: 10px;
}

.detail-body li {
  margin-bottom: 8px;
}

.ai-quote {
  background: #eef4fa;
  border-left: 4px solid var(--color-primary);
  padding: 15px;
  margin: 15px 0;
  font-style: italic;
  color: #555;
  border-radius: 0 4px 4px 0;
}

.ai-footer {
  width: 100%;
  padding: 30px 0;
  text-align: center;
  font-weight: 600;
  color: var(--color-primary);
  font-style: italic;
  border-top: 2px dashed #e0e0e0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

footer {
  background-color: var(--color-secondary);
  color: #ccc;
  text-align: center;
  padding: 30px 0;
  width: 100%;
}

footer .dev-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-bottom: 10px;
}

footer p {
  color: #ccc;
  max-width: 90%;
  margin: 0 auto;
  font-size: 0.9rem;
}

footer a {
  color: #ff9800;
  text-decoration: none;
  transition: color 0.2s;
}

@media (hover: hover) and (pointer: fine) {
  .cta-button:hover {
    background-color: #ffb76b;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  }

  .secondary-button:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: white;
    transform: translateY(-3px);
  }

  .scroll-down-arrow:hover {
    color: white;
  }

  .ai-detail-item summary:hover {
    background-color: #f0f2f5;
  }

  footer a:hover {
    color: #ffd180;
    text-decoration: underline;
  }
}

@media screen and (max-width: 1200px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
    padding: 100px 20px 80px;
    gap: 30px;
    justify-content: center;
  }

  .hero-main-image {
    max-width: 600px;
  }
}

@media screen and (max-width: 900px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
    padding: 100px 20px 80px;
    gap: 30px;
    justify-content: center;
  }

  .hero-title-wrapper {
    justify-content: center;
    margin-bottom: 15px;
  }

  .hero-content {
    align-items: center;
    margin-bottom: 20px;
  }

  .hero-section h1 {
    text-align: center;
    font-size: 2.2rem;
  }

  .hero-section .subtitle {
    text-align: center;
    margin: 0 auto 30px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    width: 100%;
  }

  .hero-main-image {
    max-width: 90%;
  }

  .hero-mini-logo {
    width: 50px;
  }

  .hero-rating-badge {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: -20px;
    margin-bottom: 20px;
    display: inline-flex;
    padding: 8px 16px; 
    border-radius: 12px;
  }

  .rating-stars {
    font-size: 1.4rem;
    gap: 4px;
  }
  
  .rating-stars i {
    font-size: 1.1rem;
  }

  .rating-text {
    font-size: 0.7rem;
    margin-top: 2px;
  }
}

@media screen and (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.2rem;
  }
  .hero-section .subtitle,
  .cta-button {
    font-size: 1rem;
  }
  .cta-button {
    padding: 12px 25px;
  }
  section {
    padding: 20px;
  }
  section h2 {
    font-size: 1.5rem;
  }
}

@media screen and (max-height: 600px) {
  .scroll-down-arrow {
    display: none;
  }
}
