/* ==========================================================================
   大连铭祥自动化设备有限公司 — 官网样式
   精密工业科技风：深石墨蓝基底 + 琥珀金点缀 + 几何线条装饰
   ========================================================================== */

:root {
  --bg-main: #0B1120;
  --bg-secondary: #111827;
  --bg-footer: #070D1A;
  --bg-deep: #0F2847;
  --bg-light: #F8FAFC;

  --primary: #1E6BFF;
  --primary-dark: #1552CC;
  --accent: #F59E0B;
  --accent-dark: #D97706;
  --success: #10B981;

  --text-dark-bg: #F1F5F9;
  --text-light-bg: #1E293B;
  --text-muted: #94A3B8;

  --border-light: #1E293B;
  --border-dark: #334155;

  --radius: 8px;
  --radius-lg: 12px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 400ms;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Fira Code", Consolas, monospace;
}

/* ---------- Reset / Base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark-bg);
  background: var(--bg-main);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

ul,
ol {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section--light {
  background: var(--bg-light);
  color: var(--text-light-bg);
}

.section--light .section-subtitle {
  color: var(--text-muted);
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

h1 {
  font-size: 56px;
  font-weight: 800;
}

h2 {
  font-size: 36px;
}

h3 {
  font-size: 24px;
}

p {
  line-height: 1.7;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-tag::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
}

.section-title {
  font-size: 36px;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 48px;
}

.center {
  text-align: center;
}

.center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.section-tag--center {
  justify-content: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 200ms ease-out;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #1A1A1A;
}

.btn--primary:hover {
  background: var(--accent-dark);
  transform: scale(1.02);
}

.btn--blue {
  background: var(--primary);
  color: #fff;
}

.btn--blue:hover {
  background: var(--primary-dark);
  transform: scale(1.02);
}

.btn--ghost {
  background: transparent;
  color: var(--text-dark-bg);
  border-color: var(--border-dark);
}

.btn--ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(1.02);
}

.btn--ghost-light {
  background: transparent;
  color: var(--text-light-bg);
  border-color: var(--border-dark);
}

.btn--ghost-light:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(1.02);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 17, 32, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  transition: background var(--dur) var(--ease);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo__mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.logo__text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
}

.logo__text small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark-bg);
  padding: 8px 2px;
  transition: color var(--dur) var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 250ms ease-out;
}

.nav__link:hover {
  color: var(--primary);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link.is-active {
  color: var(--primary);
}

.nav__link.is-active::after {
  width: 100%;
  background: var(--primary);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  padding: 4px;
  cursor: pointer;
  user-select: none;
}

.lang-switch__opt {
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  color: var(--text-muted);
  transition: all 250ms var(--ease);
}

.lang-switch__opt.is-active {
  background: var(--primary);
  color: #fff;
}

.header__cta {
  padding: 10px 22px;
  font-size: 14px;
}

/* Hamburger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  width: 22px;
  margin: 0 auto;
  background: var(--text-dark-bg);
  border-radius: 2px;
  transition: all 300ms var(--ease);
}

.burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.drawer {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: rgba(7, 13, 26, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(100%);
  transition: transform var(--dur) var(--ease);
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer__link {
  font-size: 20px;
  font-weight: 600;
  padding: 16px 8px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  color: var(--text-dark-bg);
}

.drawer__link.is-active {
  color: var(--accent);
}

.drawer__cta {
  margin-top: 24px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 160px 0 120px;
  background: linear-gradient(160deg, #0B1120 0%, #0F2847 55%, #0B1120 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(51, 65, 85, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 65, 85, 0.18) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0%, transparent 30%, rgba(245, 158, 11, 0.06) 48%, transparent 62%),
    linear-gradient(115deg, transparent 0%, transparent 46%, rgba(30, 107, 255, 0.10) 55%, transparent 68%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 28px;
  background: rgba(245, 158, 11, 0.08);
}

.hero__badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.8);
}

.hero__title {
  font-size: 56px;
  line-height: 1.2;
  margin-bottom: 24px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.hero__title .hl {
  color: var(--accent);
}

.hero__subtitle {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 44px;
}

.hero__cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero__meta {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 40px;
  z-index: 2;
  display: flex;
  gap: 48px;
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__meta svg {
  color: var(--accent);
}

/* Page banner (inner pages) */
.banner {
  position: relative;
  padding: 180px 0 90px;
  background: linear-gradient(160deg, #0B1120 0%, #0F2847 60%, #0B1120 100%);
  text-align: center;
  overflow: hidden;
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(51, 65, 85, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 65, 85, 0.16) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 30%, #000 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 30%, #000 20%, transparent 100%);
}

.banner__content {
  position: relative;
  z-index: 2;
}

.banner__title {
  font-size: 44px;
  margin-bottom: 16px;
}

.banner__sub {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 17px;
}

/* ---------- Capability cards ---------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease),
    border-color 300ms var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  border-color: rgba(30, 107, 255, 0.5);
}

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 107, 255, 0.12);
  color: var(--primary);
  margin-bottom: 24px;
}

.card__icon--gold {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent);
}

.card__title {
  font-size: 22px;
  margin-bottom: 12px;
}

.card__desc {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.card__link:hover {
  color: var(--accent);
}

/* ---------- Business scope grid ---------- */
.scope-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.scope-item {
  background: var(--bg-secondary);
  padding: 40px 24px;
  text-align: center;
  transition: background 300ms var(--ease);
}

.scope-item:hover {
  background: #16203a;
}

.scope-item__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  color: var(--primary);
  transition: transform 250ms var(--ease);
}

