:root {
  color-scheme: light;
  --background: #f5f7fb;
  --background-soft: #f8f9fa;
  --foreground: #333333;
  --muted-foreground: #6c757d;
  --card: rgba(255, 255, 255, 0.92);
  --card-strong: rgba(255, 255, 255, 0.98);
  --primary: #1a3a8f;
  --primary-strong: #0a2463;
  --primary-soft: rgba(26, 58, 143, 0.12);
  --accent: #ff6b00;
  --accent-strong: #e55a00;
  --border: rgba(26, 58, 143, 0.12);
  --border-strong: rgba(26, 58, 143, 0.22);
  --success: #28a745;
  --info: #1a3a8f;
  --danger: #dc3545;
  --shadow-lg: 0 24px 60px rgba(10, 36, 99, 0.12);
  --shadow-md: 0 16px 34px rgba(26, 58, 143, 0.1);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
  --page-bg:
    radial-gradient(circle at top left, rgba(26, 58, 143, 0.08), transparent 30%),
    radial-gradient(circle at top right, rgba(255, 107, 0, 0.08), transparent 28%),
    linear-gradient(180deg, #f5f7fb 0%, #eef3fb 100%);
  --header-bg: linear-gradient(135deg, rgba(26, 58, 143, 0.96), rgba(10, 36, 99, 0.96));
  --header-border: rgba(255, 255, 255, 0.12);
  --header-shadow: 0 10px 24px rgba(10, 36, 99, 0.16);
  --nav-link-color: rgba(255, 255, 255, 0.86);
  --nav-subtitle-color: rgba(255, 255, 255, 0.78);
  --nav-control-bg: rgba(255, 255, 255, 0.08);
  --nav-control-border: rgba(255, 255, 255, 0.24);
  --nav-chip-bg: rgba(255, 255, 255, 0.08);
  --nav-chip-border: rgba(255, 255, 255, 0.2);
  --section-band-bg: linear-gradient(180deg, rgba(248, 249, 250, 0.92) 0%, rgba(238, 243, 251, 0.96) 100%);
  --hero-overlay:
    linear-gradient(90deg, rgba(10, 36, 99, 0.78) 0%, rgba(10, 36, 99, 0.5) 36%, rgba(10, 36, 99, 0.16) 64%, rgba(245, 247, 251, 0.22) 100%),
    linear-gradient(180deg, rgba(26, 58, 143, 0.16) 0%, rgba(10, 36, 99, 0.48) 48%, rgba(245, 247, 251, 0.92) 100%);
  --hero-panel-bg: linear-gradient(135deg, rgba(10, 36, 99, 0.72) 0%, rgba(26, 58, 143, 0.46) 100%);
  --hero-panel-shadow: 0 24px 50px rgba(10, 36, 99, 0.18);
  --hero-copy-color: rgba(255, 255, 255, 0.88);
  --input-bg: rgba(255, 255, 255, 0.92);
  --input-focus-bg: #ffffff;
  --contact-item-bg: rgba(255, 255, 255, 0.72);
  --project-card-bg: rgba(255, 255, 255, 0.98);
  --accent-panel-bg: linear-gradient(180deg, rgba(26, 58, 143, 0.1) 0%, rgba(255, 255, 255, 0.96) 100%);
  --promo-card-bg: linear-gradient(180deg, rgba(26, 58, 143, 0.06) 0%, rgba(255, 107, 0, 0.08) 100%);
  --footer-bg: linear-gradient(180deg, rgba(26, 58, 143, 0.98) 0%, rgba(10, 36, 99, 0.98) 100%);
  --footer-copy-color: rgba(255, 255, 255, 0.74);
  --error-bg: rgba(220, 53, 69, 0.12);
  --error-border: rgba(220, 53, 69, 0.22);
  --error-color: #842029;
  --success-bg: rgba(40, 167, 69, 0.12);
  --success-border: rgba(40, 167, 69, 0.22);
  --success-color: #0f5132;
}

html[data-theme='dark'] {
  color-scheme: dark;
  --background: #0b1321;
  --background-soft: #111a2d;
  --foreground: #ecf2ff;
  --muted-foreground: #a6b5d1;
  --card: rgba(13, 23, 39, 0.88);
  --card-strong: rgba(15, 27, 46, 0.96);
  --primary: #8baeff;
  --primary-strong: #dbe7ff;
  --primary-soft: rgba(139, 174, 255, 0.18);
  --accent: #ff9b48;
  --accent-strong: #ffb56f;
  --border: rgba(154, 182, 255, 0.18);
  --border-strong: rgba(154, 182, 255, 0.28);
  --success: #7ee0a1;
  --info: #8baeff;
  --danger: #ff8f9e;
  --shadow-lg: 0 26px 60px rgba(0, 0, 0, 0.36);
  --shadow-md: 0 18px 34px rgba(0, 0, 0, 0.28);
  --page-bg:
    radial-gradient(circle at top left, rgba(85, 123, 227, 0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(255, 155, 72, 0.14), transparent 28%),
    linear-gradient(180deg, #09111d 0%, #10192a 100%);
  --header-bg: linear-gradient(135deg, rgba(8, 17, 30, 0.95), rgba(13, 27, 46, 0.94));
  --header-border: rgba(154, 182, 255, 0.14);
  --header-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  --nav-link-color: rgba(236, 242, 255, 0.84);
  --nav-subtitle-color: rgba(236, 242, 255, 0.68);
  --nav-control-bg: rgba(255, 255, 255, 0.06);
  --nav-control-border: rgba(154, 182, 255, 0.24);
  --nav-chip-bg: rgba(255, 255, 255, 0.06);
  --nav-chip-border: rgba(154, 182, 255, 0.24);
  --section-band-bg: linear-gradient(180deg, rgba(11, 19, 33, 0.9) 0%, rgba(16, 27, 46, 0.96) 100%);
  --hero-overlay:
    linear-gradient(90deg, rgba(4, 10, 20, 0.86) 0%, rgba(6, 18, 34, 0.62) 38%, rgba(6, 18, 34, 0.22) 66%, rgba(9, 17, 29, 0.32) 100%),
    linear-gradient(180deg, rgba(85, 123, 227, 0.1) 0%, rgba(4, 10, 20, 0.58) 48%, rgba(9, 17, 29, 0.96) 100%);
  --hero-panel-bg: linear-gradient(135deg, rgba(7, 16, 29, 0.8) 0%, rgba(26, 58, 143, 0.34) 100%);
  --hero-panel-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
  --hero-copy-color: rgba(236, 242, 255, 0.88);
  --input-bg: rgba(11, 19, 33, 0.92);
  --input-focus-bg: rgba(14, 24, 42, 0.98);
  --contact-item-bg: rgba(13, 23, 39, 0.82);
  --project-card-bg: rgba(13, 23, 39, 0.94);
  --accent-panel-bg: linear-gradient(180deg, rgba(40, 72, 153, 0.22) 0%, rgba(13, 23, 39, 0.96) 100%);
  --promo-card-bg: linear-gradient(180deg, rgba(40, 72, 153, 0.18) 0%, rgba(255, 155, 72, 0.14) 100%);
  --footer-bg: linear-gradient(180deg, rgba(6, 15, 28, 0.98) 0%, rgba(11, 22, 38, 0.98) 100%);
  --footer-copy-color: rgba(236, 242, 255, 0.72);
  --error-bg: rgba(255, 143, 158, 0.14);
  --error-border: rgba(255, 143, 158, 0.24);
  --error-color: #ffd3da;
  --success-bg: rgba(126, 224, 161, 0.14);
  --success-border: rgba(126, 224, 161, 0.24);
  --success-color: #d8ffe6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: 'Inter', sans-serif;
  color: var(--foreground);
  background: var(--page-bg);
  transition: background 0.25s ease, color 0.25s ease;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

.brand img {
  width: auto;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  box-shadow: var(--header-shadow);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

.brand-subtitle {
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--nav-subtitle-color);
}

.logo-mark {
  width: 52px;
  height: 52px;
}

.logo-mark-small {
  width: 44px;
  height: 44px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-actions,
.page-actions,
.user-row,
.user-row-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-link,
.mobile-nav-link {
  color: var(--nav-link-color);
  transition: color 0.2s ease;
}

.nav-link:hover,
.mobile-nav-link:hover,
.nav-link.is-active,
.mobile-nav-link.is-active {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--nav-control-border);
  border-radius: 999px;
  background: var(--nav-control-bg);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #fff;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--header-border);
  background: var(--header-bg);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav-inner {
  display: grid;
  gap: 16px;
  padding: 18px 0 24px;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--nav-chip-border);
  background: var(--nav-chip-bg);
  color: #ffffff;
  font-weight: 600;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px 0 10px;
  border: 1px solid var(--nav-control-border);
  border-radius: 999px;
  background: var(--nav-control-bg);
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

.theme-toggle-track {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, background 0.2s ease;
}

.theme-toggle-label {
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

html[data-theme='dark'] .theme-toggle-thumb {
  transform: translateX(18px);
  background: var(--accent);
}

.user-chip-full {
  justify-content: center;
  width: 100%;
}

.site-main {
  padding-bottom: 64px;
}

.hero-section {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
}

.hero-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

.hero-backdrop img {
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
}

.hero-grid {
  position: relative;
  z-index: 1;
  padding: 120px 0 88px;
}

.hero-copy {
  max-width: 760px;
  display: grid;
  gap: 28px;
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--hero-panel-bg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--hero-panel-shadow);
  backdrop-filter: blur(12px);
}

.hero-copy h1,
.hero-copy h2,
.hero-copy h3,
.hero-copy p {
  color: #ffffff;
}

.hero-copy .text-gradient {
  background: linear-gradient(92deg, #ffd7a3 0%, #ff9a3d 48%, #fff4d6 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy h1 {
  text-shadow: 0 10px 30px rgba(10, 36, 99, 0.3);
}

.hero-copy p {
  color: var(--hero-copy-color);
  text-shadow: 0 2px 18px rgba(10, 36, 99, 0.22);
}

.hero-copy .pill {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.3rem);
  line-height: 0.96;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.02;
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0;
  color: var(--muted-foreground);
  line-height: 1.7;
}

.lead-copy,
.hero-copy p {
  font-size: 1.08rem;
}

.text-gradient {
  background: linear-gradient(92deg, #0f2f78 0%, #c24f00 52%, #081d52 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 5s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(26, 58, 143, 0.18);
  background: rgba(26, 58, 143, 0.08);
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 700;
}

.pill-solid {
  background: var(--primary);
  border-color: transparent;
  color: #fff;
}

.button-row,
.section-heading-row,
.portal-heading,
.project-header,
.portal-card-head,
.portal-card-foot,
.ticket-row,
.ticket-actions,
.social-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.button-row {
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  text-align: center;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff;
  box-shadow: 0 14px 28px rgba(255, 107, 0, 0.24);
}

.button-secondary {
  border-color: var(--border-strong);
  background: var(--card-strong);
  color: var(--foreground);
}

.button-full {
  width: 100%;
}

.text-link {
  color: var(--accent);
  font-weight: 700;
}

.text-link.large {
  font-size: 1rem;
}

.section-block {
  padding: 88px 0 0;
}

.narrow-top {
  padding-top: 64px;
}

.no-top-gap {
  padding-top: 32px;
}

.section-band {
  margin-top: 88px;
  padding: 88px 0;
  background: var(--section-band-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-heading {
  display: grid;
  gap: 14px;
  margin-bottom: 36px;
}

.compact-heading {
  margin-bottom: 18px;
}

.center-copy {
  text-align: center;
  justify-items: center;
}

.max-copy {
  max-width: 760px;
}

.card-grid {
  display: grid;
  gap: 24px;
}

.card-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.glass-card,
.promo-card,
.cta-panel,
.feature-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-md);
}

.glass-card {
  backdrop-filter: blur(18px);
}

.service-card,
.info-card,
.portal-card,
.result-card,
.ticket-card,
.sidebar-card,
.accent-panel,
.form-card,
.project-card,
.auth-card {
  padding: 30px;
}

.service-card,
.info-card,
.content-stack,
.team-copy,
.form-stack,
.assistant-form,
.result-stack,
.portal-sidebar,
.stack-large,
.contact-list {
  display: grid;
  gap: 18px;
}

.hover-rise {
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hover-rise:hover {
  transform: translateY(-4px);
  border-color: rgba(26, 58, 143, 0.35);
}

.icon-chip {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(26, 58, 143, 0.12) 0%, rgba(255, 107, 0, 0.12) 100%);
  border: 1px solid rgba(26, 58, 143, 0.12);
  color: var(--primary);
}

.icon-chip-svg {
  width: 22px;
  height: 22px;
}

.split-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 54px;
  align-items: center;
}

.media-frame,
.team-photo,
.project-image-wrap,
.feature-card {
  overflow: hidden;
}

.media-frame,
.team-photo,
.feature-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.media-frame img,
.team-photo img,
.project-image-wrap img,
.feature-card img {
  height: 100%;
  object-fit: cover;
}

.media-frame {
  min-height: 430px;
}

.media-square {
  aspect-ratio: 1 / 1;
  min-height: auto;
}

.check-list {
  display: grid;
  gap: 20px;
}

.check-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
}

.check-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
}

.feature-card {
  position: relative;
  min-height: 360px;
}

.feature-card img {
  transition: transform 0.5s ease;
}

.feature-card:hover img {
  transform: scale(1.06);
}

.feature-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 107, 0, 0.05) 0%, rgba(42, 24, 8, 0.78) 88%);
}

