:root {
  --background: oklch(17% 0.015 240);
  --foreground: oklch(96% 0.005 240);
  --card: oklch(21% 0.017 240);
  --primary: oklch(76% 0.16 65);
  --primary-foreground: oklch(20% 0.03 60);
  --secondary: oklch(26% 0.02 240);
  --muted-foreground: oklch(72% 0.02 240);
  --destructive: oklch(60% 0.21 27);
  --border: oklch(31% 0.02 240);
  --ring: oklch(76% 0.16 65);

  --gradient-hero: linear-gradient(120deg, oklch(17% 0.015 240 / 0.97) 0%, oklch(17% 0.015 240 / 0.86) 45%, oklch(17% 0.015 240 / 0.35) 100%);
  --gradient-accent: linear-gradient(100deg, oklch(76% 0.16 65), oklch(82% 0.13 90));
  --shadow-elevated: 0 24px 60px -24px oklch(0% 0 0 / 0.75);
  --shadow-glow: 0 0 0 1px oklch(76% 0.16 65 / 0.35), 0 20px 50px -20px oklch(76% 0.16 65 / 0.35);

  --font-sans: "Barlow", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Archivo", ui-sans-serif, system-ui, sans-serif;

  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --shell: 72rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.15;
}

p,
ul,
ol,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

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

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.sprite {
  display: none;
}