.scope-item:hover .scope-item__icon {
  transform: scale(1.12);
}

.scope-item__title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.scope-item__desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- About preview (home) ---------- */
.about-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.about-split__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 32px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.tag svg {
  color: var(--success);
}

.about-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-dark);
  background: linear-gradient(160deg, #0F2847, #0B1120);
  aspect-ratio: 4 / 3;
}

.about-visual__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(51, 65, 85, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 65, 85, 0.35) 1px, transparent 1px);
  background-size: 28px 28px;
}

.about-visual__lines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 42%, rgba(245, 158, 11, 0.25) 50%, transparent 58%);
}

.about-visual__stats {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  z-index: 2;
}

.stat {
  background: rgba(7, 13, 26, 0.75);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(51, 65, 85, 0.6);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
}

.stat__num {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.stat__label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---------- Process (products page) ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
  counter-reset: step;
}

.process__item {
  text-align: center;
  padding: 0 12px;
  position: relative;
}

.process__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 32px;
  right: -4%;
  width: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary) 40%, transparent 100%);
}

.process__step {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(30, 107, 255, 0.12);
  border: 1px solid rgba(30, 107, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
}

.process__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.process__desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Products ---------- */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.prod-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}

.prod-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.prod-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, #0F2847, #0B1120);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(30, 107, 255, 0.85);
  overflow: hidden;
}

.prod-card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(51, 65, 85, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 65, 85, 0.3) 1px, transparent 1px);
  background-size: 24px 24px;
}

.prod-card__media svg {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
}

.prod-card__body {
  padding: 24px;
}

.prod-card__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.prod-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.prod-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prod-tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(30, 107, 255, 0.12);
  color: var(--primary);
  border: 1px solid rgba(30, 107, 255, 0.25);
}

/* ---------- Feature split rows ---------- */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.feature-split__content h3 {
  margin-bottom: 16px;
}

.feature-split__content p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
}

.feature-list svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--success);
}

.feature-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-dark);
  background: linear-gradient(160deg, #0F2847, #0B1120);
  aspect-ratio: 4 / 3;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245, 158, 11, 0.8);
}

.feature-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(51, 65, 85, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 65, 85, 0.3) 1px, transparent 1px);
  background-size: 26px 26px;
}