.feature-copy {
  position: absolute;
  inset: auto 24px 24px 24px;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.stats-grid,
.tag-row,
.footer-grid,
.footer-list,
.form-grid,
.portfolio-grid,
.team-grid {
  display: grid;
  gap: 20px;
}

.stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card strong {
  display: block;
  color: var(--primary);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
}

.stat-card span {
  color: var(--muted-foreground);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.team-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.team-card {
  display: grid;
  gap: 14px;
}

.team-photo {
  aspect-ratio: 4 / 5;
  filter: grayscale(1);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.team-card:hover .team-photo {
  filter: grayscale(0);
  transform: translateY(-3px);
}

.team-copy p {
  color: var(--accent);
  font-weight: 700;
}

.service-category {
  display: grid;
  gap: 26px;
}

.category-header {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  border-left: 4px solid var(--primary);
}

.portfolio-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
  overflow: hidden;
  padding: 0;
  background: var(--project-card-bg);
}

.project-image-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
}

.project-badge {
  position: absolute;
  top: 18px;
  left: 18px;
}

.project-copy {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.project-copy h2 {
  color: var(--foreground);
  line-height: 1.04;
}

.project-copy p {
  color: var(--muted-foreground);
}

.project-header {
  align-items: flex-start;
}

.project-links {
  display: flex;
  gap: 12px;
  color: #5b6678;
}

.project-links a {
  color: var(--primary);
  font-weight: 700;
}

.tag-row {
  grid-template-columns: repeat(auto-fit, minmax(120px, max-content));
}

.tag {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(26, 58, 143, 0.14);
  background: rgba(26, 58, 143, 0.08);
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 600;
}

.cta-panel {
  padding: 48px;
  text-align: center;
  display: grid;
  gap: 18px;
  background: linear-gradient(180deg, rgba(26, 58, 143, 0.08) 0%, rgba(255, 107, 0, 0.08) 100%);
}

.contact-grid,
.portal-grid {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 36px;
}

.contact-item {
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--contact-item-bg);
}

.form-card {
  display: grid;
  gap: 20px;
}

.form-intro {
  display: grid;
  gap: 8px;
}

.password-tools,
.password-policy-panel {
  display: grid;
  gap: 12px;
}

.password-field {
  position: relative;
  isolation: isolate;
}

.password-field input {
  position: relative;
  z-index: 1;
  padding-right: 88px;
  transition: color 0.22s ease, opacity 0.22s ease;
}

.password-field.is-animating input {
  color: transparent;
  caret-color: transparent;
}

.password-reveal-overlay {
  position: absolute;
  inset: 0 88px 0 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.14rem;
  overflow: hidden;
  pointer-events: none;
  color: var(--foreground);
  opacity: 0;
}

.password-reveal-overlay.is-visible {
  opacity: 1;
}

.password-reveal-char {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0.72ch;
  font-size: 0.98rem;
  line-height: 1;
  color: var(--foreground);
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    color 0.24s ease,
    opacity 0.24s ease,
    transform 0.24s ease;
  transition-delay: calc(var(--char-index) * 28ms);
}

.password-reveal-char::after {
  content: '';
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--foreground);
  opacity: 0;
  transform: scale(0.4);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  transition-delay: calc(var(--char-index) * 28ms);
}

