:root {
  --primary: #002060;
  --teal: #006666;
  --orange: #FF6600;
  --warm-gray: #aa8b6f;
  --white: #FFFFFF;
  --light-gray: #f5f5f5;
  --dark-gray: #333333;
  --text-muted: #666666;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  background: var(--white);
  color: var(--dark-gray);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary);
}

.logo-icon {
  width: 32px;
  height: 32px;
}

.logo-text {
  color: var(--primary);
}

.logo-highlight {
  color: var(--teal);
}

.language-selector {
  display: flex;
  gap: 0.5rem;
}

.language-btn {
  padding: 0.5rem 1rem;
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.language-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.language-btn:hover:not(.active) {
  background: rgba(0, 32, 96, 0.1);
}


/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 2rem 6rem;
  min-height: 700px;
  display: flex;
  align-items: center;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.gradient-blur {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 32, 96, 0.05) 0%, rgba(0, 102, 102, 0.05) 100%);
}

.hero-svg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.highlight-text {
  display: block;
  background: linear-gradient(135deg, var(--primary) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.subtitle-text {
  display: block;
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 400;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.9rem 2rem;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--teal) 100%);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(0, 32, 96, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 32, 96, 0.35);
}

.btn-secondary {
  background: var(--light-gray);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-submit {
  background: linear-gradient(135deg, var(--primary) 0%, var(--teal) 100%);
  color: var(--white);
  width: 100%;
  box-shadow: 0 8px 24px rgba(0, 32, 96, 0.2);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 32, 96, 0.3);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 400px;
}

.floating-card {
  position: absolute;
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  animation: float 3s ease-in-out infinite;
}

.card-1 {
  top: 20px;
  left: 0;
  animation-delay: 0s;
}

.card-2 {
  top: 150px;
  right: 0;
  animation-delay: 1s;
}

.card-3 {
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.card-value {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.chart-svg {
  width: 100%;
  height: 100%;
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}



/* Features Section */
.features-section {
  padding: 6rem 2rem;
  background: var(--light-gray);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(0, 32, 96, 0.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 32, 96, 0.15);
  border-color: var(--orange);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 48px;
  height: 48px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-icon.forecast svg {
  color: var(--primary);
  stroke: var(--primary);
}

.feature-icon.dimensioning svg {
  color: var(--teal);
  stroke: var(--teal);
}

.feature-icon.optimization svg {
  color: var(--orange);
  stroke: var(--orange);
}

.feature-icon.analytics svg {
  color: var(--primary);
  stroke: var(--primary);
}

.feature-card h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Register Section */
.register-section {
  padding: 6rem 2rem;
  background: var(--white);
}

.register-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: flex-start;
}

.register-text {
  padding-right: 2rem;
}

.register-text .section-title {
  text-align: left;
  margin-bottom: 1rem;
}

.form-description {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 0;
}

.register-form {
  background: var(--light-gray);
  padding: 2.5rem;
  border-radius: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.form-group {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group input {
  background: var(--white);
  border: 1px solid rgba(0, 32, 96, 0.1);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 32, 96, 0.1);
}

.form-group input:not(:placeholder-shown) + label,
.form-group input:focus + label {
  transform: translateY(-1.5rem);
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}

.form-group label {
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
  transition: var(--transition);
  margin-bottom: 0.25rem;
}

.message {
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  display: none;
  text-align: center;
  font-weight: 600;
  grid-column: 1 / -1;
}

.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Footer */
.footer {
  background: var(--primary);
  color: var(--white);
  padding: 4rem 2rem 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand .logo-nav {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-brand .logo-highlight {
  color: var(--white);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-links h4 {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--orange);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .register-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .register-text {
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .navbar-container {
    padding: 1rem;
  }

  .hero {
    padding: 3rem 1.5rem 4rem;
    min-height: 600px;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-cta {
    gap: 0.75rem;
  }

  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }

  .features-section {
    padding: 4rem 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .register-section {
    padding: 4rem 1.5rem;
  }

  .register-form {
    padding: 1.5rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer {
    padding: 3rem 1.5rem 1rem;
  }
}

@media (max-width: 480px) {
  .logo-nav {
    gap: 0.5rem;
    font-size: 1.1rem;
  }

  .logo-icon {
    width: 28px;
    height: 28px;
  }

  .language-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }

  .hero {
    padding: 2rem 1rem 3rem;
    min-height: 500px;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .subtitle-text {
    font-size: 1rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .floating-card {
    padding: 1rem;
  }

  .card-value {
    font-size: 1.3rem;
  }
}

