/*
  ELVRONAI — Crystal White Neumorphic Theme
  Global visual override only. Existing content and JavaScript behavior are preserved.
*/
:root {
  --red: #e11d35;
  --red-deep: #c9152c;
  --red-soft: #ffeff2;
  --red-glow: rgba(225, 29, 53, .16);
  --ink: #172033;
  --muted: #687386;
  --line: rgba(177, 190, 207, .42);
  --soft: #f2f6fb;
  --white: #fff;
  --nm-bg: #f2f6fb;
  --nm-surface: #f7f9fc;
  --nm-surface-strong: #ffffff;
  --nm-shadow-dark: rgba(167, 180, 198, .44);
  --nm-shadow-light: rgba(255, 255, 255, .96);
  --nm-raised: 12px 12px 26px var(--nm-shadow-dark), -12px -12px 26px var(--nm-shadow-light);
  --nm-raised-sm: 7px 7px 15px rgba(167, 180, 198, .34), -7px -7px 15px rgba(255, 255, 255, .92);
  --nm-inset: inset 5px 5px 11px rgba(176, 188, 203, .30), inset -5px -5px 11px rgba(255,255,255,.95);
  --nm-red: 8px 8px 20px rgba(181, 21, 42, .20), -6px -6px 16px rgba(255, 105, 123, .22);
  --nm-radius: 24px;
  --nm-radius-sm: 16px;
}

html { background: var(--nm-bg); }
body {
  min-width: 320px;
  background:
    radial-gradient(circle at 8% 3%, rgba(225,29,53,.055), transparent 26rem),
    radial-gradient(circle at 92% 22%, rgba(119,157,204,.07), transparent 32rem),
    var(--nm-bg) !important;
  color: var(--ink);
}

::selection { background: rgba(225,29,53,.17); color: var(--ink); }
:focus-visible { outline: 3px solid rgba(225,29,53,.55) !important; outline-offset: 4px; }

