/*
Theme Name: Plentius Theme
Theme URI: https://www.plentius.com
Author: Plentius
Author URI: https://www.plentius.com
Description: Custom theme for Plentius landing page - Software development with AI and Fractional CTO
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: plentius-theme
Tags: business, portfolio, landing-page, custom-menu, featured-images, theme-options
*/

/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Design tokens */
:root {
  --bg: #f8f7f7;
  --bg-soft: #ffffff;
  --surface: rgba(19, 37, 60, .04);
  --surface-2: rgba(19, 37, 60, .07);
  --border: rgba(19, 37, 60, .10);
  --border-strong: rgba(19, 37, 60, .18);
  --text: #13253c;
  --text-soft: #5a6678;
  --text-dim: #8a93a3;
  --accent: #00dca5;
  --accent-2: #0082f3;
  --accent-grad: linear-gradient(120deg, #00dca5 0%, #0082f3 100%);
  --radius: 18px;
  --maxw: 1180px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  line-height: 1.08;
  letter-spacing: -.02em;
  font-weight: 600;
}

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

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

/* Container */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Gradient text */
.grad-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: 1rem;
  padding: .85rem 1.7rem;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, border-color .25s;
}

.btn-primary {
  background: var(--accent-grad);
  color: #04201a;
  box-shadow: 0 10px 30px -8px rgba(16, 224, 165, .45);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px -10px rgba(16, 224, 165, .6);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: var(--surface-2);
}

/* Navbar */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(15, 28, 46, .95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}

.nav.scrolled {
  background: rgba(15, 28, 46, .98);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.nav-logo img {
  height: 52px;
  width: auto;
}

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

.nav-links a {
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
  font-weight: 500;
  transition: color .2s;
}

.nav-links a:hover {
  color: #fff;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.lang {
  display: flex;
  gap: .4rem;
  font-size: .78rem;
  color: rgba(255, 255, 255, .6);
}

.lang a {
  transition: color .2s;
}

.lang a.on {
  color: var(--accent);
}

.lang a:hover {
  color: #fff;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .3s;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
  background: var(--bg);
}

.aurora,
.blob,
.grid-overlay,
.hero-vignette {
  display: none !important;
}

.hero-illustration {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-illustration img {
  position: absolute;
  max-width: 420px;
  max-height: 420px;
  opacity: .12;
  filter: saturate(.6);
}

.hero-illustration img.ill-4 {
  right: 5%;
  top: 15%;
}

.hero-illustration img.ill-6 {
  left: 3%;
  bottom: 8%;
  max-width: 340px;
}

.hero-illustration img.ill-5 {
  right: 15%;
  bottom: 5%;
  max-width: 300px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-soft);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: .45rem 1rem;
  margin-bottom: 1.8rem;
  box-shadow: 0 2px 8px rgba(19, 37, 60, .06);
}

.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 220, 165, .15);
}

.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  font-weight: 700;
  margin-bottom: 1.6rem;
}

.hero p.lead {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--text-soft);
  max-width: 640px;
  margin-bottom: 2.6rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-note {
  font-size: .85rem;
  color: var(--text-dim);
  margin-left: .3rem;
}

/* Hero stats */
.hero-stats {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 4rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--border);
}

.hero-stats .s b {
  font-family: 'Space Grotesk';
  font-size: 2rem;
  font-weight: 700;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.hero-stats .s span {
  font-size: .85rem;
  color: var(--text-dim);
}

/* Sections */
section.block {
  position: relative;
  padding: 110px 0;
}

section.block--compact {
  padding: 56px 0;
}

section.block--compact .head {
  margin-bottom: 2.2rem;
}

section.block--compact .card {
  padding: 1.5rem 1.4rem;
}

section.block--compact .card .ico {
  font-size: 1.5rem;
  margin-bottom: .6rem;
}

.eyebrow {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: .9rem;
}

.head {
  max-width: 720px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.head h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin-bottom: 1rem;
}

.head p {
  color: var(--text-soft);
  font-size: 1.08rem;
}

/* Trusted by */
.trusted {
  padding: 46px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.trusted h4 {
  text-align: center;
  font-family: 'Inter';
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 500;
  margin-bottom: 1.8rem;
}

.logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3.2rem;
  flex-wrap: wrap;
}

.logos span {
  font-family: 'Space Grotesk';
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-dim);
  opacity: .8;
  transition: .25s;
}

.logos span:hover {
  color: var(--text);
  opacity: 1;
}

/* Glass cards */
.grid {
  display: grid;
  gap: 1.4rem;
}

.grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  position: relative;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .3s, box-shadow .3s;
  box-shadow: 0 1px 3px rgba(19, 37, 60, .04);
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  opacity: 0;
  transition: opacity .3s;
  background: linear-gradient(130deg, rgba(0, 220, 165, .5), rgba(0, 130, 243, .3), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.card:hover {
  transform: translateY(-6px);
  background: var(--bg);
  border-color: var(--border-strong);
  box-shadow: 0 12px 32px rgba(19, 37, 60, .08);
}

.card:hover::after {
  opacity: 1;
}

.ico {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 1.3rem;
  background: linear-gradient(135deg, rgba(0, 220, 165, .12), rgba(0, 130, 243, .08));
  border: 1px solid var(--border);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: .6rem;
}

.card p {
  color: var(--text-soft);
  font-size: .97rem;
}

.tag {
  display: inline-block;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0, 220, 165, .1);
  border: 1px solid rgba(0, 220, 165, .25);
  padding: .28rem .7rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.card.case h4 {
  font-size: 1.2rem;
  margin-bottom: .6rem;
}

/* Stats band */
.stats {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  text-align: center;
}

.stat b {
  font-family: 'Space Grotesk';
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  display: block;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.stat span {
  color: var(--text-soft);
  font-size: .95rem;
  display: block;
  margin-top: .6rem;
}

/* CTA band */
.ctaband {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-radius: 28px;
  margin: 0 24px;
  padding: 80px 24px;
  background: linear-gradient(160deg, rgba(0, 220, 165, .18), rgba(0, 130, 243, .14)), #0f1f33;
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 4px 30px rgba(0, 0, 0, .25);
}

.ctaband h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 1rem;
  max-width: 720px;
  margin-inline: auto;
  color: #fff;
}

.ctaband p {
  color: rgba(255, 255, 255, .78);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 2.2rem;
}

/* Form */
.form-wrap {
  max-width: 680px;
  margin: 0 auto;
}

.form {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.6rem;
  box-shadow: 0 4px 24px rgba(19, 37, 60, .06);
}

.form label {
  display: block;
  font-size: .82rem;
  color: var(--text-soft);
  margin: 0 0 .45rem;
  font-weight: 500;
}

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

.form input,
.form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .9rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1.2rem;
  transition: border-color .2s, box-shadow .2s;
}

.form input::placeholder,
.form textarea::placeholder {
  color: var(--text-dim);
}

.form input:focus,
.form textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 220, 165, .12);
}

.form textarea {
  min-height: 130px;
  resize: vertical;
}

.form .btn-primary {
  width: 100%;
  justify-content: center;
  border: 0;
  font-size: 1.05rem;
}

.form-msg {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 12px;
  font-size: .95rem;
}

.form-msg.ok {
  display: block;
  background: rgba(0, 220, 165, .1);
  border: 1px solid rgba(0, 220, 165, .25);
  color: var(--accent);
}

/* Footer */
footer {
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: #13253c;
  padding: 64px 0 40px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.foot-brand img {
  height: 28px;
  margin-bottom: 1.1rem;
}

.foot-brand p {
  color: rgba(255, 255, 255, .7);
  font-size: .92rem;
  max-width: 280px;
}

.foot-col h5 {
  font-family: 'Inter';
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 1rem;
  font-weight: 600;
}

.foot-col a {
  display: block;
  color: rgba(255, 255, 255, .8);
  font-size: .95rem;
  margin-bottom: .6rem;
  transition: color .2s;
}

.foot-col a:hover {
  color: var(--accent);
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .55);
  font-size: .85rem;
}

.socials {
  display: flex;
  gap: .8rem;
}

.socials a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  transition: .25s;
}

.socials a:hover {
  border-color: var(--accent);
  background: var(--surface);
}

.socials img {
  height: 16px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .85;
}

/* About / Team section */
.about-intro {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}

.about-intro p {
  color: var(--text-soft);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.team-member {
  text-align: center;
}

.team-member-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.2rem;
  filter: grayscale(100%);
  transition: filter 0.4s ease;
  border: 2px solid var(--border);
}

.team-member:hover .team-member-photo {
  filter: grayscale(0%);
  border-color: var(--accent);
}

.team-member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member h4 {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.team-member p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.4;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 880px) {
  .nav-links,
  .nav-cta .lang {
    display: none;
  }

  .burger {
    display: flex;
  }

  .nav-cta .btn {
    display: none;
  }

  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.6rem 24px;
    background: rgba(19, 37, 60, .97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .grid.cols-3,
  .grid.cols-2 {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.4rem;
  }

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

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

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

  .hero-stats {
    gap: 2rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  .blob {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