.password-reveal-char.is-masked {
  color: transparent;
  transform: translateY(-1px) scale(0.96);
}

.password-reveal-char.is-masked::after {
  opacity: 0.92;
  transform: scale(1);
}

.password-visibility-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  min-width: 64px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card-strong);
  color: var(--foreground);
  cursor: pointer;
}

.password-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.password-generator-note {
  font-size: 0.92rem;
}

.password-policy-panel {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--background-soft);
}

.password-policy-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--muted-foreground);
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-stack label,
.assistant-form {
  display: grid;
  gap: 10px;
}

.turnstile-wrap {
  display: flex;
  justify-content: center;
}

.turnstile-wrap .cf-turnstile {
  max-width: 100%;
}

.form-stack span {
  color: var(--foreground);
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--input-bg);
  color: var(--foreground);
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(26, 58, 143, 0.45);
  box-shadow: 0 0 0 4px rgba(26, 58, 143, 0.1);
  background: var(--input-focus-bg);
}

select option {
  color: #10131d;
}

.form-errors,
.flash {
  border-radius: var(--radius-md);
  padding: 16px 18px;
  border: 1px solid var(--error-border);
  background: var(--error-bg);
  color: var(--error-color);
}

.form-errors.single {
  margin-top: 18px;
}

.flash-wrap {
  padding-top: 24px;
}

