:root {
  --green-light: #58a66b;
  --green-dark: #3d7c4d;
  --green-deep: #2d5f3a;
  --navy: #1b2e4b;
  --navy-light: #243a5e;
  --white: #ffffff;
  --off-white: #f4f7f5;
  --gray-100: #e8ede9;
  --gray-500: #6b7c72;
  --gray-800: #2a332e;
  --shadow: 0 4px 24px rgba(27, 46, 75, 0.08);
  --shadow-lg: 0 20px 60px rgba(27, 46, 75, 0.12);
  --radius: 16px;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Hex pattern background */
.hex-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.06;
}

.hex-bg::before {
  content: "";
  position: absolute;
  inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 0l28 16v32L28 64 0 48V16z' fill='none' stroke='%231b2e4b' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 56px 100px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  padding: 0.65rem 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
}

.nav-brand img {
  width: 44px;
  height: 44px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-800);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--green-dark);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: linear-gradient(135deg, var(--green-light), var(--green-dark));
  color: var(--white) !important;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(61, 124, 77, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(61, 124, 77, 0.4);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 0 4rem;
  background: linear-gradient(160deg, var(--off-white) 0%, #e8f2eb 45%, var(--off-white) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(88, 166, 107, 0.12);
  border: 1px solid rgba(88, 166, 107, 0.3);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 1.25rem;
}

.hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--green-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--green-light), var(--green-deep));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--gray-500);
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-light), var(--green-dark));
  color: var(--white);
  box-shadow: 0 6px 24px rgba(61, 124, 77, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 10px 32px rgba(61, 124, 77, 0.45);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--gray-100);
}

.btn-secondary:hover {
  border-color: var(--green-light);
  color: var(--green-dark);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-wrap {
  position: relative;
  width: min(380px, 80vw);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--green-light), var(--navy));
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  opacity: 0.08;
  animation: float 6s ease-in-out infinite;
}

.hero-logo-wrap::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 3px solid var(--navy);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  opacity: 0.15;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

.hero-logo-wrap img {
  position: relative;
  z-index: 1;
  width: 70%;
  filter: drop-shadow(0 20px 40px rgba(27, 46, 75, 0.2));
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-100);
}

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
}

.hero-stat span {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--gray-500);
  font-size: 1.05rem;
}

/* Features */
.features {
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
  background: var(--off-white);
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(88, 166, 107, 0.25);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--green-light), var(--green-dark));
  border-radius: 14px;
  margin-bottom: 1.25rem;
  color: var(--white);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--gray-500);
}

/* Modules */
.modules {
  position: relative;
  background: linear-gradient(180deg, var(--off-white), var(--white));
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.module-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  border-left: 4px solid var(--green-light);
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.module-item:hover {
  transform: translateX(4px);
}

.module-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 10px;
}

.module-item h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.module-item p {
  font-size: 0.9rem;
  color: var(--gray-500);
}

/* Workflow */
.workflow {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.workflow .section-label {
  color: var(--green-light);
}

.workflow .section-header h2 {
  color: var(--white);
}

.workflow .section-header p {
  color: rgba(255, 255, 255, 0.7);
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.workflow-steps::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green-light), transparent);
  opacity: 0.4;
}

.workflow-step {
  text-align: center;
  position: relative;
}

.step-circle {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--green-light), var(--green-dark));
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  box-shadow: 0 8px 32px rgba(88, 166, 107, 0.4);
}

.workflow-step h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.workflow-step p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

/* Requirements */
.requirements {
  background: var(--white);
}

.req-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(88, 166, 107, 0.08), rgba(27, 46, 75, 0.04));
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--gray-100);
}

.req-list {
  list-style: none;
}

.req-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  font-size: 1rem;
  color: var(--gray-800);
}

.req-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-light);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
}

.req-highlight {
  text-align: center;
  padding: 2rem;
}

.req-highlight .java-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.req-highlight p {
  color: var(--gray-500);
  font-size: 0.95rem;
}

/* Contact */
.contact {
  position: relative;
  background: linear-gradient(160deg, #e8f2eb, var(--off-white));
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-card {
  padding: 2.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  text-align: center;
  transition: transform 0.3s;
}

.contact-card:hover {
  transform: translateY(-4px);
}

.contact-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.75rem;
}

.contact-card-icon.whatsapp {
  background: #25d366;
  color: var(--white);
}

.contact-card-icon.email {
  background: linear-gradient(135deg, var(--green-light), var(--green-dark));
  color: var(--white);
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: var(--gray-500);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.contact-card a.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--green-dark);
  font-size: 1.05rem;
  transition: color 0.2s;
}

.contact-card a.contact-link:hover {
  color: var(--green-light);
}

/* Footer */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.9rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
}

.footer-brand img {
  width: 32px;
  height: 32px;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc {
    margin-inline: auto;
  }

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

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

  .hero-visual {
    order: -1;
  }

  .hero-logo-wrap {
    width: 220px;
  }

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

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

  .workflow-steps {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .workflow-steps::before {
    display: none;
  }

  .req-box {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 8px;
  }

  .nav-links a:hover {
    background: var(--off-white);
  }

  .menu-toggle {
    display: flex;
  }

  .header .nav {
    position: relative;
  }

  .workflow-steps {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
}