.feature-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 44%, rgba(30, 107, 255, 0.2) 54%, transparent 62%);
}

.feature-visual svg {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #0F2847, #0B1120);
  border-top: 1px solid rgba(245, 158, 11, 0.25);
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
}

.cta-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(245, 158, 11, 0.1), var(--accent));
}

.cta-band__inner {
  text-align: center;
  padding: 72px 24px;
  position: relative;
  z-index: 1;
}

.cta-band__title {
  font-size: 32px;
  margin-bottom: 12px;
}

.cta-band__sub {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 32px;
}

.cta-band__actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-band__phone {
  margin-top: 24px;
  font-size: 15px;
  color: var(--text-muted);
}

.cta-band__phone a {
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Philosophy (about) ---------- */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.philosophy-card {
  text-align: center;
  padding: 48px 32px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  position: relative;
}

.philosophy-card__mark {
  font-family: var(--font-mono);
  font-size: 56px;
  line-height: 1;
  color: rgba(245, 158, 11, 0.35);
  margin-bottom: 12px;
}

.philosophy-card h3 {
  margin-bottom: 12px;
}

.philosophy-card p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-form {
  background: var(--bg-light);
  color: var(--text-light-bg);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.contact-form h3 {
  margin-bottom: 8px;
}

.contact-form__sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-light-bg);
  background: #fff;
  transition: border-color 250ms var(--ease), box-shadow 250ms var(--ease);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 107, 255, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-error {
  font-size: 13px;
  color: #DC2626;
  margin-top: 6px;
  display: none;
}

.form-group.has-error input,
.form-group.has-error textarea {
  border-color: #DC2626;
}

.form-group.has-error .form-error {
  display: block;
}

.form-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
}

.form-success.is-visible {
  display: block;
}

.form-success svg {
  width: 64px;
  height: 64px;
  color: var(--success);
  margin: 0 auto 20px;
}

.form-success h3 {
  margin-bottom: 8px;
}

.form-success p {
  color: var(--text-muted);
  font-size: 15px;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 300ms var(--ease), transform 300ms var(--ease);
}

.contact-card:hover {
  border-color: rgba(30, 107, 255, 0.5);
  transform: translateY(-4px);
}

.contact-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 107, 255, 0.12);
  color: var(--primary);
  margin-bottom: 16px;
}

.contact-card__label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.contact-card__value {
  font-size: 16px;
  font-weight: 600;
  word-break: break-word;
}

.contact-card__value a {
  transition: color 250ms var(--ease);
}

.contact-card__value a:hover {
  color: var(--accent);
}

.map-wrap {
  margin-top: 56px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-dark);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
  filter: grayscale(0.2) contrast(1.05);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border-light);
  padding: 72px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer__brand p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 16px;
  max-width: 340px;
}

.footer h4 {
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--text-dark-bg);
}

.footer ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer ul a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 250ms var(--ease);
}

.footer ul a:hover {
  color: var(--accent);
}

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
  font-size: 14px;
}

.footer__contact svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--primary);
}

.footer__bottom {
  border-top: 1px solid var(--border-light);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
  transition-delay: var(--d, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .nav {
    gap: 24px;
  }

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

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

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

  .process {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .process__item:not(:last-child)::after {
    display: none;
  }

  .about-split,
  .feature-split,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

@media (max-width: 767px) {
  .section {
    padding: 64px 0;
  }

  .nav,
  .header__cta {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero {
    padding: 120px 0 100px;
  }

  .hero__title {
    font-size: 32px;
  }

  .hero__subtitle {
    font-size: 16px;
  }

  .hero__meta {
    display: none;
  }

  .banner {
    padding: 140px 0 64px;
  }

  .banner__title {
    font-size: 30px;
  }

  .section-title {
    font-size: 28px;
  }

  .cap-grid,
  .prod-grid,
  .scope-grid,
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 28px 20px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .about-split__tags {
    justify-content: flex-start;
  }
}

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

  html {
    scroll-behavior: auto;
  }

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