:root {
  --ink: #172033;
  --muted: #647085;
  --line: #dfe4ec;
  --paper: #ffffff;
  --soft: #f5f7fb;
  --blue: #0f55d8;
  --sky: #0ea5e9;
  --accent: #0787e8;
  --accent-dark: #0f3fb8;
  --radius: 8px;
  --shadow: 0 18px 54px rgba(23, 32, 51, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(223, 228, 236, .86);
}
.nav-inner {
  width: min(1180px, calc(100% - 40px));
  height: 62px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand-mark { width: 210px; height: 34px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 20px; color: var(--muted); font-size: 13px; }
.nav-links a { text-decoration: none; font-weight: 750; }
.nav-links a.active { color: var(--accent-dark); }
.language-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .85);
}
.language-switch a {
  min-width: 36px;
  height: 28px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 850;
}
.language-switch a.active { color: #fff; background: var(--accent-dark); }

.button {
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: linear-gradient(135deg, var(--accent-dark), var(--accent)); box-shadow: 0 14px 34px rgba(15, 85, 216, .25); }
.button-light { color: var(--ink); background: #fff; border-color: var(--line); }

.brand-hero {
  position: relative;
  min-height: min(840px, calc(100vh - 62px));
  overflow: hidden;
  color: var(--ink);
  background: #eef4ff;
}
.brand-hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(255, 255, 255, .48);
}
.nexora-hero-content {
  position: relative;
  z-index: 2;
  width: min(1060px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-kicker, .label { color: var(--accent-dark); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.brand-hero .hero-kicker { padding: 7px 15px; border: 1px solid rgba(15, 85, 216, .18); border-radius: 999px; background: rgba(255, 255, 255, .72); }
.brand-hero h1 { max-width: 780px; margin: 22px 0 18px; font-size: clamp(50px, 6vw, 78px); font-weight: 500; line-height: .98; letter-spacing: 0; }
.brand-hero h1 span { color: var(--accent-dark); font-style: italic; }
.brand-hero p { max-width: 680px; margin: 0; color: #536178; font-size: 17px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.brand-hero .button { border-radius: 999px; }
.hero-preview {
  width: 100%;
  margin-top: 34px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 16px;
  background: rgba(255, 255, 255, .44);
  box-shadow: 0 28px 80px rgba(42, 69, 119, .22);
  backdrop-filter: blur(14px);
}
.hero-preview img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border: 1px solid rgba(23, 32, 51, .12); border-radius: 11px; }
.fade-up { opacity: 0; animation: heroFadeUp .7s cubic-bezier(.22, 1, .36, 1) forwards; }
.delay-0 { animation-delay: .05s; }
.delay-1 { animation-delay: .15s; }
.delay-2 { animation-delay: .25s; }
.delay-3 { animation-delay: .35s; }
.delay-4 { animation-delay: .45s; }
@keyframes heroFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

.section { padding: 82px 0; background: #fff; }
.section.alt { background: var(--soft); }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.section-head { display: grid; grid-template-columns: 1fr .75fr; gap: 40px; align-items: end; margin-bottom: 36px; }
.section h2 { margin: 9px 0 0; font-size: clamp(32px, 4vw, 50px); line-height: 1.06; }
.section-lede { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }

.service-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.service-panel { padding: 32px; border: 1px solid var(--line); background: #fff; }
.service-panel h3 { margin: 10px 0 12px; font-size: 28px; }
.service-panel > p { margin: 0; color: var(--muted); line-height: 1.65; }
.service-list { display: grid; gap: 0; margin-top: 26px; border-top: 1px solid var(--line); }
.service-item { display: grid; grid-template-columns: 32px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.service-item b { color: var(--accent-dark); font-size: 12px; }
.service-item strong { display: block; margin-bottom: 4px; }
.service-item span { color: var(--muted); font-size: 13px; line-height: 1.5; }
.service-more { margin-top: 16px; border-top: 1px solid var(--line); }
.service-more summary { padding: 16px 0 0; color: var(--accent-dark); font-size: 13px; font-weight: 850; cursor: pointer; }
.service-more-body { display: grid; margin-top: 8px; }
.service-more-body .service-item { padding: 14px 0; }

.process { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); background: #fff; }
.process-step { min-height: 170px; padding: 24px 18px; border-right: 1px solid var(--line); }
.process-step:last-child { border-right: 0; }
.process-step b { color: var(--accent-dark); font-size: 12px; }
.process-step strong { display: block; margin-top: 32px; font-size: 16px; }
.process-step span { display: block; margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.5; }

.template-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.template-card { overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: 0 12px 36px rgba(23, 32, 51, .06); }
.template-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s ease; }
.template-card:hover img { transform: scale(1.02); }
.template-body { padding: 24px; }
.template-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.template-meta span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11px; font-weight: 800; }
.template-body h3 { margin: 16px 0 8px; font-size: 25px; }
.template-body p { margin: 0 0 20px; color: var(--muted); line-height: 1.6; }
.template-link { color: var(--accent-dark); font-weight: 850; text-decoration: none; }

.brand-deliverables { display: grid; grid-template-columns: .72fr 1.28fr; gap: 22px 42px; align-items: start; }
.identity-board { min-height: 330px; padding: 28px; display: grid; grid-template-rows: auto 1fr auto; gap: 20px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.identity-logo { width: 210px; height: 38px; object-fit: contain; object-position: left center; }
.identity-screens { display: grid; grid-template-columns: 1.08fr .92fr; gap: 10px; min-height: 170px; }
.identity-screens img { width: 100%; height: 100%; object-fit: cover; border: 1px solid var(--line); }
.identity-caption { display: grid; gap: 5px; }
.identity-caption strong { color: var(--accent-dark); }
.identity-caption span { color: var(--muted); font-size: 13px; line-height: 1.55; }
.deliverable-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.deliverable-grid { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
.deliverable { min-height: 150px; padding: 22px; border: 1px solid var(--line); background: #fff; }
.deliverable b { color: var(--accent-dark); font-size: 12px; }
.deliverable strong { display: block; margin: 28px 0 6px; }
.deliverable span { color: var(--muted); font-size: 13px; line-height: 1.5; }

.contact-section { padding: 80px 0; color: #fff; background: linear-gradient(135deg, #172033, #243653 54%, #0f3fb8); }
.contact-layout { width: min(1180px, calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: .85fr 1.15fr; gap: 38px; }
.contact-section h2 { margin: 10px 0 16px; font-size: clamp(34px, 4vw, 50px); line-height: 1.05; }
.contact-section p { color: #d6e3f5; line-height: 1.7; }
.contact-methods { display: grid; gap: 10px; margin-top: 24px; }
.contact-method { padding: 15px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .08); }
.contact-method strong { display: block; margin-bottom: 5px; }
.contact-method a { color: #d6e3f5; text-decoration: none; font-size: 14px; }
.inquiry-form { padding: 26px; color: var(--ink); background: rgba(255, 255, 255, .97); box-shadow: 0 20px 54px rgba(0, 0, 0, .2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #344156; font-size: 12px; font-weight: 850; }
.field input, .field select, .field textarea { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: #fff; }
.field textarea { min-height: 112px; resize: vertical; }
.form-note { margin: 12px 0 0; color: var(--muted) !important; font-size: 12px; }
.form-status { min-height: 20px; }
.form-status[data-state="success"] { color: #18794e !important; }
.form-status[data-state="error"] { color: #b42318 !important; }
.form-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-slot { min-height: 65px; margin-top: 16px; }
.inquiry-form button[disabled] { cursor: wait; opacity: .65; }

footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 25px 0; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
  .nav-links a:not(.active) { display: none; }
  .section-head, .service-split, .brand-deliverables, .contact-layout { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(3, 1fr); }
  .process-step:nth-child(3) { border-right: 0; }
  .process-step:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .nav-inner, .container, .nexora-hero-content, .contact-layout, .footer-inner { width: min(100% - 28px, 1180px); }
  .brand-mark { width: 148px; height: 28px; }
  .nav-links { display: none; }
  .brand-hero { min-height: 660px; }
  .brand-hero::before { background: rgba(255, 255, 255, .55); }
  .nexora-hero-content { padding-top: 42px; }
  .brand-hero h1 { margin-top: 18px; font-size: 46px; }
  .brand-hero p { font-size: 15px; }
  .brand-hero .hero-actions { margin-top: 24px; justify-content: center; }
  .hero-preview { margin-top: 30px; padding: 7px; border-radius: 12px; }
  .section { padding: 58px 0; }
  .section-head { gap: 18px; }
  .process { grid-template-columns: 1fr; }
  .process { border: 0; background: transparent; }
  .process-step, .process-step:nth-child(3) { position: relative; min-height: 0; padding: 16px 16px 20px 42px; border: 0; border-left: 2px solid rgba(15, 85, 216, .22); background: transparent; }
  .process-step::before { content: ""; position: absolute; top: 19px; left: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-dark); }
  .process-step:last-child { border-bottom: 0; }
  .process-step strong { margin-top: 7px; }
  .process-step span, .service-item span, .identity-caption span { font-size: 14px; line-height: 1.6; }
  .template-grid, .deliverable-grid, .form-grid { grid-template-columns: 1fr; }
  .identity-board { min-height: 280px; padding: 20px; }
  .field.full { grid-column: auto; }
  .service-panel, .inquiry-form { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .template-card img { transition: none; }
}