.flash-success {
  border-color: var(--success-border);
  background: var(--success-bg);
  color: var(--success-color);
}

.portal-heading {
  margin-bottom: 28px;
}

.portal-heading h1 {
  font-size: clamp(2.8rem, 4.8vw, 4.6rem);
  line-height: 0.96;
}

.portal-heading p {
  margin-top: 10px;
  font-size: 1.05rem;
}

.portal-card-status-row {
  display: flex;
  justify-content: flex-end;
}

.portal-card-head {
  display: block;
  min-height: 0;
}

.portal-card-head h2 {
  min-width: 0;
  max-width: 8ch;
  font-size: clamp(1.2rem, 1.8vw, 1.7rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: pretty;
}

.portal-main,
.ticket-list,
.user-list {
  display: grid;
  gap: 24px;
}

.portal-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 16px;
  min-height: 208px;
  align-content: start;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.portal-card > p,
.portal-card-foot {
  min-width: 0;
}

.portal-empty-card {
  min-height: 0;
}

.portal-reveal-ready {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
}

.portal-reveal-ready.portal-reveal-visible {
  animation: portalRevealUp 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--portal-reveal-delay, 0ms);
}

.portal-card:hover,
.ticket-card:hover,
.accent-panel:hover,
.sidebar-card:hover,
.promo-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.user-row {
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.user-row:last-child {
  border-bottom: 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(26, 58, 143, 0.12);
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 700;
}

.status-badge.is-good {
  background: rgba(40, 167, 69, 0.12);
  color: var(--success);
}

.status-badge.is-info {
  background: rgba(26, 58, 143, 0.12);
  color: var(--primary);
}

.progress-track {
  width: 100%;
  max-width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(26, 58, 143, 0.08);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.progress-bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  box-shadow: 0 0 18px rgba(255, 107, 0, 0.18);
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.portal-card-meta {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}

.portal-card-detail-stack {
  display: grid;
  gap: 6px;
}

.portal-card-submeta {
  color: var(--foreground);
  font-size: 0.96rem;
  font-weight: 600;
}

.portal-card-tertiary {
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.portal-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
}

.portal-card-usage {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--foreground);
}

.ticket-row {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ticket-row:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
}

.ticket-row-empty {
  justify-content: space-between;
}

.ticket-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.ticket-meta span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

.ticket-copy {
  min-width: 0;
}

.ticket-code {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(26, 58, 143, 0.08);
  color: var(--primary);
  font-weight: 700;
}

.ticket-date {
  color: var(--muted-foreground);
}

.ticket-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--foreground);
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ticket-link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.accent-panel {
  display: grid;
  gap: 14px;
  background: var(--accent-panel-bg);
}

