/*
Theme Name: Lengo Digital Theme
Theme URI: https://example.com/
Author: Lengo Digital
Author URI: https://example.com/
Description: Converted from a React/TSX one-page site to a production-ready WordPress theme (PHP/HTML/CSS, minimal JS).
Version: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lengo-digital
Tags: custom-colors, custom-logo, one-column, two-columns, responsive-layout, accessibility-ready
*/

:root{
  --bg: #ffffff;
  --bg-muted: #f1f5f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #475569;
  --text-soft: #64748b;
  --primary: #2563eb;
  --primary-2: #7c3aed;
  --shadow: rgba(2, 6, 23, .10);
  --shadow-strong: rgba(2, 6, 23, .20);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --max: 1200px;

  --font: system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
}

@media (prefers-color-scheme: dark){
  :root{
    --bg: #0b0f16;
    --bg-muted: #0c1017;
    --surface: #111318;
    --surface-2: #1a202c;
    --border: #282e39;
    --text: #ffffff;
    --text-muted: #cbd5e1;
    --text-soft: #94a3b8;
    --shadow: rgba(0,0,0,.35);
    --shadow-strong: rgba(0,0,0,.55);
  }
}

*{ box-sizing: border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a{ color: inherit; text-decoration: none; }
a:hover{ color: var(--primary); }

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

.container{
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left:16px;
  top:16px;
  width:auto;
  height:auto;
  background: var(--surface);
  color: var(--text);
  padding:10px 14px;
  border-radius: var(--radius-sm);
  border:1px solid var(--border);
  z-index: 9999;
}

.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: blur(10px);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 200px;
}
.brand-icon{
  color: var(--primary);
  display:grid;
  place-items:center;
}
.brand-title{
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav{
  display:flex;
  align-items:center;
  gap: 18px;
}

.nav a{
  font-size: 14px;
  font-weight: 600;
  color: color-mix(in oklab, var(--text) 70%, var(--text-muted));
}
.nav a:hover{ color: var(--primary); }

.header-cta{
  display:flex;
  align-items:center;
  gap: 12px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  user-select:none;
}
.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 28px color-mix(in oklab, var(--primary) 25%, transparent);
}
.btn-primary:hover{ filter: brightness(1.05); }

