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

:root {
  /* Paleta — Subalans green theme */
  --text-highest: #0F172A;
  --text-high:    #1F2937;
  --text-medium:  #475569;
  --text-low:     #64748B;
  --text-muted:   #94A3B8;

  --green-700: #047857;
  --green-600: #059669;
  --green-500: #10B981;
  --green-400: #34D399;
  --green-100: #D1FAE5;
  --green-050: #ECFDF5;

  --bg-page:    #F4F5F7;
  --bg-surface: #FFFFFF;
  --border-default: #DFE1E6;
  --border-subtle:  #EBECF0;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 3px 8px rgba(15, 23, 42, 0.12);

  --radius: 8px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  color: var(--text-medium);
  background: var(--bg-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  color: var(--text-highest);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.green { color: var(--green-500); }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease-out; }

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226,232,240,0.5);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-sub {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 2px;
  text-decoration: none;
}

/* SUBALANS S LOGO — independent green mark, modern stroked S with gradient */
.subalans-s {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}
.subalans-s svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(-2px 2px 6px rgba(16, 185, 129, 0.35));
}

/* Sizes */
.subalans-s--sm { width: 26px; height: 26px; }
.subalans-s--xs { width: 20px; height: 20px; }

/* Hero — large with float */
.subalans-s--hero {
  width: 132px; height: 132px;
  animation: sFloat 4s ease-in-out infinite;
}
.subalans-s--hero svg {
  filter: drop-shadow(-4px 6px 18px rgba(16, 185, 129, 0.4));
}

/* CTA — medium with float */
.subalans-s--cta {
  width: 88px; height: 88px;
  animation: sFloat 4s ease-in-out infinite;
}
.subalans-s--cta svg {
  filter: drop-shadow(-3px 4px 12px rgba(16, 185, 129, 0.35));
}

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

.nav-logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-highest);
  letter-spacing: -0.5px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-medium);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:not(.btn):hover { color: var(--green-600); }
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--green-600);
  transition: width 0.2s;
}
.nav-links a:not(.btn):hover::after { width: 100%; }

/* HAMBURGER */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 24px; height: 24px; color: var(--text-highest); }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-sm { font-size: 13px; padding: 8px 20px; }
.btn-md { font-size: 14px; padding: 12px 28px; }
.btn-lg { font-size: 15px; padding: 14px 36px; }
.btn-primary {
  background: var(--green-600);
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}
.btn-primary:hover {
  background: var(--green-700);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--text-highest);
  border: 1.5px solid var(--border-default);
}
.btn-outline:hover {
  border-color: var(--green-600);
  color: var(--green-700);
  background: var(--green-050);
}
.btn-arrow::after { content: '\2192'; margin-left: 4px; transition: margin-left 0.2s; }
.btn-arrow:hover::after { margin-left: 8px; }

/* BADGE */
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--green-700);
  background: var(--green-100);
  padding: 5px 16px;
  border-radius: 50px;
  letter-spacing: 0.3px;
  margin-bottom: 16px;
}

/* SPOTLIGHT GLOW — cursor-following radial glow on hover */
.feature-card,
.guide-card,
.step {
  position: relative;
  overflow: hidden;
}
.feature-card::before,
.guide-card::before,
.step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(450px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(16, 185, 129, 0.08), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}
.feature-card:hover::before,
.guide-card:hover::before,
.step:hover::before {
  opacity: 1;
}
.feature-card > *,
.guide-card > *,
.step > * {
  position: relative;
  z-index: 2;
}

/* HERO */
.hero {
  padding: 140px 32px 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  animation: fadeUp 0.8s ease-out;
}
.hero h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--text-highest);
  margin-bottom: 20px;
}
.hero h1 span { color: var(--green-600); }
.hero-desc {
  font-size: 18px;
  color: var(--text-medium);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto 36px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 48px;
}
.hero-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.pill {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-medium);
  background: white;
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid var(--border-default);
}

/* HERO LOGO */
.hero-logo-container {
  display: flex;
  justify-content: center;
  margin-top: 48px;
  animation: fadeUp 1s ease-out 0.3s both;
}

/* SECTIONS */
.section {
  padding: 80px 32px;
}
.section-alt { background: var(--bg-page); }
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.section-header p {
  font-size: 16px;
  color: var(--text-medium);
  max-width: 550px;
  margin: 0 auto;
  line-height: 1.6;
}

