:root {
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --bg-blue: #0a1f44;
  --text: #0a1f44;
  --text-muted: #5a6b85;
  --line: #e5eaf3;
  --line-2: #c9d2e3;
  --blue: #2356f6;
  --blue-dark: #1840d4;
  --blue-light: #eaf0ff;
  --accent: #ffb547;
  --radius: 12px;
  --radius-lg: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* Top bar */
.top-bar {
  background: var(--bg-blue); color: #fff;
  font-size: 13px; padding: 10px 0;
}
.top-inner { display: flex; justify-content: flex-end; gap: 12px; }
.dot-sep { opacity: 0.4; }

/* Nav */
.nav {
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px; max-width: 1240px; margin: 0 auto;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Fraunces', serif; font-size: 24px; font-weight: 600;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--blue) 0%, #5a85ff 100%);
  border-radius: 8px;
  position: relative;
}
.logo-mark::after {
  content: ''; position: absolute; inset: 6px;
  background: #fff; border-radius: 4px;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}
.logo strong { color: var(--blue); font-weight: 700; }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 15px; color: var(--text-muted); font-weight: 500;
  transition: color .2s; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -22px; left: 0; right: 0; height: 2px;
  background: var(--blue);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 14px;
  cursor: pointer; transition: all .2s; border: 1.5px solid transparent;
}
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 4px 16px rgba(35,86,246,0.25); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(35,86,246,0.3); }
.btn-outline { background: #fff; color: var(--text); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.3); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* Hero */
.hero {
  padding: 80px 0 100px;
  background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--blue-light), transparent 70%);
  opacity: 0.6;
}
.hero-grid {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 60px; align-items: center; position: relative; z-index: 1;
}
.badge {
  display: inline-block; padding: 6px 14px;
  background: var(--blue-light); color: var(--blue);
  border-radius: 100px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; margin-bottom: 24px;
}
.hero h1 {
  font-family: 'Fraunces', serif; font-weight: 600;
  font-size: clamp(44px, 6vw, 76px); line-height: 1.05;
  letter-spacing: -0.03em; margin-bottom: 24px;
}
.text-blue { color: var(--blue); font-style: italic; }
.lead {
  font-size: 19px; color: var(--text-muted);
  margin-bottom: 36px; max-width: 540px;
}
.hero-cta { display: flex; gap: 14px; margin-bottom: 56px; }

.trust-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; padding-top: 36px; border-top: 1px solid var(--line);
}
.trust-row div { display: flex; flex-direction: column; }
.trust-row strong {
  font-family: 'Fraunces', serif; font-size: 30px; font-weight: 600;
  color: var(--blue); letter-spacing: -0.02em;
}
.trust-row span { font-size: 13px; color: var(--text-muted); }