.icon {
  width: 1rem;
  height: 1rem;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sm {
  width: 0.875rem;
  height: 0.875rem;
}

.icon-md {
  width: 1.25rem;
  height: 1.25rem;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: 5rem;
}

.section-tinted {
  background-color: oklch(21% 0.017 240 / 0.4);
  border-block: 1px solid var(--border);
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
}

.section-lead {
  margin-top: 0.75rem;
  max-width: 42rem;
  color: var(--muted-foreground);
}

.accent {
  background: var(--gradient-accent);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.panel {
  background-color: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-elevated);
  border-radius: var(--radius-lg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-weight: 500;
  font-size: 0.875rem;
  height: 2.5rem;
  padding-inline: 2rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 1px 2px oklch(0% 0 0 / 0.3);
}

.btn-primary:hover {
  background-color: oklch(76% 0.16 65 / 0.9);
}

.btn-outline {
  border-color: var(--border);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--secondary);
}

.btn-sm {
  height: 2rem;
  padding-inline: 0.75rem;
  font-size: 0.75rem;
}

.btn-block {
  width: 100%;
  padding-inline: 1rem;
  height: 2.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background-color: oklch(17% 0.015 240 / 0.85);
  backdrop-filter: blur(12px);
}

.site-header:has(.mobile-nav:not([hidden])) {
  background-color: var(--background);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.site-nav a {
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--foreground);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}

.nav-toggle .icon {
  width: 1.125rem;
  height: 1.125rem;
}

.nav-toggle[aria-expanded="true"] .icon-open,
.nav-toggle[aria-expanded="false"] .icon-close {
  display: none;
}

.mobile-nav {
  display: grid;
  gap: 0.25rem;
  padding-bottom: 1rem;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  padding-block: 0.5rem;
}

.header-cta {
  display: none;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  padding: 0.125rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.lang-switch a,
.lang-switch span {
  padding: 0.25rem 0.5rem;
  border-radius: calc(var(--radius) - 0.125rem);
  color: var(--muted-foreground);
  transition: color 0.15s ease;
}

.lang-switch a:hover {
  color: var(--foreground);
}

.lang-switch [aria-current] {
  background: oklch(76% 0.16 65 / 0.15);
  color: var(--primary);
}

.mobile-nav .lang-switch {
  justify-self: start;
  margin-top: 0.75rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background: var(--gradient-hero);
}

.hero-inner {
  position: relative;
  padding-block: 6rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  background-color: oklch(21% 0.017 240 / 0.7);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.hero-title {
  margin-top: 1.5rem;
  max-width: 48rem;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.08;
}

.hero-subtitle {
  margin-top: 1.5rem;
  max-width: 42rem;
  color: var(--muted-foreground);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-trust {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  font-size: 0.875rem;
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
}

.text-primary {
  color: var(--primary);
}

/* Comparison */
.grid-2 {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.compare-card {
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.compare-card.is-negative {
  border: 1px solid var(--border);
  background-color: oklch(26% 0.02 240 / 0.4);
}

.compare-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.compare-head h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

.is-negative .compare-head {
  color: var(--destructive);
}

.panel .compare-head {
  color: var(--primary);
}

.check-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.check-list li {
  display: flex;
  gap: 0.75rem;
}

.check-list .icon {
  margin-top: 0.25rem;
}

.icon-danger {
  color: var(--destructive);
}

/* Services */
.service-card {
  padding: 1.75rem;
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  background-color: var(--secondary);
  color: var(--primary);
}

.service-card h3 {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.service-card p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Pricing */
.plan {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.plan-standard {
  border: 1px solid var(--border);
  background-color: oklch(26% 0.02 240 / 0.3);
}

.plan-featured {
  border-color: oklch(76% 0.16 65 / 0.6);
  box-shadow: var(--shadow-glow);
}

.plan-badge {
  position: absolute;
  top: -0.75rem;
  left: 2rem;
  border-radius: 999px;
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.plan h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.plan-price {
  margin-top: 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.plan-price strong {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.plan-price span {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.prose-block {
  margin-top: 1.25rem;
  max-width: 46rem;
  color: var(--muted-foreground);
}

.prose-block p + p {
  margin-top: 1rem;
}

.prose-panel {
  padding: 2rem;
}

.plan-price-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.plan .check-list {
  margin-top: 1.5rem;
}

.plan .btn {
  margin-top: 2rem;
}

.price-notes {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.price-notes span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2.5rem;
}

.contact-copy p {
  margin-top: 1rem;
  color: var(--muted-foreground);
}

.contact-copy .check-list {
  margin-top: 2rem;
}

.contact-lines {
  margin-top: 2rem;
  display: grid;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.contact-lines p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lead-form {
  padding: 1.5rem;
}

.field-grid {
  display: grid;
  gap: 1.25rem;
}

.field {
  display: grid;
  gap: 0.5rem;
}

.field label,
.field-group legend {
  font-size: 0.875rem;
  font-weight: 500;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: transparent;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  transition: border-color 0.15s ease;
}

.field textarea {
  resize: vertical;
  min-height: 6rem;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-foreground);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 1px var(--ring);
}

.field[data-invalid] input,
.field[data-invalid] textarea {
  border-color: var(--destructive);
}

.field-error {
  font-size: 0.75rem;
  color: var(--destructive);
  min-height: 0;
}

.field:not([data-invalid]) .field-error {
  display: none;
}

.field-group {
  margin-top: 1.5rem;
  border: 0;
  padding: 0;
}

.field-group legend {
  margin-bottom: 0.75rem;
  padding: 0;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.choice {
  border: 1px solid var(--border);
  background-color: var(--secondary);
  color: var(--muted-foreground);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.choice:hover {
  color: var(--foreground);
}

.choice[aria-pressed="true"] {
  border-color: var(--primary);
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.field-message {
  margin-top: 1.5rem;
}

.form-note {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.form-status {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--primary);
}

.form-status:empty {
  display: none;
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-block: 3.5rem;
}

.footer-grid p {
  margin: 0;
}

.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-col {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-col strong {
  display: block;
  color: var(--foreground);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.footer-links {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.footer-links a {
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--foreground);
}

.footer-legal {
  border-top: 1px solid var(--border);
  padding-block: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Consent */
.consent {
  position: fixed;
  z-index: 50;
  inset: auto 0 0 0;
  border-top: 1px solid var(--border);
  background-color: var(--card);
  box-shadow: var(--shadow-elevated);
}

.consent[hidden] {
  display: none;
}

.consent-inner {
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 1.25rem;
}

.consent-copy strong {
  font-family: var(--font-display);
  font-size: 0.9375rem;
}

.consent-copy p {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}

.consent-copy a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-actions {
  display: flex;
  gap: 0.5rem;
}

.consent-actions .btn {
  flex: 1;
}

/* Legal page */
.legal {
  padding-block: 4rem;
  max-width: 48rem;
}

.legal h1 {
  font-size: 2.25rem;
  font-weight: 800;
}

.legal h2 {
  margin-top: 2.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.legal p,
.legal ul {
  margin-top: 1rem;
  color: var(--muted-foreground);
}

.legal ul {
  display: grid;
  gap: 0.5rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.legal code {
  padding: 0.1em 0.35em;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  background-color: var(--secondary);
  color: var(--foreground);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.875em;
}

/* Thank-you page */
.thanks {
  padding-block: 4rem 5rem;
  max-width: 42rem;
  text-align: center;
}

.thanks-icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin-inline: auto;
  border-radius: 999px;
  background-color: var(--secondary);
  color: var(--primary);
}

.thanks-icon svg {
  width: 2rem;
  height: 2rem;
}

.thanks h1 {
  margin-top: 1.5rem;
  font-size: 2rem;
  font-weight: 800;
}

.thanks-lead {
  margin-top: 1rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.thanks-steps {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
  text-align: left;
  list-style: none;
}

.thanks-steps li {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background-color: var(--card);
}

.thanks-step-num {
  display: grid;
  flex: none;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background-color: var(--secondary);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
}

.thanks-steps strong {
  font-family: var(--font-display);
  font-size: 1rem;
}

.thanks-steps p {
  margin-top: 0.375rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.thanks-contact {
  margin-top: 3rem;
}

.thanks-contact p {
  color: var(--muted-foreground);
}

.thanks-contact a[href^="mailto:"] {
  color: var(--primary);
}

.thanks-contact .btn {
  margin-top: 1.5rem;
}

.js .reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 2.25rem;
  }

  .hero-inner {
    padding-block: 8rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

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

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

  .lead-form {
    padding: 2rem;
  }

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

  .consent-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2rem;
  }

  .consent-actions .btn {
    flex: none;
  }
}

@media (min-width: 768px) {
  .site-nav {
    display: flex;
  }

  .header-cta {
    display: inline-flex;
  }

  .nav-toggle,
  .mobile-nav {
    display: none;
  }

  .grid-compare,
  .grid-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }

  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

/* Hero eyebrow — sub-tagline under H1 */
.hero-eyebrow {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

/* Service-card CTA — used only on Communications pillar */
.service-cta {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.service-cta a {
  color: var(--primary);
  border-bottom: 1px dashed oklch(76% 0.16 65 / 0.4);
  padding-bottom: 2px;
  transition: border-color 0.15s ease;
}

.service-cta a:hover {
  border-bottom-color: var(--primary);
}

/* Flywheel chain — Communications × Automation on index and inner page */
.flywheel-chain {
  margin-top: 2.5rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  list-style: none;
  padding-left: 0;
}

.flywheel-step {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background-color: oklch(21% 0.017 240 / 0.7);
}

.flywheel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  background-color: var(--secondary);
  color: var(--primary);
  margin-bottom: 1rem;
}

.flywheel-step h3 {
  font-size: 1rem;
  font-weight: 600;
}

.flywheel-step p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

@media (min-width: 780px) {
  .flywheel-chain {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    gap: 1.75rem 1rem;
  }

  .flywheel-step + .flywheel-step::before {
    content: "→";
    position: absolute;
    top: 50%;
    left: -0.9rem;
    transform: translateY(-50%);
    color: var(--primary);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
  }
}

/* Platform fit — sizing guidance under each vendor card on servicii-comunicatii */
.platform-fit {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.platform-fit em {
  font-style: italic;
}

/* Prose-block modifier — remove reading-width cap for full-width narrative panels */
.prose-block.prose-wide,
.section-lead.prose-wide,
.prose-wide .prose-block {
  max-width: none;
}