/* FEATURE GRID */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 20px 24px;
  transition: border-color 0.15s, box-shadow 0.2s;
}
.feature-card:hover {
  border-color: var(--green-500);
  box-shadow: var(--shadow-sm);
}
.feature-icon {
  width: 40px; height: 40px;
  min-width: 40px;
  background: var(--green-100);
  color: var(--green-700);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon i[data-lucide] {
  width: 18px; height: 18px;
  stroke-width: 2;
  margin: 0;
}
.feature-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-highest);
  margin-bottom: 4px;
  line-height: 1.3;
}
.feature-card p {
  font-size: 13px;
  color: var(--text-low);
  line-height: 1.55;
}

/* HOW IT WORKS */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: step;
}
.step {
  text-align: center;
  position: relative;
}
.step-number {
  width: 48px; height: 48px;
  background: var(--green-600);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  margin: 0 auto 16px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}
.step h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step p {
  font-size: 13px;
  color: var(--text-medium);
  line-height: 1.6;
}

/* GUIDES */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.guide-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 24px;
  text-decoration: none;
  color: var(--text-highest);
  transition: all 0.2s;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.guide-card:hover {
  border-color: var(--green-600);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.guide-icon {
  width: 40px; height: 40px;
  min-width: 40px;
  background: var(--green-100);
  color: var(--green-700);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.guide-icon i[data-lucide] {
  width: 18px; height: 18px;
  stroke-width: 2;
  margin: 0;
}
.guide-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.guide-card p {
  font-size: 13px;
  color: var(--text-medium);
  line-height: 1.5;
}

/* CTA */
.cta {
  padding: 100px 32px 120px;
  text-align: center;
}
.cta-float {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.cta-float h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-highest);
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border-default);
  padding: 40px 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-text {
  font-size: 13px;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-medium);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--green-700); }

/* MOBILE */
@media (max-width: 768px) {
  /* Nav */
  .nav-links { display: none; }
  .nav-links.open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 64px;
    right: 20px;
    left: 20px;
    background: #FFFFFF;
    padding: 8px 0;
    gap: 0;
    z-index: 200;
    border-radius: 12px;
    border: 1px solid var(--border-default);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.12);
  }
  .nav-links.open a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-highest);
    padding: 14px 20px;
    border-bottom: none;
  }
  .nav-links.open a:not(.btn):hover {
    background: var(--bg-page);
  }
  .nav-links.open a:not(.btn)::after { display: none; }
  .nav-links.open .btn {
    margin: 8px 16px 12px;
    text-align: center;
    padding: 12px 24px;
    font-size: 14px;
  }
  .nav-toggle { display: block; }
  .nav-inner { padding: 0 20px; }

  /* Hero */
  .hero { padding: 110px 20px 48px; }
  .hero h1 { font-size: 32px; letter-spacing: -1px; }
  .hero-desc { font-size: 15px; margin-bottom: 28px; }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-pills { gap: 6px; }
  .pill { font-size: 12px; padding: 5px 12px; }
  .hero-logo-container { margin-top: 36px; }
  .subalans-s--hero { width: 92px; height: 92px; }

  /* Sections */
  .section { padding: 56px 20px; }
  .section-header { margin-bottom: 32px; }
  .section-header h2 { font-size: 26px; letter-spacing: -0.5px; }
  .section-header p { font-size: 14px; }

  /* Features */
  .features-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-card { padding: 16px 18px; gap: 14px; }
  .feature-icon { width: 36px; height: 36px; min-width: 36px; border-radius: 8px; }
  .feature-card h3 { font-size: 14px; }
  .feature-card p { font-size: 12.5px; }

  /* Steps */
  .steps { grid-template-columns: 1fr 1fr; gap: 16px; }
  .step-number { width: 40px; height: 40px; font-size: 16px; }
  .step h3 { font-size: 14px; }
  .step p { font-size: 12px; }

  /* Guides */
  .guides-grid { grid-template-columns: 1fr; gap: 10px; }
  .guide-card { padding: 16px 18px; gap: 14px; }
  .guide-icon { width: 36px; height: 36px; min-width: 36px; border-radius: 8px; }
  .guide-card h3 { font-size: 14px; }
  .guide-card p { font-size: 12.5px; }

  /* CTA */
  .cta { padding: 64px 20px 80px; }
  .cta-float { gap: 20px; }
  .cta-float h2 { font-size: 24px; }
  .subalans-s--cta { width: 64px; height: 64px; }

  /* Footer */
  .footer { padding: 32px 20px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
}

/* Small phones */
@media (max-width: 380px) {
  .hero h1 { font-size: 28px; }
  .hero-desc { font-size: 14px; }
  .steps { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 22px; }
}