/* Hero card stack */
.hero-card { position: relative; height: 460px; }
.card-stack { position: relative; height: 100%; }
.floating-card {
  position: absolute; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: 0 12px 40px rgba(10,31,68,0.08);
  width: 280px;
}
.floating-card h5 { font-size: 17px; margin: 12px 0 6px; font-weight: 600; }
.floating-card p { font-size: 14px; color: var(--text-muted); }
.card-icon {
  width: 48px; height: 48px; background: var(--blue-light);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.card-1 { top: 0; right: 30px; animation: float 6s ease-in-out infinite; }
.card-2 { top: 130px; right: 100px; animation: float 7s ease-in-out infinite 1s; background: var(--bg-blue); color: #fff; }
.card-2 h5, .card-2 p { color: #fff; }
.card-2 p { color: rgba(255,255,255,0.7); }
.card-2 .card-icon { background: rgba(255,255,255,0.1); }
.card-3 { top: 280px; right: 0; animation: float 5s ease-in-out infinite 0.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Logo strip */
.logo-strip {
  background: #fff; padding: 40px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.logo-strip-label {
  text-align: center; font-size: 13px; color: var(--text-muted);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 20px;
}
.industries {
  display: flex; justify-content: center; gap: 56px;
  flex-wrap: wrap;
}
.industries span {
  font-family: 'Fraunces', serif; font-size: 22px; font-weight: 500;
  color: var(--text); opacity: 0.5; transition: opacity .3s;
  letter-spacing: -0.01em;
}
.industries span:hover { opacity: 1; color: var(--blue); }

/* Sections */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { margin-bottom: 64px; max-width: 720px; }
.section-head.center { margin: 0 auto 64px; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600;
  color: var(--blue); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 16px;
}
.section-head h2 {
  font-family: 'Fraunces', serif; font-weight: 600;
  font-size: clamp(34px, 4.5vw, 54px); line-height: 1.1;
  letter-spacing: -0.025em; margin-bottom: 16px;
}
.section-head p { font-size: 18px; color: var(--text-muted); }

/* About */
.about-grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 80px; align-items: center;
}
.about-grid > div:first-child h2 {
  font-family: 'Fraunces', serif; font-weight: 600;
  font-size: clamp(34px, 4.5vw, 52px); line-height: 1.1;
  letter-spacing: -0.025em; margin-bottom: 24px;
}
.lead-2 { font-size: 19px; margin-bottom: 16px; }
.about-grid > div:first-child p { color: var(--text-muted); margin-bottom: 24px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--blue); font-weight: 600; font-size: 15px;
  transition: gap .25s;
}
.link-arrow:hover { gap: 10px; }

.about-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.about-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px;
  transition: all .3s;
}
.about-card:hover { border-color: var(--blue); box-shadow: 0 8px 32px rgba(35,86,246,0.1); transform: translateY(-4px); }
.about-card h3 {
  font-family: 'Fraunces', serif; font-size: 36px; font-weight: 600;
  color: var(--blue); margin-bottom: 8px; letter-spacing: -0.02em;
}
.about-card.highlight { background: var(--bg-blue); color: #fff; border-color: transparent; }
.about-card.highlight h3 { color: #fff; }
.about-card p { color: var(--text-muted); font-size: 14px; }
.about-card.highlight p { color: rgba(255,255,255,0.7); }

/* Services */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.service {
  background: #fff; padding: 40px 32px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: all .3s; position: relative;
}
.service:hover { box-shadow: 0 12px 40px rgba(10,31,68,0.08); transform: translateY(-6px); }
.service.featured {
  background: var(--bg-blue); color: #fff; border-color: transparent;
  transform: translateY(-12px);
  box-shadow: 0 16px 50px rgba(10,31,68,0.2);
}
.service.featured:hover { transform: translateY(-18px); }
.service-num {
  font-family: 'Fraunces', serif; font-size: 16px; font-weight: 600;
  color: var(--blue); margin-bottom: 24px;
}
.service.featured .service-num { color: var(--accent); }
.service h3 {
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 22px;
  margin-bottom: 14px; letter-spacing: -0.01em;
}
.service p { color: var(--text-muted); margin-bottom: 20px; }
.service.featured p { color: rgba(255,255,255,0.75); }
.service ul li {
  padding: 8px 0; font-size: 14px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.service.featured ul li { border-color: rgba(255,255,255,0.1); }
.service ul li::before {
  content: '→'; color: var(--blue); font-weight: 600;
}
.service.featured ul li::before { color: var(--accent); }

/* Cases */
.case-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.case {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 36px;
  transition: all .3s;
}
.case:hover { border-color: var(--blue); box-shadow: 0 12px 40px rgba(10,31,68,0.08); }
.case-tag {
  display: inline-block; padding: 4px 10px;
  background: var(--blue-light); color: var(--blue);
  border-radius: 4px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; margin-bottom: 16px;
}
.case h4 {
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 22px;
  margin-bottom: 12px; line-height: 1.2; letter-spacing: -0.01em;
}
.case p { color: var(--text-muted); margin-bottom: 20px; }

/* Why us */
.why-grid {
  display: grid; grid-template-columns: 1fr 1.3fr;
  gap: 80px; align-items: center;
}
.why-grid h2 {
  font-family: 'Fraunces', serif; font-weight: 600;
  font-size: clamp(32px, 4vw, 48px); line-height: 1.1;
  letter-spacing: -0.025em;
}
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.why-item {
  display: flex; gap: 16px; padding: 24px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius);
}
.why-icon {
  width: 36px; height: 36px; background: var(--blue);
  color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; flex-shrink: 0;
}
.why-item h5 { font-size: 16px; margin-bottom: 4px; font-weight: 600; }
.why-item p { font-size: 14px; color: var(--text-muted); }

/* CTA */
.cta-band {
  background: var(--bg-blue); color: #fff;
  padding: 80px 0; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(35,86,246,0.25), transparent 70%);
}
.cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 48px; position: relative;
}
.cta-inner h2 {
  font-family: 'Fraunces', serif; font-weight: 600;
  font-size: clamp(28px, 3.5vw, 44px); line-height: 1.15;
  letter-spacing: -0.02em; margin-bottom: 10px;
}
.cta-inner p { color: rgba(255,255,255,0.7); }
.cta-actions { display: flex; gap: 12px; flex-shrink: 0; }

/* Footer */
.footer { background: #fff; padding: 80px 0 32px; border-top: 1px solid var(--line); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px; padding-bottom: 48px;
}
.footer-brand p { color: var(--text-muted); font-size: 14px; margin: 20px 0 16px; max-width: 360px; }
.footer-contact { color: var(--blue); font-weight: 600; font-size: 14px; }
.footer h5 {
  font-size: 14px; font-weight: 700; margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.footer ul li { margin-bottom: 10px; }
.footer ul a {
  font-size: 14px; color: var(--text-muted); transition: color .2s;
}
.footer ul a:hover { color: var(--blue); }
.footer-bottom {
  padding-top: 32px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text-muted);
}
.footer-address {
  color: var(--text-muted); font-size: 14px;
  margin-bottom: 12px; line-height: 1.55;
}
.footer-tagline {
  font-family: 'Fraunces', serif; font-style: italic;
  color: var(--blue); font-weight: 500;
}
.socials { display: flex; gap: 20px; }
.socials a:hover { color: var(--blue); }

/* Pages: page-hero, forms, jobs */
.page-hero {
  padding: 60px 0 40px; background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-family: 'Fraunces', serif; font-weight: 600;
  font-size: clamp(36px, 5vw, 60px); line-height: 1.05;
  letter-spacing: -0.025em; margin: 14px 0 14px;
}
.page-hero p { color: var(--text-muted); font-size: 18px; max-width: 640px; }

/* Legal Pages (Privacy, Terms) */
.legal-wrap {
  max-width: 820px; margin: 0 auto;
  padding: 60px 32px 100px;
}
.legal-content {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 56px;
  box-shadow: 0 12px 40px rgba(10,31,68,0.04);
  line-height: 1.7;
}
.legal-content p { color: var(--text-muted); margin-bottom: 18px; }
.legal-content h2 {
  font-family: 'Fraunces', serif; font-weight: 600;
  font-size: 26px; letter-spacing: -0.02em;
  margin: 40px 0 18px; color: var(--text);
}
.legal-content h2:first-of-type { margin-top: 28px; }
.legal-content ul {
  list-style: disc; padding-left: 24px;
  color: var(--text-muted); margin-bottom: 18px;
}
.legal-content ul li { margin-bottom: 8px; }
.legal-content strong { color: var(--text); font-weight: 600; }
.legal-content a { color: var(--blue); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
.legal-content a:hover { border-bottom-color: var(--blue); }
.legal-meta {
  background: var(--bg-alt); padding: 14px 18px;
  border-left: 3px solid var(--blue); border-radius: 6px;
  font-size: 14px; margin-bottom: 28px !important;
}
@media (max-width: 640px) {
  .legal-content { padding: 32px 24px; }
  .legal-wrap { padding: 32px 20px 64px; }
}

.form-wrap { max-width: 720px; margin: -40px auto 100px; padding: 0 32px; }
.form-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 48px;
  box-shadow: 0 12px 40px rgba(10,31,68,0.05);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1/-1; }
.field label {
  font-size: 13px; font-weight: 600; color: var(--text);
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  background: #fff; border: 1.5px solid var(--line);
  border-radius: 10px; padding: 12px 14px;
  font-family: 'DM Sans', sans-serif; font-size: 15px; color: var(--text);
  transition: all .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(35,86,246,0.1);
}
.field textarea { resize: vertical; min-height: 120px; font-family: inherit; }
.field-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

.file-input {
  position: relative; border: 1.5px dashed var(--line-2);
  padding: 28px; border-radius: 10px;
  text-align: center; cursor: pointer; transition: all .25s;
  background: var(--bg-alt);
}
.file-input:hover { border-color: var(--blue); background: var(--blue-light); }
.file-input input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-input-text { color: var(--text-muted); font-size: 14px; }
.file-input-text strong { color: var(--blue); }

/* Resume note (email-your-resume box) */
.resume-note {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px 24px;
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  border-radius: 10px;
}
.resume-note-icon {
  font-size: 28px; line-height: 1; flex-shrink: 0;
}
.resume-note-body strong {
  display: block; font-size: 15px; color: var(--text);
  margin-bottom: 6px;
}
.resume-note-body strong a {
  color: var(--blue); text-decoration: none;
  border-bottom: 1px solid var(--blue);
}
.resume-note-body strong a:hover { border-bottom-width: 2px; }
.resume-note-body p {
  font-size: 14px; color: var(--text-muted);
  line-height: 1.55; margin: 0;
}
.resume-note-body p strong {
  display: inline; color: var(--text); font-size: 14px; margin: 0;
}

.btn-submit {
  width: 100%; padding: 16px; border-radius: 10px;
  background: var(--blue); color: #fff; border: none;
  font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 15px;
  cursor: pointer; transition: all .25s;
  box-shadow: 0 4px 16px rgba(35,86,246,0.25);
}
.btn-submit:hover { background: var(--blue-dark); transform: translateY(-1px); }

.success-msg {
  background: #e6f7ed; border: 1px solid #b8e3c8; color: #136a36;
  padding: 14px 18px; border-radius: 10px; margin-bottom: 24px;
  font-size: 14px; display: none;
}
.success-msg.show { display: block; }

/* Jobs */
.jobs-wrap { max-width: 1100px; margin: 60px auto 100px; padding: 0 32px; }
.job-filters {
  display: flex; gap: 10px; margin-bottom: 32px; flex-wrap: wrap;
}
.filter-chip {
  padding: 10px 18px; border: 1.5px solid var(--line);
  border-radius: 100px; background: #fff;
  color: var(--text-muted); font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 500; cursor: pointer; transition: all .2s;
}
.filter-chip:hover { border-color: var(--blue); color: var(--blue); }
.filter-chip.active { background: var(--blue); color: #fff; border-color: var(--blue); }

.job-list { display: flex; flex-direction: column; gap: 12px; }
.job-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px 28px;
  display: flex; justify-content: space-between; align-items: center;
  transition: all .3s;
}
.job-card:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 24px rgba(10,31,68,0.06);
}
.job-info h4 {
  font-family: 'Fraunces', serif; font-weight: 600;
  font-size: 20px; margin-bottom: 8px; letter-spacing: -0.01em;
}
.job-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); }
.job-meta span { padding: 4px 10px; background: var(--bg-alt); border-radius: 6px; }
.job-meta span:last-child { background: var(--blue-light); color: var(--blue); font-weight: 600; }
.job-apply {
  padding: 10px 18px; background: var(--blue); color: #fff;
  border-radius: 8px; font-size: 13px; font-weight: 600;
  white-space: nowrap; transition: background .2s;
}
.job-card:hover .job-apply { background: var(--blue-dark); }

.general-app-card {
  margin-top: 40px; text-align: center; padding: 40px;
  background: var(--bg-alt); border: 1px dashed var(--line-2);
  border-radius: var(--radius-lg);
}
.general-app-card p { color: var(--text-muted); margin-bottom: 16px; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid, .about-grid, .why-grid, .cta-inner { grid-template-columns: 1fr; gap: 48px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .hero-card { display: none; }
  .services-grid, .case-grid, .why-list { grid-template-columns: 1fr 1fr; }
  .service.featured { transform: none; }
  .nav-links { display: none; }
  .top-bar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .services-grid, .case-grid, .why-list, .about-cards, .form-row, .trust-row { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .container, .form-wrap, .jobs-wrap { padding-left: 20px; padding-right: 20px; }
  .form-card { padding: 28px 20px; }
  .industries { gap: 24px; }
  .industries span { font-size: 18px; }
  .job-card { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}