/* Floating header */
.site-header {
  padding: 10px 18px 8px;
  min-height: auto;
  border: 0 !important;
  background: rgba(242,246,251,.80) !important;
  backdrop-filter: blur(22px) saturate(1.08);
}
.site-header .header-inner {
  min-height: 68px;
  padding: 0 16px 0 12px;
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 22px;
  background: rgba(247,249,252,.96);
  box-shadow: var(--nm-raised-sm);
}
.brand { border-radius: 14px; }
.primary-nav a { color: #3c4658; }
.primary-nav a::after { height: 3px; border-radius: 99px; bottom: 15px; }
.primary-nav a:hover, .primary-nav a.active { color: var(--red); }
.header-cta,
.button-primary,
.primary-action,
.assign-work,
.expert-action-primary,
.expert-upgrade-button.messages,
.manager-button {
  border: 1px solid rgba(255,255,255,.25) !important;
  background: linear-gradient(145deg, #f22945, #cf1029) !important;
  color: #fff !important;
  box-shadow: var(--nm-red) !important;
}
.header-cta:hover,
.button-primary:hover,
.primary-action:hover,
.assign-work:hover,
.expert-action-primary:hover,
.manager-button:hover {
  transform: translateY(-1px);
  background: linear-gradient(145deg, #ec1f3c, #be1026) !important;
}
.header-cta svg { box-shadow: var(--nm-inset); }

/* Menus */
.services-dropdown,
.software-dropdown,
.ai-dropdown {
  border: 1px solid rgba(255,255,255,.86) !important;
  border-radius: 20px !important;
  background: rgba(247,249,252,.98) !important;
  box-shadow: 14px 14px 32px rgba(155,168,186,.34), -8px -8px 26px rgba(255,255,255,.90) !important;
  backdrop-filter: blur(20px);
}
.services-dropdown li a,
.software-dropdown li a,
.ai-dropdown li a { border-radius: 10px; }
.services-dropdown li a:hover,
.software-dropdown li a:hover,
.ai-dropdown li a:hover { background: #fff !important; color: var(--red) !important; box-shadow: var(--nm-inset); }

/* Global buttons / chips */
.button,
.button-secondary,
.circle-link,
.catalog-reset,
.filter-chip,
.category-chip,
.expert-filter,
.expert-action,
.secondary-action,
.account-button,
.header-link,
.text-button,
.icon-button,
.view-profile {
  border-color: rgba(255,255,255,.9) !important;
  border-radius: 14px !important;
}
.button-secondary,
.catalog-reset,
.filter-chip,
.category-chip,
.expert-filter,
.expert-action,
.secondary-action,
.account-button,
.view-profile {
  background: var(--nm-surface) !important;
  box-shadow: var(--nm-raised-sm) !important;
}
.button-secondary:hover,
.catalog-reset:hover,
.filter-chip:hover,
.category-chip:hover,
.expert-filter:hover,
.expert-action:hover,
.secondary-action:hover,
.account-button:hover,
.view-profile:hover {
  color: var(--red) !important;
  background: #fff !important;
  box-shadow: var(--nm-inset) !important;
  transform: none;
}
.filter-chip.active,
.category-chip.active,
.expert-filter.active {
  color: #fff !important;
  background: linear-gradient(145deg, #f22945, #cb1029) !important;
  box-shadow: var(--nm-red) !important;
}

/* Hero */
.hero {
  margin: 8px auto 0;
  width: min(1500px, calc(100% - 36px));
  min-height: 510px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 34px;
  background: var(--nm-surface) !important;
  box-shadow: var(--nm-raised);
}
.hero-inner { padding-block: 64px 66px; }
.hero-copy {
  padding: 28px 30px;
  border: 1px solid rgba(255,255,255,.84);
  border-radius: 28px;
  background: rgba(247,249,252,.76);
  box-shadow: 10px 10px 28px rgba(170,182,198,.25), -10px -10px 28px rgba(255,255,255,.77);
  backdrop-filter: blur(8px);
}
.hero h1 { color: #121a2b; }
.hero-description { color: #39445a; }
.hero-support { color: var(--muted); }
.hero-art::after {
  background: linear-gradient(90deg, rgba(247,249,252,.98) 0%, rgba(247,249,252,.91) 15%, rgba(247,249,252,.22) 50%, rgba(247,249,252,.03) 70%),
              linear-gradient(0deg, rgba(247,249,252,.9), transparent 24%) !important;
}
.motion-control {
  border: 1px solid rgba(255,255,255,.88) !important;
  background: var(--nm-surface) !important;
  box-shadow: var(--nm-raised-sm);
}

.capability-strip {
  margin-top: 24px;
  border: 1px solid rgba(255,255,255,.88) !important;
  border-radius: 24px !important;
  background: var(--nm-surface) !important;
  box-shadow: var(--nm-raised) !important;
  overflow: hidden;
}
.capability-strip a + a { border-left-color: rgba(186,197,211,.35) !important; }
.capability-strip a:hover { background: #fff; box-shadow: var(--nm-inset); }

/* Sections become spacious floating surfaces */
.section,
.catalog-section { padding-block: 54px; }
.services-section,
.industries-section,
.technology-section,
.catalog-soft,
.software-section,
.process-section,
.contact-section {
  border: 0 !important;
  background: transparent !important;
  color: var(--ink) !important;
}
.services-section > .container,
.industries-section > .container,
.technology-section > .container,
.software-section > .container,
.process-section > .container,
.contact-section > .container,
.catalog-soft > .container {
  padding: 34px;
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 30px;
  background: var(--nm-surface);
  box-shadow: var(--nm-raised);
}
.software-section .section-heading > p,
.software-section .list-label,
.process-grid p,
.contact-copy > p,
.contact-signoff,
.contact-copy > .contact-note { color: var(--muted) !important; }
.software-section .section-kicker,
.software-section h2 em,
.process-section .section-kicker,
.contact-section .section-kicker { color: var(--red) !important; }

.section-heading h2,
.contact-section h2 { color: #162034; }
.section-kicker::before { border-radius: 99px; }

/* Universal neumorphic cards */
.service-card,
.platform-card,
.product-card,
.work-card,
.technology-grid article,
.software-group,
.process-grid li,
.catalog-card,
.featured-product,
.availability-item,
.custom-callout,
.product-facts,
.custom-note,
.custom-request-form,
.expert-card,
.expertise-join,
.freelancer-project-card,
.portal-card,
.manager-stats article,
.talent-directory,
.talent-card,
.client-project-card,
.manager-profile-grid article,
.benefit-list article > span {
  border: 1px solid rgba(255,255,255,.88) !important;
  background: var(--nm-surface) !important;
  box-shadow: var(--nm-raised-sm) !important;
}
.service-card,
.platform-card,
.product-card,
.work-card,
.software-group,
.process-grid li,
.catalog-card,
.featured-product,
.custom-callout,
.product-facts,
.custom-request-form,
.expert-card,
.freelancer-project-card,
.manager-stats article,
.talent-card { border-radius: 20px !important; }
.service-card:hover,
.platform-card:hover,
.product-card:hover,
.work-card:hover,
.software-group:hover,
.catalog-card:hover,
.expert-card:hover,
.talent-card:hover {
  transform: translateY(-3px);
  box-shadow: 16px 16px 30px rgba(164,177,194,.38), -10px -10px 24px rgba(255,255,255,.95) !important;
}
.software-group { color: var(--ink); }
.software-group li { color: var(--muted) !important; }
.process-grid li:last-child { background: linear-gradient(145deg,#fff5f6,#f7f9fc) !important; border-color: rgba(255,255,255,.9) !important; }

/* Info lists */
.industry-card,
.reason-card {
  margin: 8px 0;
  padding: 20px !important;
  border: 1px solid rgba(255,255,255,.88) !important;
  border-radius: 18px;
  background: var(--nm-surface);
  box-shadow: var(--nm-raised-sm);
}
.industry-grid { gap: 18px; }
.reason-grid { gap: 18px; }
.reason-card { border-top: 1px solid rgba(255,255,255,.88) !important; }

/* Previews and media */
.product-preview,
.catalog-preview,
.work-visual,
.catalog-card-image {
  border-color: rgba(255,255,255,.9) !important;
  border-radius: 18px !important;
  background: #f8faff !important;
  box-shadow: var(--nm-inset);
}
.work-card { overflow: hidden; }
.work-visual > span,
.preview-tabs span,
.platform-tags > span,
.technology-grid li,
.expert-skill,
.expert-sample-label {
  border: 1px solid rgba(255,255,255,.9) !important;
  border-radius: 11px !important;
  background: var(--nm-surface) !important;
  box-shadow: 4px 4px 9px rgba(171,184,200,.24), -4px -4px 9px rgba(255,255,255,.88);
}
.portal-visual { background: radial-gradient(circle at 90% 5%, #ffdfe4, transparent 56%), #f7f9fc !important; }

/* AI content */
.ai-feature,
.products-section,
.about-section {
  padding: 28px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 26px;
  background: rgba(247,249,252,.62);
  box-shadow: var(--nm-raised-sm);
}
.ai-art img { border-radius: 24px; box-shadow: var(--nm-inset); }
.ai-focus li,
.ai-focus ul > * {
  border-color: rgba(255,255,255,.86) !important;
}

/* Software/catalog pages */
.software-page { background: transparent; }
.catalog-intro {
  margin-top: 14px;
  padding: 30px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 28px;
  background: var(--nm-surface);
  box-shadow: var(--nm-raised);
}
.catalog-filters {
  padding: 24px !important;
  border: 1px solid rgba(255,255,255,.9) !important;
  border-radius: 22px !important;
  background: var(--nm-surface) !important;
  box-shadow: var(--nm-inset);
}
.catalog-filters fieldset + fieldset { border-top-color: rgba(178,190,206,.30) !important; }
.catalog-card { overflow: visible !important; padding: 10px; }
.catalog-card-image { overflow: hidden; }
.catalog-card-body { padding: 18px 10px 10px !important; }
.catalog-preview { overflow: hidden; }
.catalog-preview figcaption { background: rgba(247,249,252,.92) !important; border-color: transparent !important; }
.catalog-badge {
  border: 0 !important;
  border-radius: 999px !important;
  background: #fff1e4 !important;
  box-shadow: var(--nm-raised-sm);
}
.catalog-badge.demo { background: #eaf8f0 !important; }
.availability-item { border-radius: 14px !important; }
.custom-callout { background: linear-gradient(145deg,#fff5f6,#f7f9fc) !important; }
.product-detail-intro,
.product-detail-grid,
.custom-layout {
  margin-block: 22px;
  padding: 30px;
  border: 1px solid rgba(255,255,255,.88) !important;
  border-radius: 28px;
  background: var(--nm-surface);
  box-shadow: var(--nm-raised);
}
.product-detail-grid { border-top: 1px solid rgba(255,255,255,.88) !important; }
.demo-disclosure { border: 0 !important; border-radius: 16px !important; background: #fff8e8 !important; box-shadow: var(--nm-inset); }
.breadcrumbs {
  margin-top: 14px;
  padding: 12px 16px !important;
  width: fit-content;
  border-radius: 999px;
  background: var(--nm-surface);
  box-shadow: var(--nm-raised-sm);
}

/* Forms and inputs */
input,
select,
textarea,
.contact-dialog input,
.contact-dialog textarea,
.custom-request-form input,
.custom-request-form select,
.custom-request-form textarea,
.expert-search input,
.expert-profile-dialog select {
  border: 1px solid rgba(255,255,255,.9) !important;
  border-radius: 13px !important;
  background: #f2f6fb !important;
  color: var(--ink) !important;
  box-shadow: var(--nm-inset) !important;
}
input:focus,
select:focus,
textarea:focus,
.contact-dialog input:focus,
.contact-dialog textarea:focus,
.expert-search input:focus,
.expert-profile-dialog select:focus {
  border-color: rgba(225,29,53,.35) !important;
  background: #f7f9fc !important;
  box-shadow: var(--nm-inset), 0 0 0 3px rgba(225,29,53,.08) !important;
}

/* Dialogs */
.contact-dialog,
.assignment-dialog,
.profile-dialog,
.expert-profile-dialog,
.expert-upgrade-dialog,
dialog {
  border: 1px solid rgba(255,255,255,.9) !important;
  border-radius: 28px !important;
  background: var(--nm-surface) !important;
  box-shadow: 22px 22px 55px rgba(129,142,160,.42), -12px -12px 38px rgba(255,255,255,.92) !important;
}
dialog::backdrop,
.contact-dialog::backdrop { background: rgba(92,103,121,.34) !important; backdrop-filter: blur(10px); }
.dialog-close {
  border: 1px solid rgba(255,255,255,.85) !important;
  background: var(--nm-surface) !important;
  box-shadow: var(--nm-raised-sm) !important;
}
.dialog-close:active { box-shadow: var(--nm-inset) !important; }

/* Contact footer CTA: light instead of flat red */
.contact-inner { color: var(--ink); }
.contact-actions .button-primary { color: #fff !important; background: linear-gradient(145deg,#f22945,#cf1029) !important; border-color: transparent !important; }
.contact-actions .button-secondary { color: var(--ink) !important; border-color: rgba(255,255,255,.9) !important; background: var(--nm-surface) !important; box-shadow: var(--nm-raised-sm); }
.contact-actions .button-secondary svg { color: var(--red) !important; }

.site-footer {
  position: relative;
  margin: 18px auto;
  width: min(var(--page-width), calc(100% - var(--gutter) * 2));
  padding: 10px 20px 9px !important;
  gap: 5px 16px;
  border: 1px solid #e8edf4;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(95,111,132,.09);
}
.site-footer::before { content: ""; position: absolute; top: 0; left: 20px; width: 56px; height: 2px; border-radius: 0 0 3px 3px; background: var(--red); }
.site-footer .brand { width: 180px; height: 54px; }
.site-footer .brand-logo { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.site-footer p { margin-top: 0; }
.site-footer nav { gap: 8px 15px; align-self: center; }
.site-footer small { padding-top: 6px; border-top-color: rgba(177,190,207,.3) !important; }

/* Expertise marketplace */
.expertise-section { background: transparent !important; }
.expertise-intro,
.expertise-toolbar,
.freelancer-project-showcase {
  border: 1px solid rgba(255,255,255,.88) !important;
  border-radius: 28px !important;
  background: var(--nm-surface) !important;
  box-shadow: var(--nm-raised) !important;
}
.expertise-intro { padding: 30px !important; }
.expertise-toolbar { padding: 20px !important; }
.expert-card::before { border-radius: 20px 20px 0 0; }
.expert-avatar,
.expert-stat,
.expert-plan-label,
.expert-upgrade-panel,
.expert-form-note,
.expert-upgrade-summary {
  border-color: rgba(255,255,255,.9) !important;
  border-radius: 14px !important;
  box-shadow: var(--nm-inset);
}
.expert-card-actions { border-top-color: rgba(176,189,205,.3) !important; background: transparent !important; }

/* Talent page */
.talent-header {
  height: auto !important;
  min-height: 82px;
  margin: 10px 18px 0;
  padding: 0 20px !important;
  border: 1px solid rgba(255,255,255,.9) !important;
  border-radius: 22px;
  background: rgba(247,249,252,.96) !important;
  box-shadow: var(--nm-raised-sm);
  backdrop-filter: blur(18px);
}
.talent-layout,
.manager-view {
  background:
    radial-gradient(circle at 12% 9%, rgba(225,29,53,.06), transparent 25%),
    radial-gradient(circle at 88% 70%, rgba(96,139,192,.055), transparent 28%),
    var(--nm-bg) !important;
}
.talent-layout::before { border-color: rgba(225,29,53,.08) !important; }
.talent-layout::after { background: linear-gradient(transparent, rgba(225,29,53,.11), transparent) !important; }
.portal-card { border-radius: 30px !important; }
.account-type-picker button,
.auth-tabs,
.profile-facts article,
.client-project-grid article,
.client-next-step,
.manager-profile-section,
.skill-list span {
  border-color: rgba(255,255,255,.88) !important;
  background: var(--nm-surface) !important;
  box-shadow: var(--nm-raised-sm) !important;
}
.account-type-picker button { border-radius: 16px !important; }
.account-type-picker button.active { color: var(--red); box-shadow: var(--nm-inset), 0 0 0 2px rgba(225,29,53,.10) !important; }
.auth-tabs { padding: 5px !important; border-radius: 15px !important; }
.auth-tabs button.active { background: var(--nm-surface) !important; box-shadow: var(--nm-raised-sm) !important; }
.trust-note { border-top-color: rgba(175,188,204,.32) !important; }
.profile-avatar,
.talent-card-avatar { background: linear-gradient(145deg,#f22945,#cf1029) !important; box-shadow: var(--nm-red); }
.talent-directory { border-radius: 28px !important; }
.talent-card-actions { border-top-color: rgba(177,190,207,.28) !important; }
.toast { background: rgba(23,32,51,.94) !important; border: 1px solid rgba(255,255,255,.14); border-radius: 14px !important; backdrop-filter: blur(14px); }
footer { border-top-color: transparent !important; background: transparent; }

/* Elvy assistant */
.elvy-launcher,
.elvy-panel,
.elvy-card,
.elvy-quick-action,
.elvy-icon-button,
.elvy-composer-wrap,
.elvy-settings,
.elvy-status-pill {
  border-color: rgba(255,255,255,.9) !important;
  background: rgba(247,249,252,.97) !important;
  box-shadow: var(--nm-raised-sm) !important;
}
.elvy-panel { border-radius: 26px !important; box-shadow: 18px 18px 42px rgba(139,153,172,.36), -10px -10px 30px rgba(255,255,255,.94) !important; }
.elvy-input { background: #f2f6fb !important; box-shadow: var(--nm-inset) !important; }
.elvy-send { background: linear-gradient(145deg,#f22945,#cf1029) !important; box-shadow: var(--nm-red) !important; }
.elvy-message-bubble { border-radius: 16px !important; }

/* Smaller screens */
@media (max-width: 1023px) {
  .site-header { padding-inline: 12px; }
  .site-header .header-inner { padding-inline: 14px; }
  .menu-toggle { border: 1px solid rgba(255,255,255,.9) !important; background: var(--nm-surface) !important; box-shadow: var(--nm-raised-sm); }
  .primary-nav {
    margin: 8px 12px 0 !important;
    inset: calc(var(--header-height) + 8px) 0 auto !important;
    border: 1px solid rgba(255,255,255,.9) !important;
    border-radius: 22px;
    background: var(--nm-surface) !important;
    box-shadow: var(--nm-raised) !important;
  }
}

@media (max-width: 900px) {
  .hero { width: calc(100% - 24px); min-height: 0; }
  .hero-copy { padding: 22px; }
  .services-section > .container,
  .industries-section > .container,
  .technology-section > .container,
  .software-section > .container,
  .process-section > .container,
  .contact-section > .container,
  .catalog-soft > .container { padding: 24px; border-radius: 24px; }
  .product-detail-intro,
  .product-detail-grid,
  .custom-layout { padding: 22px; }
  .talent-header { margin-inline: 10px; }
}

@media (max-width: 600px) {
  .site-header { padding: 7px 8px; }
  .site-header .header-inner { min-height: 62px; border-radius: 18px; }
  .hero { width: calc(100% - 16px); border-radius: 24px; }
  .hero-inner { padding-top: 26px !important; }
  .hero-copy { padding: 18px; border-radius: 20px; }
  .capability-strip { border-radius: 20px !important; }
  .section { padding-block: 38px; }
  .services-section > .container,
  .industries-section > .container,
  .technology-section > .container,
  .software-section > .container,
  .process-section > .container,
  .contact-section > .container,
  .catalog-soft > .container { padding: 18px; border-radius: 22px; }
  .ai-feature,
  .products-section,
  .about-section { padding: 20px; border-radius: 22px; }
  .catalog-intro { padding: 22px; border-radius: 22px; }
  .catalog-filters { padding: 18px !important; }
  .product-detail-intro,
  .product-detail-grid,
  .custom-layout { padding: 18px; border-radius: 22px; }
  .site-footer { padding: 13px !important; gap: 7px; }
  .site-footer::before { left: 13px; }
  .site-footer .brand { width: 176px; height: 53px; }
  .talent-header { margin: 7px 8px 0; border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
