:root {
  --blue: #243258;
  --blue-2: #1b2543;
  --gray: #a3a1a4;

  --bg-0: #f6f7fb;
  --bg-1: #eef1f8;

  --text: #121826;
  --muted: #4b5563;

  --card: rgba(255, 255, 255, 0.78);
  --border: rgba(36, 50, 88, 0.14);

  --shadow: 0 18px 50px rgba(18, 24, 38, 0.08);
  --radius: 20px;

  --focus: rgba(36, 50, 88, 0.35);
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(900px circle at 10% 10%, rgba(36, 50, 88, 0.14) 0%, transparent 55%),
    radial-gradient(800px circle at 90% 25%, rgba(163, 161, 164, 0.18) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 60%, var(--bg-0) 100%);
}

.page { padding-top: 84px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(246, 247, 251, 0.72);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(36, 50, 88, 0.12));
}

/* NEW: company name in header */
.brand-name {
  font-weight: 800;
  color: var(--blue);
  font-size: 14px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 999px;
}

.nav-link {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  transition: background 180ms ease, color 180ms ease;
  outline: none;
}

.nav-link:hover { background: rgba(36, 50, 88, 0.06); color: var(--blue); }

.nav-link.is-active {
  background: rgba(36, 50, 88, 0.12);
  color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(36, 50, 88, 0.10);
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  padding: 10px 12px;
  color: var(--blue);
  cursor: pointer;
  transition: transform 120ms ease, background 180ms ease;
}

.lang-btn:hover { background: rgba(255, 255, 255, 0.85); }
.lang-btn:active { transform: translateY(1px); }

.lang-icon { fill: var(--blue); }
.lang-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* Hero */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 34px 18px 18px;
}

.hero-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-title {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--blue);
}

/* slightly emphasize company title */
.hero-title-company {
  font-weight: 900;
}

/* NEW: slogan style (replaces description) */
.hero-slogan {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 14px;
  font-size: 13px;
  color: rgba(18, 24, 38, 0.68);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-frame {
  width: min(360px, 92%);
  aspect-ratio: 1 / 1;
  border-radius: 26px;
  background:
    radial-gradient(260px circle at 30% 30%, rgba(36, 50, 88, 0.16) 0%, transparent 60%),
    radial-gradient(240px circle at 70% 65%, rgba(163, 161, 164, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.55));
  border: 1px solid rgba(36, 50, 88, 0.12);
  box-shadow: 0 24px 60px rgba(36, 50, 88, 0.10);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px;
}

.hero-logo {
  width: 82%;
  height: 82%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 18px 28px rgba(36, 50, 88, 0.12));
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
}

.btn-primary {
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-2) 100%);
  color: white;
  border-color: rgba(36, 50, 88, 0.22);
  box-shadow: 0 14px 32px rgba(36, 50, 88, 0.18);
  transition: transform 120ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.btn-primary:hover {
  filter: brightness(1.03);
  box-shadow: 0 18px 40px rgba(36, 50, 88, 0.22);
}

.btn-primary:active { transform: translateY(1px); }

/* Contact */
.contact {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 18px 18px;
}

.contact-card {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact-title {
  margin: 0 0 6px;
  font-size: clamp(26px, 3.2vw, 36px);
  color: var(--blue);
  letter-spacing: -0.02em;
}

.contact-subtitle {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

.form { display: grid; gap: 14px; margin-top: 10px; }

.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: rgba(18, 24, 38, 0.90);
}

.field input,
.field textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(36, 50, 88, 0.18);
  background: rgba(255, 255, 255, 0.82);
  padding: 12px 12px;
  font-size: 15px;
  color: var(--text);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field textarea { resize: vertical; min-height: 120px; }

.field input:focus,
.field textarea:focus {
  border-color: rgba(36, 50, 88, 0.42);
  box-shadow: 0 0 0 4px rgba(36, 50, 88, 0.10);
  outline: none;
}

.error {
  margin: 8px 0 0;
  font-size: 13px;
  color: #b42318;
  min-height: 18px;
}

.form-actions { margin-top: 6px; }

.form-status {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(36, 50, 88, 0.14);
  background: rgba(36, 50, 88, 0.06);
  color: rgba(18, 24, 38, 0.82);
  display: none;
}

/* Footer */
.site-footer {
  margin-top: 40px;
  padding: 26px 18px 34px;
  color: rgba(18, 24, 38, 0.70);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid rgba(36, 50, 88, 0.12);
  padding-top: 16px;
  display: flex;
  justify-content: center;
}

.footer-text { font-size: 13px; }

.hero-email {
  margin-top: 10px;
  font-size: 14px;
  color: rgba(18, 24, 38, 0.7);
}

.hero-email .email-link {
  margin-inline-start: 6px;
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.hero-email .email-link:hover {
  text-decoration: underline;
}

/* Validation state */
.field.invalid input,
.field.invalid textarea {
  border-color: rgba(180, 35, 24, 0.55);
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.10);
}

/* Status styles (your script adds success/error classes) */
.form-status {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(36, 50, 88, 0.14);
  background: rgba(36, 50, 88, 0.06);
  color: rgba(18, 24, 38, 0.82);
  display: block; /* keep visible when text exists */
  min-height: 0;
}

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

.form-status.success {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.08);
}

.form-status.error {
  border-color: rgba(180, 35, 24, 0.35);
  background: rgba(180, 35, 24, 0.08);
}

/* Loading state */
.btn.is-loading {
  opacity: 0.8;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 860px) {
  .hero-card { grid-template-columns: 1fr; padding: 22px; }
  .hero-slogan { max-width: none; }
  .logo-frame { width: min(320px, 92%); }

  .header-inner { gap: 10px; }
  .nav-link { padding: 10px 12px; }

  .lang-label { display: none; }

  /* keep header clean on mobile: hide long company name if needed */
  .brand-name {
    display: none;
  }
}