.invoice-amount {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.03em;
}

.billing-due {
  color: var(--muted-foreground);
}

.rep-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(26, 58, 143, 0.28) 0%, rgba(255, 107, 0, 0.22) 100%);
  border: 1px solid var(--border);
  box-shadow: 0 14px 24px rgba(10, 36, 99, 0.18);
  color: var(--foreground);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  overflow: hidden;
}

.rep-avatar::before,
.rep-avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.rep-avatar::before {
  inset: 5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.rep-avatar::after {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 58%);
  transform: translateX(-55%);
  animation: repAvatarSheen 4.8s ease-in-out infinite;
}

.rep-card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

html[data-theme='dark'] .rep-card {
  background: rgba(255, 255, 255, 0.02);
}

.rep-card > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.rep-card h3 {
  font-size: 1.18rem;
}

.rep-card h3,
.rep-card p {
  overflow-wrap: anywhere;
}

.sidebar-card {
  display: grid;
  gap: 18px;
}

.promo-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: var(--promo-card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.promo-card .text-link {
  width: fit-content;
}

.record-list {
  display: grid;
  gap: 18px;
}

.record-item {
  border-radius: var(--radius-md);
}

.inline-delete-form {
  display: flex;
  justify-content: flex-end;
}

@keyframes repAvatarSheen {
  0%,
  18% {
    transform: translateX(-55%);
    opacity: 0;
  }

  30%,
  60% {
    transform: translateX(38%);
    opacity: 1;
  }

  100% {
    transform: translateX(55%);
    opacity: 0;
  }
}

@keyframes portalRevealUp {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-reveal-ready,
  .portal-reveal-ready.portal-reveal-visible {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .rep-avatar::after {
    animation: none;
    opacity: 0;
  }

  .progress-bar,
  .portal-card,
  .ticket-card,
  .accent-panel,
  .sidebar-card,
  .promo-card,
  .ticket-row,
  .ticket-link {
    transition: none;
  }
}

.assistant-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
}

.result-card details {
  margin-top: 8px;
}

.result-card summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 700;
}