.btn-ghost{
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover{
  background: var(--bg-muted);
}

.icon{
  font-family: "Material Symbols Outlined";
  font-weight: 400;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
}

.mobile-toggle{
  display:none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
}

.mobile-menu{
  display:none;
  border-top: 1px solid var(--border);
  padding: 14px 0 18px;
}
.mobile-menu a{
  display:block;
  padding: 10px 0;
  font-weight: 700;
  color: color-mix(in oklab, var(--text) 70%, var(--text-muted));
}
.mobile-menu .btn{ width: 100%; }

@media (max-width: 900px){
  .nav, .header-cta{ display:none; }
  .mobile-toggle{ display:inline-flex; align-items:center; gap:8px; }
  .mobile-menu.is-open{ display:block; }
}

main{ display:block; }

.section{
  padding: 72px 0;
}

.hero{
  position: relative;
  padding: 42px 0 88px;
  overflow:hidden;
}
@media (min-width: 1024px){
  .hero{ padding: 86px 0 120px; }
}
.hero-glow{
  position:absolute;
  top:0;
  left:50%;
  transform: translateX(-50%);
  width: min(1200px, 100%);
  height: 100%;
  pointer-events:none;
  z-index: 0;
  background:
    radial-gradient(600px 240px at 30% 20%, color-mix(in oklab, var(--primary) 22%, transparent), transparent 70%),
    radial-gradient(520px 220px at 70% 30%, color-mix(in oklab, var(--primary-2) 18%, transparent), transparent 72%),
    radial-gradient(700px 300px at 50% 70%, color-mix(in oklab, var(--primary) 10%, transparent), transparent 70%);
  filter: blur(2px);
}

.hero-grid{
  position: relative;
  z-index: 1;
  display:grid;
  gap: 44px;
  align-items:center;
}
@media (min-width: 1024px){
  .hero-grid{ grid-template-columns: 1.1fr .9fr; gap: 64px; }
}

.pill{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--primary) 10%, transparent);
  border: 1px solid color-mix(in oklab, var(--primary) 20%, transparent);
  width: fit-content;
}
.pill-dot{
  width:8px; height:8px;
  border-radius:999px;
  background: var(--primary);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse{
  0%, 100%{ opacity: .4; transform: scale(.9); }
  50%{ opacity: 1; transform: scale(1); }
}
.pill-text{
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
}

.h1{
  font-size: clamp(34px, 4vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0;
  font-weight: 900;
}
.gradient-text{
  background: linear-gradient(90deg, var(--text), color-mix(in oklab, var(--primary) 40%, var(--text)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead{
  font-size: 18px;
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0;
}

.hero-actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.trust-row{
  display:flex;
  gap: 18px;
  margin-top: 26px;
  opacity: .75;
  filter: grayscale(1);
  transition: filter .2s ease, opacity .2s ease;
  flex-wrap: wrap;
}
.trust-row:hover{ filter: grayscale(0); opacity: .9; }
.trust-badge{
  width: 96px;
  height: 32px;
  border-radius: 10px;
  background: color-mix(in oklab, var(--border) 60%, transparent);
}

.card-wrap{
  position: relative;
}
.card-glow{
  position:absolute;
  inset: -6px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  filter: blur(14px);
  opacity: .24;
}
.card{
  position: relative;
  background: var(--surface-2);
  border: 1px solid color-mix(in oklab, var(--border) 90%, transparent);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: 0 18px 50px var(--shadow);
}

.card h3{
  margin: 0 0 6px;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.card p{
  margin: 0 0 18px;
  color: var(--text-soft);
  font-size: 13.5px;
}

.form{
  display:flex;
  flex-direction: column;
  gap: 14px;
}
.field label{
  display:block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 6px;
}
.input{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in oklab, var(--bg) 55%, transparent);
  border: 1px solid var(--border);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus-within{
  border-color: color-mix(in oklab, var(--primary) 60%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 18%, transparent);
}
.input input{
  width:100%;
  border:0;
  outline:0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}
.help{
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--text-soft);
  text-align:center;
}

.section-muted{ background: var(--bg-muted); }

.section-title{
  text-align:center;
  margin-bottom: 44px;
}
.section-title h2{
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.section-title p{
  margin: 0 auto;
  max-width: 70ch;
  color: var(--text-muted);
}

.grid-3{
  display:grid;
  gap: 18px;
}
@media (min-width: 800px){
  .grid-3{ grid-template-columns: repeat(3, 1fr); gap: 26px; }
}

.process-line{
  display:none;
}
@media (min-width: 800px){
  .process-wrap{ position: relative; }
  .process-line{
    display:block;
    position:absolute;
    top: 52px;
    left: 16%;
    right: 16%;
    height: 2px;
    background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--primary) 30%, transparent), transparent);
  }
}

.step{
  position: relative;
  text-align:center;
}
.step-icon{
  width: 92px;
  height: 92px;
  border-radius: 18px;
  margin: 0 auto 16px;
  display:grid;
  place-items:center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: 0 16px 36px color-mix(in oklab, var(--primary) 10%, transparent);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.step:hover .step-icon{
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--primary) 55%, var(--border));
  box-shadow: 0 18px 50px color-mix(in oklab, var(--primary) 22%, transparent);
}
.step h3{
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 900;
}
.step p{
  margin:0 auto;
  color: var(--text-muted);
  font-size: 13.5px;
  max-width: 44ch;
}

.features-head{
  display:flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.features-head h2{
  margin:0 0 8px;
  font-size: 30px;
  font-weight: 900;
}
.features-head p{ margin:0; color: var(--text-muted); max-width: 62ch; }

.link-cta{
  font-weight: 900;
  color: var(--primary);
  display:inline-flex;
  align-items:center;
  gap: 6px;
}

.cards{
  display:grid;
  gap: 16px;
}
@media (min-width: 800px){
  .cards{ grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (min-width: 1100px){
  .cards{ grid-template-columns: repeat(3, 1fr); }
}

.feature-card{
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.feature-card:hover{
  border-color: color-mix(in oklab, var(--primary) 55%, var(--border));
  background: color-mix(in oklab, var(--bg-muted) 35%, var(--surface));
  transform: translateY(-2px);
}
.feature-icon{
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: color-mix(in oklab, var(--primary) 12%, transparent);
  display:grid;
  place-items:center;
  color: var(--primary);
  margin-bottom: 14px;
  transition: background .15s ease, color .15s ease;
}
.feature-card:hover .feature-icon{
  background: var(--primary);
  color: #fff;
}
.feature-card h3{
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 900;
}
.feature-card p{
  margin: 0;
  color: var(--text-muted);
  font-size: 13.5px;
}

.faq-wrap{
  display:flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}
.faq details{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.faq details[open]{
  border-color: color-mix(in oklab, var(--primary) 55%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 16%, transparent);
}
.faq summary{
  list-style: none;
  cursor: pointer;
  padding: 18px 18px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
}
.faq summary::-webkit-details-marker{ display:none; }
.faq .q{
  font-weight: 900;
}
.faq .a{
  padding: 0 18px 18px;
  color: var(--text-muted);
}

.site-footer{
  border-top: 1px solid var(--border);
  padding: 56px 0 30px;
  background: var(--bg);
}
.footer-grid{
  display:grid;
  gap: 26px;
  margin-bottom: 28px;
}
@media (min-width: 900px){
  .footer-grid{ grid-template-columns: 2fr 1fr 1fr; gap: 34px; }
}
.footer-brand{
  display:flex;
  align-items:center;
  gap: 10px;
  color: var(--primary);
  margin-bottom: 14px;
}
.footer-brand h3{
  margin:0;
  color: var(--text);
  font-weight: 900;
}
.footer-text{
  margin:0 0 16px;
  color: var(--text-soft);
  max-width: 52ch;
}
.footer-actions{
  display:flex;
  gap: 10px;
}
.circle-btn{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  background: color-mix(in oklab, var(--border) 60%, transparent);
  border: 1px solid var(--border);
  color: color-mix(in oklab, var(--text) 65%, var(--text-muted));
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.circle-btn:hover{
  background: var(--primary);
  border-color: var(--primary);
  color:#fff;
}

.footer-col h4{
  margin: 0 0 10px;
  font-weight: 900;
}
.footer-links{
  display:flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a{
  color: var(--text-soft);
  font-weight: 700;
  font-size: 14px;
}
.footer-links a:hover{ color: var(--primary); }

.footer-bottom{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 13px;
}

/* WordPress core helpers */
.alignwide{ max-width: var(--max); margin-inline:auto; }
.alignfull{ width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.wp-block-image img{ border-radius: 12px; }
