/* --- Plingo.co — dual theme with signature green --- */
:root {
  --bg: #0b0d10;
  --bg-elevated: #13171c;
  --surface: #1a1f26;
  --green: #39ff14;
  --green-dim: #25cc0d;
  --green-glow: rgba(57, 255, 20, 0.36);
  --text: #ebeef4;
  --text-muted: #a2adbb;
  --border: #2b3440;
  --header: rgba(11, 13, 16, 0.82);
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
  --radius: 12px;
  --font: 'Outfit', system-ui, sans-serif;
}

[data-theme="light"] {
  --bg: #eef4ef;
  --bg-elevated: #f7faf8;
  --surface: #ffffff;
  --green: #1eb10e;
  --green-dim: #138708;
  --green-glow: rgba(30, 177, 14, 0.25);
  --text: #111720;
  --text-muted: #4f5a67;
  --border: #d7dde4;
  --header: rgba(247, 250, 248, 0.84);
  --shadow: 0 14px 30px rgba(28, 42, 58, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(1000px 600px at 90% 10%, var(--green-glow), transparent 40%),
    radial-gradient(800px 500px at 0% 80%, rgba(128, 70, 255, 0.08), transparent 45%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.35s ease, color 0.25s ease;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hidden-field { display: none; }

.blend-logo {
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 16px var(--green-glow));
  opacity: 0.95;
}
[data-theme="light"] .blend-logo {
  mix-blend-mode: multiply;
  opacity: 0.9;
}

/* --- Splash with movement and burst --- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--bg);
  overflow: hidden;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}
.splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.splash-inner {
  position: relative;
  display: grid;
  place-items: center;
  gap: 0.8rem;
}
.burst-ring {
  position: absolute;
  width: 120px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid var(--green);
  box-shadow: 0 0 30px var(--green-glow);
  opacity: 0;
  animation: burst 2.5s ease-out forwards;
}
.splash-logo {
  width: clamp(88px, 20vw, 144px);
  animation: logo-bloom 2.5s ease-in-out forwards;
}
.splash-name {
  letter-spacing: 0.22em;
  text-transform: lowercase;
  font-size: 1.1rem;
  color: var(--green);
  text-shadow: 0 0 16px var(--green-glow);
  animation: name-fade 2.5s ease forwards;
}
@keyframes logo-bloom {
  0% { transform: scale(0.8); opacity: 0.5; filter: blur(5px); }
  35% { transform: scale(1.06); opacity: 1; filter: blur(0); }
  70% { transform: scale(1); }
  100% { transform: scale(8); opacity: 0; filter: blur(10px); }
}
@keyframes burst {
  0% { transform: scale(0.7); opacity: 0; }
  25% { opacity: 0.8; }
  70% { opacity: 0.7; }
  100% { transform: scale(18); opacity: 0; }
}
@keyframes name-fade {
  0% { opacity: 0; }
  20% { opacity: 1; }
  65% { opacity: 1; }
  100% { opacity: 0; }
}

.main { opacity: 0; transition: opacity 0.5s ease; }
.main.visible { opacity: 1; }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--header);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.logo-link span { text-transform: lowercase; }
.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}
.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--green); }

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  font: 500 0.82rem var(--font);
}
.theme-toggle:hover { border-color: var(--green); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  font: 500 0.95rem var(--font);
  transition: all 0.22s ease;
}
.btn-primary {
  background: var(--green);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--green-dim);
  box-shadow: 0 0 26px var(--green-glow);
}
.btn-secondary {
  border-color: var(--green);
  color: var(--green);
}
.btn-secondary:hover { background: rgba(57, 255, 20, 0.12); }
.btn-cta { margin-left: 0.2rem; }
.btn-wide { width: 100%; max-width: 320px; }

.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.hero-content { max-width: 640px; z-index: 1; }
.hero-logo { margin-bottom: 0.8rem; }
.motto {
  display: inline-block;
  margin: 0 0 0.75rem;
  color: var(--green);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
}
.hero h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.15;
}
.hero h1 em {
  color: var(--green);
  font-style: normal;
  text-shadow: 0 0 25px var(--green-glow);
}
.hero-subline {
  margin: 0 0 1rem;
  color: var(--text);
  font-size: 1.05rem;
  max-width: 560px;
}
.hero-tagline {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  max-width: 530px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-visual {
  position: absolute;
  right: -8%;
  top: 48%;
  transform: translateY(-50%);
  width: min(42vw, 420px);
  aspect-ratio: 1;
}
.glow-orb {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--green-glow), transparent 65%);
  filter: blur(55px);
  animation: float 4.5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(14px); }
}

.section {
  max-width: 920px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.2rem);
}
.section-intro {
  margin: 0 0 2.25rem;
  color: var(--text-muted);
  max-width: 700px;
}

.benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}
.benefits li {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), transparent 200%);
  box-shadow: var(--shadow);
}
.benefits li:hover {
  border-color: var(--green);
  box-shadow: 0 0 24px var(--green-glow);
}
.benefit-icon { color: var(--green); font-size: 1.35rem; }
.benefits h3 { margin: 0.3rem 0; }
.benefits p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

.features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.features li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.8rem;
  color: var(--text-muted);
}
.features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green-glow);
}

.updates-form,
.contact-form {
  max-width: 520px;
}
.updates-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.updates-form input,
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  font: 400 1rem var(--font);
  padding: 0.72rem 0.95rem;
}
.updates-form input {
  flex: 1;
  min-width: 220px;
}
.updates-form input:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow);
}
.form-note { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.form-row { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.form-row label { color: var(--text-muted); font-size: 0.9rem; }

.footer {
  max-width: 920px;
  margin: 0 auto;
  padding: 2.8rem 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  font-weight: 600;
}
.footer-tagline,
.footer-copy { color: var(--text-muted); }

@media (max-width: 860px) {
  .theme-toggle { order: 1; }
  .menu-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 260px;
    height: 100vh;
    background: var(--bg-elevated);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 4rem 1.25rem 1.25rem;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 60;
  }
  .nav.open { transform: translateX(0); }
  .header { padding: 0.85rem 1rem; }
  .hero-visual { display: none; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; max-width: 290px; }
  .updates-form { flex-direction: column; }
}