.result-card ol {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted-foreground);
}

.site-footer {
  margin-top: 88px;
  padding: 64px 0 32px;
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
}

.footer-grid {
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
}

.footer-column {
  display: grid;
  gap: 18px;
}

.footer-column h3 {
  font-size: 1.05rem;
}

.footer-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-list a,
.footer-list li,
.footer-copy {
  color: var(--footer-copy-color);
}

.social-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

@media (max-width: 1080px) {
  .nav-row {
    gap: 18px;
  }

  .desktop-nav {
    gap: 18px;
  }

  .nav-actions {
    gap: 10px;
  }

  .card-grid-4,
  .team-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid-3,
  .portfolio-grid,
  .portal-grid,
  .contact-grid,
  .split-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }

  .section-block,
  .section-band,
  .site-footer {
    padding-top: 72px;
  }

  .hero-grid {
    padding-top: 104px;
  }

  .mobile-nav {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

  .hero-copy {
    padding: 28px;
  }

  .card-grid-2,
  .card-grid-3,
  .card-grid-4,
  .team-grid,
  .stats-grid,
  .footer-grid,
  .form-grid,
  .assistant-row {
    grid-template-columns: 1fr;
  }

  .ticket-row,
  .user-row,
  .portal-heading,
  .section-heading-row,
  .project-header,
  .button-row,
  .portal-card-head,
  .portal-card-foot,
  .ticket-actions,
  .nav-actions,
  .page-actions,
  .user-row-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-card,
  .info-card,
  .portal-card,
  .result-card,
  .ticket-card,
  .sidebar-card,
  .accent-panel,
  .form-card,
  .project-copy,
  .cta-panel {
    padding: 24px;
  }

  .mobile-nav .theme-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .mobile-nav-link,
  .mobile-nav .button,
  .mobile-nav .user-chip {
    width: 100%;
  }

  .password-tools .button {
    width: 100%;
  }

  .password-action-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  h1 {
    font-size: 2.55rem;
  }

  .hero-copy {
    padding: 22px;
  }

  .nav-row {
    min-height: 72px;
    gap: 14px;
  }

  .brand {
    gap: 10px;
  }

  .brand-copy {
    gap: 2px;
  }

  .brand-title {
    font-size: 0.96rem;
  }

  .brand-subtitle {
    font-size: 0.58rem;
    letter-spacing: 0.16em;
  }

  .brand img {
    max-height: 40px;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-grid {
    padding: 92px 0 64px;
  }

  .feature-copy {
    inset: auto 18px 18px 18px;
  }

  .project-copy,
  .service-card,
  .info-card,
  .portal-card,
  .result-card,
  .ticket-card,
  .sidebar-card,
  .accent-panel,
  .form-card,
  .cta-panel {
    padding: 20px;
  }

  .ticket-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .pill,
  .button,
  .social-chip {
    width: 100%;
  }

  .social-row {
    flex-direction: column;
  }

  .turnstile-wrap {
    justify-content: stretch;
  }

  .wa-bubble__label {
    display: none;
  }
}

/* ── WhatsApp floating bubble ─────────────────────────────── */
.wa-bubble {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.wa-bubble__label {
  background: var(--card-strong);
  color: var(--foreground);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}

.wa-bubble:hover .wa-bubble__label,
.wa-bubble:focus .wa-bubble__label {
  opacity: 1;
  transform: translateX(0);
}

.wa-bubble__icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(255, 107, 0, 0.40);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  flex-shrink: 0;
}

.wa-bubble:hover .wa-bubble__icon,
.wa-bubble:focus .wa-bubble__icon {
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(255, 107, 0, 0.55);
}

.wa-bubble__icon svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

@media (max-width: 560px) {
  .wa-bubble {
    bottom: 18px;
    right: 18px;
  }
  .wa-bubble__icon {
    width: 50px;
    height: 50px;
  }
  .wa-bubble__icon svg {
    width: 28px;
    height: 28px;
  }
}