/* Landing Page Styles - Enhanced Version */

/* Reset and Base */
* {
  box-sizing: border-box;
}

.page {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #ffffff;
  overflow-x: hidden;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0a2e36 0%, #09a129 50%, #27fb6b 100%);
  color: white;
  padding: 80px 20px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(39, 251, 107, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(20, 204, 96, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 80px;
  flex-wrap: wrap;
  gap: 20px;
  animation: fadeInDown 0.8s ease-out;
}

.hero-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 32px;
  font-weight: 700;
  transition: transform 0.3s ease;
}

.hero-logo:hover {
  transform: scale(1.05);
}

.hero-nav {
  display: flex;
  gap: 12px;
  align-items: center;
}

.logo-mark {
  width: 48px;
  height: 48px;
  display: inline-block;
  vertical-align: middle;
  animation: float 3s ease-in-out infinite;
  flex-shrink: 0;
}

.logo-text {
  background: linear-gradient(135deg, #27fb6b 0%, #14cc60 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content {
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-content h1 {
  font-size: 56px;
  font-weight: 700;
  margin: 0 0 24px 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 20px;
  margin: 0 0 40px 0;
  opacity: 0.95;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.4s both;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: #14cc60;
  color: white;
  box-shadow: 0 4px 14px rgba(20, 204, 96, 0.3);
}

.btn-primary:hover {
  background: #27fb6b;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(20, 204, 96, 0.5);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.btn-large {
  padding: 20px 40px;
  font-size: 20px;
}

.btn-small {
  padding: 10px 20px;
  font-size: 14px;
}

/* Sections */
.section {
  padding: 120px 20px;
  position: relative;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.section.visible {
  opacity: 1;
}

.section-alt {
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}


.section-icon {
  font-size: 64px;
  display: inline-block;
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

.section-intro {
  font-size: 20px;
  line-height: 1.8;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
  text-align: center !important;
}

.section-content {
  animation: fadeInLeft 0.8s ease-out;
}

.section-inner h2 {
  font-size: 42px;
  font-weight: 700;
  margin: 0 0 24px 0;
  color: #0a2e36;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-inner h3 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: #0a2e36;
}

.section-inner p {
  font-size: 18px;
  line-height: 1.8;
  color: #555;
  margin: 0 0 20px 0;
}

.section-inner .section-intro,
.section-header .section-intro,
.section-intro {
  text-align: center !important;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.two-column-text {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.section-image {
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInRight 0.8s ease-out;
  overflow: hidden;
  max-width: 100%;
  height: 500px;
  background: #f8f9fa;
}

.section-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
}

.placeholder-content img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

.placeholder-icon {
  font-size: 64px;
  opacity: 0.5;
}

.placeholder-dashboard,
.placeholder-chart,
.placeholder-form,
.placeholder-operation {
  background: #f8f9fa;
  border: none;
  overflow: hidden;
}

.section-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-card {
  background: white;
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(20, 204, 96, 0.1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(20, 204, 96, 0.2);
  border-color: rgba(20, 204, 96, 0.3);
}

.feature-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

.feature-card:nth-child(2) .feature-icon {
  animation-delay: 0.5s;
}

.feature-card:nth-child(3) .feature-icon {
  animation-delay: 1s;
}

.feature-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: #0a2e36;
}

.feature-card p {
  font-size: 16px;
  line-height: 1.7;
  color: #666;
  margin: 0;
}

/* Section Contrast */
.section-contrast {
  background: linear-gradient(135deg, #0a2e36 0%, #1a4a52 100%);
  color: white;
  padding: 120px 20px;
  position: relative;
  overflow: hidden;
}

.section-contrast::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(39, 251, 107, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.section-contrast h3 {
  color: #27fb6b;
  margin-bottom: 30px;
  font-size: 32px;
}

.section-contrast ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.section-contrast li {
  padding: 16px 0;
  font-size: 18px;
  line-height: 1.6;
  position: relative;
  padding-left: 40px;
  transition: transform 0.2s ease;
}

.section-contrast li:hover {
  transform: translateX(5px);
}

.section-contrast li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #27fb6b;
  font-weight: bold;
  font-size: 24px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(39, 251, 107, 0.1);
  border-radius: 50%;
}

.section-contrast .section-inner > div:first-child li::before {
  content: "✗";
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
}

/* Section Final (CTA) */
.section-final {
  background: linear-gradient(135deg, #0a2e36 0%, #09a129 100%);
  color: white;
  text-align: center;
  padding: 140px 20px;
  position: relative;
  overflow: hidden;
}

.section-final::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(39, 251, 107, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.section-final .section-inner {
  position: relative;
  z-index: 1;
}

.section-final h2 {
  color: white;
  font-size: 48px;
  margin-bottom: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-final p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 20px;
  max-width: 700px;
  margin: 0 auto 50px;
  line-height: 1.8;
}

.cta-note {
  margin-top: 24px;
  font-size: 16px;
  opacity: 0.9;
}

/* Footer */
.footer {
  background: #0a2e36;
  color: rgba(255, 255, 255, 0.8);
  padding: 50px 20px;
  text-align: center;
  border-top: 1px solid rgba(39, 251, 107, 0.1);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-inner span {
  font-size: 14px;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* Responsive Design */
@media (max-width: 968px) {
  .section-split {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .section-image {
    order: -1;
    padding: 15px;
    height: 400px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 60px 20px;
    min-height: auto;
  }

  .hero-header {
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
  }

  .hero-nav {
    width: 100%;
    justify-content: center;
  }

  .hero-nav .btn {
    flex: 1;
    max-width: 150px;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .section {
    padding: 80px 20px;
  }

  .section-inner h2 {
    font-size: 32px;
  }

  .section-icon {
    font-size: 48px;
  }

  .section-intro {
    font-size: 18px;
  }

  .section-final {
    padding: 100px 20px;
  }

  .section-final h2 {
    font-size: 32px;
  }

  .section-final p {
    font-size: 18px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .two-column-text {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .section-inner h2 {
    font-size: 24px;
  }

  .section-inner p {
    font-size: 16px;
  }

  .section-icon {
    font-size: 40px;
  }

  .feature-icon {
    font-size: 40px;
  }
  
  .section-image {
    padding: 10px;
    height: 300px;
  }
}
