:root {
  --accent: #2d6a4f;
  --accent-dark: #1b4332;
  --accent-soft: #e3f0e8;
  --text: #1a2a1f;
  --text-muted: #5b6b60;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Poppins', -apple-system, system-ui, sans-serif;
  color: var(--text);
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
}

/* ---- Animated gradient background ---- */
.landing {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  overflow: hidden;
  background:
    linear-gradient(120deg, #e3f0e8, #d1e7d8, #c9e4d0, #b6d4c1, #d8ebde, #e3f0e8);
  background-size: 400% 400%;
  animation: gradientShift 22s ease-in-out infinite;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Soft floating orbs for added depth */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
  will-change: transform;
}
.orb-1 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, #95c8a8, transparent 70%);
  top: -80px; left: -80px;
  animation: float1 18s ease-in-out infinite;
}
.orb-2 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, #b6d4c1, transparent 70%);
  bottom: -120px; right: -100px;
  animation: float2 24s ease-in-out infinite;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #d4ead9, transparent 70%);
  top: 50%; left: 60%;
  animation: float3 20s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(60px, 40px); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-80px, -50px); }
}
@keyframes float3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-40px, 30px) scale(1.1); }
}

/* ---- Hero content ---- */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  animation: fadeUp 1s ease-out 0.1s both;
}

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

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.25rem;
  padding: 0.4rem 0.9rem;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--accent-dark);
  letter-spacing: -1.5px;
  line-height: 1.05;
}

.typewriter-line {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  color: var(--text);
  margin: 0 0 2.5rem;
  min-height: 2.4em;
  font-style: italic;
}

#typewriter {
  color: var(--accent-dark);
  font-weight: 500;
}

.cursor {
  display: inline-block;
  width: 2px;
  background: var(--accent-dark);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
  height: 1.1em;
  position: relative;
  top: 3px;
}

@keyframes blink {
  0%, 50%   { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.cta-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  background: var(--accent-dark);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  box-shadow: 0 8px 24px rgba(27, 67, 50, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(27, 67, 50, 0.35);
  background: var(--accent);
}
.cta-button .arrow {
  transition: transform 0.2s ease;
}
.cta-button:hover .arrow {
  transform: translateX(4px);
}

.cta-button.ghost {
  background: rgba(255, 255, 255, 0.65);
  color: var(--accent-dark);
  box-shadow: 0 4px 16px rgba(27, 67, 50, 0.1);
  backdrop-filter: blur(8px);
}
.cta-button.ghost:hover {
  background: #fff;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.7;
  z-index: 1;
}

/* Reduced motion: respect user preferences */
@media (prefers-reduced-motion: reduce) {
  .landing,
  .orb-1, .orb-2, .orb-3,
  .hero,
  .cursor {
    animation: none !important;
  }
}

@media (max-width: 600px) {
  html, body { overflow: auto; }
  .landing {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 1.5rem 1.25rem;
  }
  .orb { filter: blur(40px); opacity: 0.45; }
  .orb-1 { width: 260px; height: 260px; top: -60px; left: -60px; }
  .orb-2 { width: 320px; height: 320px; bottom: -100px; right: -80px; }
  .orb-3 { width: 220px; height: 220px; }

  .eyebrow {
    font-size: 0.7rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
  }
  .hero h1 { letter-spacing: -1px; }
  .typewriter-line {
    min-height: 4em;       /* allow phrases to wrap to 2 lines */
    margin-bottom: 2rem;
    font-size: 1.05rem;
  }
  .cta-row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  .cta-button {
    justify-content: center;
    padding: 0.95rem 1.5rem;
    font-size: 1rem;
  }
  .scroll-hint {
    bottom: 1rem;
    font-size: 0.7rem;
  }
}
